IDirectXVideoMemoryConfiguration::GetAvailableSurfaceTypeByIndex method

Retrieves a supported video surface type.

Syntax


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

Parameters

dwTypeIndex [in]

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

pdwType [out]

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 codeDescription
S_OK

The method succeeded.

MF_E_NO_MORE_TYPES

The index was out of range.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Dxva2api.h

See also

IDirectXVideoMemoryConfiguration
Supporting DXVA 2.0 in DirectShow

 

 

Show: