// d3d12umddi.h
typedef struct D3D12DDI_VIDEO_ENCODER_RATE_CONTROL_0080_2 {
D3D12DDI_VIDEO_ENCODER_RATE_CONTROL_MODE_0080 Mode;
D3D12DDI_VIDEO_ENCODER_RATE_CONTROL_FLAGS_0080 Flags;
D3D12DDI_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS_0080_2 ConfigParams;
DXGI_RATIONAL TargetFrameRate;
} D3D12DDI_VIDEO_ENCODER_RATE_CONTROL_0080_2;
View the official Windows Driver Kit DDI referenceNo description available.
The D3D12DDI_VIDEO_ENCODER_RATE_CONTROL_0080_2 structure specifies the rate control configuration.
ModeA D3D12DDI_VIDEO_ENCODER_RATE_CONTROL_MODE_0080 value that specifies the rate control mode.
FlagsA D3D12DDI_VIDEO_ENCODER_RATE_CONTROL_FLAGS_0080 value that specifies the flags for rate control.
ConfigParamsA D3D12DDI_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS_0080_2 structure whose members point to specific configuration structures based on Mode. For absolute quantization parameter (QP) matrix mode, the configuration arguments are provided on a per EncodeFrame basis.
If Mode is D3D12DDI_VIDEO_ENCODER_RATE_CONTROL_MODE_0080_ABSOLUTE_QP_MAP, the QP values in pRateControlQPMap are used as absolute QP values.
For the other rate control modes, the QP values in pRateControlQPMap are interpreted as a delta QP map to be used for the current frame encode operation. The values provided in the map are incremented/decremented on top of the QP values decided by the rate control algorithm or the baseline QP constant set in CQP mode.
TargetFrameRateA DXGI_RATIONAL structure that indicates the target frame rate for the encoded stream. This value is a hint for the rate control budgeting algorithm.
See D3D12 video encoding for general information.
D3D12DDI_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC_0082_0
PFND3D12DDI_VIDEO_ENCODE_FRAME_0082_0