• Dale Curtis's avatar
    Refactor GetResolutionsForDecoders() to support AV1. Take #3 · 04f859f7
    Dale Curtis authored
    Same as the previous patch, but avoids assigning from a const& and skips
    tests which shouldn't run on Windows 7. PS#1 is take #2, all later patch
    sets are the new one.
    
    ---- [ Original Description Below ] ----
    
    Does the following:
    - Internalizes h264 and min resolution details.
    - Sets the minimum resolution to 64,64 for both decoders.
    - Only loops through the video device profiles once.
    - Switches away from an std::pair to a named struct.
    - Adds AV1 GUID values and uses them in DXVA decoder.
    - Stops D3D11VideoDecoder for enumerating unsupported profiles.
    - Stops using the DXVA2_Intel_ModeH264_E for enumeration.
    - Gives all resolution tests a square resolution; e.g., 4k x 4k.
    - Doesn't test or indicate support for a duplicate portrait resolution.
    
    TBR=liberato, tmathmeyer
    
    Bug: 1073252
    Test: Updated unittests.
    Change-Id: I56468b1ab56e4bc2bd872cf40cef4235d9d2afc1
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2228112
    Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
    Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#774515}
    04f859f7
supported_profile_helpers_unittest.cc 11.1 KB