Home
last modified time | relevance | path

Searched refs:obu_header (Results 1 – 11 of 11) sorted by relevance

/external/libaom/libaom/tools/
Dobu_parser.cc73 bool ParseObuHeader(uint8_t obu_header_byte, ObuHeader *obu_header) { in ParseObuHeader() argument
81 obu_header->type = static_cast<OBU_TYPE>( in ParseObuHeader()
83 if (!ValidObuType(obu_header->type)) { in ParseObuHeader()
84 fprintf(stderr, "Invalid OBU type: %d.\n", obu_header->type); in ParseObuHeader()
88 obu_header->has_extension = in ParseObuHeader()
90 obu_header->has_size_field = in ParseObuHeader()
95 bool ParseObuExtensionHeader(uint8_t ext_header_byte, ObuHeader *obu_header) { in ParseObuExtensionHeader() argument
96 obu_header->temporal_layer_id = in ParseObuExtensionHeader()
99 obu_header->spatial_layer_id = in ParseObuExtensionHeader()
124 ObuHeader obu_header; in DumpObu() local
[all …]
/external/libaom/libaom/common/
Dobudec.c71 ObuHeader *obu_header, size_t *bytes_read) { in obudec_read_obu_header() argument
73 !obu_data || !obu_header || !bytes_read) { in obudec_read_obu_header()
96 obu_data, *bytes_read, &obu_bytes_parsed, obu_header, is_annexb); in obudec_read_obu_header()
125 ObuHeader *obu_header) { in obudec_read_obu_header_and_size() argument
127 if (!f || !buffer || !bytes_read || !payload_length || !obu_header || in obudec_read_obu_header_and_size()
151 buffer + leb128_length_obu, obu_header, in obudec_read_obu_header_and_size()
159 if (!obu_header->has_size_field) { in obudec_read_obu_header_and_size()
220 ObuHeader *obu_header, int is_annexb) { in obudec_read_one_obu() argument
222 !obu_header) { in obudec_read_one_obu()
242 &bytes_read, &obu_payload_length, obu_header); in obudec_read_one_obu()
[all …]
Dav1_config.c392 ObuHeader obu_header; in get_av1config_from_obu() local
393 memset(&obu_header, 0, sizeof(obu_header)); in get_av1config_from_obu()
397 if (aom_read_obu_header_and_size(buffer, length, is_annexb, &obu_header, in get_av1config_from_obu()
400 obu_header.type != OBU_SEQUENCE_HEADER || in get_av1config_from_obu()
/external/libaom/libaom/av1/common/
Dobu_util.c114 ObuHeader *obu_header, in aom_read_obu_header_and_size() argument
133 status = read_obu_header(&rb, is_annexb, obu_header); in aom_read_obu_header_and_size()
136 if (!obu_header->has_size_field) { in aom_read_obu_header_and_size()
139 if (obu_size < obu_header->size) return AOM_CODEC_CORRUPT_FRAME; in aom_read_obu_header_and_size()
141 *payload_size = obu_size - obu_header->size; in aom_read_obu_header_and_size()
145 data + length_field_size_obu + obu_header->size, in aom_read_obu_header_and_size()
146 bytes_available - length_field_size_obu - obu_header->size, in aom_read_obu_header_and_size()
152 length_field_size_obu + obu_header->size + length_field_size_payload; in aom_read_obu_header_and_size()
Dobu_util.h39 ObuHeader *obu_header,
/external/webrtc/modules/rtp_rtcp/source/
Dvideo_rtp_depacketizer_av1.cc161 bool ObuHasExtension(uint8_t obu_header) { in ObuHasExtension() argument
162 return obu_header & 0b0'0000'100u; in ObuHasExtension()
165 bool ObuHasSize(uint8_t obu_header) { in ObuHasSize() argument
166 return obu_header & kObuSizePresentBit; in ObuHasSize()
285 uint8_t obu_header = *it; in CalculateObuSizes() local
286 obu_info->prefix[0] = obu_header | kObuSizePresentBit; in CalculateObuSizes()
289 if (ObuHasExtension(obu_header)) { in CalculateObuSizes()
298 if (!ObuHasSize(obu_header)) { in CalculateObuSizes()
Drtp_packetizer_av1.cc38 bool ObuHasExtension(uint8_t obu_header) { in ObuHasExtension() argument
39 return obu_header & 0b0'0000'100; in ObuHasExtension()
42 bool ObuHasSize(uint8_t obu_header) { in ObuHasSize() argument
43 return obu_header & kObuSizePresentBit; in ObuHasSize()
46 int ObuType(uint8_t obu_header) { in ObuType() argument
47 return (obu_header & 0b0'1111'000) >> 3; in ObuType()
/external/libaom/libaom/av1/decoder/
Dobu.c55 ObuHeader obu_header) { in is_obu_in_current_operating_point() argument
60 if ((pbi->current_operating_point >> obu_header.temporal_layer_id) & 0x1 && in is_obu_in_current_operating_point()
61 (pbi->current_operating_point >> (obu_header.spatial_layer_id + 8)) & in is_obu_in_current_operating_point()
864 ObuHeader obu_header; in aom_decode_frame_from_obus() local
865 memset(&obu_header, 0, sizeof(obu_header)); in aom_decode_frame_from_obus()
894 &obu_header, &payload_size, &bytes_read); in aom_decode_frame_from_obus()
902 pbi->obu_size_hdr.data = data + obu_header.size; in aom_decode_frame_from_obus()
903 pbi->obu_size_hdr.size = bytes_read - obu_header.size; in aom_decode_frame_from_obus()
914 cm->temporal_layer_id = obu_header.temporal_layer_id; in aom_decode_frame_from_obus()
915 cm->spatial_layer_id = obu_header.spatial_layer_id; in aom_decode_frame_from_obus()
[all …]
/external/libaom/libaom/av1/
Dav1_dx_iface.c261 ObuHeader obu_header; in decoder_peek_si_internal() local
262 memset(&obu_header, 0, sizeof(obu_header)); in decoder_peek_si_internal()
267 data, data_sz, si->is_annexb, &obu_header, &payload_size, &bytes_read); in decoder_peek_si_internal()
272 if (obu_header.type == OBU_TEMPORAL_DELIMITER) { in decoder_peek_si_internal()
279 data, data_sz, si->is_annexb, &obu_header, &payload_size, &bytes_read); in decoder_peek_si_internal()
287 if (obu_header.type == OBU_SEQUENCE_HEADER) { in decoder_peek_si_internal()
313 } else if (obu_header.type == OBU_FRAME_HEADER || in decoder_peek_si_internal()
314 obu_header.type == OBU_FRAME) { in decoder_peek_si_internal()
339 data, data_sz, si->is_annexb, &obu_header, &payload_size, &bytes_read); in decoder_peek_si_internal()
/external/libgav1/libgav1/src/
Dobu_parser.cc2594 ObuHeader obu_header; in ParseHeader() local
2601 obu_header.type = static_cast<libgav1::ObuType>(scratch); in ParseHeader()
2605 obu_header.has_size_field = static_cast<bool>(scratch); in ParseHeader()
2610 obu_header.has_extension = extension_flag; in ParseHeader()
2618 obu_header.temporal_id = scratch; in ParseHeader()
2620 obu_header.spatial_id = scratch; in ParseHeader()
2626 obu_header.temporal_id = 0; in ParseHeader()
2627 obu_header.spatial_id = 0; in ParseHeader()
2629 return obu_headers_.push_back(obu_header); in ParseHeader()
2676 const ObuHeader& obu_header = obu_headers_.back(); in ParseOneFrame() local
[all …]
Ddecoder_impl.cc1628 [](const ObuHeader& obu_header) { in IsNewSequenceHeader() argument
1629 return obu_header.type == kObuSequenceHeader; in IsNewSequenceHeader()