Index: content/common/gpu/media/vt_video_decode_accelerator.cc |
diff --git a/content/common/gpu/media/vt_video_decode_accelerator.cc b/content/common/gpu/media/vt_video_decode_accelerator.cc |
index 75844ee0536f5f1417820a9ea36f562b0262a526..d61f515e5cba4b3788c94ac6c7846fd5543febc1 100644 |
--- a/content/common/gpu/media/vt_video_decode_accelerator.cc |
+++ b/content/common/gpu/media/vt_video_decode_accelerator.cc |
@@ -1054,4 +1054,24 @@ bool VTVideoDecodeAccelerator::CanDecodeOnIOThread() { |
return false; |
} |
+// static |
+std::vector<media::VideoDecodeAccelerator::SupportedProfile> |
+VTVideoDecodeAccelerator::GetSupportedProfiles() { |
+ std::vector<media::VideoDecodeAccelerator::SupportedProfile> profiles; |
+ // Supported media profiles should be synced with Initialize function. |
wuchengli
2015/03/23 08:28:08
Like I said in android_video_decode_accelerator.cc
henryhsu
2015/03/23 10:06:35
Done.
|
+ for (uint32 media_profile = media::H264PROFILE_MIN; |
+ media_profile <= media::H264PROFILE_MAX; ++media_profile) { |
+ if (media_profile == media::H264PROFILE_HIGH422PROFILE || |
+ media_profile == media::H264PROFILE_HIGH444PREDICTIVEPROFILE) { |
+ continue; |
+ } |
+ media::VideoDecodeAccelerator::SupportedProfile profile; |
+ profile.profile = media_profile; |
+ profile.min_resolution.SetSize(480, 360); |
+ profile.max_resolution.SetSize(4096, 2160); |
+ profiles.push_back(profile); |
+ } |
+ return profiles; |
+} |
+ |
} // namespace content |