// d3d12umddi.h
typedef struct D3D12DDI_VIDEO_DECODE_FORMATS_DATA_0020 {
UINT NodeIndex;
D3D12DDI_VIDEO_DECODE_CONFIGURATION_0020 Configuration;
UINT FormatCount;
DXGI_FORMAT *pOutputFormats;
} D3D12DDI_VIDEO_DECODE_FORMATS_DATA_0020;
View the official Windows Driver Kit DDI referenceNo description available.
Specifies information used to retrieve a list of supported formats for a decode configuration.
NodeIndexIn multi-adapter operation, this indicates which physical adapter of the device this operation applies to.
ConfigurationSpecifies the decode configuration for the list of formats.
FormatCountThe number of formats to retrieve. The runtime ensures this value matches the value returned from PFND3D12DDI_VIDEO_GETCAPS with D3D12DDI_CAPSTYPE_VIDEO set to D3D12DDICAPS_TYPE_VIDEO_DECODE_PROFILE_FORMAT_COUNT.
pOutputFormatsA pointer to the returned supported formats. The calling application allocates storage for the format list.
These methods allow the list of supported decode formats supported by hardware. First, use PFND3D12DDDI_VIDEO_GETCAPS is called with D3D12DDICAPS_TYPE_VIDEO set to D3D12DDICAPS_TYPE_VIDEO_DECODE_PROFILE_FORMAT_COUNT to retrieve the number of supported formats. The caller uses this to allocate storage to retrieve the list of formats. The list is then retrieved through PFND3D12DDI_VIDEO_GETCAPS with the D3D12DDICAPS_TYPE set to D3D12DDICAPS_TYPE_VIDEO_DECODE_PROFILE_FORMATS.