[Ffmpeg-cvslog] r7200 - trunk/libavcodec/bytestream.h
bcoudurier
subversion
Fri Dec 1 15:01:50 CET 2006
Author: bcoudurier
Date: Fri Dec 1 15:01:50 2006
New Revision: 7200
Modified:
trunk/libavcodec/bytestream.h
Log:
add bytestream big endian 16/32 writing functions
Modified: trunk/libavcodec/bytestream.h
==============================================================================
--- trunk/libavcodec/bytestream.h (original)
+++ trunk/libavcodec/bytestream.h Fri Dec 1 15:01:50 2006
@@ -47,6 +47,20 @@
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)
{
*(*b)++ = value;
More information about the ffmpeg-cvslog
mailing list