Skip to content

LR-IMP-CAMERA-COVERAGE: verify 30 more camera models on public raw files - #1327

Merged
echelon merged 1 commit into
storytold:mainfrom
AlexChambers:camera-coverage-sweep-41
Oct 15, 2026
Merged

echelon merged 1 commit into
storytold:mainfrom
AlexChambers:camera-coverage-sweep-41

Conversation

@AlexChambers

Copy link
Copy Markdown
Contributor

What was checked

This adds 30 verified Adobe-listed camera models from the 41-model sweep shortlist. All 54 shortlisted files were downloaded again from raw.pixls.us, checked against the site's CC0 licence and SHA-256, and decoded from sensor data on main 25ef65c8. The branch starts at 701f78ea; its raw decoder, pipeline and engine sources match 25ef65c8.

The accepted evidence has 40 files. Each default render reports a sensor-data source. Luminance correlation against the embedded camera image is 0.6801 to 0.9998, above the sweep's 0.6 threshold. Renders use a maximum dimension of 1200 pixels; comparisons use Lab L* at 200 pixels after the sweep's orientation and aspect alignment. The Mavic 4 Pro reference has different distortion/cropping. Ten references are embedded TIFF images and 30 are JPEGs. FFF TIFF previews are not display-ready; their correlation checks image structure, not tone or colour accuracy.

docs/raw/coverage-sweep.tsv records the URLs, SHA-256, sensor dimensions, FNV-1a hashes and correlation per accepted file. FNV-1a covers every decoded sample in row-major, little-endian order, including masked borders. These hashes pin LightCraft's own decode. No external raw decoder was used.

The files are listed in RAW_SAMPLES, and coverage_sweep_corpus.rs checks their file hashes, sensor hashes, dimensions, valid levels and header/decode agreement. The general corpus test now permits generic CFA TIFFs with an uncompressed preview instead of requiring a JPEG.

Coverage changes from 235 to 265 verified models (18% of 1,446). There are 918 unverified, 227 preview-only and 36 unsupported models. The estimated share of photographers on a verified body changes from 42% to 43%. The tracking documents and generated coverage table use these counts.

Verified models

Maker Adobe model raw.pixls.us IDs
Apple iPhone 6s Plus 915
Apple iPhone 7 Plus 939
Apple iPhone XS 3372
DJI DJI Mavic 2 Pro (Hasselblad L1D-20c) 3009
DJI DJI Mavic 3 (Hasselblad L2D-20c) 5140
DJI DJI Mavic 4 Pro (DJI FC9287) 8041
DJI DJI Mini 2 4785, 4898
Google Pixel 4 XL 3502
Google Pixel 4a Rear Wide Camera 4176
Google Pixel 6 Pro Rear Main Camera 5961
Google Pixel 8 Pro Wide Camera* 7751
Hasselblad CFV-50c 7217, 7218
Hasselblad H5D-40 1640
Hasselblad H5D-50c 1639
Hasselblad X1D 2058
Hasselblad X1D II 50C 3874, 3941
Hasselblad X2D 100C 6568, 6565
Nikon D6 4726, 4720, 4721
Nikon Z 6 3584, 3581, 3582
Nikon Z 7 2792, 2789, 2790
Nikon Z 8 6617
Parrot Anafi 2912
Samsung Galaxy S21 Ultra Rear Main Camera 6728
Samsung Galaxy S22 Ultra Rear Wide Camera 6261
Samsung Galaxy S23 Rear Wide Camera 6697
Samsung Galaxy S7 Edge 1297
Samsung Galaxy S8 2645
Samsung Galaxy S8+ 2310
Sigma fp 7273
Sigma fp L 6949

Nikon D6, Z 6 and Z 7 verification covers the listed compressed files. Their uncompressed variants still need #671. Z 8 HE and HE* remain preview-only.

Exclusions

Eleven candidate models are excluded. Three other files are excluded from the evidence: two Sigma fp cinema files without a reference image and one Galaxy S23 ultrawide capture. The fp and Galaxy S23 wide camera are verified by IDs 7273 and 6697.

Candidate raw.pixls.us ID Reason
Apple iPhone 8 2835 No embedded camera reference image was found; sensor decode passes, but the required image comparison cannot be made.
Apple iPhone SE (2020 version) 1207 Wrong model: uploaded and captured in March 2017; UniqueCameraModel iPhone8,4 back camera identifies the original iPhone SE, not the 2020 version.
Canon EOS-1D X 6584 A 644x644 linear DNG processed by Topaz Photo AI 1.3.4; it does not verify the camera's native CR2 sensor decode.
Google Pixel 7 Pro Wide Camera 6168 Wrong camera module: 19 mm f/3.5, 117 mm equivalent and 1.03x digital zoom identify the telephoto capture, not Pixel 7 Pro Wide Camera.
Light L16 2153 No embedded camera reference image was found; sensor decode passes, but the required image comparison cannot be made.
Samsung Galaxy S22 Rear Wide Camera 7783 Wrong camera module: 7 mm f/2.4 and 69 mm equivalent identify the Galaxy S22 rear telephoto capture, not Rear Wide Camera.
Samsung Galaxy S23 Rear Wide Camera 6734 Wrong camera module: 2.2 mm f/2.2 and 13 mm equivalent identify the Galaxy S23 rear ultrawide capture; ID 6697 verifies Rear Wide Camera.
Samsung Galaxy S23 Ultra Rear Wide Camera 6758 Wrong camera module: 27.2 mm f/4.9 and 230 mm equivalent identify the Galaxy S23 Ultra rear super-telephoto capture, not Rear Wide Camera.
Samsung Galaxy S6 1188 No embedded camera reference image was found; sensor decode passes, but the required image comparison cannot be made.
Samsung Galaxy S7 2190 The embedded TIFF preview covers a different crop; luminance correlation is 0.0342 after the sweep's orientation and aspect checks, below 0.6.
Samsung Galaxy S9 3563 No embedded camera reference image was found; sensor decode passes, but the required image comparison cannot be made.
Samsung Galaxy S9+ 2738 No embedded camera reference image was found; sensor decode passes, but the required image comparison cannot be made.
Sigma fp 7278 No embedded camera reference image was found; sensor decode passes, but the required image comparison cannot be made.
Sigma fp 7279 No embedded camera reference image was found; sensor decode passes, but the required image comparison cannot be made.

The camera-module exclusions use the files' EXIF focal lengths and apertures. The inferred module assignments agree with the manufacturers' Pixel camera specifications, Galaxy S22 camera table, and Galaxy S23 Ultra specifications. The Galaxy S23 file at 13 mm equivalent cannot verify its separate wide-camera entry.

The original iPhone SE represented by ID 1207 is not substituted for the shortlisted 2020 model. The no-reference exclusions decoded successfully but could not meet this sweep's required comparison.

Overlap and merge coordination

The initial check compared added evidence.tsv rows in all ten open PRs returned by the evidence.tsv search: #992, #1029, #1040, #1045, #1081, #1087, #1096, #1105, #1108 and #1165. No shortlisted model overlaps their added rows. The format follows the coverage PRs by emmertex (#1045, #1081, #1096, #1108 and #1029); their rows and text were not copied.

The second check on 2026-10-12 also includes newly opened #1324. None of the eleven open PRs overlaps any of the 41 shortlisted models. Current main 701f78ea has no overlapping additions either.

These PRs edit the same coverage and tracking documents. After earlier coverage work merges, regenerate coverage.tsv and refresh the totals before merging this branch.

Rendering limitation (#1277)

Phone, drone and other DNGs with their own colour matrices decode correctly but often render darker than their camera JPEGs. This is the existing tone/colour issue in #1277, where a tone and chroma prototype is already being tested. Verified here means decoded from sensor data, as defined by evidence.tsv. It does not establish camera-JPEG or Lightroom colour parity. FFF neutral-matrix colour is also unverified.

Validation

  • All 54 downloads matched the public SHA-256 and decoded from sensor data on 25ef65c8.
  • The 40 accepted files have pinned sensor hashes and recorded image comparisons.
  • python3 docs/raw/coverage.py --check passes.
  • cargo test -p xtask corpus_tests passes (unique sample names and valid SHA-256).
  • cargo test -p lightcraft-raw --test coverage_sweep_corpus --test corpus -- --nocapture passes: 24 general corpus tests and the new hash test; both checked all 40 accepted files.
  • cargo xtask parity --write passes; the pre-existing stale summary was refreshed to 81.6% across 531 rows. Current headline checklist counts were synchronized.
  • cargo xtask ci was invoked once with the requested temporary Issue #989: the lock test finds true on the PATH #990 and Issue #989: clippy 1.99, fill_box reads its buffer with as_chunks::<3>() (item 4) #997 patches. The Issue #989: the lock test finds true on the PATH #990 macOS on_exit hunk is already in base 701f78ea. The runner stopped at rustfmt because the supplied catalog hunk shortens a line and needs reflowing. After normalizing that temporary hunk, the same CI stages were completed individually; workspace tests used --no-fail-fast to report every failure. Both temporary compatibility changes were reverted.
  • Formatting, workspace clippy, HEIF clippy and tests, HEIC import, parity, dependency rules, assets and WebAssembly all pass.
  • Workspace tests have exactly the twelve expected failures: ten sidecar::tests_repair_* tests, tests_lightroom_folder::odd_folders_never_fail_the_check, and tests_dialog_fit::export_dialog_is_unchanged_in_a_tall_window. No additional test failures.
  • The final overlap check was repeated immediately before committing, with the same eleven open PRs and no overlapping models.
  • Downloaded media and the temporary build directory were removed after validation; the local audit retains IDs, URLs, SHA-256 and sensor hashes.

Overlaps: #1324 (Hasselblad Lunar) also adds one verified model, so the counts in the tracking docs need a rebase after whichever merges first.

🤖 Generated with Claude Code

@AlexChambers
AlexChambers force-pushed the camera-coverage-sweep-41 branch from 69dca08 to a7c55b6 Compare October 13, 2026 09:18
Recheck all 54 files in the 41-model shortlist on main 25ef65c.
Pin 40 accepted files by SHA-256 and full decoded sensor FNV-1a,
and record their camera-image correlation. Exclude eleven candidate
models after checking identity, camera module, provenance and references.

Update generated coverage and tracking documents to 265 verified models.
Keep Nikon coding limits and the own-matrix DNG rendering issue explicit.

Co-Authored-By: Codex <noreply@openai.com>
@AlexChambers
AlexChambers force-pushed the camera-coverage-sweep-41 branch from a7c55b6 to c03eb82 Compare October 14, 2026 08:48
@AlexChambers

Copy link
Copy Markdown
Contributor Author

Rebased onto main a4b53b2 (batch 35). The only conflicts were in docs/gaps.md, docs/parity-checklist.md and docs/raw-parity.md. The sweep's tables are reapplied on top of main's raw-parity (including the new Nikon distortion notes), and coverage.py --check and cargo xtask parity pass. Raw tests, fmt and Clippy pass.

@echelon

echelon commented Oct 15, 2026

Copy link
Copy Markdown
Member

Thank you @AlexChambers! This landed on main in integration batch 37 (#1852), rebased onto main after the previous batches. We regenerated the coverage table: 545 of 1,446 models are now verified.

If you haven't already, please join our Discord: https://discord.gg/artcraft. We'd love to have you there.

chrisgleissner pushed a commit to chrisgleissner/lightcraft that referenced this pull request Oct 15, 2026
# Conflicts:
#	ROADMAP.md
#	docs/gaps.md
#	docs/parity-checklist.md
#	docs/target-app-parity.md
chrisgleissner pushed a commit to chrisgleissner/lightcraft that referenced this pull request Oct 15, 2026
…told#1327 merge resolved

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants