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

Unified Diff: content/common/gpu/media/vaapi_video_encode_accelerator.cc

Issue 872623002: VaapiVEA: Get maximum resolution from libva (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: modify description Created 5 years, 11 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/common/gpu/media/vaapi_video_encode_accelerator.cc
diff --git a/content/common/gpu/media/vaapi_video_encode_accelerator.cc b/content/common/gpu/media/vaapi_video_encode_accelerator.cc
index ee785799cf0287d0a68c42e4e26c9bc722ffeec7..8a6e07a187c4ce4275e8a367980291b90dc1b05a 100644
--- a/content/common/gpu/media/vaapi_video_encode_accelerator.cc
+++ b/content/common/gpu/media/vaapi_video_encode_accelerator.cc
@@ -114,7 +114,7 @@ VaapiVideoEncodeAccelerator::GetSupportedProfiles() {
return profiles;
std::vector<media::VideoCodecProfile> hw_profiles =
- VaapiWrapper::GetSupportedEncodeProfiles(base::Bind(&base::DoNothing));
+ VaapiWrapper::GetSupportedProfiles(VaapiWrapper::kEncode);
media::VideoEncodeAccelerator::SupportedProfile profile;
profile.max_resolution.SetSize(1920, 1088);
wuchengli 2015/02/03 03:17:33 remove
henryhsu 2015/02/13 04:01:03 Done.
@@ -122,6 +122,9 @@ VaapiVideoEncodeAccelerator::GetSupportedProfiles() {
profile.max_framerate_denominator = 1;
for (size_t i = 0; i < hw_profiles.size(); i++) {
profile.profile = hw_profiles[i];
+ profile.max_resolution = VaapiWrapper::GetCodecMaxResolution(
+ profile.profile,
+ VaapiWrapper::kEncode);
profiles.push_back(profile);
}
return profiles;

Powered by Google App Engine
This is Rietveld 408576698