PFND3D11_1DDI_CREATEVIDEODECODEROUTPUTVIEW callback function

Creates a resource view for a video decoder. This view defines the output sample for the video decoding operation.

Syntax

PFND3D11_1DDI_CREATEVIDEODECODEROUTPUTVIEW Pfnd3d111DdiCreatevideodecoderoutputview;

HRESULT Pfnd3d111DdiCreatevideodecoderoutputview(
  D3D10DDI_HDEVICE Arg1,
  const D3D11_1DDIARG_CREATEVIDEODECODEROUTPUTVIEW *Arg2,
  D3D11_1DDI_HVIDEODECODEROUTPUTVIEW Arg3,
  D3D11_1DDI_HRTVIDEODECODEROUTPUTVIEW Arg4
)
{...}

Parameters

Arg1

hDevice [in]

A handle to the display device (graphics context).

Arg2

pCreateData [in]

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

Arg3

hRTView [in]

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

Arg4

Return Value

CreateVideoDecoderOutputView returns one of the following values:

Return code Description
S_OK The video decoder 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 CreateVideoDecoderOutputView 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 decoder 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 decoder object.

When the runtime calls CreateVideoDecoderOutputView, 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
Target Platform Desktop
Header d3d10umddi.h (include D3d10umddi.h)

See Also

CalcPrivateVideoProcessorOutputViewSize

D3D11_1DDIARG_CREATEVIDEODECODER

NegotiateCryptoSessionKeyExchange

VideoDecoderBeginFrame