IDirectXVideoProcessorService::GetVideoProcessorRenderTargets method (dxva2api.h)

Gets the render target formats that a video processor device supports. The list may include RGB and YUV formats.


HRESULT GetVideoProcessorRenderTargets(
  [in]  REFGUID               VideoProcDeviceGuid,
  [in]  const DXVA2_VideoDesc *pVideoDesc,
  [out] UINT                  *pCount,
  [out] D3DFORMAT             **pFormats


[in] VideoProcDeviceGuid

A GUID that identifies the video processor device. To get the list of video processor GUIDs, call IDirectXVideoProcessorService::GetVideoProcessorDeviceGuids.

[in] pVideoDesc

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

[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
The method succeeded.


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

DXVA Video Processing