Home
last modified time | relevance | path

Searched refs:avc_config (Results 1 – 8 of 8) sorted by relevance

/external/chromium_org/media/filters/
Dh264_to_annex_b_bitstream_converter.cc42 mp4::AVCDecoderConfigurationRecord* avc_config) { in ParseConfiguration() argument
45 DCHECK(avc_config); in ParseConfiguration()
47 if (!avc_config->Parse(configuration_record, configuration_record_size)) in ParseConfiguration()
52 nal_unit_length_field_width_ = avc_config->length_size; in ParseConfiguration()
58 const mp4::AVCDecoderConfigurationRecord& avc_config) const { in GetConfigSize()
61 for (size_t i = 0; i < avc_config.sps_list.size(); ++i) in GetConfigSize()
62 config_size += kParamSetStartCodeSize + avc_config.sps_list[i].size(); in GetConfigSize()
64 for (size_t i = 0; i < avc_config.pps_list.size(); ++i) in GetConfigSize()
65 config_size += kParamSetStartCodeSize + avc_config.pps_list[i].size(); in GetConfigSize()
73 const mp4::AVCDecoderConfigurationRecord* avc_config) const { in CalculateNeededOutputBufferSize()
[all …]
Dffmpeg_h264_to_annex_b_bitstream_converter.cc23 scoped_ptr<mp4::AVCDecoderConfigurationRecord> avc_config; in ConvertPacket() local
33 avc_config.reset(new mp4::AVCDecoderConfigurationRecord()); in ConvertPacket()
38 avc_config.get())) { in ConvertPacket()
44 packet->data, packet->size, avc_config.get()); in ConvertPacket()
64 avc_config.get(), in ConvertPacket()
69 if (avc_config) in ConvertPacket()
Dh264_to_annex_b_bitstream_converter.h46 mp4::AVCDecoderConfigurationRecord* avc_config);
51 const mp4::AVCDecoderConfigurationRecord& avc_config) const;
73 const mp4::AVCDecoderConfigurationRecord* avc_config) const;
96 const mp4::AVCDecoderConfigurationRecord& avc_config,
126 const mp4::AVCDecoderConfigurationRecord* avc_config,
/external/chromium_org/media/formats/mp4/
Davc_unittest.cc250 AVCDecoderConfigurationRecord avc_config; in TEST_F() local
251 avc_config.sps_list.resize(2); in TEST_F()
252 avc_config.sps_list[0].push_back(0x67); in TEST_F()
253 avc_config.sps_list[0].push_back(0x12); in TEST_F()
254 avc_config.sps_list[1].push_back(0x67); in TEST_F()
255 avc_config.sps_list[1].push_back(0x34); in TEST_F()
256 avc_config.pps_list.resize(1); in TEST_F()
257 avc_config.pps_list[0].push_back(0x68); in TEST_F()
258 avc_config.pps_list[0].push_back(0x56); in TEST_F()
259 avc_config.pps_list[0].push_back(0x78); in TEST_F()
[all …]
Davc.cc76 bool AVC::InsertParamSetsAnnexB(const AVCDecoderConfigurationRecord& avc_config, in InsertParamSetsAnnexB() argument
116 RCHECK(AVC::ConvertConfigToAnnexB(avc_config, in InsertParamSetsAnnexB()
135 const AVCDecoderConfigurationRecord& avc_config, in ConvertConfigToAnnexB() argument
141 for (size_t i = 0; i < avc_config.sps_list.size(); i++) in ConvertConfigToAnnexB()
142 total_size += avc_config.sps_list[i].size() + kAnnexBStartCodeSize; in ConvertConfigToAnnexB()
143 for (size_t i = 0; i < avc_config.pps_list.size(); i++) in ConvertConfigToAnnexB()
144 total_size += avc_config.pps_list[i].size() + kAnnexBStartCodeSize; in ConvertConfigToAnnexB()
147 for (size_t i = 0; i < avc_config.sps_list.size(); i++) { in ConvertConfigToAnnexB()
150 buffer->insert(buffer->end(), avc_config.sps_list[i].begin(), in ConvertConfigToAnnexB()
151 avc_config.sps_list[i].end()); in ConvertConfigToAnnexB()
[all …]
Davc.h31 const AVCDecoderConfigurationRecord& avc_config,
36 const AVCDecoderConfigurationRecord& avc_config,
Dmp4_stream_parser.cc360 const AVCDecoderConfigurationRecord& avc_config, in PrepareAVCBuffer() argument
368 RCHECK(AVC::ConvertFrameToAnnexB(avc_config.length_size, frame_buf)); in PrepareAVCBuffer()
370 const int nalu_size_diff = 4 - avc_config.length_size; in PrepareAVCBuffer()
382 RCHECK(AVC::InsertParamSetsAnnexB(avc_config, frame_buf, subsamples)); in PrepareAVCBuffer()
Dmp4_stream_parser.h70 bool PrepareAVCBuffer(const AVCDecoderConfigurationRecord& avc_config,