comparison bytestream.h @ 4125:f6f67a8bdd09 libavcodec

change gif muxer to simple gif encoder
author bcoudurier
date Thu, 02 Nov 2006 23:13:34 +0000
parents f20c7bb12103
children b0d38ef4b547
comparison
equal deleted inserted replaced
4124:22de53ac033a 4125:f6f67a8bdd09
45 memcpy(dst, *b, size); 45 memcpy(dst, *b, size);
46 (*b) += size; 46 (*b) += size;
47 return size; 47 return size;
48 } 48 }
49 49
50 static always_inline void bytestream_put_le32(uint8_t **b, const unsigned int value)
51 {
52 *(*b)++ = value;
53 *(*b)++ = value >> 8;
54 *(*b)++ = value >> 16;
55 *(*b)++ = value >> 24;
56 }
57
58 static always_inline void bytestream_put_le16(uint8_t **b, const unsigned int value)
59 {
60 *(*b)++ = value;
61 *(*b)++ = value >> 8;
62 }
63
64 static always_inline void bytestream_put_byte(uint8_t **b, const unsigned int value)
65 {
66 *(*b)++ = value;
67 }
68
69 static always_inline void bytestream_put_buffer(uint8_t **b, const uint8_t *src, unsigned int size)
70 {
71 memcpy(*b, src, size);
72 (*b) += size;
73 }
74
50 #endif /* FFMPEG_BYTESTREAM_H */ 75 #endif /* FFMPEG_BYTESTREAM_H */