Files
Alex Chambers 6f3819ab4c LR-EDIT-CURVE: show the selected Tone Curve's sampled input histogram (#987) (#2531)
* LR-EDIT-CURVE: show sampled Tone Curve input (#987)

Keep the output Histogram separate. Sample each selected curve's input
with the production prefix LUT builder and strict request identity.
Preserve current main's source facts, mask behavior and render output.

Credit @zelefogs for the request and @aiongg for the input/output
clarification. Human contributor credit remains @AlexChambers.

Co-Authored-By: GPT-6-Astra <noreply@openai.com>

* LR-EDIT-CURVE: refresh curve input source after relink (#987)

Rebuild the prepared diagnostic job when its origin changes, even if
the content hash and render key stay the same. Retain completed
histograms for identical content.

Add a real-file regression through import, relink, the prepared-job
caller flow and the native worker. Check the actual retry path,
source facts and successful recovery.

Co-Authored-By: GPT-6-Astra <noreply@openai.com>

* LR-EDIT-CURVE: bound histogram UI test work (#987)

Use two small generated PNGs for the input-histogram tests. Keep the
production decoder, render queue and pipeline, and retain the 20-second
settle budget. The full demo library adds unrelated thumbnail and
neighbor work when the failure gate opens.

Assert that stale cached histograms stay hidden during pending and
failed replacements, and verify that clearing the selection leaves
no active photo. Keep the existing histogram stage checks.

Human contributor credit remains @AlexChambers.

Co-Authored-By: GPT-6-Astra <noreply@openai.com>

* LR-EDIT-CURVE: adapt the histogram to main's render parameters (#987)

Carry the curve input source, edit panel and tests into the module layout and
render-parameter API on current main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* LR-EDIT-CURVE: register the histogram label with the panel's Ui (#987)

Main's register now takes the Ui, not its Context.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* LR-EDIT-CURVE: match unknown channels to the Point input (#987)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* LR-EDIT-CURVE: refresh the parity summary after the merge

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* LR-EDIT-CURVE: fit the merge to main's three-argument file loader; histogram-only slots in one helper (#987)

Main's loaders take the camera profile as a third argument, so the curve tests' loaders take it too. Keeping the Tone Curve and HDR histograms moves into keep_histogram, which brings Renderer::collect back under the cognitive complexity limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* LR-EDIT-CURVE: the input diagnostic's pixels are dithered like the render's (#987)

Main's finish dithers its 8-bit output with an 8x8 Bayer pattern (#3509). The diagnostic's image used plain rounding, so it no longer matched a render with the later curves removed; it now encodes with finish's dither at the same output position. Its histogram still bins the undithered samples.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* LR-EDIT-CURVE: refresh the parity summary after the merge

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* LR-EDIT-CURVE: refresh the parity summary after the merge

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* LR-EDIT-CURVE: refresh the parity summary after the merge

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Trim duplicate Tone Curve histogram tests (#987)

* LR-EDIT-CURVE: check the brush budget before sampling a curve's input (#987)

The Tone Curve input diagnostic went straight into mask preparation in
both the native render job and the web worker, skipping
check_brush_budget. An over-budget brush then lost its later strokes and
the backdrop showed that partial sample as the curve's input.

curve_input::render now runs check_brush_budget on its own clamped,
full-crop request (at most 256 px, no window) and returns a Result, so
both callers fail the request and the UI shows "Input histogram
unavailable". Regression tests cover the pipeline, the native job, the
worker and the headless UI.

* LR-EDIT-CURVE: tell screen readers the selected channel and the input status (#987)

The Tone Curve's channel buttons now report which channel is selected
(toggled), through the same helper the segmented controls use. The input
histogram's caption is a polite live region, so screen readers read it
when it changes between loading, sampled and unavailable, and the focus
stays where it is. A new announce_live helper sets the live region; the
AccessKit adapters read a live node only when its text changes.

The headless test view keeps the last frame's AccessKit tree in test
builds, and a new test checks both behaviours through it.

---------

Co-authored-by: GPT-6-Astra <noreply@openai.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-12-01 11:03:57 +01:00
..