Skip to content

Commit 8520b6d

Browse files
committed
LR-PROF-CAMERACOLOR: merge the refreshed storytold#784 (current main e9c29e2; look 25 and render cache 82 stay)
2 parents 4863574 + 3398e85 commit 8520b6d

193 files changed

Lines changed: 11615 additions & 1296 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/house-rules.yml‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: House rules
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- AGENTS.md
8+
- CLAUDE.md
9+
- .github/workflows/house-rules.yml
10+
pull_request:
11+
paths:
12+
- AGENTS.md
13+
- CLAUDE.md
14+
- .github/workflows/house-rules.yml
15+
workflow_dispatch:
16+
17+
permissions:
18+
contents: read
19+
20+
concurrency:
21+
group: house-rules-${{ github.ref }}
22+
cancel-in-progress: true
23+
24+
jobs:
25+
house-rules:
26+
uses: storytold/craft-common-actions/.github/workflows/house-rules.yml@main
27+
with:
28+
rust: true

‎.github/workflows/release.yml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ concurrency:
2121
cancel-in-progress: false
2222

2323
jobs:
24+
# Regenerates contributors/contributors.json for the release commit; every build bundles it.
25+
credits:
26+
permissions:
27+
contents: read
28+
pull-requests: read
29+
uses: storytold/craft-common-actions/.github/workflows/refresh-contributors.yml@main
2430
git-sources:
2531
name: Git dependencies come from storytold
2632
runs-on: ubuntu-latest
@@ -61,7 +67,7 @@ jobs:
6167
PY
6268
6369
release:
64-
needs: git-sources
70+
needs: [git-sources, credits]
6571
# Intentionally tracked at @main (not SHA-pinned) so org-wide CI improvements, security fixes, and build optimizations propagate without PR churn across all craftapp repos.
6672
uses: storytold/craft-common-actions/.github/workflows/release.yml@main
6773
with:
@@ -70,6 +76,7 @@ jobs:
7076
craft-fonts-ref: b076417b5880bd4154bd22f00695b1d28c6bea83
7177
web-craft-fonts: true
7278
version: ${{ inputs.version }}
79+
contributors-artifact: ${{ needs.credits.outputs.artifact-name }}
7380
secrets:
7481
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
7582
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}

‎AGENTS.md‎

Lines changed: 86 additions & 20 deletions
Large diffs are not rendered by default.

‎CLAUDE.md‎

Lines changed: 1 addition & 164 deletions
Large diffs are not rendered by default.

‎Cargo.lock‎

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-l
1515
# Canon CRW decoder shared with the other Craft apps
1616
craft-crw = { git = "https://github.com/storytold/craft-libs", rev = "f3b62ec61f45534392376492fc5ad33047375205" }
1717
# craft-update: app-specific pretend versions apply to startup and manual checks.
18-
craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "a231e517c3b371e1bf0ee8af71ed807424a9a05d", features = ["egui"] }
18+
craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "1b34eba41e62138fc2438d2734523b302840b45d", features = ["egui"] }
1919
craft-window = { git = "https://github.com/storytold/craft-libs", rev = "c5a1cbfb5f9049f9270955caffb5bee5997aebf7", features = ["egui"] }
2020
# internal
2121
lightcraft-denoise-core = { path = "crates/denoise-core" }

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ LightCraft is young and moving fast: **alpha**. **Where we honestly stand** (det
350350
Fujifilm / Nikon / older-Canon raws on one machine; see [docs/raw-parity.md](docs/raw-parity.md) for your camera.
351351
- **The biggest gaps:**
352352
- **camera colour calibration:** Sony, Nikon, Panasonic, Fujifilm and Canon CR3 and CRW raws have guarded estimates from their camera JPEGs, with built-in Canon EOS D60, ILCA-99M2, ILCE-7CR, ILCE-7M4, ILCE-7RM5, X-H2S, X-T4, Nikon Z 6II, Z 8 and D5300 profiles; measured calibration covers one model so far (chart-measured matrices for the Canon EOS D60), and other raws or rejected fits retain a neutral matrix;
353-
- **unsupported CR3 variants and Nikon High Efficiency NEFs:** these use embedded JPEG previews when present. Olympus compressed ORF now decodes sensor data on 58 more bodies (2 verified) ([docs/orf-compression.md](docs/orf-compression.md)); Fujifilm lossless/lossy compressed RAF now decodes sensor data; [verification and existing-library reload instructions](docs/raf-compression.md);
353+
- **unsupported CR3 variants and Nikon High Efficiency NEFs:** these use embedded JPEG previews when present. Olympus compressed ORF is unsupported for sensor decoding and uses embedded JPEG previews when available ([docs/orf-compression.md](docs/orf-compression.md)); Fujifilm lossless/lossy compressed RAF now decodes sensor data; [verification and existing-library reload instructions](docs/raf-compression.md);
354354
- **AI quality and model setup:** Subject and Sky selection are classical heuristics; Object/Describe use an
355355
optional SAM 3 model. AI Denoise supports Bayer RAW with separately installed weights, while X-Trans and
356356
linear-RGB denoise and Super Resolution remain missing; see [AI masks](docs/ai-masks.md) and [AI Denoise](docs/denoise.md);
@@ -370,7 +370,7 @@ LightCraft is young and moving fast: **alpha**. **Where we honestly stand** (det
370370
| Profiles (Color, Neutral, Vivid, Landscape, Portrait, Monochrome: our own looks), presets, versions, history, copy/paste/sync settings | ✅ |
371371
| Camera colour: DNG matrices, guarded camera-JPEG look fits and built-in profiles for selected cameras | 🚧 measured calibration and per-model coverage remain incomplete ([raw parity](docs/raw-parity.md)) |
372372
| Native macOS menu bar (generated from the command registry), control channel + every widget addressable, headless UI snapshots | ✅ |
373-
| RAW: DNG, CR2, CR3 (lossless CRX Bayer and version 0x100/0x200 C-RAW), ARW, NEF (uncompressed + lossless/lossy compressed, incl. lossy after split), Fujifilm RAF (uncompressed + lossless/lossy compressed, Bayer + X-Trans), Panasonic RW2 / Leica RWL / Panasonic RAW (every raw format, DMC-LX1 to DC-S1RM2), Pentax PEF, Olympus ORF (uncompressed, 12.8 bpp, compressed), Samsung SRW (uncompressed); embedded previews for every format incl. CR3 | 🚧 · other CR3 variants, compressed SRW and Nikon HE NEF decode ⬜ ([raw parity](docs/raw-parity.md)) |
373+
| RAW: DNG, CR2, CR3 (lossless CRX Bayer and version 0x100/0x200 C-RAW), ARW, NEF (uncompressed + lossless/lossy compressed, incl. lossy after split), Fujifilm RAF (uncompressed + lossless/lossy compressed, Bayer + X-Trans), Panasonic RW2 / Leica RWL / Panasonic RAW (every raw format, DMC-LX1 to DC-S1RM2), Pentax PEF, Olympus ORF (uncompressed, 12.8 bpp), Samsung SRW (uncompressed); embedded previews for every format incl. CR3 | 🚧 · other CR3 variants, compressed ORF / SRW and Nikon HE NEF decode ⬜ ([raw parity](docs/raw-parity.md)) |
374374
| Detail: sharpening, luminance + colour noise reduction | ✅ · AI Denoise 🚧 (Bayer, user-installed weights; [setup](docs/denoise.md)), Super Resolution ⬜ |
375375
| Remove / Heal / Clone spots (auto source), non-generative Fill, editable spot pins, Visualize Spots, Red Eye and Pet Eye | ✅ · Fill uses PatchMatch; no generative fill |
376376
| Export: JPEG / PNG / TIFF / flat PSD / WebP / AVIF / JPEG XL / raw or rendered DNG / original, sizing, file-size limit, output sharpening, naming templates, batch, metadata policy, text or image watermark | ✅ |

‎ROADMAP.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Each audience with its own hours (Opus 5.5 agent wall-clock hours to ~95%):
3030

3131
The gap between breadth and readiness is quality and coverage, not missing buttons: camera colour is
3232
estimated rather than measured, CR3 decodes on 26 verified Canon bodies (rarer CRX variants still open as previews), HE NEF opens
33-
as preview (compressed ORF now decodes on 58 more bodies (2 verified)), rendering is tuned by eye, AI masks are heuristics, there is no lens database, and
33+
as preview, as does compressed ORF when an embedded preview is available; rendering is tuned by eye, AI masks are heuristics, there is no lens database, and
3434
tests run in CI on Linux x64 (every pull request and push to `main`) and FreeBSD (nightly), not on macOS or Windows. **Why alpha:** core workflows run end to end, but readiness is below
3535
the ~75% beta bar (it is above the ~40% alpha bar) and Lightroom's main inputs, raw files, still have gaps (Nikon HE NEF opens as preview; Canon,
3636
~30% of raw users, decodes CR3 on 26 verified bodies). It passes the alpha gate: all six core workflows
@@ -107,14 +107,16 @@ Ranked toward beta; detail in [docs/roadmap.md](docs/roadmap.md), gaps in [docs/
107107
3. Render-fidelity suite against Lightroom, then tuning (30–60 h)
108108
4. ~~Full-resolution zoom~~ (done 2026-10-12)
109109
5. AI masks: Subject / Sky / People (40–70 h + model decision)
110-
6. ~~Compressed ORF~~ (done 2026-11-04) and HE NEF (20–40 h)
110+
6. Compressed ORF (support withdrawn; estimate pending provenance review) and HE NEF (20–40 h)
111111
7. Lens profile database of our own (40–80 h, #329)
112112
8. Tests in CI on macOS and Windows, and the GPU tests in CI (6–12 h)
113113
9. Per-model raw verification (20–35 h)
114114

115115
## Progress log
116116

117-
- 2026-11-04: Olympus / OM System compressed ORF decodes from sensor data: clean-room pure-Rust bitstream decoder (`crates/raw/src/vendor/orfc.rs`) derived strictly from Olympus patents US7333035B2/US7715639B2, maker notes and CC0 samples without third-party decoder code (see `docs/orf-compression.md`), verified on OM-D E-M1 (r=0.995) and E-M10 Mark III (r=0.929) CC0 samples; 58 bodies newly unlocked (78 total across Olympus and OM; OM/Olympus 6% → 81% fully working, overall weighted camera coverage 94% → 97%).
117+
- 2026-11-07: Compressed ORF support withdrawn pending provenance review; uncompressed support remains. Regenerated camera coverage: 557 verified, 665 unverified, 187 preview-only and 37 unsupported; 94% use-weighted coverage. See [ORF status](docs/orf-compression.md).
118+
119+
- 2026-11-04: Compressed ORF support was introduced in #3775; subsequently withdrawn pending provenance review. Earlier clean-room and verification claims are withdrawn; compressed files use embedded previews when available.
118120
- 2026-10-22: Print page setup and PDF output gain the Japanese photo and postcard papers — L判
119121
(89 × 127 mm), 2L判 (127 × 178), KG判 (102 × 152), はがき (100 × 148), 往復はがき (148 × 200),
120122
六切 (203 × 254), 四切 (254 × 305) and 名刺 (55 × 91) — at their exact metric sizes. The Print dialog

‎apps/lightcraft-web/src/web.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,9 @@ impl WebApp {
600600
let mut saved = serde_json::from_slice::<serde_json::Value>(&ui_written).unwrap_or_default();
601601
if let Some(fields) = saved.as_object_mut() {
602602
lightcraft_ui_egui::docking::drop_outdated(fields);
603+
// a stored ui.json means an installation that has been run: due What's New, never
604+
// the first-run tour (the same migration the desktop settings loader runs)
605+
lightcraft_ui_egui::startup::migrate_legacy_seen_version(fields);
603606
}
604607
if let Ok(ui) = serde_json::from_value::<UiState>(saved) {
605608
app.ui = ui;

‎apps/lightcraft-web/src/wire.rs‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,11 @@ mod tests {
468468
let mut core = WorkerCore::default();
469469
assert_eq!(core.needs_original(&wire), None, "demo scenes are generated");
470470
let a = core.render(&wire, None).unwrap();
471-
let b = job.run().rendered.unwrap();
471+
// The worker uses the CPU. A native thumbnail job may use an already initialized GPU,
472+
// so exact serialization parity must use the engine's CPU reference (#3778), regardless
473+
// of test order. The window test above separately checks native CPU/GPU equivalence.
474+
let source = job.source.load_source().unwrap();
475+
let b = lightcraft_engine::pipeline::render(&source.image, &source.info_or(job.info), &job.settings, &job.request);
472476
assert_eq!((a.image.width, a.image.height), (b.image.width, b.image.height));
473477
assert_eq!(a.image.data, b.image.data);
474478
assert_eq!(a.histogram, b.histogram);

0 commit comments

Comments
 (0)