Content-Aware Fill: drop redundant full-range copies (#2570 phase 1) (#2806)

* Content-Aware Fill: drop redundant full-range copies (#2570 phase 1)

* Content-Aware Fill: fix clippy drop_non_drop; take propagated frames instead of cloning (#2570)

---------

Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
This commit is contained in:
gmrmad1
2026-11-04 18:12:39 +01:00
committed by GitHub
co-authored by FredApps
parent bb78d55825
commit eae1871541
3 changed files with 23 additions and 14 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ pub(crate) async fn run_plan(
let input = FillInput { frames, holes, references };
let cpu = effectcraft_raster::inpaint::CpuFill;
let backend: &dyn effectcraft_raster::inpaint::FillBackend = fill.unwrap_or(&cpu);
let out = effectcraft_raster::inpaint::fill_sequence_with(&input, &opts, backend, &mut |d, t| progress(n + (d as u64 * n / t.max(1) as u64), n * 3))
let out = effectcraft_raster::inpaint::fill_sequence_with(input, &opts, backend, &mut |d, t| progress(n + (d as u64 * n / t.max(1) as u64), n * 3))
.ok_or(crate::render_queue::CANCELLED)?;
message("Writing the fill layer");
let dir = &plan.dir;