* Add a craft-raw decoder comparison example
* Clean up RAW decoder report test fixtures
* craft-raw: say the report hashes decoded samples and which revisions build it
The digest covers RawImage::data, after any decoder linearization, so the
README now says "decoded samples" and explains that two stored codes that
map to the same value give the same digest.
The copy-into-an-older-checkout instructions now name the first main
revision the example builds on (ecee6933, #1171): older revisions have no
Cfa origin fields.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The DNG integration target also runs when JPEG XL decoding is disabled.
Gate the five JPEG XL cases and their fixture helpers on the jxl feature
so a DNG-only test run checks the codecs available in that build.
The full JPEG XL regressions remain enabled when jxl is selected.
Co-authored-by: pancake <pancake@nopcode.org>
An enabled ORF reader makes the format report supported even when a
particular sensor stream cannot be decoded. Keep the existing JPEG scan
fallback available for these files when their preview tags are missing
or damaged.
Cover both preview entry points with an unsupported ORF containing an
unreferenced JPEG.
Express the accepted cases as one positive condition before rejecting
an unmarked strip. The truth table stays unchanged: an explicit packed
mode or a measured complete-group layout is required.
This removes Clippy 1.95's nonminimal_bool diagnostic.
Maker-note crop values are u64. Casting them to usize on a 32-bit target
can turn an out-of-range coordinate or size into a valid small crop.
Use checked conversions before applying the existing sensor bounds.
Exercise a valid crop and values offset by 2^32 using an uncompressed
ORF header, independently of lossless-compressed sensor support.
Merges main at 3b8e426a26.
- crates/ui: main's e-sign dialog (crates/ui/src/esign) moves to craft-cloud-ui beside the
share dialog, behind craft-cloud-ui's esign feature; craft-ui forwards `esign` and
re-exports the module.
- crates/proof: main's can_suggest_cased goes to affix/check.rs and its tests to
affix/tests.rs (next split affix.rs); French wiring in lib.rs.
- crates/svg: main's validated resolver and raster validation stay under tree-render, which
now also enables gif and image-webp; the shared image-codec helpers are gated on tree.
- craft-ai-agents: main's rev (craft-ai-integrations main), one entry.
- crates/craft: facade dependencies, features and re-exports for main's new crates.
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>
An uncompressed single-sample integer DNG strip whose StripByteCounts is exactly
ActiveArea columns (from column 0) by ImageLength rows, while the file holds the
whole ImageWidth by ImageLength raster from the strip's offset, is read at its
declared size instead of refused. Every other shortfall stays Corrupt.
The ZV-E10 joins APSC_BODIES with the ILCE-6700's rule (11 knots over
its own default crop's half diagonal / 10 = 360.56 px, the corrected-
radius index, the frame-filling zoom, the 0.5 px APS-C fit gate) and its
own distortion unit, 16384: the ILCE-6700's 15000 over-corrects its
16 mm photos by about 9 %. APS-C bodies now carry their unit.
Measured on 4 photos with the E PZ 16-50 mm at 16-32 mm against the
camera JPEG: p95 0.26-0.64 px at 1440 px as rendered (uncorrected up to
18.7 px; unit 15000 up to 2.18 px). Ported from storytold/lightcraft#3743,
overtaken by the craft-raw cutover.
storytold main 83cb1133dd (291 commits) into the integration head bab1a99b85; 47 conflicted files.
- Domain test files (metafile, prepress, pdf plates, settings store, heif, media-testkit, atomic): tests next cut stay cut; tests new on main are kept, as trials where the crate's test target runs trials.
- atomic: main's group-bits test and Faulty::set_group go to src/tests.rs. audio: main's GSM and SBC oracles join tests/main.rs. cms constructors, pdf knockout_backdrop and testing_pdf join their crates' one test binary; timeline's preflight tests become src/preflight_tests.rs trials.
- update: main's changes to detect, install (linux, macos) and the tests land in next's split modules. The app's own offer is inspected on a thread of its own, picked up by tick's polling; settle_for_tests settles offers too. Later on a ready update drops the close it asked for. updater_pin_tests.rs stays deleted; its new pin test is in tests/it/update.rs.
- craft-color: main added a different crate at crates/color (the colour tags of compositor and display frames); it is next's craft-color module `tags`, re-exported at the root.
- Old crates/ui (combo, docking, testing, README) and keymap's ui/view.rs stay deleted; main's new crates/ui/src/testing files are dropped with them.
- New crates in the craft facade: ai, control, dds, frame, ipc, media-source, palette, press-print, score, ssip. testkit and xtask are listed outside it.
- Cargo.lock: the union of both locks, resolved by cargo metadata. Workflow: main's nextest Windows leg, with next's --keep-going clippy.
A lossy JPEG smaller than its tile is now budgeted by its frame, but decoding still
fills the whole tile, so the chunk's w x h x spp output is charged as well (and refused
over MAX_SAMPLES). Regression test: a 256x256 JPEG padded with comments in a
16384x16384 tile is TooLarge instead of allocating ~1.5 GiB.
- unpack: checked sample, row-bit and output products, capped at MAX_SAMPLES before allocating
- every chunk is charged what its decoder may allocate (lossless: coded rows + 1/8; lossy: the
32-pixel MCU-padded tile) against the aggregate budget before decoding, the lossless decoder
is held to that, and truncated capacity is released
- the lossy encoded-size floor allows 64 x spp samples per two-bit block (chroma subsampling)
Removes the duplicated Timecode type and BCD decoder (Sonar duplication 28%) and the copied
frame-rate plausibility check; capture_info is tested against the full reader's CinemaTags.
One opcode-list envelope implementation: opcode_raw::Records walks the records (stopping at a
truncated one) for both the strict opcode_raw::parse and the typed opcodes::parse_list, and
opcodes::write_list encodes through opcode_raw::encode instead of truncating lengths with as.
- uncompressed rows go through crate::unpack (read_u16s / unpack_msb), as in dng.rs
- lossy JPEG tiles (34892) use tiffraw::lossy_jpeg_with_tile (zune-jpeg) with its tile-size checks
- line-dng now implies dng instead of pulling in image
- tests: every layout and compression read against the full reader, refusals, unpack depths
Preserve vangel76 original FilmCraft source commit 28247afae7806590dcdb149d744408739fb738df before the shared metadata extraction. Final metadata implementation is unchanged from the existing PR.