• henryhsu's avatar
    VaapiVEA: Get maximum resolution from libva · a598f3ad
    henryhsu authored
    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}
    a598f3ad
va.sigs 2.88 KB