Searched refs:cdm (Results 1 - 25 of 143) sorted by relevance

123456

/external/chromium_org/android_webview/renderer/
H A Daw_key_systems.cc6 #include "components/cdm/renderer/android_key_systems.h"
12 cdm::AddAndroidWidevine(key_systems_info);
13 cdm::AddAndroidPlatformKeySystems(key_systems_info);
/external/chromium_org/media/cdm/ppapi/
H A Dsupported_cdm_versions.h8 #include "media/cdm/ppapi/api/content_decryption_module.h"
23 COMPILE_ASSERT(cdm::ContentDecryptionModule::kVersion ==
24 cdm::ContentDecryptionModule_6::kVersion,
28 case cdm::ContentDecryptionModule_6::kVersion:
29 case cdm::ContentDecryptionModule_4::kVersion:
37 COMPILE_ASSERT(cdm::ContentDecryptionModule::Host::kVersion ==
38 cdm::ContentDecryptionModule_6::Host::kVersion,
42 case cdm::Host_6::kVersion:
43 case cdm::Host_4::kVersion:
H A Dcdm_wrapper.h13 #include "media/cdm/ppapi/api/content_decryption_module.h"
14 #include "media/cdm/ppapi/cdm_helpers.h"
15 #include "media/cdm/ppapi/supported_cdm_versions.h"
54 cdm::SessionType session_type) = 0;
75 virtual cdm::Status Decrypt(const cdm::InputBuffer& encrypted_buffer,
76 cdm::DecryptedBlock* decrypted_buffer) = 0;
77 virtual cdm::Status InitializeAudioDecoder(
78 const cdm::AudioDecoderConfig& audio_decoder_config) = 0;
79 virtual cdm
396 CdmWrapperImpl(CdmInterface* cdm) argument
[all...]
H A Dcdm_adapter.cc5 #include "media/cdm/ppapi/cdm_adapter.h"
8 #include "media/cdm/ppapi/cdm_file_io_impl.h"
9 #include "media/cdm/ppapi/cdm_helpers.h"
10 #include "media/cdm/ppapi/cdm_logging.h"
11 #include "media/cdm/ppapi/supported_cdm_versions.h"
55 // Configures a cdm::InputBuffer. |subsamples| must exist as long as
60 std::vector<cdm::SubsampleEntry>* subsamples,
61 cdm::InputBuffer* input_buffer) {
85 subsamples->push_back(cdm::SubsampleEntry(
96 PP_DecryptResult CdmStatusToPpDecryptResult(cdm
[all...]
H A Dcdm_helpers.h14 #include "media/cdm/ppapi/api/content_decryption_module.h"
25 // cdm::Buffer implementation that provides access to memory owned by a
30 class PpbBuffer : public cdm::Buffer {
35 // cdm::Buffer implementation.
74 cdm::Buffer* Allocate(uint32_t capacity);
95 class DecryptedBlockImpl : public cdm::DecryptedBlock {
100 virtual void SetDecryptedBuffer(cdm::Buffer* buffer) OVERRIDE {
103 virtual cdm::Buffer* DecryptedBuffer() OVERRIDE { return buffer_; }
117 class VideoFrameImpl : public cdm::VideoFrame {
122 virtual void SetFormat(cdm
[all...]
H A Dcdm_adapter.h14 #include "media/cdm/ppapi/api/content_decryption_module.h"
15 #include "media/cdm/ppapi/cdm_helpers.h"
16 #include "media/cdm/ppapi/cdm_wrapper.h"
17 #include "media/cdm/ppapi/linked_ptr.h"
40 public cdm::Host_4,
41 public cdm::Host_6 {
91 // cdm::Host_4 and cdm::Host_6 implementation.
92 virtual cdm::Buffer* Allocate(uint32_t capacity) OVERRIDE;
95 // cdm
[all...]
H A Dcdm_file_io_test.h15 #include "media/cdm/ppapi/api/content_decryption_module.h"
20 typedef base::Callback<cdm::FileIO*(cdm::FileIOClient* client)> CreateFileIOCB;
22 // A customizable test class that tests cdm::FileIO implementation.
39 // - When a cdm::FileIOClient method is called, the test runner compares the
46 class FileIOTest : public cdm::FileIOClient {
98 // cdm::FileIOClient implementation.
122 // All opened cdm::FileIO objects. We keep multiple cdm::FileIO objects open
123 // so that we can test multiple cdm
[all...]
/external/chromium_org/media/cdm/ppapi/external_clear_key/
H A Dfake_cdm_video_decoder.h10 #include "media/cdm/ppapi/api/content_decryption_module.h"
11 #include "media/cdm/ppapi/external_clear_key/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_;
H A Dcdm_video_decoder.h10 #include "media/cdm/ppapi/api/content_decryption_module.h"
11 #include "media/cdm/ppapi/external_clear_key/clear_key_cdm_common.h"
18 virtual bool Initialize(const cdm::VideoDecoderConfig& config) = 0;
24 // returns |cdm::kSuccess| when an output frame is available. Returns
25 // |cdm::kNeedMoreData| when |compressed_frame| does not produce an output
26 // frame. Returns |cdm::kDecodeError| when decoding fails.
30 virtual cdm::Status DecodeFrame(const uint8_t* compressed_frame,
33 cdm::VideoFrame* decoded_frame) = 0;
40 ClearKeyCdmHost* host, const cdm::VideoDecoderConfig& config);
H A Dclear_key_cdm_common.h8 #include "media/cdm/ppapi/api/content_decryption_module.h"
13 typedef cdm::ContentDecryptionModule_6 ClearKeyCdmInterface;
H A Dfake_cdm_video_decoder.cc5 #include "media/cdm/ppapi/external_clear_key/fake_cdm_video_decoder.h"
11 FakeCdmVideoDecoder::FakeCdmVideoDecoder(cdm::Host* host)
20 bool FakeCdmVideoDecoder::Initialize(const cdm::VideoDecoderConfig& config) {
38 cdm::Status FakeCdmVideoDecoder::DecodeFrame(const uint8_t* compressed_frame,
41 cdm::VideoFrame* decoded_frame) {
47 return cdm::kNeedMoreData;
72 decoded_frame->SetFormat(cdm::kYv12);
74 decoded_frame->SetPlaneOffset(cdm::VideoFrame::kYPlane, y_offset);
75 decoded_frame->SetPlaneOffset(cdm::VideoFrame::kVPlane, v_offset);
76 decoded_frame->SetPlaneOffset(cdm
[all...]
H A Dffmpeg_cdm_video_decoder.cc5 #include "media/cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.h"
25 static cdm::VideoFormat PixelFormatToCdmVideoFormat(PixelFormat pixel_format) {
28 return cdm::kYv12;
32 return cdm::kUnknownVideoFormat;
35 static PixelFormat CdmVideoFormatToPixelFormat(cdm::VideoFormat video_format) {
37 case cdm::kYv12:
38 case cdm::kI420:
40 case cdm::kUnknownVideoFormat:
42 DVLOG(1) << "Unsupported cdm::VideoFormat: " << video_format;
48 cdm
[all...]
H A Dffmpeg_cdm_video_decoder.h11 #include "media/cdm/ppapi/external_clear_key/cdm_video_decoder.h"
12 #include "media/cdm/ppapi/external_clear_key/clear_key_cdm_common.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);
H A Dlibvpx_cdm_video_decoder.h10 #include "media/cdm/ppapi/api/content_decryption_module.h"
11 #include "media/cdm/ppapi/external_clear_key/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);
H A Dclear_key_cdm.h16 #include "media/cdm/aes_decryptor.h"
17 #include "media/cdm/ppapi/external_clear_key/clear_key_cdm_common.h"
31 // Clear key implementation of the cdm::ContentDecryptionModule interface.
43 cdm::SessionType session_type) OVERRIDE;
66 virtual cdm::Status Decrypt(const cdm::InputBuffer& encrypted_buffer,
67 cdm::DecryptedBlock* decrypted_block) OVERRIDE;
68 virtual cdm::Status InitializeAudioDecoder(
69 const cdm::AudioDecoderConfig& audio_decoder_config) OVERRIDE;
70 virtual cdm
[all...]
H A Dlibvpx_cdm_video_decoder.cc5 #include "media/cdm/ppapi/external_clear_key/libvpx_cdm_video_decoder.h"
41 bool LibvpxCdmVideoDecoder::Initialize(const cdm::VideoDecoderConfig& config) {
91 bool LibvpxCdmVideoDecoder::IsValidOutputConfig(cdm::VideoFormat format,
92 const cdm::Size& data_size) {
93 return ((format == cdm::kYv12 || format == cdm::kI420) &&
101 cdm::Status LibvpxCdmVideoDecoder::DecodeFrame(
105 cdm::VideoFrame* decoded_frame) {
119 return cdm::kDecodeError;
126 return cdm
[all...]
H A Dffmpeg_cdm_audio_decoder.cc5 #include "media/cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.h"
31 cdm::AudioDecoderConfig::AudioCodec audio_codec) {
33 case cdm::AudioDecoderConfig::kCodecVorbis:
35 case cdm::AudioDecoderConfig::kCodecAac:
37 case cdm::AudioDecoderConfig::kUnknownAudioCodec:
39 NOTREACHED() << "Unsupported cdm::AudioCodec: " << audio_codec;
45 const cdm::AudioDecoderConfig& config,
83 static cdm::AudioFormat AVSampleFormatToCdmAudioFormat(
87 return cdm::kAudioFormatU8;
89 return cdm
[all...]
H A Dcdm_video_decoder.cc7 #include "media/cdm/ppapi/external_clear_key/cdm_video_decoder.h"
10 #include "media/cdm/ppapi/external_clear_key/fake_cdm_video_decoder.h"
14 #include "media/cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.h"
18 #include "media/cdm/ppapi/external_clear_key/libvpx_cdm_video_decoder.h"
24 ClearKeyCdmHost* host, const cdm::VideoDecoderConfig& config) {
34 if (config.codec == cdm::VideoDecoderConfig::kCodecVp8 ||
35 config.codec == cdm::VideoDecoderConfig::kCodecVp9) {
H A Dclear_key_cdm.cc5 #include "media/cdm/ppapi/external_clear_key/clear_key_cdm.h"
20 #include "media/cdm/json_web_key.h"
21 #include "media/cdm/ppapi/cdm_file_io_test.h"
22 #include "media/cdm/ppapi/external_clear_key/cdm_video_decoder.h"
34 #include "media/cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.h"
35 #include "media/cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.h"
98 const cdm::InputBuffer& input_buffer) {
136 static cdm::Error ConvertException(media::MediaKeys::Exception exception_code) {
139 return cdm::kNotSupportedError;
141 return cdm
[all...]
H A Dffmpeg_cdm_audio_decoder.h14 #include "media/cdm/ppapi/external_clear_key/clear_key_cdm_common.h"
34 bool Initialize(const cdm::AudioDecoderConfig& config);
39 static bool IsValidConfig(const cdm::AudioDecoderConfig& config);
41 // Decodes |compressed_buffer|. Returns |cdm::kSuccess| after storing
43 // |cdm::kNeedMoreData| when |compressed_frame| does not produce output.
44 // Returns |cdm::kDecodeError| when decoding fails.
48 cdm::Status DecodeBuffer(const uint8_t* compressed_buffer,
51 cdm::AudioFrames* decoded_frames);
/external/chromium_org/components/cdm/renderer/
H A Dandroid_key_systems.h12 namespace cdm { namespace
22 } // namespace cdm
H A Dwidevine_key_systems.h12 namespace cdm { namespace
26 } // namespace cdm
/external/chromium_org/media/base/android/
H A Dbrowser_cdm_factory_android.cc27 scoped_ptr<MediaDrmBridge> cdm(MediaDrmBridge::Create(key_system,
33 if (!cdm) {
45 if (!cdm->SetSecurityLevel(security_level)) {
50 return cdm.PassAs<BrowserCdm>();
/external/chromium_org/chromecast/shell/renderer/
H A Dkey_systems_cast.cc12 #include "components/cdm/renderer/widevine_key_systems.h"
31 AddWidevineWithCodecs(cdm::WIDEVINE,
/external/chromium_org/content/browser/media/cdm/
H A Dbrowser_cdm_manager.cc5 #include "content/browser/media/cdm/browser_cdm_manager.h"
235 BrowserCdm* cdm = GetCdm(render_frame_id, cdm_id); local
236 if (!cdm) {
276 BrowserCdm* cdm = GetCdm(render_frame_id, cdm_id); local
277 if (!cdm) {
290 cdm->UpdateSession(session_id, &response[0], response.size());
296 BrowserCdm* cdm = GetCdm(render_frame_id, cdm_id); local
297 if (!cdm) {
303 cdm->ReleaseSession(session_id);
327 scoped_ptr<BrowserCdm> cdm(
371 BrowserCdm* cdm = GetCdm(render_frame_id, cdm_id); local
[all...]

Completed in 722 milliseconds

123456