Lines Matching defs:bytestream
45 #include "bytestream.h"
57 static int gif_image_write_header(uint8_t **bytestream,
64 bytestream_put_buffer(bytestream, "GIF", 3);
65 bytestream_put_buffer(bytestream, "89a", 3);
66 bytestream_put_le16(bytestream, width);
67 bytestream_put_le16(bytestream, height);
69 bytestream_put_byte(bytestream, 0xf7); /* flags: global clut, 256 entries */
70 bytestream_put_byte(bytestream, 0x1f); /* background color index */
71 bytestream_put_byte(bytestream, 0); /* aspect ratio */
76 bytestream_put_be24(bytestream, v);
82 static int gif_image_write_image(uint8_t **bytestream,
92 bytestream_put_byte(bytestream, 0x2c);
93 bytestream_put_le16(bytestream, x1);
94 bytestream_put_le16(bytestream, y1);
95 bytestream_put_le16(bytestream, width);
96 bytestream_put_le16(bytestream, height);
97 bytestream_put_byte(bytestream, 0x00); /* flags */
100 bytestream_put_byte(bytestream, 0x08);
130 bytestream_put_byte(bytestream, pbBufPtr(&p) - p.buf); /* byte count of the packet */
131 bytestream_put_buffer(bytestream, p.buf, pbBufPtr(&p) - p.buf); /* the actual buffer */
136 bytestream_put_byte(bytestream, 0x00); /* end of image block */
137 bytestream_put_byte(bytestream, 0x3b);