EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
Merge #2027: Fix #1708: calibrate CC Blobbylize from the AE oracle (@ki2pixel)
aiongg017d08bbd0f1
diff --cc crates/gpu/src/tests.rsindex f825b121a,1fad0e6cd..aa69820ab--- a/crates/gpu/src/tests.rs+++ b/crates/gpu/src/tests.rs@@@ -481,9 -453,12 +482,12 @@@ pub(crate) fn effect_direct(id: &str, vlet ctx = || effectcraft_effects::EffectCtx { params: ¶ms, time: 0.25, layer_size: size, seed: 11, adjustment, env: Default::default() };let cpu = (spec.render)(&ctx(), buf.clone());let out = effectcraft_render::Accelerator::effects(g, &[effectcraft_render::FxStep { spec, ctx: ctx() }], &buf, None).expect("the GPU runs the effect");+ if expect_empty {+ assert!(out.img.data.iter().all(|p| p[3] == 0.0), "{id} {vals:?} adj {adjustment} scale {scale}: Cut Away 100 produced non-zero alpha");+ }assert_eq!((out.offset, out.scale), (cpu.offset, cpu.scale), "{id}: geometry");let d = diff(&cpu.img, &out.img, 1e-3);- let allow = if on_gl() { (d.total as f64 * GL_BOUNDARY_FLIPS) as usize } else { 0 };+ let allow = if boundary_flips_allowed() { (d.total as f64 * GL_BOUNDARY_FLIPS) as usize } else { 0 };assert!(d.over <= allow,"{id} {vals:?} adj {adjustment} scale {scale}: {} of {} pixels over 1e-3 (max {}); worst {:?}",