PFND3DDDI_CREATEVIDEOPROCESSDEVICE callback function

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 *Arg2
)
{...}

Parameters

hDevice

A handle to the display device (graphics context).

Arg2

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

   
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