/external/chromium_org/media/cdm/ppapi/external_clear_key/ |
D | ffmpeg_cdm_video_decoder.cc | 25 static cdm::VideoFormat PixelFormatToCdmVideoFormat(PixelFormat pixel_format) { in PixelFormatToCdmVideoFormat() 28 return cdm::kYv12; in PixelFormatToCdmVideoFormat() 32 return cdm::kUnknownVideoFormat; in PixelFormatToCdmVideoFormat() 35 static PixelFormat CdmVideoFormatToPixelFormat(cdm::VideoFormat video_format) { in CdmVideoFormatToPixelFormat() 37 case cdm::kYv12: in CdmVideoFormatToPixelFormat() 38 case cdm::kI420: in CdmVideoFormatToPixelFormat() 40 case cdm::kUnknownVideoFormat: in CdmVideoFormatToPixelFormat() 48 cdm::VideoDecoderConfig::VideoCodec video_codec) { in CdmVideoCodecToCodecID() 50 case cdm::VideoDecoderConfig::kCodecVp8: in CdmVideoCodecToCodecID() 52 case cdm::VideoDecoderConfig::kCodecH264: in CdmVideoCodecToCodecID() [all …]
|
D | clear_key_cdm.cc | 98 const cdm::InputBuffer& input_buffer) { in CopyDecoderBufferFrom() 137 static cdm::Error ConvertException(media::MediaKeys::Exception exception_code) { in ConvertException() 140 return cdm::kNotSupportedError; in ConvertException() 142 return cdm::kInvalidStateError; in ConvertException() 144 return cdm::kInvalidAccessError; in ConvertException() 146 return cdm::kQuotaExceededError; in ConvertException() 148 return cdm::kUnknownError; in ConvertException() 150 return cdm::kClientError; in ConvertException() 152 return cdm::kOutputError; in ConvertException() 155 return cdm::kUnknownError; in ConvertException() [all …]
|
D | clear_key_cdm.h | 43 cdm::SessionType session_type) OVERRIDE; 60 virtual cdm::Status Decrypt(const cdm::InputBuffer& encrypted_buffer, 61 cdm::DecryptedBlock* decrypted_block) OVERRIDE; 62 virtual cdm::Status InitializeAudioDecoder( 63 const cdm::AudioDecoderConfig& audio_decoder_config) OVERRIDE; 64 virtual cdm::Status InitializeVideoDecoder( 65 const cdm::VideoDecoderConfig& video_decoder_config) OVERRIDE; 66 virtual void DeinitializeDecoder(cdm::StreamType decoder_type) OVERRIDE; 67 virtual void ResetDecoder(cdm::StreamType decoder_type) OVERRIDE; 68 virtual cdm::Status DecryptAndDecodeFrame( [all …]
|
D | ffmpeg_cdm_audio_decoder.cc | 31 cdm::AudioDecoderConfig::AudioCodec audio_codec) { in CdmAudioCodecToCodecID() 33 case cdm::AudioDecoderConfig::kCodecVorbis: in CdmAudioCodecToCodecID() 35 case cdm::AudioDecoderConfig::kCodecAac: in CdmAudioCodecToCodecID() 37 case cdm::AudioDecoderConfig::kUnknownAudioCodec: in CdmAudioCodecToCodecID() 45 const cdm::AudioDecoderConfig& config, in CdmAudioDecoderConfigToAVCodecContext() 83 static cdm::AudioFormat AVSampleFormatToCdmAudioFormat( in AVSampleFormatToCdmAudioFormat() 87 return cdm::kAudioFormatU8; in AVSampleFormatToCdmAudioFormat() 89 return cdm::kAudioFormatS16; in AVSampleFormatToCdmAudioFormat() 91 return cdm::kAudioFormatS32; in AVSampleFormatToCdmAudioFormat() 93 return cdm::kAudioFormatF32; in AVSampleFormatToCdmAudioFormat() [all …]
|
D | libvpx_cdm_video_decoder.cc | 41 bool LibvpxCdmVideoDecoder::Initialize(const cdm::VideoDecoderConfig& config) { in Initialize() 91 bool LibvpxCdmVideoDecoder::IsValidOutputConfig(cdm::VideoFormat format, in IsValidOutputConfig() 92 const cdm::Size& data_size) { in IsValidOutputConfig() 93 return ((format == cdm::kYv12 || format == cdm::kI420) && in IsValidOutputConfig() 101 cdm::Status LibvpxCdmVideoDecoder::DecodeFrame( in DecodeFrame() 105 cdm::VideoFrame* decoded_frame) { in DecodeFrame() 119 return cdm::kDecodeError; in DecodeFrame() 126 return cdm::kNeedMoreData; in DecodeFrame() 130 return cdm::kDecodeError; in DecodeFrame() 137 return cdm::kDecodeError; in DecodeFrame() [all …]
|
D | fake_cdm_video_decoder.cc | 11 FakeCdmVideoDecoder::FakeCdmVideoDecoder(cdm::Host* host) in FakeCdmVideoDecoder() 20 bool FakeCdmVideoDecoder::Initialize(const cdm::VideoDecoderConfig& config) { in Initialize() 38 cdm::Status FakeCdmVideoDecoder::DecodeFrame(const uint8_t* compressed_frame, in DecodeFrame() 41 cdm::VideoFrame* decoded_frame) { in DecodeFrame() 47 return cdm::kNeedMoreData; in DecodeFrame() 72 decoded_frame->SetFormat(cdm::kYv12); in DecodeFrame() 74 decoded_frame->SetPlaneOffset(cdm::VideoFrame::kYPlane, y_offset); in DecodeFrame() 75 decoded_frame->SetPlaneOffset(cdm::VideoFrame::kVPlane, v_offset); in DecodeFrame() 76 decoded_frame->SetPlaneOffset(cdm::VideoFrame::kUPlane, u_offset); in DecodeFrame() 77 decoded_frame->SetStride(cdm::VideoFrame::kYPlane, y_stride); in DecodeFrame() [all …]
|
D | fake_cdm_video_decoder.h | 17 explicit FakeCdmVideoDecoder(cdm::Host* host); 21 virtual bool Initialize(const cdm::VideoDecoderConfig& config) OVERRIDE; 24 virtual cdm::Status DecodeFrame(const uint8_t* compressed_frame, 27 cdm::VideoFrame* decoded_frame) OVERRIDE; 32 cdm::Size video_size_; 34 cdm::Host* const host_;
|
D | libvpx_cdm_video_decoder.h | 24 virtual bool Initialize(const cdm::VideoDecoderConfig& config) OVERRIDE; 27 virtual cdm::Status DecodeFrame(const uint8_t* compressed_frame, 30 cdm::VideoFrame* decoded_frame) OVERRIDE; 35 static bool IsValidOutputConfig(cdm::VideoFormat format, 36 const cdm::Size& data_size); 41 bool CopyVpxImageTo(cdm::VideoFrame* cdm_video_frame);
|
D | ffmpeg_cdm_video_decoder.h | 26 virtual bool Initialize(const cdm::VideoDecoderConfig& config) OVERRIDE; 29 virtual cdm::Status DecodeFrame(const uint8_t* compressed_frame, 32 cdm::VideoFrame* decoded_frame) OVERRIDE; 37 static bool IsValidOutputConfig(cdm::VideoFormat format, 38 const cdm::Size& data_size); 43 bool CopyAvFrameTo(cdm::VideoFrame* cdm_video_frame);
|
D | cdm_video_decoder.h | 18 virtual bool Initialize(const cdm::VideoDecoderConfig& config) = 0; 30 virtual cdm::Status DecodeFrame(const uint8_t* compressed_frame, 33 cdm::VideoFrame* decoded_frame) = 0; 40 ClearKeyCdmHost* host, const cdm::VideoDecoderConfig& config);
|
D | ffmpeg_cdm_audio_decoder.h | 34 bool Initialize(const cdm::AudioDecoderConfig& config); 39 static bool IsValidConfig(const cdm::AudioDecoderConfig& config); 48 cdm::Status DecodeBuffer(const uint8_t* compressed_buffer, 51 cdm::AudioFrames* decoded_frames);
|
D | cdm_video_decoder.cc | 24 ClearKeyCdmHost* host, const cdm::VideoDecoderConfig& config) { in CreateVideoDecoder() 34 if (config.codec == cdm::VideoDecoderConfig::kCodecVp8 || in CreateVideoDecoder() 35 config.codec == cdm::VideoDecoderConfig::kCodecVp9) { in CreateVideoDecoder()
|
/external/chromium_org/media/cdm/ppapi/ |
D | cdm_adapter.cc | 53 std::vector<cdm::SubsampleEntry>* subsamples, in ConfigureInputBuffer() 54 cdm::InputBuffer* input_buffer) { in ConfigureInputBuffer() 78 subsamples->push_back(cdm::SubsampleEntry( in ConfigureInputBuffer() 89 PP_DecryptResult CdmStatusToPpDecryptResult(cdm::Status status) { in CdmStatusToPpDecryptResult() 91 case cdm::kSuccess: in CdmStatusToPpDecryptResult() 93 case cdm::kNoKey: in CdmStatusToPpDecryptResult() 95 case cdm::kNeedMoreData: in CdmStatusToPpDecryptResult() 97 case cdm::kDecryptError: in CdmStatusToPpDecryptResult() 99 case cdm::kDecodeError: in CdmStatusToPpDecryptResult() 108 cdm::VideoFormat format) { in CdmVideoFormatToPpDecryptedFrameFormat() [all …]
|
D | cdm_wrapper.h | 50 cdm::SessionType session_type) = 0; 63 virtual cdm::Status Decrypt(const cdm::InputBuffer& encrypted_buffer, 64 cdm::DecryptedBlock* decrypted_buffer) = 0; 65 virtual cdm::Status InitializeAudioDecoder( 66 const cdm::AudioDecoderConfig& audio_decoder_config) = 0; 67 virtual cdm::Status InitializeVideoDecoder( 68 const cdm::VideoDecoderConfig& video_decoder_config) = 0; 69 virtual void DeinitializeDecoder(cdm::StreamType decoder_type) = 0; 70 virtual void ResetDecoder(cdm::StreamType decoder_type) = 0; 71 virtual cdm::Status DecryptAndDecodeFrame( [all …]
|
D | cdm_helpers.h | 30 class PpbBuffer : public cdm::Buffer { 74 cdm::Buffer* Allocate(uint32_t capacity); 95 class DecryptedBlockImpl : public cdm::DecryptedBlock { 100 virtual void SetDecryptedBuffer(cdm::Buffer* buffer) OVERRIDE { in SetDecryptedBuffer() 103 virtual cdm::Buffer* DecryptedBuffer() OVERRIDE { return buffer_; } in DecryptedBuffer() 117 class VideoFrameImpl : public cdm::VideoFrame { 122 virtual void SetFormat(cdm::VideoFormat format) OVERRIDE { in SetFormat() 125 virtual cdm::VideoFormat Format() const OVERRIDE { return format_; } in Format() 127 virtual void SetSize(cdm::Size size) OVERRIDE { size_ = size; } in SetSize() 128 virtual cdm::Size Size() const OVERRIDE { return size_; } in Size() [all …]
|
D | supported_cdm_versions.h | 23 COMPILE_ASSERT(cdm::ContentDecryptionModule::kVersion == in IsSupportedCdmInterfaceVersion() 24 cdm::ContentDecryptionModule_5::kVersion, in IsSupportedCdmInterfaceVersion() 28 case cdm::ContentDecryptionModule_5::kVersion: in IsSupportedCdmInterfaceVersion() 29 case cdm::ContentDecryptionModule_4::kVersion: in IsSupportedCdmInterfaceVersion() 37 COMPILE_ASSERT(cdm::ContentDecryptionModule::Host::kVersion == in IsSupportedCdmHostVersion() 38 cdm::ContentDecryptionModule_5::Host::kVersion, in IsSupportedCdmHostVersion() 42 case cdm::Host_5::kVersion: in IsSupportedCdmHostVersion() 43 case cdm::Host_4::kVersion: in IsSupportedCdmHostVersion()
|
D | cdm_adapter.h | 45 public cdm::Host_4, 46 public cdm::Host_5 { 90 virtual cdm::Buffer* Allocate(uint32_t capacity) OVERRIDE; 106 cdm::MediaKeyError error_code, 110 virtual cdm::Time GetCurrentTime() OVERRIDE; 117 cdm::Error error, 132 cdm::Time new_expiry_time); 139 cdm::Error error, 153 cdm::StreamType stream_type, 154 cdm::Status decoder_status) OVERRIDE; [all …]
|
D | cdm_file_io_impl.cc | 58 CdmFileIOImpl::CdmFileIOImpl(cdm::FileIOClient* client, PP_Instance pp_instance) in CdmFileIOImpl() 289 client_->OnOpenComplete(cdm::FileIOClient::kSuccess); in OnFileOpened() 340 cdm::FileIOClient::kSuccess, data, local_buffer.size()); in OnFileRead() 364 client_->OnWriteComplete(cdm::FileIOClient::kSuccess); in OnLengthSet() 406 client_->OnWriteComplete(cdm::FileIOClient::kSuccess); in OnFileWritten() 437 client_->OnOpenComplete(cdm::FileIOClient::kError); in NotifyClientOfError() 440 client_->OnReadComplete(cdm::FileIOClient::kError, NULL, 0); in NotifyClientOfError() 443 client_->OnWriteComplete(cdm::FileIOClient::kError); in NotifyClientOfError() 446 client_->OnOpenComplete(cdm::FileIOClient::kInUse); in NotifyClientOfError() 449 client_->OnReadComplete(cdm::FileIOClient::kInUse, NULL, 0); in NotifyClientOfError() [all …]
|
D | cdm_file_io_test.h | 20 typedef base::Callback<cdm::FileIO*(cdm::FileIOClient* client)> CreateFileIOCB; 46 class FileIOTest : public cdm::FileIOClient { 126 std::stack<cdm::FileIO*> file_io_stack_;
|
/external/chromium_org/media/ |
D | media_cdm.gypi | 34 'cdm/ppapi/external_clear_key/fake_cdm_video_decoder.cc', 35 'cdm/ppapi/external_clear_key/fake_cdm_video_decoder.h', 44 'cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.cc', 45 'cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.h', 50 'cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.cc', 51 'cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.h', 60 'cdm/ppapi/external_clear_key/libvpx_cdm_video_decoder.cc', 61 'cdm/ppapi/external_clear_key/libvpx_cdm_video_decoder.h', 85 'cdm/ppapi/cdm_file_io_test.cc', 86 'cdm/ppapi/cdm_file_io_test.h', [all …]
|
D | media_cdm_adapter.gyp | 23 'cdm/ppapi/api/content_decryption_module.h', 24 'cdm/ppapi/cdm_adapter.cc', 25 'cdm/ppapi/cdm_adapter.h', 26 'cdm/ppapi/cdm_file_io_impl.cc', 27 'cdm/ppapi/cdm_file_io_impl.h', 28 'cdm/ppapi/cdm_helpers.cc', 29 'cdm/ppapi/cdm_helpers.h', 30 'cdm/ppapi/cdm_logging.cc', 31 'cdm/ppapi/cdm_logging.h', 32 'cdm/ppapi/cdm_wrapper.h', [all …]
|
/external/chromium_org/components/ |
D | cdm.gypi | 16 'cdm/common/cdm_message_generator.cc', 17 'cdm/common/cdm_message_generator.h', 18 'cdm/common/cdm_messages_android.h', 29 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h', 36 'cdm/renderer/widevine_key_systems.cc', 37 'cdm/renderer/widevine_key_systems.h', 42 'cdm/renderer/android_key_systems.cc', 43 'cdm/renderer/android_key_systems.h', 63 'cdm/browser/cdm_message_filter_android.cc', 64 'cdm/browser/cdm_message_filter_android.h',
|
/external/chromium_org/content/browser/media/cdm/ |
D | browser_cdm_manager.cc | 143 BrowserCdm* cdm = GetCdm(cdm_id); in OnCreateSession() local 144 if (!cdm) { in OnCreateSession() 177 BrowserCdm* cdm = GetCdm(cdm_id); in OnUpdateSession() local 178 if (!cdm) { in OnUpdateSession() 191 cdm->UpdateSession(session_id, &response[0], response.size()); in OnUpdateSession() 195 BrowserCdm* cdm = GetCdm(cdm_id); in OnReleaseSession() local 196 if (!cdm) { in OnReleaseSession() 202 cdm->ReleaseSession(session_id); in OnReleaseSession() 206 BrowserCdm* cdm = GetCdm(cdm_id); in OnDestroyCdm() local 207 if (!cdm) in OnDestroyCdm() [all …]
|
/external/chromium_org/media/base/android/ |
D | browser_cdm_factory_android.cc | 27 scoped_ptr<MediaDrmBridge> cdm(MediaDrmBridge::Create(key_system, in CreateBrowserCdm() local 33 if (!cdm) { in CreateBrowserCdm() 45 if (!cdm->SetSecurityLevel(security_level)) { in CreateBrowserCdm() 50 return cdm.PassAs<BrowserCdm>(); in CreateBrowserCdm()
|
/external/chromium_org/third_party/WebKit/Source/modules/encryptedmedia/ |
D | MediaKeys.cpp | 77 …OwnPtr<blink::WebContentDecryptionModule> cdm = controller->createContentDecryptionModule(context,… in create() local 78 if (!cdm) { in create() 86 return new MediaKeys(context, keySystem, cdm.release()); in create() 89 …cutionContext* context, const String& keySystem, PassOwnPtr<blink::WebContentDecryptionModule> cdm) in MediaKeys() argument 92 , m_cdm(cdm) in MediaKeys()
|