PFND3D12DDI_VIDEO_GETCAPS callback function (d3d12umddi.h)
The D3D runtime calls a client driver's PFND3D12DDI_VIDEO_GETCAPS callback function to query for video-related support provided by the driver for a specified type.
Syntax
PFND3D12DDI_VIDEO_GETCAPS Pfnd3d12ddiVideoGetcaps;
HRESULT Pfnd3d12ddiVideoGetcaps(
[in] D3D12DDI_HDEVICE hDrvDevice,
[in, out] const D3D12DDIARG_VIDEO_GETCAPS_0020 *pArgs
)
{...}
Parameters
[in] hDrvDevice
The handle of a device.
[in, out] pArgs
Pointer to a caller-allocated D3D12DDIARG_VIDEO_GETCAPS_0020 structure used to request a video-specific capability.
Return value
If this callback function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The following table provides a few examples of the meaning/values of pData and DataSize for various D3D12DDICAPS_TYPE_VIDEO_0020 values. Note that pInfo points to NULL in all of these examples, so is not shown in the table.
D3D12DDICAPS_TYPE_XXX | pData | DataSize |
---|---|---|
VIDEO_0020_DECODE_SUPPORT | D3D12DDI_VIDEO_DECODE_SUPPORT_DATA_0020 * | sizeof(D3D12DDI_VIDEO_DECODE_SUPPORT_DATA_0020) |
VIDEO_0020_DECODE_PROFILES | D3D12DDI_VIDEO_DECODE_PROFILES_DATA_0020 * | sizeof(D3D12DDI_VIDEO_DECODE_PROFILES_DATA_0020) |
VIDEO_0020_PROCESS_SUPPORT | D3D12DDI_VIDEO_PROCESS_SUPPORT_DATA_0032 * | sizeof(D3D12DDI_VIDEO_PROCESS_SUPPORT_DATA_0032) |
VIDEO_0032_DECODER_HEAP_SIZE | D3D12DDI_VIDEO_DECODER_HEAP_SIZE_DATA_0072 * | sizeof(D3D12DDI_VIDEO_DECODER_HEAP_SIZE_DATA_0072) |
VIDEO_0053_MOTION_ESTIMATOR | D3D12DDI_VIDEO_MOTION_ESTIMATOR_DATA_0053 * | sizeof(D3D12DDI_VIDEO_MOTION_ESTIMATOR_DATA_0053) |
VIDEO_0080_ENCODER_CODEC | D3D12DDICAPS_VIDEO_ENCODER_CODEC_DATA_0080 | sizeof(D3D12DDICAPS_VIDEO_ENCODER_CODEC_DATA_0080) |
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d12umddi.h (include D3d12umddi.h) |