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

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

Issue 418193003: Using PROFILE_ANY for vp8 and vp9 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 4 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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/renderer/pepper/content_decryptor_delegate.cc ('k') | content/renderer/pepper/ppb_video_decoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698