Files
photocraft/crates
hnoerenberg 73dc8e2f82 test(algo): keep the unmeasured #14191 guards pinned across libms
The two guard tests failed on the ubuntu-24.04 gate job (run
43833457124) while they pass bit for bit on Windows: colour
adaptation High gives (300,180) 64 instead of 65, rotation Low gives
(285,220) 118 instead of 119, every other channel matches. Not a
change from main: no commit between f143ce5849, where the samples
were captured, and the branch parent eea585958 touches
content_aware or inpaint, and the pins also hold here at
RAYON_NUM_THREADS 4, 2 and 1. The vote that blends the seams between
the copied pieces weights the patches with (-cost / (2 sigma2)).exp()
of the host C library (inpaint/solver.rs); two samples sit right on a
level boundary and round one level apart between glibc and the
Windows runtime.

Compare the nine samples of each option set within 2 levels per
channel instead of bit for bit, list every sample over that slack in
the failure message, and say in the code why. All 27 pinned values
stay and the guard intent stays: unmeasured option sets keep today's
fill. The pin still bites, because the structure path this PR adds
moves these samples by tens of levels, 60 at (300,165) alone.
2026-11-16 14:33:22 +01:00
..
…
…
…