OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |