Lines Matching refs:data
357 name = name ## _ref->data; \
484 while (size > 0 && nal->data[size - 1] == 0)
491 ref = (nal->data == nal->raw_data) ? frag->data_ref
495 (uint8_t*)nal->data, size, ref);
512 av_assert0(frag->data && frag->nb_units == 0);
516 if (header && frag->data[0] && codec_id == AV_CODEC_ID_H264) {
523 bytestream2_init(&gbc, frag->data, frag->data_size);
552 frag->data + start, end - start,
576 frag->data + start, end - start,
591 } else if (header && frag->data[0] && codec_id == AV_CODEC_ID_HEVC) {
598 bytestream2_init(&gbc, frag->data, frag->data_size);
630 frag->data + start, end - start,
647 frag->data, frag->data_size,
685 priv->ps_var[id] = (H26 ## h26n ## Raw ## ps_name *)priv->ps_var ## _ref[id]->data; \
701 err = init_get_bits(&gbc, unit->data, 8 * unit->data_size);
767 slice->data = unit->data + pos / 8;
820 err = init_get_bits(&gbc, unit->data, 8 * unit->data_size);
904 slice->data = unit->data + pos / 8;
936 PutBitContext *pbc, const uint8_t *data,
940 const uint8_t *pos = data + data_bit_start / 8;
1048 if (slice->data) {
1049 err = cbs_h2645_write_slice_data(ctx, pbc, slice->data,
1055 // No slice data - that was just the header.
1182 if (slice->data) {
1183 err = cbs_h2645_write_slice_data(ctx, pbc, slice->data,
1189 // No slice data - that was just the header.
1241 uint8_t *data;
1247 av_assert0(frag->units[i].data);
1256 data = av_realloc(NULL, max_size + AV_INPUT_BUFFER_PADDING_SIZE);
1257 if (!data)
1274 data[dp++] = 0;
1277 data[dp++] = 0;
1278 data[dp++] = 0;
1279 data[dp++] = 1;
1284 if (unit->data[sp] == 0)
1289 if ((unit->data[sp] & ~3) == 0) {
1291 data[dp++] = 3;
1293 zero_run = unit->data[sp] == 0;
1295 data[dp++] = unit->data[sp];
1300 err = av_reallocp(&data, dp + AV_INPUT_BUFFER_PADDING_SIZE);
1303 memset(data + dp, 0, AV_INPUT_BUFFER_PADDING_SIZE);
1305 frag->data_ref = av_buffer_create(data, dp + AV_INPUT_BUFFER_PADDING_SIZE,
1308 av_freep(&data);
1312 frag->data = data;
1409 .ref_offsets = { offsetof(H264RawSlice, data) },
1430 CBS_UNIT_TYPE_INTERNAL_REF(HEVC_NAL_VPS, H265RawVPS, extension_data.data),
1431 CBS_UNIT_TYPE_INTERNAL_REF(HEVC_NAL_SPS, H265RawSPS, extension_data.data),
1432 CBS_UNIT_TYPE_INTERNAL_REF(HEVC_NAL_PPS, H265RawPPS, extension_data.data),
1445 .ref_offsets = { offsetof(H265RawSlice, data) },
1457 .ref_offsets = { offsetof(H265RawSlice, data) },