Skip to content

d3d11: Various format mapping cleanup and add AYUV, AYUV64, and RGBA64_LE support

Seungha Yang requested to merge seungha.yang/gstreamer:d3d11-format into main
    d3d11: Add support for AYUV, AYUV64, and RGBA64_LE formats

    Note that AYUV and AYUV64 formats will be used to expand format
    support, especially some packed YUV formats (e.g., Y410, YUY2)
    are common DXGI formats used for hardware decoder/encoder on Windows
    but those formats cannot be used as a render target. We need to handle
    them differently without pixel shader help, using compute shader
    for example.
    d3d11: Reorganize format mapping table

    ... and handle GST <-> D3D11 format mapping in a single place to
    make adding format easier
    d3d11: Store device format in struct

    Holding pointer to struct was unsafe approach because
    the pointer to d3d11 format will be invalidated once d3d11 device
    object is released

Merge request reports