mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-26 19:17:02 -06:00
The 2668-entry table read off the black-box oracle's output is gone. arw6_curve.rs now builds the 4096-entry table at first use from our own measurement: piecewise linear through knots u_k = 128 k, c_k = u_k for k <= 11 and 356.89 + 655.646 ln(k - 6) above, rounded half up, fitted to the 7 same-exposure lossless (LJ92) / ARW6 pairs of the CC0 ILCE-7RM6 set. A unit test pins the whole table (sum 27776336, weighted 92792980288), its anchors, the identity through 1408 and strict monotonicity. The corpus sums become regression values of the new output; the 12-bit codes before the curve stay verified against the oracle (Phase 0). docs/arw6-compression.md describes the curve, how it was measured, its uncertainty, the structure and x2-scale evidence, why it is not in the file, and the after-the-fact comparison with the oracle's curve; the tracker and docs no longer call the output bit-exact against LibRaw. Co-Authored-By: Claude <noreply@anthropic.com>