diff --git a/crates/develop/README.md b/crates/develop/README.md index f610a0899..533df3fdc 100644 --- a/crates/develop/README.md +++ b/crates/develop/README.md @@ -49,7 +49,12 @@ Differences from LightCraft (ordinary-range output is covered by the baseline fi summed-area counts or padded table cannot be represented; patch-area arithmetic no longer overflows `i32`. An already-cancelled oversized-patch request returns `Cancelled`, not an unavailable-patch result. -## Not here yet +## Limits -The rest of the pipeline: the rest of colour, raster, the sensor stage, raw loading and the render stages. No app uses this crate -yet. +This crate includes the sensor stage and consumes decoded images from `craft-raw`. Raw loading +and end-to-end render orchestration remain outside it. + +For integer DNGs with a `LinearizationTable` and a nonempty `OpcodeList1`, `craft-raw` returns the +table unapplied on the decoded image. The shared sensor normalisation and binned preview paths +do not yet apply that deferred table after `OpcodeList1`. Do not treat their output as fully +linearised for those inputs. diff --git a/crates/develop/src/local.rs b/crates/develop/src/local.rs index 39c4da373..5fc6e8bfa 100644 --- a/crates/develop/src/local.rs +++ b/crates/develop/src/local.rs @@ -1293,7 +1293,7 @@ mod fast_tests { } /// CPU highlights/shadows base timings on the #3460 frame size: - /// `cargo test --release -p lightcraft-pipeline bench_tone_base_cpu -- --ignored --nocapture`. + /// `cargo test --release -p craft-develop bench_tone_base_cpu -- --ignored --nocapture`. #[test] #[ignore] fn bench_tone_base_cpu() { diff --git a/crates/develop/src/local_tone.rs b/crates/develop/src/local_tone.rs index 1d1847456..8919d669f 100644 --- a/crates/develop/src/local_tone.rs +++ b/crates/develop/src/local_tone.rs @@ -23,8 +23,10 @@ pub struct LocalTone { } /// Multiply the resampled, not yet white-balanced source `img` by the local tone gain at each -/// pixel, where `active_uv(x, y)` maps an output pixel `(x, y)` to normalised active-area -/// coordinates `(ax, ay)` (`None` leaves blank canvas alone). +/// pixel. For an output pixel `(x, y)`, `active_uv(x, y)` must return normalised (0..=1) +/// coordinates in the EXIF-oriented developed source, not in the raw active area. +/// [`SourcePlacement::active`] undoes the source orientation and maps through the crop to +/// normalised active-area coordinates. Return `None` to leave a blank-canvas pixel unchanged. pub fn apply(img: &mut Rgb32f, lt: &LocalTone, active_uv: impl Fn(usize, usize) -> Option<(f64, f64)> + Sync) { let Some(eval) = lt.map.evaluator() else { return }; let w = img.width;