/external/chromium_org/media/formats/mp4/ |
D | avc_unittest.cc | 123 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 …]
|
D | cenc.cc | 33 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()
|
D | avc.cc | 78 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 …]
|
D | avc.h | 33 std::vector<SubsampleEntry>* subsamples); 38 std::vector<SubsampleEntry>* subsamples); 48 const std::vector<SubsampleEntry>& subsamples); 50 const std::vector<SubsampleEntry>& subsamples);
|
D | mp4_stream_parser.cc | 363 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 …]
|
D | mp4_stream_parser.h | 72 std::vector<SubsampleEntry>* subsamples) const; 75 std::vector<SubsampleEntry>* subsamples) const;
|
D | cenc.h | 20 std::vector<SubsampleEntry> subsamples; member
|
D | track_run_iterator_unittest.cc | 488 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/ |
D | decrypt_config_marshaller.cc | 25 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 …]
|
D | decoder_buffer_base_marshaller.cc | 94 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/ |
D | aes_decryptor.cc | 114 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/ |
D | frame_generator_for_test.cc | 70 std::vector< ::media::SubsampleEntry> subsamples; in Generate() local 85 subsamples.push_back(subsample); in Generate() 100 subsamples)); in Generate()
|
/external/chromium_org/media/base/ |
D | decrypt_config.cc | 13 const std::vector<SubsampleEntry>& subsamples) in DecryptConfig() argument 16 subsamples_(subsamples) { in DecryptConfig()
|
D | decrypt_config.h | 46 const std::vector<SubsampleEntry>& subsamples); 51 const std::vector<SubsampleEntry>& subsamples() const { return subsamples_; } in subsamples() function
|
/external/chromium_org/media/cdm/ppapi/ |
D | cdm_adapter.cc | 60 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/ |
D | media_codec_bridge.cc | 298 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()
|
D | demuxer_stream_player_params.h | 48 std::vector<media::SubsampleEntry> subsamples; member
|
D | media_decoder_job.cc | 271 unit.subsamples.empty() ? NULL : &unit.subsamples[0], in QueueInputBuffer() 272 unit.subsamples.size(), in QueueInputBuffer()
|
/external/chromium_org/content/renderer/pepper/ |
D | content_decryptor_delegate.cc | 130 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/ |
D | clear_key_cdm.cc | 108 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/ |
D | h264_parser.cc | 137 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()
|
D | ffmpeg_demuxer_unittest.cc | 868 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/ |
D | pp_content_decryptor.h | 124 struct PP_DecryptSubsampleDescription subsamples[16]; member
|
/external/chromium_org/content/common/media/ |
D | media_player_messages_android.h | 55 IPC_STRUCT_TRAITS_MEMBER(subsamples)
|
/external/chromium_org/ppapi/api/private/ |
D | pp_content_decryptor.idl | 45 * An input block can be split into several continuous subsamples. 48 * subsamples: 117 PP_DecryptSubsampleDescription[16] subsamples;
|