D3D12DDI_VIDEO_ENCODER_ENCODEFRAME_INPUT_STREAM_ARGUMENTS_0082_0 structure (d3d12umddi.h)

The D3D12DDI_VIDEO_ENCODER_ENCODEFRAME_INPUT_STREAM_ARGUMENTS_0082_0 structure contains the input sequence and picture control parameters for a video encode operation.

Syntax

typedef struct D3D12DDI_VIDEO_ENCODER_ENCODEFRAME_INPUT_STREAM_ARGUMENTS_0082_0 {
  D3D12DDI_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC_0082_0 SequenceControlDesc;
  D3D12DDI_VIDEO_ENCODER_PICTURE_CONTROL_DESC_0082_0  PictureControlDesc;
  D3D12DDI_HRESOURCE                                  hDrvInputTexture2D;
  UINT                                                InputFrameSubresource;
  UINT                                                CurrentFrameBitstreamMetadataSize;
} D3D12DDI_VIDEO_ENCODER_ENCODEFRAME_INPUT_STREAM_ARGUMENTS_0082_0;

Members

SequenceControlDesc

A D3D12DDI_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC_0082_0 structure that defines the configuration for the video sequence.

PictureControlDesc

A D3D12DDI_VIDEO_ENCODER_PICTURE_CONTROL_DESC_0082_0 structure that defines the configuration for the video picture.

hDrvInputTexture2D

Handle to the input frame to encode. This input frame is a D3D12 resource that can be consumed by other portions of the pipeline and therefore must not have the D3D12DDI_RESOURCE_FLAG_0080_VIDEO_ENCODE_REFERENCE_ONLY flag set.

InputFrameSubresource

The sub-resource index for the hDrvInputTexture2D resource.

CurrentFrameBitstreamMetadataSize

Number of bytes added to the final bitstream between the end of the last PFND3D12DDI_VIDEO_ENCODE_FRAME_0082_0 compressed bitstream output and the current call output. This member is intended to capture the size of any headers or metadata messages added by the client to the final bitstream. It is intended to be used as a hint by the rate control algorithms to keep track of the full bitstream size.

Remarks

See D3D12 video encoding for general information.

Requirements

Requirement Value
Minimum supported client Windows 11 (WDDM 3.0)
Header d3d12umddi.h

See also

D3D12DDI_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_STREAM_ARGUMENTS_0080_2

PFND3D12DDI_VIDEO_ENCODE_FRAME_0082_0