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

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: Better TODOs 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 case PP_VIDEOPROFILE_H264SCALABLEBASELINE: 56 case PP_VIDEOPROFILE_H264SCALABLEBASELINE:
57 return media::H264PROFILE_SCALABLEBASELINE; 57 return media::H264PROFILE_SCALABLEBASELINE;
58 case PP_VIDEOPROFILE_H264SCALABLEHIGH: 58 case PP_VIDEOPROFILE_H264SCALABLEHIGH:
59 return media::H264PROFILE_SCALABLEHIGH; 59 return media::H264PROFILE_SCALABLEHIGH;
60 case PP_VIDEOPROFILE_H264STEREOHIGH: 60 case PP_VIDEOPROFILE_H264STEREOHIGH:
61 return media::H264PROFILE_STEREOHIGH; 61 return media::H264PROFILE_STEREOHIGH;
62 case PP_VIDEOPROFILE_H264MULTIVIEWHIGH: 62 case PP_VIDEOPROFILE_H264MULTIVIEWHIGH:
63 return media::H264PROFILE_MULTIVIEWHIGH; 63 return media::H264PROFILE_MULTIVIEWHIGH;
64 case PP_VIDEOPROFILE_VP8_ANY: 64 case PP_VIDEOPROFILE_VP8_ANY:
65 return media::VP8PROFILE_ANY; 65 return media::VP8PROFILE_ANY;
66 case PP_VIDEOPROFILE_VP9_ANY: 66 case PP_VIDEOPROFILE_VP9_PROFILE0:
67 return media::VP9PROFILE_ANY; 67 return media::VP9PROFILE_PROFILE0;
68 case PP_VIDEOPROFILE_VP9_PROFILE1:
69 return media::VP9PROFILE_PROFILE1;
70 case PP_VIDEOPROFILE_VP9_PROFILE2:
71 return media::VP9PROFILE_PROFILE2;
72 case PP_VIDEOPROFILE_VP9_PROFILE3:
73 return media::VP9PROFILE_PROFILE3;
68 // No default case, to catch unhandled PP_VideoProfile values. 74 // No default case, to catch unhandled PP_VideoProfile values.
69 } 75 }
70 76
71 return media::VIDEO_CODEC_PROFILE_UNKNOWN; 77 return media::VIDEO_CODEC_PROFILE_UNKNOWN;
72 } 78 }
73 79
74 } // namespace 80 } // namespace
75 81
76 PepperVideoDecoderHost::PendingDecode::PendingDecode( 82 PepperVideoDecoderHost::PendingDecode::PendingDecode(
77 int32_t decode_id, 83 int32_t decode_id,
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 531
526 PepperVideoDecoderHost::PendingDecodeList::iterator 532 PepperVideoDecoderHost::PendingDecodeList::iterator
527 PepperVideoDecoderHost::GetPendingDecodeById(int32_t decode_id) { 533 PepperVideoDecoderHost::GetPendingDecodeById(int32_t decode_id) {
528 return std::find_if(pending_decodes_.begin(), pending_decodes_.end(), 534 return std::find_if(pending_decodes_.begin(), pending_decodes_.end(),
529 [decode_id](const PendingDecode& item) { 535 [decode_id](const PendingDecode& item) {
530 return item.decode_id == decode_id; 536 return item.decode_id == decode_id;
531 }); 537 });
532 } 538 }
533 539
534 } // namespace content 540 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698