IDirectXVideoDecoderService::GetDecoderConfigurations method (dxva2api.h)

Gets the configurations that are available for a decoder device.

Syntax

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

Parameters

[in] Guid

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

[in] pVideoDesc

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

[in] pReserved

Reserved. Set to NULL.

[out] pCount

Receives the number of configurations.

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

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

DXVA2_ConfigPictureDecode

DirectX Video Acceleration 2.0

IDirectXVideoDecoderService