Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CreateVideoProcessorOutputView routine

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

Syntax


HRESULT APIENTRY* CreateVideoProcessorOutputView(
  _In_  D3D10DDI_HDEVICE hDevice,
  _In_  const D3D11_1DDIARG_CREATEVIDEOPROCESSOROUTPUTVIEW *pCreateData,
  _In_  D3D11_1DDI_HVIDEOPROCESSOROUTPUTVIEW hView,
  _In_  D3D11_1DDI_HRTVIDEOPROCESSOROUTPUTVIEW hRTView
);

Parameters

hDevice [in]

A handle to the display device (graphics context).

pCreateData [in]

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

hView [in]

A handle to the driver's private data for the video processor output view. For more information, see the Remarks section.

hRTView [in]

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

Return value

CreateVideoProcessorOutputView returns one of the following values:

Return codeDescription
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

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

D3d10umddi.h (include D3d10umddi.h)

See also

CalcPrivateVideoProcessorOutputViewSize
D3D11_1DDIARG_CREATEVIDEODECODEROUTPUTVIEW

 

 

Send comments about this topic to Microsoft

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.