Lines Matching defs:buf
94 static int jpeg_create_header(uint8_t *buf, int size, uint32_t type, uint32_t w,
102 bytestream2_init_writer(&pbc, buf, size);
216 const uint8_t *buf, int len, uint16_t seq,
231 off = AV_RB24(buf + 1); /* fragment byte offset */
232 type = AV_RB8(buf + 4); /* id of jpeg decoder params */
233 q = AV_RB8(buf + 5); /* quantization factor (or table id) */
234 width = AV_RB8(buf + 6); /* frame width in 8 pixel blocks */
235 height = AV_RB8(buf + 7); /* frame height in 8 pixel blocks */
236 buf += 8;
244 dri = AV_RB16(buf);
245 buf += 4;
268 precision = AV_RB8(buf + 1); /* size of coefficients */
269 qtable_len = AV_RB16(buf + 2); /* length in bytes */
270 buf += 4;
281 qtables = buf;
282 buf += qtable_len;
360 avio_write(jpeg->frame, buf, len);
364 uint8_t buf[2] = { 0xff, EOI };
367 avio_write(jpeg->frame, buf, sizeof(buf));