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

Unified Diff: content/renderer/pepper/ppb_video_decoder_impl.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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/pepper/ppb_video_decoder_impl.cc
diff --git a/content/renderer/pepper/ppb_video_decoder_impl.cc b/content/renderer/pepper/ppb_video_decoder_impl.cc
index 5c5fcb224a39fe509ce140380deec210274bfaca..17acfe881f6688aac3b4273b8534d5f34d33e869 100644
--- a/content/renderer/pepper/ppb_video_decoder_impl.cc
+++ b/content/renderer/pepper/ppb_video_decoder_impl.cc
@@ -67,6 +67,14 @@ media::VideoCodecProfile PPToMediaProfile(
return media::H264PROFILE_MULTIVIEWHIGH;
case PP_VIDEODECODER_VP8PROFILE_ANY:
return media::VP8PROFILE_ANY;
+ case PP_VIDEODECODER_VP9PROFILE_PROFILE0:
fgalligan1 2016/03/23 18:14:08 Will this be fine? Currently this decoder does not
servolk 2016/03/24 18:05:43 Yes, I believe this should be fine. This simply al
+ return media::VP9PROFILE_PROFILE0;
+ case PP_VIDEODECODER_VP9PROFILE_PROFILE1:
+ return media::VP9PROFILE_PROFILE1;
+ case PP_VIDEODECODER_VP9PROFILE_PROFILE2:
+ return media::VP9PROFILE_PROFILE2;
+ case PP_VIDEODECODER_VP9PROFILE_PROFILE3:
+ return media::VP9PROFILE_PROFILE3;
default:
return media::VIDEO_CODEC_PROFILE_UNKNOWN;
}

Powered by Google App Engine
This is Rietveld 408576698