IDirectXVideoDecoderService::GetDecoderConfigurations method

Gets the configurations that are available for a decoder device.

Syntax

HRESULT GetDecoderConfigurations(
  REFGUID                   Guid,
  const DXVA2_VideoDesc     *pVideoDesc,
  void                      *pReserved,
  UINT                      *pCount,
  DXVA2_ConfigPictureDecode **ppConfigs
);

Parameters

Guid

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

pVideoDesc

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

pReserved

Reserved. Set to NULL.

pCount

Receives the number of configurations.

ppConfigs

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]
Target Platform Windows
Header dxva2api.h

See also

DXVA2_ConfigPictureDecode

DirectX Video Acceleration 2.0

IDirectXVideoDecoderService