Home
last modified time | relevance | path

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

/external/chromium_org/media/mp4/
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()
Dmp4_stream_parser.cc354 std::vector<SubsampleEntry>* subsamples) const { in PrepareAVCBuffer()
361 if (!subsamples->empty()) { in PrepareAVCBuffer()
364 subsamples->size() * nalu_size_diff; in PrepareAVCBuffer()
366 for (size_t i = 0; i < subsamples->size(); i++) in PrepareAVCBuffer()
367 (*subsamples)[i].clear_bytes += nalu_size_diff; in PrepareAVCBuffer()
378 if (!subsamples->empty()) in PrepareAVCBuffer()
379 (*subsamples)[0].clear_bytes += param_sets.size(); in PrepareAVCBuffer()
386 std::vector<SubsampleEntry>* subsamples) const { in PrepareAACBuffer()
392 if (subsamples->empty()) { in PrepareAACBuffer()
396 subsamples->push_back(entry); in PrepareAACBuffer()
[all …]
Dmp4_stream_parser.h69 std::vector<SubsampleEntry>* subsamples) const;
72 std::vector<SubsampleEntry>* subsamples) const;
Dcenc.h20 std::vector<SubsampleEntry> subsamples; member
Dtrack_run_iterator_unittest.cc348 EXPECT_TRUE(config->subsamples().empty()); in TEST_F()
351 EXPECT_EQ(config->subsamples().size(), 2u); in TEST_F()
352 EXPECT_EQ(config->subsamples()[0].clear_bytes, 1u); in TEST_F()
353 EXPECT_EQ(config->subsamples()[1].cypher_bytes, 4u); in TEST_F()
Dtrack_run_iterator.cc442 if (!cenc_info.subsamples.empty() && in GetDecryptConfig()
455 cenc_info.subsamples)); in GetDecryptConfig()
/external/chromium_org/media/cdm/
Daes_decryptor.cc106 static void CopySubsamples(const std::vector<SubsampleEntry>& subsamples, in CopySubsamples() argument
110 for (size_t i = 0; i < subsamples.size(); i++) { in CopySubsamples()
111 const SubsampleEntry& subsample = subsamples[i]; in CopySubsamples()
154 if (input.decrypt_config()->subsamples().empty()) { in DecryptData()
168 const std::vector<SubsampleEntry>& subsamples = in DecryptData() local
169 input.decrypt_config()->subsamples(); in DecryptData()
173 for (size_t i = 0; i < subsamples.size(); i++) { in DecryptData()
174 total_clear_size += subsamples[i].clear_bytes; in DecryptData()
175 total_encrypted_size += subsamples[i].cypher_bytes; in DecryptData()
177 DCHECK(total_clear_size >= subsamples[i].clear_bytes); in DecryptData()
[all …]
/external/chromium_org/media/base/
Ddecrypt_config.cc14 const std::vector<SubsampleEntry>& subsamples) in DecryptConfig() argument
18 subsamples_(subsamples) { in DecryptConfig()
Ddecrypt_config.h52 const std::vector<SubsampleEntry>& subsamples);
58 const std::vector<SubsampleEntry>& subsamples() const { return subsamples_; } in subsamples() function
/external/chromium_org/media/cdm/ppapi/
Dcdm_adapter.cc51 std::vector<cdm::SubsampleEntry>* subsamples, in ConfigureInputBuffer() argument
53 PP_DCHECK(subsamples); in ConfigureInputBuffer()
74 subsamples->reserve(encrypted_block_info.num_subsamples); in ConfigureInputBuffer()
77 subsamples->push_back(cdm::SubsampleEntry( in ConfigureInputBuffer()
78 encrypted_block_info.subsamples[i].clear_bytes, in ConfigureInputBuffer()
79 encrypted_block_info.subsamples[i].cipher_bytes)); in ConfigureInputBuffer()
82 input_buffer->subsamples = &(*subsamples)[0]; in ConfigureInputBuffer()
363 std::vector<cdm::SubsampleEntry> subsamples; in Decrypt() local
364 ConfigureInputBuffer(encrypted_buffer, encrypted_block_info, &subsamples, in Decrypt()
480 std::vector<cdm::SubsampleEntry> subsamples; in DecryptAndDecode() local
[all …]
Dclear_key_cdm.cc87 std::vector<media::SubsampleEntry> subsamples; in CopyDecoderBufferFrom() local
90 subsample.clear_bytes = input_buffer.subsamples[i].clear_bytes; in CopyDecoderBufferFrom()
91 subsample.cypher_bytes = input_buffer.subsamples[i].cipher_bytes; in CopyDecoderBufferFrom()
92 subsamples.push_back(subsample); in CopyDecoderBufferFrom()
101 subsamples)); in CopyDecoderBufferFrom()
/external/chromium_org/media/base/android/
Dmedia_codec_bridge.cc251 const SubsampleEntry* subsamples, in QueueSecureInputBuffer() argument
276 DCHECK(!subsamples); in QueueSecureInputBuffer()
281 DCHECK(subsamples); in QueueSecureInputBuffer()
283 DCHECK(subsamples[i].clear_bytes <= std::numeric_limits<uint16>::max()); in QueueSecureInputBuffer()
284 if (subsamples[i].cypher_bytes > in QueueSecureInputBuffer()
289 native_clear_array[i] = subsamples[i].clear_bytes; in QueueSecureInputBuffer()
290 native_cypher_array[i] = subsamples[i].cypher_bytes; in QueueSecureInputBuffer()
Dmedia_decoder_job.cc197 unit.subsamples.empty() ? NULL : &unit.subsamples[0], in QueueInputBuffer()
198 unit.subsamples.size(), in QueueInputBuffer()
Ddemuxer_stream_player_params.h55 std::vector<media::SubsampleEntry> subsamples; member
Dmedia_codec_bridge.h120 const SubsampleEntry* subsamples,
/external/chromium_org/content/renderer/pepper/
Dcontent_decryptor_delegate.cc117 if (decrypt_config->subsamples().size() > arraysize(block_info->subsamples)) in MakeEncryptedBlockInfo()
120 block_info->num_subsamples = decrypt_config->subsamples().size(); in MakeEncryptedBlockInfo()
122 block_info->subsamples[i].clear_bytes = in MakeEncryptedBlockInfo()
123 decrypt_config->subsamples()[i].clear_bytes; in MakeEncryptedBlockInfo()
124 block_info->subsamples[i].cipher_bytes = in MakeEncryptedBlockInfo()
125 decrypt_config->subsamples()[i].cypher_bytes; in MakeEncryptedBlockInfo()
/external/chromium_org/ppapi/c/private/
Dpp_content_decryptor.h128 struct PP_DecryptSubsampleDescription subsamples[16]; member
/external/chromium_org/content/common/media/
Dmedia_player_messages_android.h62 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:
122 PP_DecryptSubsampleDescription[16] subsamples;
/external/chromium_org/content/renderer/media/android/
Dmedia_source_delegate.cc478 data->access_units[index].subsamples = in OnBufferReady()
479 buffer->decrypt_config()->subsamples(); in OnBufferReady()