PFND3DDDI_CREATEVIDEOPROCESSDEVICE callback function (d3dumddi.h)

The CreateVideoProcessDevice function creates a Microsoft DirectX Video Acceleration (DirectX VA) video processing device that is used to process video (for example, to deinterlace the video and adjust ProcAmp properties of the video).

Syntax

PFND3DDDI_CREATEVIDEOPROCESSDEVICE Pfnd3dddiCreatevideoprocessdevice;

HRESULT Pfnd3dddiCreatevideoprocessdevice(
  HANDLE hDevice,
  D3DDDIARG_CREATEVIDEOPROCESSDEVICE *unnamedParam2
)
{...}

Parameters

hDevice

A handle to the display device (graphics context).

unnamedParam2

pData [in, out]

A pointer to a D3DDDIARG_CREATEVIDEOPROCESSDEVICE structure. On input, contains information that the driver can use. On output, the driver specifies information that the Microsoft Direct3D runtime can use.

Return value

CreateVideoProcessDevice returns one of the following values:

Return code Description
S_OK The video processing device is successfully created.
E_OUTOFMEMORY CreateVideoProcessDevice could not allocate the required memory for it to complete.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_CREATEVIDEOPROCESSDEVICE

DestroyVideoProcessDevice