PFND3D11_1DDI_CREATEVIDEOPROCESSOR callback function

Creates a video processor object.

Syntax

PFND3D11_1DDI_CREATEVIDEOPROCESSOR Pfnd3d111DdiCreatevideoprocessor;

HRESULT Pfnd3d111DdiCreatevideoprocessor(
   D3D10DDI_HDEVICE,
  CONST D3D11_1DDIARG_CREATEVIDEOPROCESSOR *,
   D3D11_1DDI_HVIDEOPROCESSOR,
   D3D11_1DDI_HRTVIDEOPROCESSOR
)
{...}

Parameters

D3D10DDI_HDEVICE

*

D3D11_1DDI_HVIDEOPROCESSOR

D3D11_1DDI_HRTVIDEOPROCESSOR

Return Value

CreateVideoProcessor returns one of the following values:

Return code Description
S_OK
The video processor object was created successfully.
D3DDDIERR_DEVICEREMOVED
The graphics adapter was removed.
E_OUTOFMEMORY
Memory was not available to complete the operation.

Remarks

The CreateVideoProcessor function creates a video processor object that contains specific capabilities and state. Multiple video processor objects can exist at the same time, each with its own unique state.

The Direct3D runtime calls CreateVideoProcessor after it has called the driver's CalcPrivateVideoProcessorSize to determine the size in bytes for the private data that the driver requires for the video processor object. The runtime allocates the memory for this private data for the driver. The driver uses this memory to store private data that is related to the video processor object.

When the runtime calls CreateVideoProcessor, it passes the handle to the private data memory in the hProcessor parameter. This handle is actually a pointer to the memory.

Requirements

   
Windows version Windows 8 Windows Server 2012
Target Platform Desktop
Header d3d10umddi.h (include D3d10umddi.h)

See Also

CalcPrivateVideoProcessorSize

D3D11_1DDIARG_CREATEVIDEOPROCESSOR