mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 01:18:43 +00:00
The X2D II 100C's 3FR files develop at full sensor resolution instead of falling back to the camera's embedded JPEG preview. A 3FR is a TIFF whose IFD0 holds the camera's JPEG and whose CFA image sits in a SubIFD with DNG-style tags but no DNGVersion and no CFA-pattern tag (neither the TIFF/EP pair nor the EXIF one), which is why the generic TIFF/EP path reported "CFA pattern not recorded". The new decoder reuses the shared strip reader, takes BlackLevel, WhiteLevel, DefaultCropOrigin/Size and AsShotNeutral from the file, and takes the Bayer phase from a measured per-body table (the X2D II 100C: RGGB at the data origin, measured against the camera's own embedded JPEG; unmeasured bodies warn). Lossless-JPEG 3FR stays preview-only, like uncompressed-only ORF and RAF before it. Clean-room: the TIFF 6.0 and DNG specifications, the sample file's bytes and its embedded JPEG; no code or tables from dcraw, LibRaw, rawspeed, rawler or darktable. Adds round-trip and hostile tests through a mirrored synthetic builder (tests/it/hasselblad.rs, testgen::Hasselblad3frSpec) and updates the support matrix (file-format-parity, gaps G14, target-app-parity).
14 lines
229 B
Rust
14 lines
229 B
Rust
//! The crate's integration tests, linked into one test binary.
|
|
|
|
mod cr3;
|
|
mod development_limits;
|
|
mod dng;
|
|
mod hasselblad;
|
|
mod hostile;
|
|
mod nef_packed;
|
|
mod nikon_d4_depth;
|
|
mod raf;
|
|
mod raw_corpus;
|
|
mod vendor_codecs;
|
|
mod vendors;
|