From 969286ae7615bb4c1fc13ad7768b8f2a8074bace Mon Sep 17 00:00:00 2001 From: arnav-hiwarkar Date: Tue, 17 Nov 2026 16:52:08 +0530 Subject: [PATCH] #3460: review: name the open follow-up for SLIDERS_0_24, use the shared pixel budget in the test The table holds only Gaussian Blur's row; the ranges changed since 0.24.1 by other work are tracked in #3815. The 30000 render test checks the buffer against crate::pixel_budget instead of a copied constant. --- crates/effects/src/misc.rs | 2 +- crates/engine/src/analysis/frames_key/legacy.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/effects/src/misc.rs b/crates/effects/src/misc.rs index 11a273888..08c2c5a73 100644 --- a/crates/effects/src/misc.rs +++ b/crates/effects/src/misc.rs @@ -1044,7 +1044,7 @@ mod tests { for repeat in [false, true] { let out = run_fx("ec.blur.gaussian", &[("blurriness", num(30000.0)), ("repeatEdge", Value::Bool(repeat))], edge(), 0.0, EffectEnv::default()); let (w, h) = (out.img.width, out.img.height); - assert!(u64::from(w) * u64::from(h) <= 16_777_216, "repeat {repeat}: {w} x {h}"); + assert!(f64::from(w) * f64::from(h) <= crate::pixel_budget(40.0, 8.0), "repeat {repeat}: {w} x {h}"); assert!(out.img.data.iter().flatten().all(|v| v.is_finite()), "repeat {repeat}"); if repeat { assert_eq!((w, h), (40, 8)); diff --git a/crates/engine/src/analysis/frames_key/legacy.rs b/crates/engine/src/analysis/frames_key/legacy.rs index 4b1b090a5..f3403b309 100644 --- a/crates/engine/src/analysis/frames_key/legacy.rs +++ b/crates/engine/src/analysis/frames_key/legacy.rs @@ -47,11 +47,12 @@ pub(crate) fn input_key_of(mut s: String, layer: &Layer, uid: Uid) -> String { format!("{:016x}", fnv(&s)) } -/// The slider ranges 0.22–0.24 gave effect parameters whose range has changed since, as +/// Slider ranges as 0.22–0.24 gave them, for parameters whose range has changed since, as /// (effect, parameter path, [min, max, slider min, slider max], decimals). Those releases hashed /// each effect's UI hints into the Roto Brush Input Key, and opening a project replaces an /// instance's hints with the current ones, so [`effect_text`] puts these back. A range change /// above a Roto Brush would otherwise drop the analysis such a key kept: add a row with it. +/// Not every range changed since 0.24.1 has its row yet (#3815). #[rustfmt::skip] const SLIDERS_0_24: &[(&str, &str, [f64; 4], u8)] = &[ ("ec.blur.gaussian", "blurriness", [0.0, 3000.0, 0.0, 50.0], 1),