// d3d12umddi.h
typedef struct D3D12DDI_VIDEO_FORMAT_DESCRIPTION_0020 {
DXGI_FORMAT Format;
DXGI_COLOR_SPACE_TYPE ColorSpace;
} D3D12DDI_VIDEO_FORMAT_DESCRIPTION_0020;
View the official Windows Driver Kit DDI referenceNo description available.
Defines the combination of a pixel format and color space for a resource content description.
FormatThe format of the data. For more information, see the DXGI_FORMAT enumeration.
ColorSpaceThe color space of the data. For more information, see the DXGI_COLOR_SPACE_TYPE enumeration.
Conversions exposed through the decoder must have a hardware advantage compared to a conversion that could be accomplished through the app via a decode and a video process BLT. This typically means the video hardware write the unconverted reference frame and the converted output (both outputs) without a separate step that reads the unconverted reference frame to produce the converted output.
The one exception is that all drivers are required to support a conversion to remove the D3D12DDI_RESOURCE_FLAG_VIDEO_DECODE_REFERENCE_ONLY flag where the source and destination format, color space, and size are equal. Hardware may not actually require the D3D12DDI_RESOURCE_FLAG_VIDEO_DECODE_REFERENCE_ONLY flag, but if it is used, the driver may implement this conversion with a copy operation.