IDirectXVideoDecoderService::GetDecoderConfigurations method

Gets the configurations that are available for a decoder device.

Syntax


HRESULT GetDecoderConfigurations(
  [in]        REFGUID                   Guid,
  [in]  const DXVA2_VideoDesc           *pVideoDesc,
  [in]        IUnknown                  *pReserved,
  [out]       UINT                      *pCount,
  [out]       DXVA2_ConfigPictureDecode **ppConfigs
);

Parameters

Guid [in]

A GUID that identifies the decoder device. To get the available device GUIDs, call IDirectXVideoDecoderService::GetDecoderDeviceGuids.

pVideoDesc [in]

A pointer to a DXVA2_VideoDesc structure that describes the video content.

pReserved [in]

Reserved. Set to NULL.

pCount [out]

Receives the number of configurations.

ppConfigs [out]

Receives an array of DXVA2_ConfigPictureDecode structures. The size of the array is retrieved in the pCount parameter. The caller must free the memory for the array by calling CoTaskMemFree. This parameter can be NULL if you simply want the number of configurations (returned in pCount) but not the GUIDs.

Return value

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

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Dxva2api.h

See also

DXVA2_ConfigPictureDecode
IDirectXVideoDecoderService
DirectX Video Acceleration 2.0

 

 

Show: