IDirectXVideoMemoryConfiguration::GetAvailableSurfaceTypeByIndex method (dxva2api.h)

Retrieves a supported video surface type.

Syntax

HRESULT GetAvailableSurfaceTypeByIndex(
  [in]  DWORD             dwTypeIndex,
  [out] DXVA2_SurfaceType *pdwType
);

Parameters

[in] dwTypeIndex

Zero-based index of the surface type to retrieve. Surface types are indexed in order of preference, starting with the most preferred type.

[out] pdwType

Receives a member of the DXVA2_SurfaceType enumeration that specifies the surface type.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
MF_E_NO_MORE_TYPES
The index was out of range.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header dxva2api.h

See also

IDirectXVideoMemoryConfiguration

Supporting DXVA 2.0 in DirectShow