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

Parameters

hDevice

A handle to the display device (graphics context).

*

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

   
Windows version 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