50 #define BITSTREAM_WRITER_LE
62 uint8_t **bytestream, uint32_t *
palette)
69 bytestream_put_le16(bytestream, avctx->
width);
70 bytestream_put_le16(bytestream, avctx->
height);
72 bytestream_put_byte(bytestream, 0xf7);
73 bytestream_put_byte(bytestream, 0x1f);
74 bytestream_put_byte(bytestream, 0);
79 bytestream_put_be24(bytestream, v);
86 uint8_t **bytestream, uint8_t *end,
87 const uint8_t *buf,
int linesize)
94 bytestream_put_byte(bytestream, 0x2c);
95 bytestream_put_le16(bytestream, 0);
96 bytestream_put_le16(bytestream, 0);
97 bytestream_put_le16(bytestream, avctx->
width);
98 bytestream_put_le16(bytestream, avctx->
height);
99 bytestream_put_byte(bytestream, 0x00);
102 bytestream_put_byte(bytestream, 0x08);
117 bytestream_put_byte(bytestream, size);
118 if (end - *bytestream < size)
124 bytestream_put_byte(bytestream, 0x00);
125 bytestream_put_byte(bytestream, 0x3b);
149 uint8_t *outbuf_ptr = outbuf;
150 uint8_t *end = outbuf + buf_size;
157 return outbuf_ptr - outbuf;