Lines Matching defs:buf
180 uint8_t *buf;
200 buf = pkt->data;
202 memset(buf, 0, HEADER_SIZE);
205 write32(buf, MKBETAG('S','D','P','X'));
206 write32(buf + 4, HEADER_SIZE);
207 memcpy (buf + 8, "V1.0", 4);
208 write32(buf + 20, 1); /* new image */
209 write32(buf + 24, HEADER_SIZE);
211 memcpy (buf + 160, LIBAVCODEC_IDENT, FFMIN(sizeof(LIBAVCODEC_IDENT), 100));
212 write32(buf + 660, 0xFFFFFFFF); /* unencrypted */
215 write16(buf + 768, 0); /* orientation; left to right, top to bottom */
216 write16(buf + 770, 1); /* number of elements */
217 write32(buf + 772, avctx->width);
218 write32(buf + 776, avctx->height);
219 buf[800] = s->descriptor;
220 buf[801] = 2; /* linear transfer */
221 buf[802] = 2; /* linear colorimetric */
222 buf[803] = s->bits_per_component;
223 write16(buf + 804, (s->bits_per_component == 10 || s->bits_per_component == 12) ?
225 write32(buf + 808, HEADER_SIZE); /* data offset */
228 write32(buf + 1628, avctx->sample_aspect_ratio.num);
229 write32(buf + 1632, avctx->sample_aspect_ratio.den);
246 size = av_image_copy_to_buffer(buf + HEADER_SIZE, pkt->size - HEADER_SIZE,
256 encode_gbrp10(avctx, frame, buf + HEADER_SIZE);
258 encode_rgb48_10bit(avctx, frame, buf + HEADER_SIZE);
261 encode_gbrp12(avctx, frame, buf + HEADER_SIZE);
270 write32(buf + 16, size); /* file size */