IAMDecoderCaps::GetDecoderCaps method

The GetDecoderCaps method queries the decoder for its capabilities.

Syntax


HRESULT GetDecoderCaps(
  [in]  DWORD dwCapIndex,
  [out] DWORD *lpdwCap
);

Parameters

dwCapIndex [in]

Specifies the capability being queried for.

Constant Value Description
AM_QUERY_DECODER_VMR_SUPPORT0x00000001Video Mixing Renderer Filter 7 (VMR-7) support
AM_QUERY_DECODER_DXVA_1_SUPPORT0x00000002DirectX Video Acceleration support
AM_QUERY_DECODER_DVD_SUPPORT0x00000003DVD Video support
AM_QUERY_DECODER_ATSC_SD_SUPPORT0x00000004Standard-definition (SD) ATSC video support
AM_QUERY_DECODER_ATSC_HD_SUPPORT0x00000005High-definition (HD) ATSC video support
AM_GETDECODERCAP_QUERY_VMR9_SUPPORT0x00000006Video Mixing Renderer Filter 9 (VMR-9) support
AM_GETDECODERCAP_QUERY_EVR_SUPPORT0x00000007Enhanced Video Renderer (EVR) support.

 

lpdwCap [out]

Receives one of the following values.

Value Description
DECODER_CAP_NOTSUPPORTEDThe decoder does not support this capability.
DECODER_CAP_SUPPORTEDThe decoder supports this capability.

 

Return value

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

Remarks

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.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Strmif.h (include Dshow.h)

Library

Strmiids.lib

See also

Building the DVD Filter Graph
Error and Success Codes
IAMDecoderCaps Interface

 

 

Show: