VaapiVEA: Get maximum resolution from libva
Add GetMaxResolutionForVAConfigID function to get hardware supported maximum resolution for video encode and decode. This is also the preparation of removing --ignore-resolution-limits-for-accelerated-video-decode flag. Because this function uses va_config_id as parameter, we refactor vaapi_wrapper and add LazyInstance to initialize supported profile infos once and reuse it in Initialize and GetSupportedEncodeProfiles functions. BUG=350197 TEST=Test on squawks, and lumpy. Make sure this function works well. Review URL: https://codereview.chromium.org/872623002 Cr-Commit-Position: refs/heads/master@{#319842}
Showing
This diff is collapsed.
Please register or sign in to comment