Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: webkit/plugins/ppapi/ppb_video_decoder_impl.cc

Issue 10808058: Add support for VP8 decode to OmxVideoDecodeAccelerator, for HW that supports it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: scherkus comments. Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" 5 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 case PP_VIDEODECODER_H264PROFILE_HIGH444PREDICTIVEPROFILE: 70 case PP_VIDEODECODER_H264PROFILE_HIGH444PREDICTIVEPROFILE:
71 return media::H264PROFILE_HIGH444PREDICTIVEPROFILE; 71 return media::H264PROFILE_HIGH444PREDICTIVEPROFILE;
72 case PP_VIDEODECODER_H264PROFILE_SCALABLEBASELINE: 72 case PP_VIDEODECODER_H264PROFILE_SCALABLEBASELINE:
73 return media::H264PROFILE_SCALABLEBASELINE; 73 return media::H264PROFILE_SCALABLEBASELINE;
74 case PP_VIDEODECODER_H264PROFILE_SCALABLEHIGH: 74 case PP_VIDEODECODER_H264PROFILE_SCALABLEHIGH:
75 return media::H264PROFILE_SCALABLEHIGH; 75 return media::H264PROFILE_SCALABLEHIGH;
76 case PP_VIDEODECODER_H264PROFILE_STEREOHIGH: 76 case PP_VIDEODECODER_H264PROFILE_STEREOHIGH:
77 return media::H264PROFILE_STEREOHIGH; 77 return media::H264PROFILE_STEREOHIGH;
78 case PP_VIDEODECODER_H264PROFILE_MULTIVIEWHIGH: 78 case PP_VIDEODECODER_H264PROFILE_MULTIVIEWHIGH:
79 return media::H264PROFILE_MULTIVIEWHIGH; 79 return media::H264PROFILE_MULTIVIEWHIGH;
80 case PP_VIDEODECODER_VP8PROFILE_MAIN:
81 return media::VP8PROFILE_MAIN;
80 default: 82 default:
81 return media::VIDEO_CODEC_PROFILE_UNKNOWN; 83 return media::VIDEO_CODEC_PROFILE_UNKNOWN;
82 } 84 }
83 } 85 }
84 86
85 // static 87 // static
86 PP_Resource PPB_VideoDecoder_Impl::Create( 88 PP_Resource PPB_VideoDecoder_Impl::Create(
87 PP_Instance instance, 89 PP_Instance instance,
88 PP_Resource graphics_context, 90 PP_Resource graphics_context,
89 PP_VideoDecoder_Profile profile) { 91 PP_VideoDecoder_Profile profile) {
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 void PPB_VideoDecoder_Impl::NotifyFlushDone() { 266 void PPB_VideoDecoder_Impl::NotifyFlushDone() {
265 RunFlushCallback(PP_OK); 267 RunFlushCallback(PP_OK);
266 } 268 }
267 269
268 void PPB_VideoDecoder_Impl::NotifyInitializeDone() { 270 void PPB_VideoDecoder_Impl::NotifyInitializeDone() {
269 NOTREACHED() << "PlatformVideoDecoder::Initialize() is synchronous!"; 271 NOTREACHED() << "PlatformVideoDecoder::Initialize() is synchronous!";
270 } 272 }
271 273
272 } // namespace ppapi 274 } // namespace ppapi
273 } // namespace webkit 275 } // namespace webkit
OLDNEW
« content/common/gpu/media/video_decode_accelerator_unittest.cc ('K') | « ppapi/c/dev/pp_video_dev.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698