Home
last modified time | relevance | path

Searched refs:subsamples (Results 1 – 25 of 31) sorted by relevance

12

/external/chromium_org/media/formats/mp4/
Davc_unittest.cc123 std::vector<SubsampleEntry>* subsamples) { in StringToAnnexB() argument
144 if (subsamples) { in StringToAnnexB()
152 if (subsamples) { in StringToAnnexB()
153 subsamples->push_back(entry); in StringToAnnexB()
159 const std::vector<SubsampleEntry>& subsamples) { in AnnexBToString() argument
163 parser.SetEncryptedStream(&buffer[0], buffer.size(), subsamples); in AnnexBToString()
203 std::vector<SubsampleEntry> subsamples; in TEST_P() local
206 EXPECT_TRUE(AVC::IsValidAnnexB(buf, subsamples)); in TEST_P()
209 EXPECT_EQ("P SDC", AnnexBToString(buf, subsamples)); in TEST_P()
272 std::vector<SubsampleEntry> subsamples; in TEST_F() local
[all …]
Dcenc.cc33 subsamples.resize(subsample_count); in Parse()
39 subsamples[i].clear_bytes = clear_bytes; in Parse()
40 subsamples[i].cypher_bytes = cypher_bytes; in Parse()
47 for (size_t i = 0; i < subsamples.size(); i++) { in GetTotalSizeOfSubsamples()
48 size += subsamples[i].clear_bytes; in GetTotalSizeOfSubsamples()
49 RCHECK(size >= subsamples[i].clear_bytes); // overflow in GetTotalSizeOfSubsamples()
50 size += subsamples[i].cypher_bytes; in GetTotalSizeOfSubsamples()
51 RCHECK(size >= subsamples[i].cypher_bytes); // overflow in GetTotalSizeOfSubsamples()
Davc.cc78 std::vector<SubsampleEntry>* subsamples) { in InsertParamSetsAnnexB() argument
79 DCHECK(AVC::IsValidAnnexB(*buffer, *subsamples)); in InsertParamSetsAnnexB()
83 parser->SetEncryptedStream(start, buffer->size(), *subsamples); in InsertParamSetsAnnexB()
91 subsamples->begin(); in InsertParamSetsAnnexB()
97 if (!subsamples->empty()) { in InsertParamSetsAnnexB()
99 (*subsamples)[0].clear_bytes + (*subsamples)[0].cypher_bytes; in InsertParamSetsAnnexB()
120 if (!subsamples->empty()) { in InsertParamSetsAnnexB()
121 subsamples->insert(subsamples_insert_point, in InsertParamSetsAnnexB()
129 DCHECK(AVC::IsValidAnnexB(*buffer, *subsamples)); in InsertParamSetsAnnexB()
137 std::vector<SubsampleEntry>* subsamples) { in ConvertConfigToAnnexB() argument
[all …]
Davc.h33 std::vector<SubsampleEntry>* subsamples);
38 std::vector<SubsampleEntry>* subsamples);
48 const std::vector<SubsampleEntry>& subsamples);
50 const std::vector<SubsampleEntry>& subsamples);
Dmp4_stream_parser.cc363 std::vector<SubsampleEntry>* subsamples) const { in PrepareAVCBuffer()
370 if (!subsamples->empty()) { in PrepareAVCBuffer()
373 subsamples->size() * nalu_size_diff; in PrepareAVCBuffer()
375 for (size_t i = 0; i < subsamples->size(); i++) in PrepareAVCBuffer()
376 (*subsamples)[i].clear_bytes += nalu_size_diff; in PrepareAVCBuffer()
383 RCHECK(AVC::InsertParamSetsAnnexB(avc_config, frame_buf, subsamples)); in PrepareAVCBuffer()
386 DCHECK(AVC::IsValidAnnexB(*frame_buf, *subsamples)); in PrepareAVCBuffer()
392 std::vector<SubsampleEntry>* subsamples) const { in PrepareAACBuffer()
398 if (subsamples->empty()) { in PrepareAACBuffer()
402 subsamples->push_back(entry); in PrepareAACBuffer()
[all …]
Dmp4_stream_parser.h72 std::vector<SubsampleEntry>* subsamples) const;
75 std::vector<SubsampleEntry>* subsamples) const;
Dcenc.h20 std::vector<SubsampleEntry> subsamples; member
Dtrack_run_iterator_unittest.cc488 EXPECT_TRUE(config->subsamples().empty()); in TEST_F()
491 EXPECT_EQ(config->subsamples().size(), 2u); in TEST_F()
492 EXPECT_EQ(config->subsamples()[0].clear_bytes, 1u); in TEST_F()
493 EXPECT_EQ(config->subsamples()[1].cypher_bytes, 4u); in TEST_F()
/external/chromium_org/chromecast/media/cma/ipc_streamer/
Ddecrypt_config_marshaller.cc25 CHECK_GT(config.subsamples().size(), 0); in Write()
31 CHECK(msg->WritePod(config.subsamples().size())); in Write()
32 for (size_t k = 0; k < config.subsamples().size(); k++) { in Write()
33 CHECK(msg->WritePod(config.subsamples()[k].clear_bytes)); in Write()
34 CHECK(msg->WritePod(config.subsamples()[k].cypher_bytes)); in Write()
59 std::vector< ::media::SubsampleEntry> subsamples(subsample_count); in Read() local
61 subsamples[k].clear_bytes = 0; in Read()
62 subsamples[k].cypher_bytes = 0; in Read()
63 CHECK(msg->ReadPod(&subsamples[k].clear_bytes)); in Read()
64 CHECK(msg->ReadPod(&subsamples[k].cypher_bytes)); in Read()
[all …]
Ddecoder_buffer_base_marshaller.cc94 for (size_t k = 0; k < decrypt_config_->subsamples().size(); k++) { in Initialize()
95 subsample_total_size += decrypt_config_->subsamples()[k].clear_bytes; in Initialize()
96 subsample_total_size += decrypt_config_->subsamples()[k].cypher_bytes; in Initialize()
/external/chromium_org/media/cdm/
Daes_decryptor.cc114 static void CopySubsamples(const std::vector<SubsampleEntry>& subsamples, in CopySubsamples() argument
118 for (size_t i = 0; i < subsamples.size(); i++) { in CopySubsamples()
119 const SubsampleEntry& subsample = subsamples[i]; in CopySubsamples()
159 if (input.decrypt_config()->subsamples().empty()) { in DecryptData()
173 const std::vector<SubsampleEntry>& subsamples = in DecryptData() local
174 input.decrypt_config()->subsamples(); in DecryptData()
178 for (size_t i = 0; i < subsamples.size(); i++) { in DecryptData()
179 total_clear_size += subsamples[i].clear_bytes; in DecryptData()
180 total_encrypted_size += subsamples[i].cypher_bytes; in DecryptData()
182 DCHECK(total_clear_size >= subsamples[i].clear_bytes); in DecryptData()
[all …]
/external/chromium_org/chromecast/media/cma/base/
Dframe_generator_for_test.cc70 std::vector< ::media::SubsampleEntry> subsamples; in Generate() local
85 subsamples.push_back(subsample); in Generate()
100 subsamples)); in Generate()
/external/chromium_org/media/base/
Ddecrypt_config.cc13 const std::vector<SubsampleEntry>& subsamples) in DecryptConfig() argument
16 subsamples_(subsamples) { in DecryptConfig()
Ddecrypt_config.h46 const std::vector<SubsampleEntry>& subsamples);
51 const std::vector<SubsampleEntry>& subsamples() const { return subsamples_; } in subsamples() function
/external/chromium_org/media/cdm/ppapi/
Dcdm_adapter.cc60 std::vector<cdm::SubsampleEntry>* subsamples, in ConfigureInputBuffer() argument
62 PP_DCHECK(subsamples); in ConfigureInputBuffer()
82 subsamples->reserve(encrypted_block_info.num_subsamples); in ConfigureInputBuffer()
85 subsamples->push_back(cdm::SubsampleEntry( in ConfigureInputBuffer()
86 encrypted_block_info.subsamples[i].clear_bytes, in ConfigureInputBuffer()
87 encrypted_block_info.subsamples[i].cipher_bytes)); in ConfigureInputBuffer()
90 input_buffer->subsamples = &(*subsamples)[0]; in ConfigureInputBuffer()
466 std::vector<cdm::SubsampleEntry> subsamples; in Decrypt() local
467 ConfigureInputBuffer(encrypted_buffer, encrypted_block_info, &subsamples, in Decrypt()
583 std::vector<cdm::SubsampleEntry> subsamples; in DecryptAndDecode() local
[all …]
/external/chromium_org/media/base/android/
Dmedia_codec_bridge.cc298 const SubsampleEntry* subsamples, in QueueSecureInputBuffer() argument
323 DCHECK(!subsamples); in QueueSecureInputBuffer()
328 DCHECK(subsamples); in QueueSecureInputBuffer()
330 DCHECK(subsamples[i].clear_bytes <= std::numeric_limits<uint16>::max()); in QueueSecureInputBuffer()
331 if (subsamples[i].cypher_bytes > in QueueSecureInputBuffer()
336 native_clear_array[i] = subsamples[i].clear_bytes; in QueueSecureInputBuffer()
337 native_cypher_array[i] = subsamples[i].cypher_bytes; in QueueSecureInputBuffer()
Ddemuxer_stream_player_params.h48 std::vector<media::SubsampleEntry> subsamples; member
Dmedia_decoder_job.cc271 unit.subsamples.empty() ? NULL : &unit.subsamples[0], in QueueInputBuffer()
272 unit.subsamples.size(), in QueueInputBuffer()
/external/chromium_org/content/renderer/pepper/
Dcontent_decryptor_delegate.cc130 if (decrypt_config->subsamples().size() > arraysize(block_info->subsamples)) in MakeEncryptedBlockInfo()
133 block_info->num_subsamples = decrypt_config->subsamples().size(); in MakeEncryptedBlockInfo()
135 block_info->subsamples[i].clear_bytes = in MakeEncryptedBlockInfo()
136 decrypt_config->subsamples()[i].clear_bytes; in MakeEncryptedBlockInfo()
137 block_info->subsamples[i].cipher_bytes = in MakeEncryptedBlockInfo()
138 decrypt_config->subsamples()[i].cypher_bytes; in MakeEncryptedBlockInfo()
/external/chromium_org/media/cdm/ppapi/external_clear_key/
Dclear_key_cdm.cc108 std::vector<media::SubsampleEntry> subsamples; in CopyDecoderBufferFrom() local
111 subsample.clear_bytes = input_buffer.subsamples[i].clear_bytes; in CopyDecoderBufferFrom()
112 subsample.cypher_bytes = input_buffer.subsamples[i].cipher_bytes; in CopyDecoderBufferFrom()
113 subsamples.push_back(subsample); in CopyDecoderBufferFrom()
121 subsamples)); in CopyDecoderBufferFrom()
/external/chromium_org/media/filters/
Dh264_parser.cc137 std::vector<SubsampleEntry> subsamples; in SetStream() local
138 SetEncryptedStream(stream, stream_size, subsamples); in SetStream()
143 const std::vector<SubsampleEntry>& subsamples) { in SetEncryptedStream() argument
153 for (size_t i = 0; i < subsamples.size() && start < stream_end; ++i) { in SetEncryptedStream()
154 start += subsamples[i].clear_bytes; in SetEncryptedStream()
156 const uint8* end = std::min(start + subsamples[i].cypher_bytes, stream_end); in SetEncryptedStream()
Dffmpeg_demuxer_unittest.cc868 std::vector<SubsampleEntry> subsamples; in ValidateAnnexB() local
871 subsamples = buffer->decrypt_config()->subsamples(); in ValidateAnnexB()
875 subsamples); in ValidateAnnexB()
/external/chromium_org/ppapi/c/private/
Dpp_content_decryptor.h124 struct PP_DecryptSubsampleDescription subsamples[16]; member
/external/chromium_org/content/common/media/
Dmedia_player_messages_android.h55 IPC_STRUCT_TRAITS_MEMBER(subsamples)
/external/chromium_org/ppapi/api/private/
Dpp_content_decryptor.idl45 * An input block can be split into several continuous subsamples.
48 * subsamples:
117 PP_DecryptSubsampleDescription[16] subsamples;

12