Skip to main content

QP_HYSTERESIS_LIMIT

Constant QP_HYSTERESIS_LIMIT 

Source
pub(crate) const QP_HYSTERESIS_LIMIT: u32 = 60;
Expand description

Damps visible quality “blinking”: the number of consecutive frames a QP increase (a quality drop under sustained motion) must be requested before a fixed-QP encoder commits it. Moving the quantizer costs a codec re-open (x265, kvazaar, SVT-AV1) or a full encoder rebuild (OpenH264), and either forces a key frame, so acting on every transient increase — and then reversing it as motion settles — would make the picture pulse. Quality increases (a lower QP, e.g. a paint-over refresh) apply at once and never wait. Shared so the fixed-QP encoders cannot disagree about how long a drop must persist.