Поделиться через


IAMDecoderCaps::GetDecoderCaps

 
Microsoft DirectShow 9.0

IAMDecoderCaps::GetDecoderCaps

The GetDecoderCaps method queries the decoder for its capabilities.

Syntax

  HRESULT GetDecoderCaps(
  DWORD dwCapIndex,
  DWORD* lpdwCap
);

Parameters

dwCapIndex

[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
AM_GETDECODERCAP_QUERY_EVR_SUPPORT 0x00000007 Enhanced Video Renderer (EVR) support.

lpdwCap

[out]  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.

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

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also