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

Side by Side Diff: content/renderer/pepper/pepper_video_decoder_host.cc

Issue 336833003: Pepper: Add VP9 support to PPB_VideoDecoder API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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) 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_VP8MAIN:
57 return media::VP8PROFILE_MAIN; 57 return media::VP8PROFILE_MAIN;
58 case PP_VIDEOPROFILE_VP9MAIN:
59 return media::VP9PROFILE_MAIN;
58 // No default case, to catch unhandled PP_VideoProfile values. 60 // No default case, to catch unhandled PP_VideoProfile values.
59 } 61 }
60 62
61 return media::VIDEO_CODEC_PROFILE_UNKNOWN; 63 return media::VIDEO_CODEC_PROFILE_UNKNOWN;
62 } 64 }
63 65
64 } // namespace 66 } // namespace
65 67
66 PepperVideoDecoderHost::PendingDecode::PendingDecode( 68 PepperVideoDecoderHost::PendingDecode::PendingDecode(
67 uint32_t shm_id, 69 uint32_t shm_id,
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 host()->SendUnsolicitedReply( 396 host()->SendUnsolicitedReply(
395 pp_resource(), 397 pp_resource(),
396 PpapiPluginMsg_VideoDecoder_RequestTextures( 398 PpapiPluginMsg_VideoDecoder_RequestTextures(
397 requested_num_of_buffers, 399 requested_num_of_buffers,
398 PP_MakeSize(dimensions.width(), dimensions.height()), 400 PP_MakeSize(dimensions.width(), dimensions.height()),
399 texture_target, 401 texture_target,
400 mailboxes)); 402 mailboxes));
401 } 403 }
402 404
403 } // namespace content 405 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/renderer/pepper/video_decoder_shim.cc » ('j') | ppapi/examples/video_decode/video_decode.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698