// d3d12umddi.h
typedef struct D3D12DDI_VIDEO_DECODE_CONVERSION_ARGUMENTS_0021 {
BOOL Enable;
D3D12DDI_HRESOURCE hDrvReferenceTexture2D;
UINT ReferenceSubresource;
DXGI_COLOR_SPACE_TYPE OutputColorSpace;
DXGI_COLOR_SPACE_TYPE DecodeColorSpace;
} D3D12DDI_VIDEO_DECODE_CONVERSION_ARGUMENTS_0021;
View the official Windows Driver Kit DDI referenceNo description available.
Specifies the arguments for decode output conversion.
EnableIndicates whether decode conversion should be used.
hDrvReferenceTexture2DIf down sampling is enabled, the output at decode resolution, color space, and format may be required for future decode submissions. If it is not needed, specify NULL.
ReferenceSubresourceThe subresource index to use of the hDrvReferenceTexture2D argument.
OutputColorSpaceThe target color space of the output.
DecodeColorSpaceThe source decoded color space before conversion.
Scaling is specified by the difference in reference texture size versus the output texture size.
Use D3D12DDICAPS_TYPE_VIDEO_DECODE_CONVERSION_SUPPORT to determine if a conversion combination is supported.
A source and destination resolution and format are communicated by the resource properties of reference textures versus the output buffer specified in the pfnDecodeFrame callback function.
Support for scaling and format conversion during decode can also be queried with D3D12DDICAPS_TYPE_VIDEO_DECODE_CONVERSION_SUPPORT. The source size for the scale is the source stream width and height set during video decoder creation. The output size for the scale is the width and height of the output texture passed into the pfnDecodeFrame callback function.