Home
last modified time | relevance | path

Searched refs:obu_size (Results 1 – 14 of 14) sorted by relevance

/third_party/ffmpeg/libavformat/
Dav1dec.c125 static int read_obu(const uint8_t *buf, int size, int64_t *obu_size, int *type) in read_obu() argument
130 len = parse_obu_header(buf, size, obu_size, &start_pos, in read_obu()
141 int64_t obu_size; in annexb_probe() local
169 ret = read_obu(p->buf + cnt, FFMIN(p->buf_size - cnt, obu_unit_size), &obu_size, &type); in annexb_probe()
170 if (ret < 0 || type != AV1_OBU_TEMPORAL_DELIMITER || obu_size > 0) in annexb_probe()
184 ret = read_obu(p->buf + cnt, FFMIN(p->buf_size - cnt, obu_unit_size), &obu_size, &type); in annexb_probe()
309 static int read_obu_with_size(const uint8_t *buf, int buf_size, int64_t *obu_size, int *type) in read_obu_with_size() argument
334 *obu_size = leb128(&gb); in read_obu_with_size()
335 if (*obu_size > INT_MAX) in read_obu_with_size()
343 size = *obu_size + start_pos; in read_obu_with_size()
[all …]
Dav1.c36 int64_t obu_size; in av1_filter_obus() local
47 int len = parse_obu_header(buf, end - buf, &obu_size, &start_pos, in av1_filter_obus()
336 int64_t obu_size; in ff_av1_parse_seq_header() local
343 int len = parse_obu_header(buf, size, &obu_size, &start_pos, in ff_av1_parse_seq_header()
350 if (!obu_size) in ff_av1_parse_seq_header()
353 return parse_sequence_header(seq, buf + start_pos, obu_size); in ff_av1_parse_seq_header()
371 int64_t obu_size; in ff_isom_write_av1c() local
397 int len = parse_obu_header(buf, size, &obu_size, &start_pos, in ff_isom_write_av1c()
407 if (!obu_size || nb_seq > 1) { in ff_isom_write_av1c()
411 ret = parse_sequence_header(&seq_params, buf + start_pos, obu_size); in ff_isom_write_av1c()
[all …]
/third_party/gstreamer/gstplugins_bad/tests/check/libs/
Dav1parser.c130 assert_equals_int (obu.obu_size, 0); in GST_START_TEST()
144 assert_equals_int (obu.obu_size, 10); in GST_START_TEST()
196 assert_equals_int (obu.obu_size, 166); in GST_START_TEST()
272 assert_equals_int (obu.obu_size, 0); in GST_START_TEST()
287 assert_equals_int (obu.obu_size, 75); in GST_START_TEST()
410 assert_equals_int (obu.obu_size, 0); in GST_START_TEST()
423 assert_equals_int (obu.obu_size, 10); in GST_START_TEST()
441 assert_equals_int (obu.obu_size, 248); in GST_START_TEST()
460 assert_equals_int (obu.obu_size, 0); in GST_START_TEST()
473 assert_equals_int (obu.obu_size, 244); in GST_START_TEST()
[all …]
/third_party/ffmpeg/libavcodec/
Dav1_parse.h104 int64_t *obu_size, int *start_pos, int *type, in parse_obu_header() argument
131 *obu_size = has_size_flag ? leb128(&gb) in parse_obu_header()
139 size = *obu_size + *start_pos; in parse_obu_header()
Dav1_parse.c31 int64_t obu_size; in ff_av1_extract_obu() local
35 len = parse_obu_header(buf, length, &obu_size, &start_pos, in ff_av1_extract_obu()
45 obu->size = obu_size; in ff_av1_extract_obu()
Dcbs_av1.c797 uint64_t obu_size; in cbs_av1_split_fragment() local
812 err = cbs_av1_read_leb128(ctx, &gbc, "obu_size", &obu_size); in cbs_av1_split_fragment()
816 obu_size = size - 1 - header.obu_extension_flag; in cbs_av1_split_fragment()
821 obu_length = pos / 8 + obu_size; in cbs_av1_split_fragment()
896 uint64_t obu_size; in cbs_av1_read_unit() local
897 err = cbs_av1_read_leb128(ctx, &gbc, "obu_size", &obu_size); in cbs_av1_read_unit()
900 obu->obu_size = obu_size; in cbs_av1_read_unit()
907 obu->obu_size = unit->data_size - 1 - obu->header.obu_extension_flag; in cbs_av1_read_unit()
1034 if (obu->obu_size > 0 && in cbs_av1_read_unit()
1038 int nb_bits = obu->obu_size * 8 + start_pos - end_pos; in cbs_av1_read_unit()
[all …]
Dcbs_av1.h394 size_t obu_size; member
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecparsers/
Dgstav1parser.c475 if (obu->obu_size > 0 in av1_skip_trailing_bits()
479 if (payloadBits >= obu->obu_size * 8) in av1_skip_trailing_bits()
482 ret = av1_bitstreamfn_trailing_bits (br, obu->obu_size * 8 - payloadBits); in av1_skip_trailing_bits()
829 obu->obu_size = av1_bitstreamfn_leb128 (&br, &ret); in gst_av1_parser_identify_one_obu()
836 obu->obu_size) { in gst_av1_parser_identify_one_obu()
843 if (AV1_REMAINING_BYTES (&br) < obu->obu_size) { in gst_av1_parser_identify_one_obu()
853 obu->obu_size = obu_length - 1 - obu->header.obu_extention_flag; in gst_av1_parser_identify_one_obu()
859 if (size - *consumed - used < obu->obu_size) { in gst_av1_parser_identify_one_obu()
873 *consumed += obu->obu_size; in gst_av1_parser_identify_one_obu()
875 parser->temporal_unit_consumed += obu->obu_size; in gst_av1_parser_identify_one_obu()
[all …]
Dgstav1parser.h583 guint32 obu_size; member
/third_party/gstreamer/gstplugins_bad/gst/videoparsers/
Dgstav1parse.c998 obu->obu_size + 1 + obu->header.obu_extention_flag); in gst_av1_parse_convert_to_annexb()
1023 len += obu->obu_size; in gst_av1_parse_convert_to_annexb()
1035 memcpy (data + offset, obu->data, obu->obu_size); in gst_av1_parse_convert_to_annexb()
1074 _write_leb128 (size_data, &size_len, obu->obu_size); in gst_av1_parse_convert_from_annexb()
1081 len += obu->obu_size; in gst_av1_parse_convert_from_annexb()
1113 memcpy (data + offset, obu->data, obu->obu_size); in gst_av1_parse_convert_from_annexb()
/third_party/gstreamer/gstplugins_bad/sys/d3d11/
Dgstd3d11av1dec.cpp1148 GST_TRACE_OBJECT (self, "OBU size %d", tile->obu.obu_size); in gst_d3d11_av1_dec_decode_tile()
1151 inner->bitstream_buffer.resize (pos + tile->obu.obu_size); in gst_d3d11_av1_dec_decode_tile()
1154 tile->obu.data, tile->obu.obu_size); in gst_d3d11_av1_dec_decode_tile()
/third_party/mesa3d/src/gallium/frontends/omx/bellagio/
Dvid_dec_av1.c2230 unsigned obu_size = 0; in dec_av1_Decode() local
2253 obu_size = (obu_has_size_field) ? av1_uleb128(vlc) : in dec_av1_Decode()
2255 total_obu_len = (start_bits_pos - vl_vlc_bits_left(vlc)) / 8 + obu_size; in dec_av1_Decode()
/third_party/gstreamer/gstplugins_bad/sys/va/
Dgstvaav1dec.c809 tile->obu.obu_size)) { in gst_va_av1_dec_decode_tile()
/third_party/gstreamer/gstplugins_bad/
DChangeLog15163 codecparsers: Exclude the size of obu_size when identify OBU.
15164 obu->obu_size does not contain the bytes of obu_size itself, we need