Bewerken

Delen via


PFND3D11_1DDI_CREATEVIDEOPROCESSORINPUTVIEW callback function (d3d10umddi.h)

Creates a resource view for a video processor. This view defines the input sample for the video processing operation.

Syntax

PFND3D11_1DDI_CREATEVIDEOPROCESSORINPUTVIEW Pfnd3d111DdiCreatevideoprocessorinputview;

HRESULT Pfnd3d111DdiCreatevideoprocessorinputview(
  D3D10DDI_HDEVICE unnamedParam1,
  const D3D11_1DDIARG_CREATEVIDEOPROCESSORINPUTVIEW *unnamedParam2,
  D3D11_1DDI_HVIDEOPROCESSORINPUTVIEW unnamedParam3,
  D3D11_1DDI_HRTVIDEOPROCESSORINPUTVIEW unnamedParam4
)
{...}

Parameters

unnamedParam1

hDevice [in]

A handle to the display device (graphics context).

unnamedParam2

pView [in]

A pointer to a D3D11_1DDIARG_CREATEVIDEOPROCESSORINPUTVIEW structure. This structure specifies the attributes of the video processor input view to be created.

unnamedParam3

hView [in]

A handle to the driver's private data for the video processor input.

unnamedParam4

hRTView [in]

A handle to the video processor input that the driver should use when it calls back into the Direct3D runtime.

Return value

CreateVideoProcessorInputView returns one of the following values:

Return code Description
S_OK The video processor input view was created successfully.
D3DDDIERR_DEVICEREMOVED The graphics adapter was removed.
DXGI_ERROR_UNSUPPORTED The D3D11_1DDIARG_CREATEVIDEOPROCESSORINPUTVIEW contained incorrect or unsupported data. For example, the driver should return DXGI_ERROR_UNSUPPORTED if the FourCC member specified an unsupported code value.
E_OUTOFMEMORY Memory was not available to complete the operation.

Remarks

The Direct3D runtime calls CreateVideoProcessorInputView after it has called the driver's CalcPrivateVideoProcessorInputViewSize to determine the size in bytes for the private data that the driver requires for the video processor input view. 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 input view.

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

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Desktop
Header d3d10umddi.h (include D3d10umddi.h)

See also

CalcPrivateVideoProcessorInputViewSize

D3D11_1DDIARG_CREATEVIDEOPROCESSORINPUTVIEW