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

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: Added some comments and dchecks Created 4 years, 8 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_ANY:
68 return media::VP9PROFILE_ANY; 68 return media::VP9PROFILE_PROFILE0;
69 // No default case, to catch unhandled PP_VideoProfile values. 69 // No default case, to catch unhandled PP_VideoProfile values.
70 } 70 }
71 71
72 return media::VIDEO_CODEC_PROFILE_UNKNOWN; 72 return media::VIDEO_CODEC_PROFILE_UNKNOWN;
73 } 73 }
74 74
75 } // namespace 75 } // namespace
76 76
77 PepperVideoDecoderHost::PendingDecode::PendingDecode( 77 PepperVideoDecoderHost::PendingDecode::PendingDecode(
78 int32_t decode_id, 78 int32_t decode_id,
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 530
531 PepperVideoDecoderHost::PendingDecodeList::iterator 531 PepperVideoDecoderHost::PendingDecodeList::iterator
532 PepperVideoDecoderHost::GetPendingDecodeById(int32_t decode_id) { 532 PepperVideoDecoderHost::GetPendingDecodeById(int32_t decode_id) {
533 return std::find_if(pending_decodes_.begin(), pending_decodes_.end(), 533 return std::find_if(pending_decodes_.begin(), pending_decodes_.end(),
534 [decode_id](const PendingDecode& item) { 534 [decode_id](const PendingDecode& item) {
535 return item.decode_id == decode_id; 535 return item.decode_id == decode_id;
536 }); 536 });
537 } 537 }
538 538
539 } // namespace content 539 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/content_decryptor_delegate.cc ('k') | content/renderer/pepper/pepper_video_encoder_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698