Skip to content

EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust

export: the yuv420 fast path checks the effective scale too

midasmatterhorn3217320c1c81
diff --git a/crates/export/src/pipeline.rs b/crates/export/src/pipeline.rs
index 28bd3ecc7..66c2177be 100644
--- a/crates/export/src/pipeline.rs
+++ b/crates/export/src/pipeline.rs
@@ -389,7 +389,7 @@ impl<'a> Cx<'a> {
return None;
}
let om = self.job.output;
- let scale = self.job.settings.resolution.clamp(0.01, 4.0);
+ let scale = self.job.settings.effective_scale(comp);
let size = |n: u32| ((n as f64 * scale).round() as u32).max(1);
if om.resize.enabled || (size(comp.width), size(comp.height)) != (w, h) || om.crop.edges(w, h, scale) != (0, 0, 0, 0) {
return None;