Lines Matching defs:buf
32 const uint8_t *buf = avpkt->data;
38 if (buf_end - buf < 14)
40 offset = AV_RL16(buf);
41 w = AV_RL16(buf+8);
42 h = AV_RL16(buf+10);
43 bytes_per_pixel = AV_RL16(buf+12) >> 3;
52 if (buf_end - buf < offset)
57 buf += offset;
59 if (buf_end - buf < w * bytes_per_pixel)
73 for (y = 0; y < h && buf_end - buf >= w * bytes_per_pixel; y++) {
74 memcpy(ptr, buf, w*bytes_per_pixel);
76 buf += w*bytes_per_pixel;