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

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

Issue 1769593002: Add 4 VP9 profiles to the media::VideoCodecProfile enum. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hevc-codec-7
Patch Set: Rebase to ToT Created 4 years, 9 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 case PP_VIDEOPROFILE_H264SCALABLEBASELINE: 57 case PP_VIDEOPROFILE_H264SCALABLEBASELINE:
58 return media::H264PROFILE_SCALABLEBASELINE; 58 return media::H264PROFILE_SCALABLEBASELINE;
59 case PP_VIDEOPROFILE_H264SCALABLEHIGH: 59 case PP_VIDEOPROFILE_H264SCALABLEHIGH:
60 return media::H264PROFILE_SCALABLEHIGH; 60 return media::H264PROFILE_SCALABLEHIGH;
61 case PP_VIDEOPROFILE_H264STEREOHIGH: 61 case PP_VIDEOPROFILE_H264STEREOHIGH:
62 return media::H264PROFILE_STEREOHIGH; 62 return media::H264PROFILE_STEREOHIGH;
63 case PP_VIDEOPROFILE_H264MULTIVIEWHIGH: 63 case PP_VIDEOPROFILE_H264MULTIVIEWHIGH:
64 return media::H264PROFILE_MULTIVIEWHIGH; 64 return media::H264PROFILE_MULTIVIEWHIGH;
65 case PP_VIDEOPROFILE_VP8_ANY: 65 case PP_VIDEOPROFILE_VP8_ANY:
66 return media::VP8PROFILE_ANY; 66 return media::VP8PROFILE_ANY;
67 case PP_VIDEOPROFILE_VP9_ANY: 67 case PP_VIDEOPROFILE_VP9_PROFILE0:
68 return media::VP9PROFILE_ANY; 68 return media::VP9PROFILE_PROFILE0;
69 case PP_VIDEOPROFILE_VP9_PROFILE1:
70 return media::VP9PROFILE_PROFILE1;
71 case PP_VIDEOPROFILE_VP9_PROFILE2:
72 return media::VP9PROFILE_PROFILE2;
73 case PP_VIDEOPROFILE_VP9_PROFILE3:
74 return media::VP9PROFILE_PROFILE3;
69 // No default case, to catch unhandled PP_VideoProfile values. 75 // No default case, to catch unhandled PP_VideoProfile values.
70 } 76 }
71 77
72 return media::VIDEO_CODEC_PROFILE_UNKNOWN; 78 return media::VIDEO_CODEC_PROFILE_UNKNOWN;
73 } 79 }
74 80
75 } // namespace 81 } // namespace
76 82
77 PepperVideoDecoderHost::PendingDecode::PendingDecode( 83 PepperVideoDecoderHost::PendingDecode::PendingDecode(
78 int32_t decode_id, 84 int32_t decode_id,
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 536
531 PepperVideoDecoderHost::PendingDecodeList::iterator 537 PepperVideoDecoderHost::PendingDecodeList::iterator
532 PepperVideoDecoderHost::GetPendingDecodeById(int32_t decode_id) { 538 PepperVideoDecoderHost::GetPendingDecodeById(int32_t decode_id) {
533 return std::find_if(pending_decodes_.begin(), pending_decodes_.end(), 539 return std::find_if(pending_decodes_.begin(), pending_decodes_.end(),
534 [decode_id](const PendingDecode& item) { 540 [decode_id](const PendingDecode& item) {
535 return item.decode_id == decode_id; 541 return item.decode_id == decode_id;
536 }); 542 });
537 } 543 }
538 544
539 } // namespace content 545 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698