Two revision rows from this PR, and two older LR-IMP-FORMATS ones, sat in the six-column
A. Import table instead of the revision history. Found by CodeRabbit on #2092.
To make room for the pooled extension in the curve's 32 knots, extend_tone kept every
n-th knot of the photo's own curve, which could move the curve inside the range its JPEG
showed (a sharp toe most). It now drops the knots the curve needs least, one at a time,
within one 8-bit code (thinned_knots); with fewer extension knots if needed, or the
photo's curve as fitted when even two don't fit. On a D750 bracket renders move by at
most dE 0.09. LOOK_VERSION 13. Found by CodeRabbit on #2093.
profile_samples returned nothing when collect_pairs found no colour pairs, so the darkest
photos, the ones that show the camera's toe, never reached the pooled tone curve. Their
tone samples are now kept; Pool counts them apart from the colour fit's photos and
calibrate reports them as tone only. A black-and-white camera JPEG (a monochrome picture
style's own mix and curve) gives nothing, as before. Found by CodeRabbit on #2093.
The pooled curve maps luminance through the profile's matrix. A photo whose own fit
rejected the profile's colour renders through its own matrix, so continuing its curve
along the pooled one gave it a highlight mapping fitted to other colours. Such a look now
keeps its curve as fitted (with_pooled_tone). LOOK_VERSION 12. Found by CodeRabbit on #2093.
fit_profile_tone clamped each channel at zero after the profile matrix before taking
luminance. Raw decoding keeps negative channels and the camera curve gets their
unclamped luminance, so saturated colours were fitted at a different input than they
render at (a magenta with negative green read 30% brighter). Found by CodeRabbit on #2092.
lightcraft-cli calibrate also pools tone samples (camera RGB -> camera JPEG
luminance, dark pixels included) and fits one curve per camera by quantile
matching; profiles store it as an optional `tone` field (older profiles and
builds still load). A photo keeps its own curve as far as its JPEG showed it and
follows the pooled curve past that, faded over 1 EV (extend_tone), instead of
the bounded shoulder that rendered underexposed photos pushed back up 4-7 L*
too dark; a photo no look fits takes the pooled curve whole.
On NIKON D780 brackets, pushed frames now match the properly exposed frame
within 0.5 L*; on 120 held-out D780/D750/D90 photos rendered as shot the curve
changes mean dE against the camera JPEG by at most 0.03.
LOOK_VERSION 11.
A photo whose camera JPEG is too dark (or too colourless) for any look to fit
dropped its camera profile's colour for the neutral fallback. It now keeps the
profile's colour, with the JPEG's tone curve when one fits, else the default raw
tone curve (CameraTone::default_raw). On NIKON D780 frames 3.7 EV under, pushed
back up, colourfulness goes from 37% of the properly exposed frame's to 88-99%.
LOOK_VERSION 10, RENDER_CACHE_VERSION 65.
Decoding clamped each linear Rec.2020 channel at zero after the colour matrix.
Near black those values are sensor noise, and the clamp kept only the positive
half of each channel's noise: through a saturating camera matrix red and blue
have the widest noise, so pushed shadows and dark frames came out magenta (a
black frame pushed 4 EV: sRGB (64, 28, 65) in its darkest 40%, (2, 4, 4) now).
Negative channels now pass through to noise reduction and the output gamut
mapping, which already moves colours toward their luminance until in range;
only non-finite values are zeroed. Moving each negative colour toward its
luminance at decode instead still left it pink ((34, 14, 22)).
RENDER_CACHE_VERSION 66.
`cargo xtask ci` fails with the craft-fonts input supplied, which CLAUDE.md says
releases always build with:
ka in Proportional (faces: ["Noto Sans Georgian"]) lack glyphs: ✕
Two strings in ka.json use ✕ (U+2715). Noto Sans Georgian has no glyph for it
and egui's bundled fonts do not either, so a Georgian reader gets a blank where
the text describes the activity stack's stop control. Without the fonts input
those twenty tests skip, so a plain `cargo xtask ci` is green and this stayed
invisible.
The two Georgian values use × (U+00D7) instead: it reads the same at text size
and every face has it. The English keys are untouched — they are the source text
from docs/whats-new.md, and the test checks values, which is the right scope. An
English reader's font covers ✕; the problem is a translation carrying it into a
script whose face does not.
`translated_catalogs_do_not_use_missing_menu_triangles` already forbids ▸ and ▾
in locale JSON for the same reason, so ✕ joins them in one list. That matters
because ✕ is in the English source of those two strings: every language that
translates them next would hit the same failure, and a cheap test now catches it
instead of the font-dependent one.