IDirectXVideoDecoderService::GetDecoderRenderTargets method (dxva2api.h)

Retrieves the supported render targets for a specified decoder device.

Syntax

HRESULT GetDecoderRenderTargets(
  [in]  REFGUID   Guid,
  [out] UINT      *pCount,
  [out] D3DFORMAT **pFormats
);

Parameters

[in] Guid

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

[out] pCount

Receives the number of formats.

[out] pFormats

Receives an array of formats, specified as D3DFORMAT values. The size of the array is retrieved in the pCount parameter. The method allocates the memory for the array. The caller must free the memory by calling CoTaskMemFree.

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.

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

DirectX Video Acceleration 2.0

IDirectXVideoDecoderService