Lines Matching defs:buf
55 static int gif_find_frame_end(GIFParseContext *g, const uint8_t *buf,
62 if (!memcmp(buf + index, gif87a_sig, 6) ||
63 !memcmp(buf + index, gif89a_sig, 6)) {
66 } else if (buf[index] == GIF_EXTENSION_INTRODUCER) {
69 } else if (buf[index] == GIF_IMAGE_SEPARATOR) {
71 } else if (buf[index] == GIF_TRAILER) {
82 g->gct_flag = !!(buf[index] & 0x80);
83 g->gct_size = 3 * (1 << ((buf[index] & 0x07) + 1));
105 g->etype = buf[index];
108 g->block_size = buf[index];
116 g->block_size = buf[index];
131 g->delay |= buf[index] << (8 * (g->index - 1));
135 g->block_size = buf[index];
144 g->gct_flag = !!(buf[index] & 0x80);
145 g->gct_size = 3 * (1 << ((buf[index] & 0x07) + 1));
163 const uint8_t *buf, int buf_size)
168 next = gif_find_frame_end(g, buf, buf_size, avctx);
169 if (ff_combine_frame(&g->pc, next, &buf, &buf_size) < 0) {
177 *poutbuf = buf;