PFND3D12DDI_VIDEO_DECODE_FRAME callback function
The pfnDecodeFrame callback function records a decode frame operation to the command list.
Syntax
PFND3D12DDI_VIDEO_DECODE_FRAME pfnDecodeFrame;
VOID APIENTRY* pfnDecodeFrame(
D3D12DDI_HCOMMANDLIST hDrvCommandList,
UINT64 SubmissionID,
D3D12DDI_HVIDEODECODER hDrvDecoder,
const D3D12DDI_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *pOutputStreamArguments,
const D3D12DDI_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *pInputStreamArguments
)
{ ... }
Parameters
hDrvCommandList
The command list used to record this process frames command.SubmissionID
The submission ID is a monotonically increasing integer value. The value passed to this function must be larger than any passed decode frame submission for the decoder specified by the hDrvVideoDecoder parameter. Callers should use fences to track submission completion and then provide completed submission IDs to drivers by using pfnDecoderTrimAllocations to allow driver to manage resources associated with that decoder.hDrvDecoder
The video decoder that contains internal state for this decode session. Examples include motion vectors and internal temporary allocations.pOutputStreamArguments
The output surface and output parameters. For more information, see the D3D12DDI_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS structure.pInputStreamArguments
The input bitstream, parameters, reference frames, and other input parameters for the decode operation. For more information, see the D3D12DDI_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS structure.
Return value
This callback function does not return a value.
Requirements
Header |
D3d12umddi.h (include D3d12umddi.h) |
See also
D3D12DDI_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS
D3D12DDI_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS