add bytestream big endian 16/32 writing functions
Originally committed as revision 7200 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
fb132953d4
commit
e68e5ab0cf
@ -47,6 +47,20 @@ static always_inline unsigned int bytestream_get_buffer(uint8_t **b, uint8_t *ds
|
|||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static always_inline void bytestream_put_be32(uint8_t **b, const unsigned int value)
|
||||||
|
{
|
||||||
|
*(*b)++ = value >> 24;
|
||||||
|
*(*b)++ = value >> 16;
|
||||||
|
*(*b)++ = value >> 8;
|
||||||
|
*(*b)++ = value;
|
||||||
|
};
|
||||||
|
|
||||||
|
static always_inline void bytestream_put_be16(uint8_t **b, const unsigned int value)
|
||||||
|
{
|
||||||
|
*(*b)++ = value >> 8;
|
||||||
|
*(*b)++ = value;
|
||||||
|
}
|
||||||
|
|
||||||
static always_inline void bytestream_put_le32(uint8_t **b, const unsigned int value)
|
static always_inline void bytestream_put_le32(uint8_t **b, const unsigned int value)
|
||||||
{
|
{
|
||||||
*(*b)++ = value;
|
*(*b)++ = value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user