IDirectXVideoDecoderService::GetDecoderRenderTargets method

Retrieves the supported render targets for a specified decoder device.

Syntax

HRESULT GetDecoderRenderTargets(
  REFGUID   Guid,
  UINT      *pCount,
  D3DFORMAT **pFormats
);

Parameters

Guid

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

pCount

Receives the number of formats.

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

   
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