IDirectXVideoProcessorService::CreateVideoProcessor method (dxva2api.h)

Creates a video processor device.

Syntax

HRESULT CreateVideoProcessor(
  REFGUID                VideoProcDeviceGuid,
  const DXVA2_VideoDesc  *pVideoDesc,
  D3DFORMAT              RenderTargetFormat,
  UINT                   MaxNumSubStreams,
  IDirectXVideoProcessor **ppVidProcess
);

Parameters

VideoProcDeviceGuid

A GUID that specifies the video processor to create. To get the list of video processor GUIDs, call IDirectXVideoProcessorService::GetVideoProcessorDeviceGuids.

pVideoDesc

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

RenderTargetFormat

The format of the render target surface, specified as a D3DFORMAT value. For more information, see the Direct3D documentation. You can also use a FOURCC code to specify a format that is not defined in the D3DFORMAT enumeration. See Video FOURCCs.

MaxNumSubStreams

The maximum number of substreams that will be used with this device.

ppVidProcess

Receives a pointer to the video processor's IDirectXVideoProcessor interface. The caller must release the interface.

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

DXVA Video Processing

IDirectXVideoProcessorService