Every photo's develop settings record the rendering process they are interpreted by
(DevelopSettings::process, a ProcessVersion in crates/develop/src/settings.rs). reference editor calls
this the process version. It lets the look of Ember improve (a new default tone curve, issue #146;
stronger Light sliders, issue #196) without changing a single photo someone has already edited.
| Process | What it changes |
|---|---|
| V1 | Ember's rendering from before process versions existed. Frozen. |
| V2 | Highlights and Shadows keep fine detail (issue #632): their base layer (local::tone_base) is the edge-aware filter of a separable median of log luminance (radius 0.15 % of the long edge, at most 24 px, local::BASE_DETAIL) instead of log luminance itself, so twigs, lines and texture take their surroundings' shift and keep their contrast; region edges stay sharp. CPU (local::prepare) and GPU prepare branch on local::tone_base_detail (0 = no median under V1); the base plane is cached per process (local::BaseKey). Renders without Highlights or Shadows (global or local) are the same as V1's. Tone map unchanged. |
| V3 (the latest) | A neutral display tone map is the identity up to white (issue #30, upstream #1945). For display-referred sources (JPEG, PNG, TIFF; not raw), V1 and V2 run the short SDR shoulder above 0.95 even at neutral Contrast, Whites and Blacks, so display-linear 1.0 became 0.9875 and an unedited file exported 255 as 254 (254 as 253, 253 as 252). V3 (ToneMap::display_hdr_v3) blends the shoulder in with the edit amount, k = clamp((abs(contrast) + abs(whites) + abs(blacks)) / 10, 0, 1) in slider units: output = clipped identity + k * (shoulder - clipped identity), above 0.95 only. Neutral is exactly the identity (values above white clip), k = 1 (ten units in total) is the V1/V2 curve, and nothing jumps when a slider leaves 0. HDR renders (peak > 1) and raw sources are unchanged; everything else is V2's. Colour noise reduction runs its chromaticity blur at half resolution (local::nr_color_blur, docs/noise-reduction.md) when its sigma is at least 3 px: about 4x cheaper, within 0.02 in chromaticity of the full-resolution blur, CPU and GPU alike; V1 and V2 keep the full-resolution blur (Plan::lin_key includes the choice). Photos made before V3 stay on V1/V2 and shift only through Update to Current Process. |
A change that alters how existing settings render ships as a new process. V1 is frozen.
- A deliberate change of look (tone model, slider response, default curve, how a stage interprets a value) goes into a new process. Photos stay on the process they have until someone runs Update to Current Process (or Reset).
- Bug fixes that make output correct where it was broken (a crash, NaN or black output, a decoder error, CPU and GPU disagreeing) are not looks and can land in place, as before.
- Changes to how a file is decoded or which camera colour it gets change the source, not how settings are interpreted; the process doesn't reach that stage today.
- Add a variant to
Process(the next, e.g.V4), append it toProcess::ALL(oldest first), give it its number inProcess::versionand make itProcess::LATEST. - The compiler then points at every
matchonProcess. The base tone map is chosen in one place,lightcraft_pipeline::finish::base_tone(both the CPU and the GPU renderer take it from there): give it its own arm and leave V1's alone. A process that changes another stage branches there the same way, ons.process.process(); if that stage is cached (Plan::lin_key, the planes inlocal.rs), add the process to its key. - Keep
settings_saved_before_process_versions_load_as_v1(crates/develop/src/tests_process.rs) passing: settings saved without the field must stay V1, not become the new latest. That is the field's#[serde(default = "ProcessVersion::legacy")]; the struct-levelDefaultgives new settings the latest instead. - Render a few procedural scenes on both processes and compare, and update
docs/parity-checklist.md.
| Process | |
|---|---|
| A newly imported, merged or reference editor-imported photo | the latest |
Settings saved without the field (catalogs and their snapshots, versions and history, lc:settings in XMP sidecars, browser libraries: everything from before process versions), or with a damaged value |
V1 |
Reset (develop.reset) |
the latest |
| Reset of a section or a slider | unchanged |
Update to Current Process (develop.updateProcess) |
the latest, for photos on an older one; one undo step. The menu item follows the selection; a call with ids / id acts on those photos whatever is selected |
| Virtual copy, duplicate | the source's |
| Copy / paste / sync / Auto Sync / presets | unchanged (see below) |
crs: edits (XMP from other raw developers, reference editor catalogs, imported presets) |
unchanged; a new photo has the latest |
| Restoring a version or history step | the one it had |
Copy, paste, sync and presets never carry the process: it is in no settings group, so the photos
they change keep their own and interpret the pasted values with it. (reference editor offers the process
version as a separate checkbox when syncing; Ember's groups are coarser and keep it out.) Partial
settings JSON that names process itself (develop.merge, a hand-written preset) sets it.
reference editor edits are re-interpreted by Ember's mapper (crates/engine/src/crs.rs), which is
written against the current rendering. crs:ProcessVersion numbers reference publisher's renderer, not ours, and is
ignored; a photo imported with reference editor edits is on Ember's latest process, and an existing
Ember photo that receives them keeps its own.
A number this build doesn't know (a library or sidecar written by a newer Ember) loads, is kept when saved, and renders with the newest process this build has. Update to Current Process never moves a photo to an older process; Reset does move it to this build's latest.
A damaged value (anything but a whole number from 0 to 2^32 - 1; 2.0 counts as 2) reads as V1,
like a missing field, and costs nothing else: the rest of the settings load from the catalog, a
snapshot, the op log or an lc:settings sidecar as usual. The damaged value isn't kept: the photo is
saved as V1.
The process is saved as "process": <number> in the settings JSON, except V1, which is left out.
Settings made before process versions existed are therefore saved exactly as before, and their
preview-cache keys (DevelopSettings::hash64) don't change. develop.get (MCP get_develop) always
states the process.