Skip to content

Lens Blur: Boost slider (from upstream #2661); Catalog sets row; replaces #1500 - #1521

Merged
emmertex merged 9 commits into
mainfrom
lensblur-boost-from-2661
Nov 26, 2026
Merged

emmertex merged 9 commits into
mainfrom
lensblur-boost-from-2661

Conversation

@emmertex

Copy link
Copy Markdown
Owner

Replaces #1500, which ported upstream #2661's Lens Blur in full. #1498 had already landed the fork's own depth-based Lens Blur under the same DevelopSettings.lens_blur, lensBlur.* controls and crates/pipeline/src/lens_blur.rs, so #1500 could only merge by replacing it. This PR carries over what was not a duplicate.

What is in it

Item From #1500 Here
Boost (brighter bokeh highlights) part of the upstream renderer ported onto the depth-based renderer: LensBlur.boost (omitted while 0, so settings JSON and hash are unchanged), lensBlur.boost control, lensBlur.set {boost} / status, Edit panel slider, every fork locale
LRC-LIB-CATALOG-PANEL 🟡 → ✅ a7e947a5e same row fix, recounted with cargo xtask parity --write (91.3% of 635, P1 95.1%)
Ledger row for upstream #2661 ADOPT LEARN, final: Boost taken, the rest recorded as not taken; written in the post-#1499 ledger (upstream_intake.py check: 0 errors)
Focus picker error toasts - two plain toast calls from #1498 now use toast_error (tests_osd::a_failure_is_never_a_plain_toast failed on main)

Not carried over from #1500

  • Subject / focus-mask / fixed-shape focus, Transition, Find Subject, Move & Resize: stand-ins for depth, which the depth model (or the Subject fallback) already gives.
  • Focus / Blur brush refinement and the per-mask Lens Blur block: real additions, but each needs a new port onto the depth renderer. The upstream-intake-2026-11-25 branch keeps the working port to read.
  • Catalog format 21 → 22: not needed; no format bump here.

Checks

  • cargo xtask ci --quick: fmt, brand, docs, notes, i18n, windows, clippy pass. The test step failed in lcc-ui-egui on two tests: the toast lint above (fixed here) and headless::tests::preview_only_raw_shows_badge_and_notices, which passes when rerun alone. The full quick gate was not rerun after the toast fix.
  • cargo xtask sil: pass. lcc-pipeline lens_blur tests (new boost_brightens_blurred_highlights_only, with hostile values), lcc-engine tests_lens_blur, lcc-develop: pass.
  • No app screenshot taken; no timing measured (Boost adds one multiply per tap).

Sources: Boost's highlight gain and constants translated from upstream PR #2661 (storytold/lightcraft, squash 1a301fc2d, MIT).

Manual: ai/lens-blur (Boost, command list); What's New, changelog.

🤖 Generated with Claude Code

emmertex and others added 6 commits November 26, 2026 19:21
Boost (0..100) brightens out-of-focus highlights before they are spread, so
they turn into bright bokeh discs; midtones and shadows keep their level.
Added to the depth-based Lens Blur: `LensBlur.boost` (omitted while 0, so
existing settings keep their JSON and hash), the `lensBlur.boost` develop
control, `lensBlur.set {boost}` / status, the Edit panel slider, every fork
locale. Hostile values (NaN, inf, negative, huge) render finite.

Sources: the highlight gain and its constants are translated from upstream
PR #2661 (storytold/lightcraft, squash 1a301fc, MIT), `lens_blur.rs`.

Manual: ai/lens-blur (Boost, command list); What's New, changelog.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…klist began)

Every set is there end to end: all, Quick Collection (show, clear, save as
album), Previous Import, Recently Added, Picks, Missing, Previous Export,
Recently Deleted. Checklist recounted with `cargo xtask parity --write`:
91.3% of 635 rows, P1 95.1%. Carried from the closed intake PR #1500
(a7e947a).

Manual: none, no user-visible change.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The full port (PR #1500) duplicated the fork's depth-based Lens Blur
(PR #1498) and is closed; Boost is the part taken. Brush refinement and the
per-mask Lens Blur block are recorded as not taken.

Manual: none, no user-visible change.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The picker's two error paths used a plain toast, which
tests_osd::a_failure_is_never_a_plain_toast refuses on main.

Manual: none, no user-visible change.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…eam #2661)

Brush Refinement: Focus and Blur brushes paint over the estimated depth
(`LensBlur.focus_strokes` / `blur_strokes`, omitted while empty;
`lensBlur.brushStroke`, `lensBlur.brushReset`; Edit panel rows and painting
on the photo with the Masking brush's settings). Focus strokes stay sharp,
Blur strokes get the whole blur and have the last word.

Per-mask Lens Blur: a block in every mask (`LocalAdjustments.lens_blur`,
`lens_blur_boost`, `lens_blur_outside`, `lens_blur_off`, left out of the JSON
at their defaults; `mask.adjust`), blurring the selection or the outside with
the mask's strength as the circle of confusion. It renders with or without
the global blur, through the same layered gather and bokeh shape; cache key
and window reach include it. Upstream's per-mask Transition is not taken.

Default settings and default mask JSON are unchanged; no catalog format bump.
Hostile strokes and values (NaN, inf, negative, huge) render finite.

Sources: ported from upstream PR #2661 (storytold/lightcraft, squash
1a301fc, MIT) through the fork port on branch upstream-intake-2026-11-25:
how strokes and a mask's strength become the circle of confusion, the
commands, the panel rows and two UI tests; rendered by the fork's own
depth-based gather.

Manual: ai/lens-blur (Brush Refinement, Lens Blur in a mask, commands,
limits), develop/masking; What's New, changelog, checklist row, ledger row.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@emmertex
emmertex merged commit 94e6d67 into main Nov 26, 2026
0 of 6 checks passed
@emmertex
emmertex deleted the lensblur-boost-from-2661 branch November 26, 2026 11:53
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.

1 participant