PFND3D11_1DDI_VIDEODECODERBEGINFRAME - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3d10umddi.h

PFND3D11_1DDI_VIDEODECODERBEGINFRAME Pfnd3d111DdiVideodecoderbeginframe;

HRESULT Pfnd3d111DdiVideodecoderbeginframe(
  D3D10DDI_HDEVICE unnamedParam1,
  D3D11_1DDI_HDECODE unnamedParam2,
  const D3D11_1DDIARG_VIDEODECODERBEGINFRAME *unnamedParam3
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-d3d10umddi-pfnd3d11_1ddi_videodecoderbeginframe)

PFND3D11_1DDI_VIDEODECODERBEGINFRAME callback function

Description

Starts a DirectX Video Acceleration (DXVA) decoding operation to decode a video frame.

Parameters

unnamedParam1

hDevice [in]

A handle to the display device (graphics context).

unnamedParam2

hDecoder [in]

A handle to the video decoder object that was created through a call to the CreateVideoDecoder function.

unnamedParam3

pBeginFrame [in]

A pointer to a D3D11_1DDIARG_VIDEODECODERBEGINFRAME structure. For more information, see the Remarks section.

Return value

VideoDecoderBeginFrame returns one of the following values:

Return code Description
S_OK The decoding operation was started successfully.
E_OUTOFMEMORY Memory was not available to complete the operation.

Remarks

If the VideoDecoderBeginFrame returns S_OK, the Microsoft Direct3D runtime calls the VideoDecoderSubmitBuffers function to perform the decoding operations. When all decoding operations have been executed, the runtime calls the VideoDecoderEndFrame function to stop the decoding operation on a video frame.

Note Each call to VideoDecoderBeginFrame must have a matching call to VideoDecoderEndFrame, and VideoDecoderBeginFrame calls cannot be nested.

The D3D11_1DDIARG_VIDEODECODERBEGINFRAME structure contains the following data:

See also

CreateVideoDecoder

VideoDecoderEndFrame

VideoDecoderSubmitBuffers