/external/libaom/libaom/tools/ |
D | obu_parser.cc | 73 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/ |
D | obudec.c | 71 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 …]
|
D | av1_config.c | 392 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/ |
D | obu_util.c | 114 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()
|
D | obu_util.h | 39 ObuHeader *obu_header,
|
/external/webrtc/modules/rtp_rtcp/source/ |
D | video_rtp_depacketizer_av1.cc | 161 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()
|
D | rtp_packetizer_av1.cc | 38 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/ |
D | obu.c | 55 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/ |
D | av1_dx_iface.c | 261 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/ |
D | obu_parser.cc | 2594 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 …]
|
D | decoder_impl.cc | 1628 [](const ObuHeader& obu_header) { in IsNewSequenceHeader() argument 1629 return obu_header.type == kObuSequenceHeader; in IsNewSequenceHeader()
|