D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS structure (d3d12video.h)
Specifies the parameters for decode output conversion. D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1 is used for the same purpose, but provides additional fields for output width and output height.
Syntax
typedef struct D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS {
BOOL Enable;
ID3D12Resource *pReferenceTexture2D;
UINT ReferenceSubresource;
DXGI_COLOR_SPACE_TYPE OutputColorSpace;
DXGI_COLOR_SPACE_TYPE DecodeColorSpace;
} D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS;
Members
Enable
A boolean value indicating whether decode conversion should be used.
pReferenceTexture2D
A pointer to an ID3D12Resource containing the native decoding output. When downsampling is enabled, the output at native decode resolution, color space, and format may be required for future decode submissions (as reference frames, for instance).
ReferenceSubresource
The subresource index of the resource provided in pDecodeTexture2D to use.
OutputColorSpace
A value from the DXGI_COLOR_SPACE_TYPE enumeration specifying the target color space of the output.
DecodeColorSpace
A value from the DXGI_COLOR_SPACE_TYPE enumeration specifying the source-decoded color space before conversion.
Remarks
Scaling is specified by the difference between the native decode texture size and the output texture size.
Use D3D12_FEATURE_VIDEO_DECODE_CONVERSION_SUPPORT to determine if a conversion combination is supported.
The source and destination resolution and format are communicated by the resource properties of decode textures and the output buffer specified in ID3D12VideoCommandList::DecodeFrame.
Requirements
Requirement | Value |
---|---|
Header | d3d12video.h |