| 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 "content/renderer/pepper/ppb_video_decoder_impl.h" | 5 #include "content/renderer/pepper/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/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 return media::H264PROFILE_HIGH444PREDICTIVEPROFILE; | 59 return media::H264PROFILE_HIGH444PREDICTIVEPROFILE; |
| 60 case PP_VIDEODECODER_H264PROFILE_SCALABLEBASELINE: | 60 case PP_VIDEODECODER_H264PROFILE_SCALABLEBASELINE: |
| 61 return media::H264PROFILE_SCALABLEBASELINE; | 61 return media::H264PROFILE_SCALABLEBASELINE; |
| 62 case PP_VIDEODECODER_H264PROFILE_SCALABLEHIGH: | 62 case PP_VIDEODECODER_H264PROFILE_SCALABLEHIGH: |
| 63 return media::H264PROFILE_SCALABLEHIGH; | 63 return media::H264PROFILE_SCALABLEHIGH; |
| 64 case PP_VIDEODECODER_H264PROFILE_STEREOHIGH: | 64 case PP_VIDEODECODER_H264PROFILE_STEREOHIGH: |
| 65 return media::H264PROFILE_STEREOHIGH; | 65 return media::H264PROFILE_STEREOHIGH; |
| 66 case PP_VIDEODECODER_H264PROFILE_MULTIVIEWHIGH: | 66 case PP_VIDEODECODER_H264PROFILE_MULTIVIEWHIGH: |
| 67 return media::H264PROFILE_MULTIVIEWHIGH; | 67 return media::H264PROFILE_MULTIVIEWHIGH; |
| 68 case PP_VIDEODECODER_VP8PROFILE_MAIN: | 68 case PP_VIDEODECODER_VP8PROFILE_MAIN: |
| 69 return media::VP8PROFILE_MAIN; | 69 return media::VP8PROFILE_NOT_NEEDED; |
| 70 default: | 70 default: |
| 71 return media::VIDEO_CODEC_PROFILE_UNKNOWN; | 71 return media::VIDEO_CODEC_PROFILE_UNKNOWN; |
| 72 } | 72 } |
| 73 } | 73 } |
| 74 | 74 |
| 75 PP_VideoDecodeError_Dev MediaToPPError( | 75 PP_VideoDecodeError_Dev MediaToPPError( |
| 76 media::VideoDecodeAccelerator::Error error) { | 76 media::VideoDecodeAccelerator::Error error) { |
| 77 switch (error) { | 77 switch (error) { |
| 78 case media::VideoDecodeAccelerator::ILLEGAL_STATE: | 78 case media::VideoDecodeAccelerator::ILLEGAL_STATE: |
| 79 return PP_VIDEODECODERERROR_ILLEGAL_STATE; | 79 return PP_VIDEODECODERERROR_ILLEGAL_STATE; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 DCHECK(RenderThreadImpl::current()); | 287 DCHECK(RenderThreadImpl::current()); |
| 288 RunBitstreamBufferCallback(bitstream_buffer_id, PP_OK); | 288 RunBitstreamBufferCallback(bitstream_buffer_id, PP_OK); |
| 289 } | 289 } |
| 290 | 290 |
| 291 void PPB_VideoDecoder_Impl::NotifyFlushDone() { | 291 void PPB_VideoDecoder_Impl::NotifyFlushDone() { |
| 292 DCHECK(RenderThreadImpl::current()); | 292 DCHECK(RenderThreadImpl::current()); |
| 293 RunFlushCallback(PP_OK); | 293 RunFlushCallback(PP_OK); |
| 294 } | 294 } |
| 295 | 295 |
| 296 } // namespace content | 296 } // namespace content |
| OLD | NEW |