Lines Matching defs:buf
988 uint8_t *orig_buf, *buf, *slice_hdr, *slice_sizes, *tmp;
1010 buf = orig_buf;
1013 tmp = buf;
1014 buf += 2; // frame header size will be stored here
1015 bytestream_put_be16 (&buf, 0); // version 1
1016 bytestream_put_buffer(&buf, ctx->vendor, 4);
1017 bytestream_put_be16 (&buf, avctx->width);
1018 bytestream_put_be16 (&buf, avctx->height);
1023 bytestream_put_byte (&buf, frame_flags);
1025 bytestream_put_byte (&buf, 0); // reserved
1026 bytestream_put_byte (&buf, pic->color_primaries);
1027 bytestream_put_byte (&buf, pic->color_trc);
1028 bytestream_put_byte (&buf, pic->colorspace);
1029 bytestream_put_byte (&buf, 0x40 | (ctx->alpha_bits >> 3));
1030 bytestream_put_byte (&buf, 0); // reserved
1032 bytestream_put_byte (&buf, 0x03); // matrix flags - both matrices are present
1035 bytestream_put_byte(&buf, ctx->quant_mat[i]);
1038 bytestream_put_byte(&buf, ctx->quant_mat[i]);
1040 bytestream_put_byte (&buf, 0x00); // matrix flags - default matrices are used
1042 bytestream_put_be16 (&tmp, buf - orig_buf); // write back frame header size
1048 picture_size_pos = buf + 1;
1049 bytestream_put_byte (&buf, 0x40); // picture header size (in bits)
1050 buf += 4; // picture data size will be stored here
1051 bytestream_put_be16 (&buf, ctx->slices_per_picture);
1052 bytestream_put_byte (&buf, av_log2(ctx->mbs_per_slice) << 4); // slice width and height in MBs
1055 slice_sizes = buf;
1056 buf += ctx->slices_per_picture * 2;
1075 bytestream_put_byte(&buf, slice_hdr_size << 3);
1076 slice_hdr = buf;
1077 buf += slice_hdr_size - 1;
1078 if (pkt_size <= buf - orig_buf + 2 * max_slice_size) {
1105 buf = pkt->data + (buf - start);
1111 init_put_bits(&pb, buf, (pkt_size - (buf - orig_buf)));
1124 buf += slice_size - slice_hdr_size;
1130 picture_size = buf - (picture_size_pos - 1);
1135 frame_size = buf - orig_buf;