IDirectXVideoProcessorService::GetVideoProcessorRenderTargets method

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

Syntax


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

Parameters

VideoProcDeviceGuid [in]

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

pVideoDesc [in]

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

pCount [out]

Receives the number of formats.

pFormats [out]

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 codeDescription
S_OK

The method succeeded.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Dxva2api.h

See also

IDirectXVideoProcessorService
DXVA Video Processing

 

 

Show: