Microsoft DirectX 9.0


The GetDecoderCaps method queries the decoder for its capabilities.


HRESULT GetDecoderCaps(
  DWORD dwCapIndex,
  DWORD* lpdwCap



[in]  Specifies the capability being queried for.

Constant Value Description
AM_QUERY_DECODER_VMR_SUPPORT 0x00000001 Video Mixing Renderer Filter 7 (VMR-7) support
AM_QUERY_DECODER_DXVA_1_SUPPORT 0x00000002 DirectX Video Acceleration support
AM_QUERY_DECODER_DVD_SUPPORT 0x00000003 DVD Video support
AM_QUERY_DECODER_ATSC_SD_SUPPORT 0x00000004 Standard-definition (SD) ATSC video support
AM_QUERY_DECODER_ATSC_HD_SUPPORT 0x00000005 High-definition (HD) ATSC video support
AM_GETDECODERCAP_QUERY_VMR9_SUPPORT 0x00000006 Video Mixing Renderer Filter 9 (VMR-9) support


[out]  Specifies a pointer to a variable that receives one of the following values.

Value Description
DECODER_CAP_NOTSUPPORTED The decoder does not support this capability.
DECODER_CAP_SUPPORTED The decoder supports this capability.

Return Values

If the method succeeds, it returns S_OK. Otherwise it returns an HRESULT error code.


The DVD Graph Builder uses this method when it builds a DVD graph. If the decoder does not support the Video Mixing Renderer filter, then the DVD Graph Builder uses the Overlay Mixer filter instead.

See Also