D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS structure (d3d12video.h)

Represents input arguments to ID3D12VideoEncodeCommandList2::EncodeFrame.

Syntax

typedef struct D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS {
  D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC SequenceControlDesc;
  D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESC  PictureControlDesc;
  ID3D12Resource                            *pInputFrame;
  UINT                                      InputFrameSubresource;
  UINT                                      CurrentFrameBitstreamMetadataSize;
} D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS;

Members

SequenceControlDesc

A D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC specifying the configuration for the video sequence

PictureControlDesc

A D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESC specifying the configuration for the video picture.

pInputFrame

An ID3D12Resource representing the frame to encode.

InputFrameSubresource

A UINT64 specifying the subresource index for pInputFrame.

CurrentFrameBitstreamMetadataSize

A UINT64 specifying the number of bytes added to the final bitstream between the end of the last EncodeFrame compressed bitstream output and the current call output. This is intended to capture the size of any headers or metadata messages added by the client to the final bitstream which are used as a hint by the rate control algorithms to keep track of the full bitstream size.

Requirements

Requirement Value
Minimum supported client Windows Build 22000
Minimum supported server Windows Build 22000
Header d3d12video.h