PFND3D11_1DDI_CREATEVIDEOPROCESSOROUTPUTVIEW callback function

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

Syntax

PFND3D11_1DDI_CREATEVIDEOPROCESSOROUTPUTVIEW Pfnd3d111DdiCreatevideoprocessoroutputview;

HRESULT Pfnd3d111DdiCreatevideoprocessoroutputview(
   D3D10DDI_HDEVICE,
  CONST D3D11_1DDIARG_CREATEVIDEOPROCESSOROUTPUTVIEW *,
   D3D11_1DDI_HVIDEOPROCESSOROUTPUTVIEW,
   D3D11_1DDI_HRTVIDEOPROCESSOROUTPUTVIEW
)
{...}

Parameters

D3D10DDI_HDEVICE

*

D3D11_1DDI_HVIDEOPROCESSOROUTPUTVIEW

D3D11_1DDI_HRTVIDEOPROCESSOROUTPUTVIEW

Return Value

CreateVideoProcessorOutputView returns one of the following values:

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

Remarks

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

When the runtime calls CreateVideoProcessorOutputView, it passes the handle to the private data memory in the hView 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

CalcPrivateVideoProcessorOutputViewSize

D3D11_1DDIARG_CREATEVIDEODECODEROUTPUTVIEW