PFND3D12DDI_VIDEO_GETCAPS fonction de rappel (d3d12umddi.h)
Le runtime D3D appelle la fonction de rappel PFND3D12DDI_VIDEO_GETCAPS du pilote client pour rechercher la prise en charge vidéo fournie par le pilote pour un type spécifié.
Syntaxe
PFND3D12DDI_VIDEO_GETCAPS Pfnd3d12ddiVideoGetcaps;
HRESULT Pfnd3d12ddiVideoGetcaps(
[in] D3D12DDI_HDEVICE hDrvDevice,
[in, out] const D3D12DDIARG_VIDEO_GETCAPS_0020 *pArgs
)
{...}
Paramètres
[in] hDrvDevice
Handle d’un appareil.
[in, out] pArgs
Pointeur vers une structure D3D12DDIARG_VIDEO_GETCAPS_0020 allouée par l’appelant utilisée pour demander une fonctionnalité spécifique à la vidéo.
Valeur de retour
Si cette fonction de rappel réussit, elle retourne S_OK. Sinon, elle retourne un HRESULT code d’erreur.
Remarques
Le tableau suivant fournit quelques exemples de signification/valeurs de pData et DataSize pour différentes valeurs de D3D12DDICAPS_TYPE_VIDEO_0020. Notez que pInfo pointe sur NULL dans tous ces exemples. Il n’est donc pas affiché dans le tableau.
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) |
Exigences
Exigence | Valeur |
---|---|
plateforme cible | Windows |
d’en-tête | d3d12umddi.h (include D3d12umddi.h) |