Ported from storytold/lightcraft#672, whose decoder code now lives here.
Some CCD Coolpix bodies store two interlaced fields one after the other in
one tight 12-bit strip. For the measured bodies, in their measured legacy
layout (binary maker-note version 0.2.0.0, compression 1, one strip of
w*h*1.5 bytes), the fields are interleaved in the model's field order. The
E5700's CYGM mosaic becomes approximate linear RGB with fixed gains.
Masked columns are judged on the stored rows, so the header probe and the
full decode agree. Other files keep their stored rows.
Checked on 527 NEF/NRW samples: only the six E5400/E5700/E8400/E8800 files
(and four synthetic legacy-layout fixtures) change; the other 517 decode
bit-identically.
Claude-Session: https://claude.ai/code/session_01Fnx9MwPUug72xHRgg993uc
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Reads the camera's white-balance presets as a Kelvin curve where the
decoders gave none:
- CR2 ColorData versions 1 to 12 (5-word records), version 10 at either
of its two layouts, picked by the Daylight record's 5200 K;
- CR3 ColorData versions 16-19, 32-34, 48 and 64-66;
- PEF maker note 0x0221 (entries of 53190 - K and the red/blue
multipliers);
- RW2/RWL/RAW tag 0x0027: the D55 and 3200 K studio tungsten
multipliers as a neutral pair with their chromaticities
(KelvinPresets::from_neutral_lights / neutral_lights).
Ported from storytold/lightcraft#2527.
Claude-Session: https://claude.ai/code/session_01Fnx9MwPUug72xHRgg993uc
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A DNG tile's frame may hold at most twice the tile's samples and a Sony
quad tile's at most the tile's samples, with no 65,536-sample floor. The
floor let each of many tiny tiles decode and keep a frame far larger than
the tile budget counts (storytold/lightcraft#4024). A DNG tile also drops
the surplus capacity of a larger frame after the resize.
Claude-Session: https://claude.ai/code/session_01Fnx9MwPUug72xHRgg993uc
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
One rustfmt call with every source root of the workspace is now longer
than a Windows command line may be (os error 206). rustfmt's result is
the same on every system; the Linux and macOS legs keep checking it.
The lint-command guard states the per-system stages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35e0352666 is the head of a deleted, squash-merged branch and is
reachable only through its pull request ref. d94a3593ad is main's head.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>