OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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/pepper_video_decoder_host.h" | 5 #include "content/renderer/pepper/pepper_video_decoder_host.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "content/common/gpu/client/gpu_channel_host.h" | 9 #include "content/common/gpu/client/gpu_channel_host.h" |
10 #include "content/public/renderer/render_thread.h" | 10 #include "content/public/renderer/render_thread.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 case PP_VIDEOPROFILE_H264HIGH444PREDICTIVEPROFILE: | 46 case PP_VIDEOPROFILE_H264HIGH444PREDICTIVEPROFILE: |
47 return media::H264PROFILE_HIGH444PREDICTIVEPROFILE; | 47 return media::H264PROFILE_HIGH444PREDICTIVEPROFILE; |
48 case PP_VIDEOPROFILE_H264SCALABLEBASELINE: | 48 case PP_VIDEOPROFILE_H264SCALABLEBASELINE: |
49 return media::H264PROFILE_SCALABLEBASELINE; | 49 return media::H264PROFILE_SCALABLEBASELINE; |
50 case PP_VIDEOPROFILE_H264SCALABLEHIGH: | 50 case PP_VIDEOPROFILE_H264SCALABLEHIGH: |
51 return media::H264PROFILE_SCALABLEHIGH; | 51 return media::H264PROFILE_SCALABLEHIGH; |
52 case PP_VIDEOPROFILE_H264STEREOHIGH: | 52 case PP_VIDEOPROFILE_H264STEREOHIGH: |
53 return media::H264PROFILE_STEREOHIGH; | 53 return media::H264PROFILE_STEREOHIGH; |
54 case PP_VIDEOPROFILE_H264MULTIVIEWHIGH: | 54 case PP_VIDEOPROFILE_H264MULTIVIEWHIGH: |
55 return media::H264PROFILE_MULTIVIEWHIGH; | 55 return media::H264PROFILE_MULTIVIEWHIGH; |
56 case PP_VIDEOPROFILE_VP8MAIN: | 56 case PP_VIDEOPROFILE_VP8_ANY: |
57 return media::VP8PROFILE_MAIN; | 57 return media::VP8PROFILE_ANY; |
58 case PP_VIDEOPROFILE_VP9MAIN: | 58 case PP_VIDEOPROFILE_VP9_ANY: |
59 return media::VP9PROFILE_MAIN; | 59 return media::VP9PROFILE_ANY; |
60 // No default case, to catch unhandled PP_VideoProfile values. | 60 // No default case, to catch unhandled PP_VideoProfile values. |
61 } | 61 } |
62 | 62 |
63 return media::VIDEO_CODEC_PROFILE_UNKNOWN; | 63 return media::VIDEO_CODEC_PROFILE_UNKNOWN; |
64 } | 64 } |
65 | 65 |
66 } // namespace | 66 } // namespace |
67 | 67 |
68 PepperVideoDecoderHost::PendingDecode::PendingDecode( | 68 PepperVideoDecoderHost::PendingDecode::PendingDecode( |
69 uint32_t shm_id, | 69 uint32_t shm_id, |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 host()->SendUnsolicitedReply( | 398 host()->SendUnsolicitedReply( |
399 pp_resource(), | 399 pp_resource(), |
400 PpapiPluginMsg_VideoDecoder_RequestTextures( | 400 PpapiPluginMsg_VideoDecoder_RequestTextures( |
401 requested_num_of_buffers, | 401 requested_num_of_buffers, |
402 PP_MakeSize(dimensions.width(), dimensions.height()), | 402 PP_MakeSize(dimensions.width(), dimensions.height()), |
403 texture_target, | 403 texture_target, |
404 mailboxes)); | 404 mailboxes)); |
405 } | 405 } |
406 | 406 |
407 } // namespace content | 407 } // namespace content |
OLD | NEW |