Home | History | Annotate | Download | only in external_clear_key

Lines Matching refs:cdm

5 #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::kNeedMoreData;
130 return cdm::kDecodeError;
137 return cdm::kDecodeError;
140 return cdm::kSuccess;
143 bool LibvpxCdmVideoDecoder::CopyVpxImageTo(cdm::VideoFrame* cdm_video_frame) {
173 cdm_video_frame->SetFormat(cdm::kYv12);
175 cdm::Size video_frame_size;
180 cdm_video_frame->SetPlaneOffset(cdm::VideoFrame::kYPlane, 0);
181 cdm_video_frame->SetPlaneOffset(cdm::VideoFrame::kUPlane, y_size);
182 cdm_video_frame->SetPlaneOffset(cdm::VideoFrame::kVPlane,
185 cdm_video_frame->SetStride(cdm::VideoFrame::kYPlane,
187 cdm_video_frame->SetStride(cdm::VideoFrame::kUPlane,
189 cdm_video_frame->SetStride(cdm::VideoFrame::kVPlane,