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

Unified Diff: content/common/gpu/media/vaapi_wrapper.h

Issue 603153002: vaapi: detect supported profiles in runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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_wrapper.h
diff --git a/content/common/gpu/media/vaapi_wrapper.h b/content/common/gpu/media/vaapi_wrapper.h
index f600cdfa1d17198d00f4fd67b4b59767ea60795e..e28c82896582ada24910f786ae66c97d79a0988a 100644
--- a/content/common/gpu/media/vaapi_wrapper.h
+++ b/content/common/gpu/media/vaapi_wrapper.h
@@ -50,6 +50,11 @@ class CONTENT_EXPORT VaapiWrapper {
Display* x_display,
const base::Closure& report_error_to_uma_cb);
+ // Return the supported profiles.
+ static std::vector<media::VideoCodecProfile> GetSupportedProfiles(
Pawel Osciak 2014/09/26 07:15:12 GetSupportedEncodeProfiles
wuchengli 2014/09/26 09:02:28 Done.
+ Display* x_display,
+ const base::Closure& report_error_to_uma_cb);
+
~VaapiWrapper();
// Create |num_surfaces| backing surfaces in driver for VASurfaces, each
@@ -140,8 +145,15 @@ class CONTENT_EXPORT VaapiWrapper {
bool Initialize(CodecMode mode,
media::VideoCodecProfile profile,
Display* x_display,
- const base::Closure& report_error__to_uma_cb);
+ const base::Closure& report_error_to_uma_cb);
void Deinitialize();
+ bool VaInitialize(Display* x_display,
+ const base::Closure& report_error_to_uma_cb);
+ bool GetSupportedVaProfiles(std::vector<VAProfile>* profiles);
+ bool IsEntrypointSupported(VAProfile va_profile, VAEntrypoint entrypoint);
+ bool IsAttribSupported(VAProfile va_profile,
+ VAEntrypoint entrypoint,
+ const std::vector<VAConfigAttrib>& required_attribs);
// Execute pending job in hardware and destroy pending buffers. Return false
// if vaapi driver refuses to accept parameter or slice buffers submitted

Powered by Google App Engine
This is Rietveld 408576698