D3D12DDI_VIDEO_ENCODER_RATE_CONTROL_0080_2 structure (d3d12umddi.h)
The D3D12DDI_VIDEO_ENCODER_RATE_CONTROL_0080_2 structure specifies the rate control configuration.
Syntax
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;
Members
Mode
A D3D12DDI_VIDEO_ENCODER_RATE_CONTROL_MODE_0080 value that specifies the rate control mode.
Flags
A D3D12DDI_VIDEO_ENCODER_RATE_CONTROL_FLAGS_0080 value that specifies the flags for rate control.
ConfigParams
A 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.
TargetFrameRate
A DXGI_RATIONAL structure that indicates the target frame rate for the encoded stream. This value is a hint for the rate control budgeting algorithm.
Remarks
See D3D12 video encoding for general information.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 11 (WDDM 3.0) |
Header | d3d12umddi.h |