Lines Matching defs:bytestream
37 #include "bytestream.h"
294 uint8_t **bytestream, uint8_t *end,
336 bytestream_put_buffer(bytestream, gif89a_sig, sizeof(gif89a_sig));
337 bytestream_put_le16(bytestream, avctx->width);
338 bytestream_put_le16(bytestream, avctx->height);
342 bytestream_put_byte(bytestream, ((uint8_t) s->use_global_palette << 7) | 0x70 | (s->use_global_palette ? 7 : 0)); /* flags: global clut, 256 entries */
343 bytestream_put_byte(bytestream, bcid < 0 ? DEFAULT_TRANSPARENCY_INDEX : bcid); /* background color index */
344 bytestream_put_byte(bytestream, aspect);
348 bytestream_put_be24(bytestream, v);
371 bytestream_put_byte(bytestream, GIF_EXTENSION_INTRODUCER);
372 bytestream_put_byte(bytestream, GIF_GCE_EXT_LABEL);
373 bytestream_put_byte(bytestream, 0x04); /* block size */
374 bytestream_put_byte(bytestream, disposal<<2 | (bcid >= 0));
375 bytestream_put_le16(bytestream, 5); // default delay
376 bytestream_put_byte(bytestream, bcid < 0 ? DEFAULT_TRANSPARENCY_INDEX : (shrunk_palette_count ? map[bcid] : bcid));
377 bytestream_put_byte(bytestream, 0x00);
380 bytestream_put_byte(bytestream, GIF_IMAGE_SEPARATOR);
381 bytestream_put_le16(bytestream, x_start);
382 bytestream_put_le16(bytestream, y_start);
383 bytestream_put_le16(bytestream, width);
384 bytestream_put_le16(bytestream, height);
390 bytestream_put_byte(bytestream, 1<<7 | pow2_count); /* flags */
393 bytestream_put_be24(bytestream, v);
396 bytestream_put_byte(bytestream, 0x00); /* flags */
399 bytestream_put_byte(bytestream, 0x08);
441 bytestream_put_byte(bytestream, size);
442 if (end - *bytestream < size)
444 bytestream_put_buffer(bytestream, ptr, size);
448 bytestream_put_byte(bytestream, 0x00); /* end of image block */