lightcraft/crates/raw/tests
Brandon Thomas e87ee8e36d Issue #85: Raw: CR2 colour pattern from the file's CR2CFAPattern tag, not a constant
The Bayer layout of Canon CR2 files differs by model (GBRG on the 7D, 50D,
60D, 550D, 600D, 1200D, 1300D, 5D Mark II, 1D Mark IV; RGGB on the 40D,
5D Mark III, 6D, 5DS R and others). Read it from raw IFD tag 0xc5e0
(CR2CFAPattern: 1 RGGB, 2 BGGR, 3 GBRG, 4 GRBG), anchored at the full
decoded sensor; fall back to RGGB when the tag is missing. No model table.

Checked on 35 decoded CC0 raw.pixls.us CR2s (35 models): the tag agrees
with the mosaic's green-diagonal statistic on every file; the SensorInfo
border parity does not predict the layout. Corpus manifest gains the
reporter's samples; a corpus test asserts each layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 07:24:26 -04:00
..
corpus.rs Issue #85: Raw: CR2 colour pattern from the file's CR2CFAPattern tag, not a constant 2026-10-05 07:24:26 -04:00
dng.rs LR-IMP-FORMATS: decode lossy (DCT JPEG) DNG — Smart Previews and lossy DNG exports 2026-10-02 20:51:15 -04:00
robust.proptest-regressions M5.4b: faster raw path — bin previews/thumbnails straight from the mosaic 2026-10-01 09:01:53 -04:00
robust.rs M3.2-M3.6: lightcraft-raw DNG, LJ92, demosaic, highlights, DNG colour 2026-09-30 11:33:19 -04:00
vendor_robust.rs Never crash: raw and tiff decoders free of panicking calls 2026-10-04 12:00:26 -04:00