Lines Matching defs:buf
87 if ( AV_RB24(p->buf) != AV_RB24("CWS")
88 && AV_RB24(p->buf) != AV_RB24("FWS"))
91 if ( AV_RB24(p->buf) == AV_RB24("CWS")
92 && p->buf[3] <= 20)
95 if (init_get_bits8(&gb, p->buf + 8, p->buf_size - 8) < 0)
108 if (p->buf[3] >= 20 || xmax < 16 || ymax < 16)
115 static int zlib_refill(void *opaque, uint8_t *buf, int buf_size)
131 z->next_out = buf;
330 uint8_t *buf = NULL, *zbuf = NULL, *pal;
388 buf = av_malloc(out_len);
389 if (!buf) {
393 if ((res = uncompress(buf, &out_len, zbuf, len)) != Z_OK) {
436 if (alpha_bmp) colormap[i] = buf[3]<<24 | AV_RB24(buf + 4*i);
437 else colormap[i] = 0xffU <<24 | AV_RB24(buf + 3*i);
459 memcpy(pkt->data, buf + colormapsize*colormapbpp, linesize * height);
465 av_freep(&buf);
469 av_freep(&buf);