Files
Chronos/tests/Chronos.Core.Tests/Imaging
Alby96andClaude Opus 5.5 429dbcc3d8 feat(color): implement the built-in colour looks and their self-test check
The seven looks (mono, sepia, warm, cool, vivid, muted, fade) are now real:
a linear-light 3x3 matrix built from Rec.709 luminance (saturation mixed as
(1 - k)L + kI, tint gains normalised to luminance 1), a contrast power about
mid grey 0.18 and a lift, blended by strength, never clamped so the knee that
follows compresses any overshoot. The kernel is vectorised with Vector<float>
and runs the last pixels through the same kernel, padded, so a pixel's result
does not depend on its position; large frames split across cores like the
exposure processor. A double-precision scalar reference backs the tests.

The self-test gains proc.look (mono renders grey at the picture's luminance;
an unknown look is ignored with Export.Render.LookIgnored). New tests cover
the closed form per look, mono luminance, the strength midpoint, identity
byte-equality, look-then-knee order, the render capture against FrameFinish,
a median stack with mono and PNG determinism.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 19:19:12 +01:00
..