Bewerken

Delen via


PFND3DWDDM2_0DDI_QUERYVIDEOCAPABILITIES callback function (d3d10umddi.h)

PFND3DWDDM2_0DDI_QUERYVIDEOCAPABILITIES queries the driver for its video capabilities. WDDM 2.0 or later drivers must implement this function.

Syntax

PFND3DWDDM2_0DDI_QUERYVIDEOCAPABILITIES Pfnd3dwddm20DdiQueryvideocapabilities;

void Pfnd3dwddm20DdiQueryvideocapabilities(
  D3D10DDI_HDEVICE hDevice,
  D3DWDDM2_0DDI_VIDEO_CAPABILITY_QUERY QueryType,
  UINT DataSize,
  VOID *pData
)
{...}

Parameters

hDevice

[in] A handle to the display device (graphics context). The Direct3D runtime passed the user-mode driver this handle as the hDevice member of the D3DDDIARG_CREATEDEVICE structure at device creation.

QueryType

[in] A D3DWDDM2_0DDI_VIDEO_CAPABILITY_QUERY value that indicates the type of data being queried.

DataSize

[in] Size in bytes of the data that pData points to. This value is dependent on the QueryType member. For example, if QueryType is D3DWDDM2_0DDI_VIDEO_CAPABILITY_QUERY_DECODER_CAPS, set DataSize to sizeof(D3DWDDM2_0DDI_VIDEO_CAPABILITY_DECODER_CAPS).

pData

[in/out] Pointer to a structure containing both caller-provided input parameters and output parameters that are to be filled in by the driver. The type of structure depends on the value of QueryType.

Value of QueryType Structure that pData points to
D3DWDDM2_0DDI_VIDEO_CAPABILITY_QUERY_DECODER_DOWNSAMPLING D3DWDDM2_0DDI_VIDEO_CAPABILITY_DECODER_DOWNSAMPLING
D3DWDDM2_0DDI_VIDEO_CAPABILITY_QUERY_RECOMMEND_DECODER_DOWNSAMPLING D3DWDDM2_0DDI_VIDEO_CAPABILITY_RECOMMEND_DECODER_DOWNSAMPLING
D3DWDDM2_0DDI_VIDEO_CAPABILITY_QUERY_DECODER_CAPS D3DWDDM2_0DDI_VIDEO_CAPABILITY_DECODER_CAPS
D3DWDDM2_0DDI_VIDEO_CAPABILITY_QUERY_DECODER_DOWNSAMPLE_OUTPUT_FORMAT D3DWDDM2_0DDI_VIDEO_CAPABILITY_DECODER_DOWNSAMPLE_OUTPUT_FORMAT
D3DWDDM2_4DDI_VIDEO_CAPABILITY_QUERY_DECODER_HISTOGRAM D3DWDDM2_4DDI_VIDEO_CAPABILITY_DECODER_HISTOGRAM

Return value

None

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Target Platform Desktop
Header d3d10umddi.h (include D3d10umddi.h)

See also

D3DWDDM2_0DDI_VIDEO_CAPABILITY_DECODER_CAPS

D3DWDDM2_0DDI_VIDEO_CAPABILITY_DECODER_DOWNSAMPLE_OUTPUT_FORMAT

D3DWDDM2_0DDI_VIDEO_CAPABILITY_DECODER_DOWNSAMPLING

D3DWDDM2_0DDI_VIDEO_CAPABILITY_QUERY

D3DWDDM2_0DDI_VIDEO_CAPABILITY_RECOMMEND_DECODER_DOWNSAMPLING