Files
photocraft/crates
RickiNano bf330293cb Content-Aware Move: exact 8-bit rounding and a bounded no-pixels scan (#12192)
Review follow-up. A pixel counts as selected exactly when the selection's
coverage8 stores it nonzero: the least such coverage is found once by
bisecting the f32 bits, so the scan stays one compare per pixel.

The scan no longer costs more than the select.lasso it replaces: strips
start at 64 rows and double up to about 4 MP, and each strip is checked
in parallel, branch-free blocks (sequential on wasm). A corner-to-corner
line on 7360 x 4912 now takes 25-32 ms (was 65-73 ms; select.lasso took
23-27 ms). A lasso that selects is still answered after the first strip.

Adds a test for a lasso over pixel centres with Anti-alias off.
2026-11-08 18:59:50 +01:00
..
…
…
…
…
…
…
…