• Dale Curtis's avatar
    Refactor GetResolutionsForDecoders() to support AV1. Take #2 · 1470bc06
    Dale Curtis authored
    Same as the previous patch, but avoids assigning from a const& that
    is destructed by the assignment. PS#1 is the original change, 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: I0503d43630238c0a11b3a683308232f13cfdf37b
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2227969Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
    Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#774474}
    1470bc06
av1_guids.h 1.12 KB