6909 Commits
Author SHA1 Message Date
BuonBredaandClaude Opus 5.5 6c54433175 LR-FILT-LABEL: a No label choice in the filter bar shows the photos without a colour label (#5028)
* LR-FILT-LABEL: a No label choice in the filter bar shows the photos without a colour label (#5028)

The Label group of the filter bar gets a No label button after the colour swatches: alone it shows the photos without a colour label, with colours on it shows those photos too. library.filter gains `unlabeled`, one more choice of the `labels` multi-select; the chip names it and clears it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mj2w3LwYjFhMHALZuFp2rU

* LR-FILT-LABEL: review: the filter bar keeps No label with the swatches (headless test), the Lightroom result's reset clears it (test), agents find unlabeled

- filter_bar_no_label_combines_with_the_swatches: No label, then Red keeps both, then No label again leaves Red.
- lightroom_result_stays_readable_and_shows_photos_hidden_by_a_filter sets unlabeled, so the reset line is covered.
- library.filter lists labels and unlabeled; album.createSmart lists unlabeled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mj2w3LwYjFhMHALZuFp2rU

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 15:16:07 -06:00
FredApps 41bba7b486 Merge pull request #4243 from bd78/lrc-map
LRC-MAP-VIEW: [GAP 16] Map view with geotagging, location filter, saved locations, track logs and the Info panel map
2026-12-03 15:39:52 +01:00
skylar taylor af60644f94 Polish the Library sidebar on the SDK port (#5035)
* Restore the Library sidebar row rhythm and quiet selection

* Restore Library section text size and remove the selected row stripe

* Preview a semibold cue for the selected Library source

* Fit Library photo counts and match the By Date rows

* Keep sidebar reveals and header gutters aligned after scoping

* Reserve exact sidebar slots before applying the row theme

* Defer keyword reveal until the Library sidebar is live

* Keep By Date counts inside the narrow Library sidebar

* Give light Library selection a clearer quiet fill

* Keep Library count layout stable while a dialog is open
2026-12-03 08:34:52 -06:00
FredApps 43777b7897 Merge pull request #4196 from LPFchan/proraw-lightroom-tone
LR-BEHAV-RENDER-FIDELITY: process V17, Apple ProRAW in Lightroom's tone chain (#613 rebased)
2026-12-03 14:54:40 +01:00
FredApps 98c084f4d1 LRC-MAP-VIEW: gate private locations in the Map view, theme tokens for map marks, split GPX caps
- Map view (and the navigator) no longer draw tiles centred inside a private saved
  location until the user chooses Show Map; the choice resets on library switch.
- Pins, cluster badges, location circles and track marks use theme Tokens (map_*)
  instead of file-level colour constants.
- map.trackLog keeps the 50 MB cap; photo.autoTagTracklog keeps its previous 256 MB cap.
2026-12-03 14:03:28 +01:00
LPFchanandExalted5373 ef71decb8f Merge origin/main into proraw-lightroom-tone; move ProRAW tone chain to process V17
Main now occupies V13 through V16 (LATEST = V16), so this branch moves the
Apple ProRAW tone chain to V17 (LATEST, appended to Process::ALL). V1 to V16
and the 9->V8 / 11-12->V10 fallbacks are preserved unchanged.

Also addresses CodeRabbit's smart.rs review comment: deserialize SmartFacts::proraw
leniently so an invalid curve is ignored instead of dropping the rest of the stored
facts and mattes.

Co-authored-by: Exalted5373 <247056922+Exalted5373@users.noreply.github.com>
2026-12-03 16:12:36 +09:00
Bruno D. f9f37dd0d0 LRC-MAP-VIEW: review fixes for library switches, track log text, counts, filters, no-store tiles and theming
From review on #4243:
- Opening another library resets the Map view's state that names the old one's
  photos or saved locations (MapUi::library_changed): ids are per library, so B's
  location 3 no longer inherits A's Delete… confirmation.
- A GPX is read with lossy UTF-8 again: a stray Latin-1 byte in a track name no
  longer refuses the file (photo.autoTagTracklog always read it that way). The
  50 MB cap stays: the Map view keeps the whole parsed log in memory.
- The navigator counts each saved location's photos with one PositionIndex (its
  band of latitudes, not every point), and a rating or label change, which
  rebuilds the points without moving any, no longer counts them again.
- map.filterPhotos reads positions through valid_gps (an out-of-range one is
  untagged, as in the Map view and Has GPS); `bounds` is documented as the area of
  mode "visible".
- A 200 marked no-store takes an older copy of the tile off the disk.
- map.setView: the doc comment, message and docs say what is applied (0…24,
  shown within the map style's range).
- act takes the map's view as one argument instead of silencing the lint.
- The Map view's interface surfaces (notes, hover card, filter bar, toolbar,
  legend, loupe card, navigator, saved-locations text) use the theme's tokens; the
  marks drawn on the map's tiles (pins, badges, credit plate, circles, track) are
  named constants, the tiles being pictures no theme changes.
- docs/map.md: the Map view itself isn't covered by private locations (the
  offline map style keeps it off the network).
- rules_editor: value_editor's doc comment back on it.
- pick_flow_tests: the bottom bar's focus order includes the Map view button.
2026-12-03 01:37:16 -05:00
skylar taylor 10b363c536 Wait for a GPU warm-up still in the driver when quitting (#5033)
* Wait for a GPU warm-up still in the driver when quitting (#620)

LightcraftApp::shutdown gave GPU work at most the exit wait (2 s), the
device warm-up included, and the Drop wait from #4697 is skipped once
shutdown has run. A quit while a slow device start-up was still loading
the driver therefore ended the process with the warm-up inside the Vulkan
loader: exit() blocks on the loader lock or tears down libLLVM while the
warm-up thread is running its constructors, and crashes.

The warm-up can't be called off, so shutdown now waits for it past the
render deadline, bounded by the same 30 s the Drop wait uses (now one
constant, WARM_UP_EXIT_WAIT). Renders still give up after 2 s.

Regression: quitting_waits_for_a_warm_up_past_the_exit_wait holds a
substitute warm-up on the real gate and checks that shutdown(ZERO) does
not return until it is released (in a child process, since shutdown is
process-wide).

* Exercise the native quit timeout warning with a held render
2026-12-02 23:42:25 -06:00
Bruno D. 167215375f LRC-MAP-VIEW: merge upstream/main (the Craft framework port, #4750) into lrc-map
Conflicts resolved:
- docking.rs: main's rewritten show(), with the Map view's hooks put back in it
  (the mini-map and location filter reset, the track-log poll, map_drawn reset,
  the Map view arm and the tile service's end of frame).
- shortcuts.rs: main's pressed_commands(clips) and matches_with, with the Map
  view's remaps (grid_key_command's map flag, + zooms the map); main moved the
  Shift+Tab handling elsewhere.
- grid.rs: Show in Map as a framework menu Row, like the rows around it.

Adapted to the port: the Map Style picker uses widgets::menu_dropdown (combo_box
is gone), and the saved location's rename field takes the focus through
text_field::focus (an egui focus request no longer reaches the field's text).
2026-12-02 23:33:34 -05:00
skylar taylor 57de0abe8e LightCraft: port the UI to the Craft framework (#4750)
* row debug

* Import review body scrolls again and number fields give up the keyboard on Return

- The review no longer caps its body with set_max_height (egui stacked everything past the cap at its bottom edge, so an opened recipe could not scroll); the photo grid reads the body's room from note_body_room instead.
- Import recipe and print number fields blur on Return, as the app's own fields do: a focused framework number field keeps the wheel, so the body would not scroll.
- headless import rename tags test seeds the caret on the framework field's text part.

* Rating row: measure inside a measuring run so the real run checks nothing against the shell's kept transcript

* Bottom bar: the unflag circle is not selected while a photo has no flag (as on main)

* Keywording box: lit view choice, compact Sm suggestions, exact chip widths, keyword set dropdown room and chevron, + and − glyph buttons

* Library chooser: footer buttons below the list, unavailable libraries readable

- The blocking window reserves the height its real body took (the framework measures the body shorter: the list rows are host targets only in a real pass), so the footer's buttons no longer cover Remove from List and its hint.
- A library that can't be opened lists its name and folder muted, not disabled-faint.

* Keyword tag dialog measuring copies get their own ids; screenshot test copied from w2-grid (to drop before merge)

* Left panel: sidebar title and header roles, muted counts, month names with their year; masking clash test

* Screenshot test of every window and dialog (ignored; LC_SHOTS_DIR), for main-versus-port comparison

* Presets list: group headers bold, names indented and muted under their group

* Masking: inset sliders, fixed decimals, wider overlay dropdown, non-selectable row labels; save effect dialog width and label colours

* Chosen keyword view lit; keyword set label small; keyword list tests use windows tall enough for the taller Keywords box

* Presets: tree-item role and framework overlay oracles in preset tests

* i18n Presets test installs the framework runtime

* Presets rows do nothing while photos are carried

* Mask local sliders on the shared develop slider row; remove the private track face

* Mask sliders: no fixed decimals for now

* Keyword set dropdown at small size; drops test window; debug for clip and ticking

* v3 round: slider rows measured then shown at their room, reset hint at the pointer, crop angle field and overlay rows, crop aspect row wraps, framework menus skip speculative passes; tests follow framework menus and pressed state

* Dropdown faces are measured and shown at their room, as the rating row is

* Paste Settings description not selectable (no duplicate-id clash with the measuring run); text_button tests read a selected button as toggled (aria-pressed)

* Clip test selects a photo so the framework tick is live

* Lens blur focus menu test follows the framework value menu's keyboard model (the checked row leads; arrows move, Enter or Space picks, Escape closes)

* Look round: LightCraft's colours on the framework theme, framework told about LightCraft's fonts, docked panels edge to edge

- theme.rs: framework_theme(kind) pins LightCraft's tokens (chrome, canvas, field, button, text, divider,
  borders, hover/pressed/selected, accent, text selection, scrim) on the suite default; app/shell.rs passes it
  as the root's library theme. Framework panels, docks, dialogs, popups and controls now sit in LightCraft's
  charcoal instead of the suite's #535353, text fields select in the accent, and the framework scrim dims
  as LightCraft's own dialog dim (SCRIM_ALPHA 140), so every dialog dims the same.
- theme.rs/app.rs: tell_framework_fonts installs the framework's default stack once per context before the
  first pass, so the framework knows a `semibold` family and the line ratio: strong text, list headers and
  dialog titles are semibold again. (Inside a pass it asked for a rerun; doing it before the pass keeps the
  pass count.)
- docking.rs: the Library, Tools and Presets bodies show edge to edge (WindowKind::Document); left.rs keeps an
  8 pt margin inside the sidebar's own border, so the inset frame is gone and the rows sit where they did.
- bottombar.rs: the unflag circle is never shown selected (no blue ring).
- right.rs: the empty Tools panel allocates its room, so its border is the panel's edge, not a stray dot.
- dialogs.rs: the Keyword Tag dialog's captions are not selectable, so the measuring run no longer gives
  their ids a second use (the red id-clash overlays in scene 75).

* Dialog visual round (w5): dropdowns look like selects, export rows as main's, nothing cut to an ellipsis

- widgets::menu_field: the closed box of a dropdown (the framework's dropdown well, value at the start, chevron at
  the end) for value menus whose rows keep their own automation names; used by the smart-album rule dropdowns, View
  Options' info lines, the export Preset picker and the album picker.
- Export: slider rows as main had them (caption and typed value over a full-width track, existing ids); short radio
  groups keep to one line (Format with Original files), the dialog taking the few points the radios need; the Tags
  button gets the room it really takes.
- Smart-album rules: − and + and + Group are as wide as their text needs.
- Rename: preset buttons at their whole width; the active preset has the accent outline.
- Keyboard Shortcuts: the restore button draws LightCraft's arrow (the UI font has no ↺); a faint row stripe.
- Print: a 3 pt row gap so the Bottom margin row shows without scrolling.
- Import review: the thumbnail size track takes the row up to its value box.

* Clip test reads the tick's recorded actual response rect

* hold debug

* UNRUN: point-colour samples are one radio group of swatches; point_color_controls_tests read the framework's records and focus (not yet compiled or run: no build reservation fits)

* The Keyword List hold ignores sizing and measuring runs; remove the hold debug prints

* One port_screenshots module (two branches each added the mod line)

* Point colour group: read enabled before the closure

* The Keyword List hold is taken by the real draw, not by a sizing or measuring run

* Drop the screenshot test copy (the grid's is kept)

* Keywords box mode buttons use the framework's own selected look (UI522)

* Rename presets: the active preset keeps the framework's selected look (no LightCraft accent outline; UI522)

* Host targets use the framework's own focus ring

* UI522: selection, focus and text-selection looks back to the framework theme's own

The framework theme keeps LightCraft's surfaces, text, lines, hover/pressed fills, accent and scrim, and no
longer pins state.selected, state.text_selection or line.focus; the suite default's own pins stay for every token
LightCraft does not set.

* Import review lays out the same in every run: rows within the body's clip, grid room measured in the same pass, recipe end reachable

- The shell no longer forces the dialog body width on the fixed-size import review: with the scroll bar's gutter taken out, rows ran under the clip.
- The grid's room comes from the window's real height less the measured chrome; the body's start and the rows below the grid are noted in the measuring run too, so rows that appear this pass (Copy/Move destination) no longer move a frame later.
- The measuring run reserves the height the real body took, so an opened recipe's last rows can be scrolled to.
- Recipe flow test wheels over the dialog body's scroll bar at the footer OK button's right edge (the window margin lies outside the scrolling body).

* hold debug 2

* Keys round v3: clipboard and F6/F10 to the keymap, opener-menu Escape, focus reveal, wheel steps, docking Debug/widths/held gestures, test updates

* Restore the screenshot test; drop a stray debug print

* Right panel reads the scroll offset through its accessor

* hold debug 2 compiles

* hold debug 3

* hold debug 4

* Left panel v4r2: folder_drop helper moves the pointer a frame before pressing; temp trace

* The Keyword List hold starts from the offset the last real pass ended at; remove hold debug

* Face name box: a press on its own buttons is not a dismissal

* Save Effect: the framework footer, content-capped width, framework dots icon for the group picker

* Keywords box: mode buttons are toggle buttons, chip outline holds its x; bottom bar debug

* Labels are not selectable by default (no duplicate ids from measuring runs)

* Edit panel id-clash test: no egui 'Double use of widget ID' at rest, with the Profile menu open, or after it closes

* Import review settles before it is used; chosen Transfer, Adjust… and Rename preset show the framework's on look

- The height below the import grid is noted from real runs only (the measuring run reserves the real body's height, which fed back and shrank the grid to one row), and a change asks for another frame, so a settled review no longer moves its rows on the next frame (importCopy, album picker "moved before its press").
- Add in place / Copy / Move and Adjust… are the framework's ToggleButton (controls::choice); the Rename presets too: a Button given selected paints no on state (UI522: the framework's own selected look).
- Test: rename_preview_flow expects the preset to be a ToggleButton.

* Bottom bar zoom faces at small size so the centre keeps Copy Edit Settings; remove debug

* Export slider rows as compact as main's: one 40-point allocation for caption and track (from w5-dialogs)

- The Export dialog fits its tall-window height again; dialog_fit's width check accepts 614.2-640 (the short choice groups are framework radios on one line; accepted by the port owner).

* Mask opacity: next lets the field's own decimals win, so no opt-in

* Info fields keep an edit through a rerun pass; wheel grab survives measuring runs; Rename paste menu; narrow window fits the docks; clipboard host test

* folder_drop: click through the control channel; remove the popup trace

* egui fork rev follows craft-libs next (b15ffe9)

* hold debug 5

* Save Effect: the include block is as wide as the body, so the dialog is

* Covered-dialog Escape tests draw the real quit prompt

- tests::covered_escape: the full app with a typed New Album name; an Escape in the quit prompt's creation pass and at a settled prompt leaves the field's typing and the dialog alone; without a prompt the same Escape closes the dialog (control).
- print_template and smart_rules flow harnesses show the real quit prompt while blocked and run each frame through its barrier (dialogs::show_under_prompt, cfg(test)), instead of passing blocked with no prompt drawn. Assertions unchanged.

* Lens blur shape tooltip test leaves the button before resting on it (a press hides a framework tooltip until the pointer leaves)

* Tests follow the v5 framework: batched click's release lands a frame later, a rerun pass has no events, the loupe menu is the framework's in both runs

- library_problem: one more step after a batched move/press/release (the framework holds what follows a press for the next frame).
- keymap measuring: the F9 check runs in the pass that had the F9.
- loupe view options: menu state read from the framework menu's binding in both runs (no egui popup any more).

* The Keyword List hold keeps the offset a real pass started at; a sizing run no longer overwrites it; remove debug

* Red eye and lens blur shape: a key after a focused photo-scoped control goes away acts on nothing stale; focus may be nowhere (next 8206a076a) or on the surviving control

* A field's edit under its own Cut/Copy/Paste menu goes on: typing kept while the menu is open and as it fades after Esc

The framework field's edit menu takes the focus while shown; the wrapper now counts an edit under way in the last pass as still under way while that menu shows, so Settings keeps the half-typed text and Return saves it after Esc closes the menu (tests::dialog_settings_text::using_the_edit_menu_does_not_save_a_half_typed_text). A field that went away with its menu open still starts afresh.

* Save Effect flow: a refused whitespace name keeps focus in the name field

* Bottom bar dropdown faces: measure inside a measuring run (a real-run measure missed the shell's kept transcript every frame)

* Dropdown faces: measure inside a measuring run

* Save Effect flow: the no-fields refusal keeps focus in the name field too

* IME tests drive the framework field as the app does: runtime installed, framework focus, caret on the text part

text_field_ime_commit_replaces_the_selection is green; the delete-surrounding test stays red on a framework gap (the text-field adapter drops delete-surrounding edits; framework-gaps.md).

* v5 keys: date picker keeps its open calendar when the picker goes disabled; a floating panel over the title bar stops the window move; dock tab and gap tests follow v5's tab focus and two-point gap

* Slider rows: the real run shows at the height a measuring run kept, so show_at's measure is the row's only one in the real run

* Slider rows and point-colour group measure in the run they are in (no measuring-run wrapper), so the body's measuring and real runs record the same leaves

* Headless capture forks the window's UI memory into the shadow context (fork_into) instead of copying egui Memory

A plain Memory copy shared the window's runtime state (pass state, focus, overlays) with the shadow, and the shadow's pass left the window's hold with nothing (pass_state.rs "another thread holds this context's pass state"). craft::ui::runtime::memory::fork_into copies scroll offsets and open sections by value and leaves the shadow its own runtime.

* Held-divider tests step once more after the move: the v6 dock applies a divider move in the following pass

* Slider value field gives the keyboard back on Return as on Escape; crop Angle writes a turned angle with its sign (+2.50)

* Slider value field: Return or Escape on the pass that opens it gives the keyboard back on the next pass; opening-release tests check the keyboard one frame later

* Import review grid fills its room: the room is the body's visible height, measured in the real run

The shell's chrome guess (window height less content height) assumed the window hugs its content; the fixed-size import review's empty space counted as chrome and the grid lost its second row. The grid's room now comes from the body's clip in the real run (one row gap less), used by both runs. port_screenshots: LC_SHOTS_ONLY renders only matching scenes.

* Pin craft to craft-libs ui-port-integration (b9664e62c)

* UNRUN: camera local tone and mixer band tests read toggled from each control's own AccessKit node by id (a label-keyed map was overwritten by another node with the same name)

* Pin sidebar folder counts to the visible right edge again

The old sidebar kept every row's photo count in one column at the panel's
visible right edge while the content scrolled sideways under it, cut the name
with an ellipsis exactly at the pin, and let the count (and a colour label's
dot) give way — wholly past the edge, reached by scrolling — for a row too deep
to hold its name's least room and the count.

The framework row laid the count out in its own column at the end of a row that
reaches past the panel, so past a few levels every count had scrolled out of
view. `Pinned` computes the pin per row from the frame's own visible edge and
passes the moved COUNT and GAP cell rects to `ListRow::cells`; the name's column
is left as the list lays it out (its width is what the framework's indent asks
for, so the tree keeps its steps) and the name is cut with `elide_head` at the
pin, the whole name going into the row's tooltip. Counts are right-aligned. A
list that fits the panel keeps the framework's own layout, where the row already
ends at the edge.

Tests: the four deleted `a_count_that_gives_way_is_whole_*` tests are restored
(frames after a panel-width change, a sideways flick, a one-frame grow, and
every frame of a sideways scroll), `a_count_never_covers_the_name_of_a_deep_row`
gets its pin assertions back, and the deep-chain test no longer asserts the
opposite of a pin.

* Pin craft to craft-libs ui-port-integration (7036b630ac), for the list rows' scoped tree indent

* Sidebar: the indent step narrows in bands as folders nest deeper

The sidebar planned its width in one 16 pt step per level and let the framework indent by its
icon slot, so a deep tree spent the panel on indent and pushed the names out of it. Restore the old
app's adaptive step: 16, 14, 12 (the old ladder 16/14/12/10 with the research's 12 pt floor, so the
10 pt rung is never drawn) chosen once a frame from the panel's visible width and the deepest row,
never narrower than the floor, with the sideways scroll as the last resort.

The step is handed to the framework as its tree's `TreeIndent` (craft-libs 7036b630ac), so the
label, the icon, the disclosure and the accessibility level follow it together, and the content
width and the label rect the app reports follow the same step.

Tests: the deleted `the_indent_step_narrows_in_bands` is back (whole bands from the panel width and
the deepest row, never below the floor), and `a_deep_library_path_keeps_the_names_readable` returns
to the old promise as `a_deep_library_path_narrows_the_indent_instead_of_cutting_the_names` (the
narrow step in the default panel, the full step in a wide one, a shallow tree unchanged).

* CodeRabbit #4750: reuse an Info draft only in the pass that drew it

* CodeRabbit #4750: keep an edit committed during a drag when the drag is cancelled

* CodeRabbit #4750: preview a duration from the gesture's start

A slide dragged shorter than the fade clamps the fade in the memory preview, so
merging the next preview (or the released value) onto those clamped settings
kept the fade short for good: Escape gave the slide back but left the shorter
fade, and a release at a slide that allows the original fade saved the clamped
one. The Playback durations now keep the settings the gesture began with and
work every preview and the save out from those, and a slider step reports its
gesture's Begin (the value it started from) so they can.

Tests: slideshow_duration_escape_restores_the_fade_a_shorter_slide_clamped,
slideshow_duration_release_clamps_the_fade_by_the_value_let_go_of,
slideshow_fade_duration_is_clamped_by_the_slide_alone.

* CodeRabbit #4750: ignore the journey that needs a private tmp

The saved-photos journey reads TMPDIR and LIGHTCRAFT_REAL_JOURNEY_ROOT and
panics when an ordinary run has neither, so a plain `cargo test -p
lightcraft-ui-egui --lib` failed on it. It is `#[ignore]`d with the reason, like
the crate's other tests that need something an ordinary run does not have, and
the module docs give the invocation with --ignored.

* CodeRabbit #4750: highlight the album, not its place in the results

The picker remembered the highlighted search result as an index into the
pickable results, so a caller that reordered its albums between frames (a rename,
a new album) made Enter pick another album, with the query unchanged. The state
holds the album's id now, resolved against this pass's results: Enter picks that
album, and nothing when it has gone or become blocked.

Test: keyboard_highlight_follows_its_album_through_a_reorder_and_a_blocking.

* CodeRabbit #4750: give a headless capture the window's frame input

* CodeRabbit #4750: a same-pass click needs egui's click, not just its press and release

* CodeRabbit #4750: histogram drags commit only on a live pass

* CodeRabbit #4750: Light nudges land only on a real enabled pass

* CodeRabbit #4750: a slider ends only the interaction it began

* CodeRabbit #4750: window the By Date list before it measures

Expanding the months of several years listed every row of the By Date tree to
one `List`: over a thousand rows is past the framework's 32,768-point size
guard, and the collection went inert (disclosure triangles included).

`rows::rows_in_view` now holds the sidebar's windowing policy (the rows in
view, a row below, plain space standing in for the rest, the names of the rows
left out kept for the control channel), and the By Date list uses it: only the
rows in view are built, the rest stand as the space above and below, and their
`source📅` names are registered where they are.

Test: `an_expanded_by_date_tree_keeps_showing_past_the_size_guard`.

* CodeRabbit #4750: the Effect menu's Return belongs to the focused control

The menu read Enter with `key_pressed` for any focused control and in every
pass: Return on Manage Presets, Reset Sliders or Save Current Settings applied
a preset to the mask instead of running the control, and a measuring pass of
the menu body could apply one during layout.

The keys are now read only while the search field has the keyboard in a live
pass (`text_field::focused`, or the field's own submitted Return), and Return
is consumed there; otherwise it is left for the control that has focus. The
search field is also focused only in a live pass.

Test: `effect_menu_return_runs_the_focused_action_instead_of_applying_a_preset`.

* CodeRabbit #4750: keep the hand-painted face under the focus ring

A hit area's caller paints the area's face over the same rectangle the leaf
paints its inset keyboard focus ring in, on the same layer, after the leaf:
a keyboard-focused segment, section header, flyout row or drop-down showed no
ring at all.

`HitArea::show_at` now reserves a place in the layer's paint list either side
of the leaf's own paint, and `HitAreaOutput::face_under_ring` moves what the
caller drew between them to the place before the ring, so the ring paints
above the face. Every caller (arrow button, section header and its eye, flyout
row, segments, drop-down) calls it once its face is drawn; hit rects, focus
stops and the face itself are unchanged.

Test: `the_area_face_paints_under_the_keyboard_focus_ring`.

The test now sends a key press after the focus request: the framework paints a
focus ring only for focus a key reached (`FOCUS_VISIBLE`), as a person tabbing
through the panel gives it.

* CodeRabbit #4750: come back to an edit committed during a drag, not over it

* CodeRabbit #4750: end a duration gesture so nothing of it lingers

A drag's start was only dropped on Step::Save, so a cancel (or a commit that
changed nothing) left it in temp memory, and the next one-pass change -- a press
on the track, a typed number, the wheel, with no Begin of its own -- restored
that stale start before saving. Ticking Manual slideshow after a cancelled drag
and then setting the slide duration wrote Manual back to what it was when the
drag began.

controls::slider now ends every gesture with Step::End (a commit, a cancel, and
a one-pass Set, which now also hears its own Begin), and duration_slider drops
its start there, so a later change can't colour the next one.

Test: slideshow_duration_a_one_pass_change_keeps_what_changed_since_a_cancelled_drag
(the one-pass change is a press on the track: these sliders carry no key policy,
so an arrow key does not step them).

* cargo fmt --all

* Crop and Remove dropdowns: publish rows only while the menu is open

A closing framework menu still paints its rows; labeled_dropdown now publishes
the row aliases only while the opener's menu slot is open (overlay::opened_from),
so a pick, Escape or a press outside leaves no live row. Sizing and measuring
runs show no menu, as the Tool Overlay dropdown, so they publish nothing and
take no pick. The crop overlay flow test checks the whole label sits in its row
instead of the opening clip.

* Make the ui-egui crate clippy-clean under -D warnings

The `cargo clippy --workspace --all-targets -- -D warnings` pass reported these
in the crate's own files, so each is fixed where clippy points:

- `egui::Id::new` -> `Id::unique` (same value; `Id::new` is deprecated)
- unused imports (`register` in crop.rs and lens_blur.rs), unused variables, and
  dead items: the unused `build_all` builder, `SideShown::label`, the test
  helpers `person` and `key`/`focus`/`tab_to`, and the never-constructed
  `Modal::Dialog` variant (with the docs that named it)
- a deprecated `scroll_area::State::offset` -> `clamped_offset` (its body)
- nested `if`s collapsed into let chains; a single-element `for` unrolled
- `!(x > 0.0)` on floats rewritten as a named condition, keeping NaN behaviour
- `filter_map(..then(..))` -> `filter(..).map(..)` and a `let ... else` -> `?`
- `unreachable!` in test matches -> `panic!("<what> {value}")`
- `red_eye`'s cognitive complexity (33/30): the numeric ownership, the target
  eye, the stale-gesture cancel and the per-slider cancel each became a named
  helper with the code moved, not rewritten
- `expect` in `install_framework` and the same panic in a `#[cfg(all(test, ...))]`
  fixture module, which clippy does not treat as test code: `assert!` there, and
  a file-level `allow(clippy::unwrap_used, clippy::panic)` with a reason in that
  test module only, plus one narrow `allow(clippy::if_same_then_else)` where the
  native-settings and ported scopes deliberately draw the same section

No behaviour or test assertions change.

* Make the ui-egui tests and dialogs clippy-clean

Fix the clippy findings in this branch's files without changing behaviour:

- collapse nested ifs into let chains (pick_flow, denoise_qualified_work,
  date_filter, keyword_suggestions) and drop an identical-branch if whose two
  arms drew the same tab (display_profile, slide_overlays_sdk)
- remove code nothing reads or calls: PaintedText and its collection, Node's
  description/checked, Fixture::idle/has/arm/undo_redo, frame::num and
  frame::choices, CONTRIBUTOR_GROW, the unused rename_preview re-export and
  AUTO/QUEUE consts, an unused had_focus, vec2 and Icon import, and a
  redundant `let mut state = state`
- replace unreachable! in tests with panic! carrying the case, and make
  dialog_content's About arm a no-op (show() never draws About there) instead
  of panicking
- split shell()'s press/close block into settle_dialog() with a Closing value,
  split the print template test into its workflow steps, and bundle the rule
  editor number field's span into a Span struct (too many arguments)
- egui::Id::new -> Id::unique, as_ref on a &str dropped, a closure called at
  its declaration inlined, needless &i18n::tr() borrows dropped, and
  crop_angle_label's re-export gated on cfg(test)

One narrow allow: HeadlessView::new() keeps expect() on install_runtime, which
registers on a fresh context and has no way to report a failure from new().

* Fix clippy findings in the ui-egui files for CI

Every finding from the PR 4750 clippy run in the files this branch owns,
fixed as clippy suggested or with a small refactor; no #[allow] added.

- unused imports, an unused ctx parameter (now `_ctx`), unused test helpers
  (`Fixture::has`, `Hit::published`), an unread `HitOutput.cancelled` field and
  its now-unwritable `Hit.visual` field
- collapsible ifs -> let chains (faces, mixer, mixer band flow test)
- identical if/else blocks and `(closure)()` calls collapsed
- useless `as_ref()` in accesskit label comparisons, `to_vec()` for a slice
  copy, `assert!(!x)` instead of `assert_eq!(x, false)`
- `unreachable!` in test helpers -> `panic!` with the offending value
- `number()` in the Print dialog takes a `NumberSpec` instead of 8 arguments
- cognitive complexity: local_rows' row-event loop, the two Save Effect
  include/popup journeys and the real journey test are split into named
  helpers (the journey test into stage/open/rate/develop/undo/persist/export
  phases), keeping every assertion and its order

The auto-import port test module is declared with `#[cfg(test)]` plus
`#[cfg(not(target_arch = "wasm32"))]` instead of one `all(...)`: clippy's
`allow-unwrap-in-tests`/`allow-panic-in-tests` only recognise the plain
`#[cfg(test)]` form, and the module is test code either way.

cargo fmt --all run.

* Clippy round 2: a test import and a needless mut

* CodeRabbit #4750: drop the test passes' texture deltas like the harness does

* CodeRabbit #4750: keep Light nudges across an invisible sizing pass, and stop the histogram test stepping the clock back

egui's `UiBuilder::invisible()` also disables the Ui, so a sizing pass is a disabled one:
`apply_pending` dropped the queued nudge there instead of keeping it for the pass that draws
(the sizing/measure check now comes first, the enablement check after — the order production
needs too, since a panel can be drawn in an invisible sizing run).

The histogram test's manual measuring pass ran at `h.time() + 0.1`, ahead of the harness clock, so
the next `step()` fed egui an earlier time and tripped its frame-history assert; it now runs at
`h.time()` — the time the next harness frame uses — as the Light test's passes do.

* Settings keyboard tests: a settle budget that survives a slow hosted runner

* Pin craft to ui-port-integration-2 (main + every open framework PR) and egui to the fork's b9770908e

* CI: the gate's ceiling records the ported suite's measured time (sharding is the follow-up)

* Rename/import: the unknown-tag warning row always takes its line, so a warning never moves the fields

* Masking test: the focused slider takes the arrow over another hovered one (#3271)

* Port main's cull stack_groups and dialog instance into the ported tests

* Port main's print-template folder menus without a nested framework submenu; keep the folder feature

* Rules editor: take arrow keys only in a real pass; window-fill guards for the ported bars

* Rules editor: notes on the focus drop; no debug prints left

* Rules editor: trace-freed tree; landing notes record the staged-pass root cause

* Print templates: open the folder dropdown only in a real pass; face painted whole

* Print templates: the folder pick is applied outside the menu body, so a picked folder reaches the save

* Print templates: the Folder selector has three intents (unpicked, User Templates, a named folder), and the clear is sent as the label the engine reads

* Print: selecting a template folder dismisses the picker

* Print: use framework context menus in the template browser

* Tests: match the boxed embedded lens in the optics fixture

* Print: apply template moves after drawing folder rows

* Smart Rules: keep keyboard focus on the moved rule

* Print tests: inspect the production text field region

* Fix input fixtures for folder drop and export variable tests

* Keep Settings heading aliases out of speculative passes

Check the three named SDK Cull checkboxes now that Stack and Regroup are mounted.

* Dates: exercise the sidebar’s real expansion state in fixtures

* Restore framework context menus on filmstrip photos and badges

* Route filmstrip wheel input through the explicit scroll step

* Print: dismiss on Escape from the template name field

* Menu test: exercise the reachable part of a clipped submenu row

* Masking: preserve overlay preference and show held Refine

* Masking tests: distinguish live development from brush tint

* Masking test: snapshot the held stroke after settling

* Keep export insertion and crop size automation wired

* Exercise Export and search through the installed SDK runtime

* Pin the LightCraft UI port to landed craft-libs main

* Format the merged LightCraft UI port

* Adapt LightCraft to the landed UI framework API

* Clear dead port helpers and split the brush assertions

* Keep recursive Alt-click for imported folders

* Check right-panel Tab order within its Tools landmark

* Assert Crop offset fields and sliders in Tab order

* Save Effect: a clicked name field keeps its focus after a refused Create

A focus Tab or a request gives a framework text field never surrenders on a press
elsewhere, but egui's text edit asks for the focus again on its own click, which puts
that focus back on egui's click-away rule. A click on Create, which takes no focus,
then dropped the name being corrected after a refused save. The Save naming fields now
keep the runtime's rule for a focus they already hold; no focus is requested.

(cherry picked from commit 7c1c70015502829b48ae515fb3472bc454b557ef)

* Preserve keyboard selection when the library chooser opens

* Install the UI runtime in real app startup test fixtures

* Drain completed frames in gesture regression fixtures

* Preserve main’s patched Candle and zip dependency pins

* Pin the LightCraft UI to the landed Craft framework fixes

* Take the owned response from framework toggle edits

* Avoid rendering demo photos in Settings keyboard trials

* Give the LightCraft Windows CI gate time to finish

* Use one file-backed photo for slideshow crop geometry coverage

* Clarify the default size of the file-backed test fixture

* Use a small nonempty library for Rules Editor tests

* Keep paint and numeric-input trials independent of demo photos

* Use two real files for Compare and reference render trials

* Keep test fixture imports in formatter order

* Keep Compare fixture above the zoom-window threshold

* Keep Quick Develop keyboard cases independent by edit row

* Keep a bounded cross-row Quick Develop keyboard sequence

* Skip photo renders for activity-only UI tests

* Wait for Activity fixture input readiness

* Hold a valid test download open until activity cancellation

* Separate the Tone Curve histogram status from graph editing

* Expect rating chip removal to clear stars and operator

* Log Ubuntu memory during the LightCraft draft gate

* Match the quoted Curve render path in test diagnostics

* Revert "Log Ubuntu memory during the LightCraft draft gate"

This reverts commit c90026ff8e.

* Port the per-photo denoise method picker to the SDK

* Run the draft's Ubuntu gate once on the 16-core runner

Temporary diagnostic for one run: does the gate complete on a 16-core/64 GB
runner? Revert before any further run or landing.

* Revert "Run the draft's Ubuntu gate once on the 16-core runner"

This reverts commit 894426b6c7.

* Pin the LightCraft SDK context lifetime backport

* Run the standard Ubuntu CI gate with two test threads

* Canonicalize the lockfile after the SDK backport pin

* Clarify the appearance mode fixture helper name

* Report frame geometry when the Rename pointer assertion fails
2026-12-02 21:31:09 -06:00
Bruno D. 0fbda761e0 Merge remote-tracking branch 'upstream/main' into lrc-map
# Conflicts:
#	crates/engine/src/library.rs
2026-12-02 21:10:59 -05:00
Bruno D. c2eb2a0baa LRC-MAP-VIEW: pins and groups work by keyboard
From review on the Map view: pins could only be reached with the mouse. Each pin
or group on the canvas is now a focusable button (Tab), named for screen readers
("Photo pin", "Group of 3 photos, 1 selected"). With one focused, the arrow keys
move to the nearest pin that way, Return or Space selects its photos (Cmd/Ctrl+
Return adds them), a screen reader's Click selects them too, and its preview shows
as on hover (not under its open loupe). The other Map keys keep working: a focused
pin keeps only its arrows, Return and Space (canvas_keys::mark_focused). Pins a
cell past the canvas, and the repeated world copies of a pin, take no focus.

Also: the test for tiles evicted before they were drawn keeps one view and
redraws until loaded, as the map does, since tiles dropped from the arrival queue
are now looked for again on a later frame.
2026-12-02 19:06:46 -05:00
Bruno D. 63dc151d2e LRC-MAP-VIEW: tiles waiting to be drawn count against the memory budget
From review on the Map view: the images in arrival events waiting for the UI's
next poll were not counted, so a burst of large tiles before a frame could hold
far more than the decoded-memory budget (96 MB for 24 tiles of 1024 px). They are
now bounded by it too: past it, the oldest waiting arrivals are dropped (a tile
still in memory is drawn from there; one evicted is looked for again while it is
in view, the map repainting every 100 ms while a tile is missing).

Also: a cached copy that fails to decode after a 304 is taken off the disk
(unless replaced since), so the next try fetches it whole.
2026-12-02 17:52:48 -05:00
Bruno D. 61e9037cd5 LRC-MAP-VIEW: a 304 renews only the tile copy it validated
From review on the Map view: a revalidation sends the validators of the copy on
disk and keeps its bytes. On a 304, the disk entry is renewed only while it
still holds those bytes (another writer may have replaced it meanwhile: that copy
is left as it is and revalidated later), and the map then shows the validated
copy, decoded, instead of renewing whatever older image memory held.
2026-12-02 17:42:34 -05:00
Bruno D. 1f2cbe4607 LRC-MAP-VIEW: a slow or throttling tile server can't hold a download slot or hide its status
From review on the Map view:
- An error answer (429, 5xx) is returned with its status and headers as soon as
  they arrive, its body never read: an error page too large or too slow no longer
  hides that the host is throttling (Retry-After reaches the backoff).
- lightcraft-fetch's Limits gains an overall deadline (`deadline`, HttpError::TooSlow),
  checked before every socket read and write, including chunk-size and trailer
  lines and each TLS handshake step (complete_io looped inside and is no longer
  used), and in connection setup when it comes before the connect timeout. A
  server trickling one byte under the stall timeout can no longer hold a request
  indefinitely. The tile transport sets it to its connect + body time; the model
  downloader passes none.
2026-12-02 17:23:41 -05:00
Bruno D. bfdaf65212 LRC-MAP-VIEW: a narrow Map view leaves the navigator panel out
When the window leaves less than 240 points of map beside the 220-point
navigator panel, the panel isn't drawn and the map takes the width (it had a
negative width at 200 points). The setting stays, so a wider window shows the
panel again.
2026-12-02 17:04:42 -05:00
Bruno D. 7548c2bb83 LRC-MAP-VIEW: OpenStreetMap's tile servers keep their credit and zoom under any id
A custom source pointed at OpenStreetMap's own tile servers (tile.openstreetmap.org,
its a./b./c. names, any path, a trailing dot) is now the OpenStreetMap source
whatever its id, so it always shows OpenStreetMap's licence credit and asks at
most zoom 19; another credit or a higher zoom is refused. docs/map.md says so,
and says exactly which files clearing the tile cache deletes.
2026-12-02 17:04:42 -05:00
Bruno D. 85cd40dc30 LRC-MAP-VIEW: the tile cache deletes only files it wrote
Clearing and evicting the cache, and sweeping leftover temporary files, now
touch only the names LightCraft gives (<source>/<z>/<x>/<y>.tile and
<y>.tile.<pid>-<seq>.part in numeric folders), so a cache folder pointed at a
folder that holds other files (LIGHTCRAFT_MAP_CACHE) loses none of them.
2026-12-02 16:45:35 -05:00
Bruno D. 875a7a4955 LRC-MAP-LOCATIONS: a deleted saved location's id is never given out again
Ids were the highest remaining plus one, so deleting the newest location gave
its id to the next one: a caller holding the old id could rename or change the
privacy of a different location. locations.json now keeps the highest id ever
given out (lastId; 0 in older files), so a new location always gets a new id,
also after a reopen.
2026-12-02 16:45:34 -05:00
Bruno D. 5a817e8787 LRC-MAP-LOCATIONS: saved locations and GPS ownership are never lost or saved ahead of their change
From review on the Map view:
- A damaged locations.json while prefs.json still holds an older copy of the
  saved locations: the damaged file is set aside and the older copy is taken
  over and confirmed, as when there is no file (a later save no longer leaves it
  behind in a prefs.json that drops it).
- A failed locations.json write stays pending like prefs.json: retried, counted
  as unsaved, and closing the library refuses until it lands.
- A locations.json unreadable at open: location commands are refused before
  anything changes, instead of keeping an edit only in memory.
- A prefs.json unreadable at open: a change that needs it is reported as unsaved
  rather than dropped silently (closing still works: retrying can't help).
- Opening another library retries the current one's pending prefs.json and
  locations.json writes first, and fails (keeping it open) if one can't land.
- GPS ownership is written to prefs.json only once its catalog change is on
  disk (the log appended and flushed, or the closing snapshot): prefs.json never
  holds ownership of a change a crash could lose, whatever saves it.
2026-12-02 16:19:09 -05:00
Bruno D. ac6129462e LRC-MAP-VIEW: review fixes for backoff, GPS ownership, approvals, tiles and the CLI
From review on the Map view:
- A later failure no longer shortens a Retry-After wait already running.
- Setting or removing GPS marks only the photos the batch changed as
  LightCraft's for their sidecar GPS.
- Info panel "Show Map" approvals are tied to the location's centre as well as
  its id (a deleted id can be reused) and cleared when another library opens.
- Tile textures are keyed by the URL-aware cache id, so a custom source pointed
  at another server doesn't show the old one's tiles.
- Clearing a drawn track log no longer drops one still loading.
- lightcraft-cli snapshot sessions stay offline: OpenStreetMap's tile policy
  rules out scripted fetching.
2026-12-02 14:16:32 -05:00
Bruno D. 928dc8140e LRC-MAP-VIEW: leave the translations to craft-i18n
AGENTS.md rule 16 (review on #4243): the Map view adds English strings only;
the 34 locale files are as on the merge base.
2026-12-02 13:54:51 -05:00
Bruno D. 7daf69bc3a LRC-MAP-VIEW: the tile service idles when it should and reloads evicted tiles
- A stale tile counts as new work only when it can be fetched: offline, it made
  every frame re-filter and re-sort the queues (review on #4243).
- A wanted tile evicted from memory (a view wanting more than the budget holds)
  is looked for again, at most once a second and only while no download waits.
- A tile missing from disk with nothing to fetch it is not looked up again until
  the retry delay. ServiceStats counts disk lookups.
2026-12-02 13:54:51 -05:00
skylar taylor-barrickandskylartaylor e3e76fd0f0 Wait for the GPU warm-up before a test or headless process ends (#620) (#4697)
* LR-BEHAV-GPU: no GPU warm-up is still loading the driver when a test or headless process ends (issue #620)

The first frame starts the GPU device warm-up on a thread of its own. A process
that ended a few milliseconds later, as every test does under nextest, could
exit while that thread was inside the Vulkan loader's dlopen of the driver,
running libLLVM's initializers: a SIGSEGV after the test had passed, or a hang.
Only the window's exit (LightcraftApp::shutdown) waited for GPU work.

warm_up now counts as in flight from the moment it is called, before its thread
exists, and wait_warm_up waits for it. Dropping a LightcraftApp waits for it,
bounded, unless shutdown already ran.

* LR-BEHAV-GPU: warm_up counts as in flight before it marks itself started (issue #620)

A second warm_up call racing the first could find it marked started and return
before the first had entered the gate, so a host dropping its app right after
that second call saw no warm-up in flight. The gate is now entered first, a
call that starts nothing drops its entry, and a closed gate starts nothing.

* LR-BEHAV-GPU: the app waits for the GPU warm-up when dropped on native builds only (issue #620)

The web build has no warm-up thread (warm_up and wait_warm_up do nothing there),
and the web host replaces the app's UI state by moving it out of the app, which
a Drop impl forbids (E0509 in the wasm check).

* LR-BEHAV-GPU: a deterministic test for the app's warm-up wait on drop (issue #620)

Fred's review of #4697: the first regression test could pass without
exercising the wait — ready() || !enabled() also holds when the warm-up
finished or never started, and no pending warm-up was ever established.

The gpu crate exposes doc-hidden test support, hold_warm_up_for_test(),
entering the same gate the real warm_up enters: a substitute warm-up the
caller holds. The test proves it is in flight (wait_warm_up(ZERO) is
false), builds an app that never ran a frame on another thread (the app
is not Send — its host-service callbacks are not — so it is built there),
and verifies with channel synchronization that dropping the app does not
return while the hold is kept, and returns once it is released. Without
the wait in Drop for LightcraftApp it fails at that assertion; with it,
it passes. No GPU, no device, no timing beyond a one-second observation
window whose proof is the release.

---------

Co-authored-by: skylartaylor <skylartaylor@users.noreply.github.com>
2026-12-02 08:34:26 -06:00
skylar taylor-barrick e944599ef4 Share one GPU device in the thumbnail tests (#4992)
* Share one GPU device in the thumbnail tests

gpu_drawn_fixture created a new wgpu instance, adapter and device for every
test. Its vkEnumeratePhysicalDevices unloads drivers that expose no device,
while another test thread's render calls vkSetDebugUtilsObjectNameEXT on the
process-wide device; Vulkan loaders before 1.4.345 then walk freed loader
state and crash with SIGSEGV (KhronosGroup/Vulkan-Loader#1863). The fixture
now reuses the render device (gpu::shared_device), or one process-wide device
that is never dropped.

render::thumbnail_tests looped 200 times (2 test threads): 31/200 SIGSEGV
before, 0/200 after.

* Keep the thumbnail tests' fallback device from racing the render device

gpu::shared_device returned None while the render device could still be
created later (GPU rendering turned off by another test through app.gpu, the
window's device pending), and gpu_drawn_fixture then created a Vulkan instance
of its own while another thread's render could create and use the render
device: the Vulkan-Loader#1863 race again. shared_device now creates the render
device whatever the preference, and waits while the window's device is being
adopted, so None means no render device can exist in this process any more
(switched off by the environment, creation failed, or the process is ending).
The fixture creates its own device only when the environment switches the GPU
off or creating the device failed: once the process is ending it skips the
test rather than create a device during teardown. The wait for the window's
device has a 60 s deadline and then panics, since returning None would let the
fixture race the window's device.

shared_device overrides the switch that keeps the GPU off (also after a launch
that crashed creating the device, #136), so the app must not have it: it now
exists only in the gpu crate's tests and with a new test-support feature, off
by default, which only dev-dependencies turn on (ui-egui's, and the gpu crate's
own for tests/shared_device.rs). The app's and the workspace's normal builds
don't have it.

The fixture's texture work runs inside error scopes, so an error in it fails
the test instead of stopping GPU rendering for every test in the process.

tests/shared_device.rs: with GPU rendering off and the window's device pending,
shared_device waits for the adoption and settles the render device.
render::thumbnail_tests looped 100 times (2 test threads): 100/100 passed;
with LIGHTCRAFT_GPU=0 (the fixture's own device) 50/50 passed.
2026-12-02 08:34:06 -06:00
FredApps d5bfabdc5e Merge pull request #5003 from wanikhawar/claude/issue-4953-6608cd
perf(merge): grid ring search for ANMS point thinning (#4953)
2026-12-02 12:43:03 +01:00
FredApps 6999f218e8 Merge pull request #4967 from wanikhawar/perf/lens-blur-one-pass
perf(lens-blur): one pass for the four blur levels, and no full-image copy (#4949)
2026-12-02 12:41:00 +01:00
FredApps dfacce6ad3 Merge pull request #5007 from wanikhawar/perf/gpu-v14-heal-spot-boxes
GPU render: V14 heal spots read back only what each spot reads (#4960)
2026-12-02 12:40:29 +01:00
FredApps bc4c7e36d3 Merge pull request #4999 from wanikhawar/gpu/readback-staging-pool-4958
GPU: readbacks reuse staging buffers and wait only for their own submission (#4958)
2026-12-02 12:39:57 +01:00
FredApps c92eaaf842 Merge pull request #5004 from wanikhawar/perf/4951-bm3d-dct-cache
BM3D (CPU): transform each block once per plane, not once per group (#4951)
2026-12-02 11:40:14 +01:00
FredApps d78c33ea14 Merge pull request #5002 from wanikhawar/perf/4950-vignette-separable
Vignette: separate the CPU distance into column and row terms (#4950)
2026-12-02 11:39:52 +01:00
FredApps 5b931e1552 Merge pull request #4969 from wanikhawar/fix/4838-merge-dng-lj92
fix(merge): write 16-bit integer merge DNGs as lossless JPEG tiles (#4838)
2026-12-02 11:39:29 +01:00
FredApps 3f37eafe0d Merge pull request #4961 from wanikhawar/perf/hashset-stacks-cull
perf(catalog,cull): look photo ids up in hash sets instead of lists
2026-12-02 11:38:19 +01:00
FredApps a63653dc0b Merge pull request #4517 from john01px2022/brush-stroke-feather
LR-MASK-BRUSH: a brush stroke is feathered as one dab is (process V16)
2026-12-02 11:01:26 +01:00
FredApps 1662ce4a39 Merge pull request #3138 from r3d42-git/r3d/cr3-profile-alignment
LR-PROF-CAMERACOLOR: align CR3 calibration through resolved lens profiles
2026-12-02 10:59:59 +01:00
FredApps 832eb10500 Merge main into #4967 2026-12-02 10:13:07 +01:00
FredApps 7c133410f1 lens blur: sum each cell row from only the bands that reach it, and free each level's partials once summed (#4949) 2026-12-02 10:13:07 +01:00
FredApps 7e48211966 Merge main into #4999 2026-12-02 10:12:39 +01:00
FredApps 8bae0315c7 gpu: readback pool test counts only reusable staging buffers and holds the device test lock (#4958) 2026-12-02 10:12:39 +01:00
FredApps bf6a641905 Merge main into #5003 2026-12-02 10:11:58 +01:00
FredApps 29ab3f7916 merge: ANMS ring search skips ring edges outside the grid (#4953) 2026-12-02 10:11:58 +01:00
FredApps a746f7da2e Merge main into #4969 2026-12-02 10:10:59 +01:00
FredApps c807c28fc4 Merge main into #4961 2026-12-02 10:10:56 +01:00
FredApps 45344537c0 Merge pull request #4996 from Terra854/fix/curve-input-diagnostic-path-4988
Fix escaped-path assertions in native curve histogram tests
2026-12-02 09:44:39 +01:00
r3d42-git 95fa91445b Distinguish frame and calibration crop factors in CR3 lookup 2026-12-02 09:44:31 +01:00
r3d42-git a5c5311dd2 Verify fixed-mount CR3 correspondence through the shared lens lookup 2026-12-02 09:16:16 +01:00
r3d42-git 4a4391816d Synchronize denoiser model-change tests with worker completion 2026-12-02 09:16:16 +01:00
Khawar Zamman Wani 395402ead3 GPU render: V14 heal spots read back only what each spot reads (#4960)
Under process V14 the GPU renderer read the whole image back, ran the
spots on the CPU and uploaded the whole image again: about 120 ms of
transfer on a 24 MP export, even for one spot. Each spot now reads back
only the rectangle it reads (its box and its source patch,
`spots::spot_reads`), is healed on the CPU by the same code as the CPU
renderer (`spots::apply_spot`, split out of `spots::apply`), and only
its box is written back. The V13 path is unchanged.
2026-12-02 13:16:05 +05:30
r3d42-git 1e5d8294b8 Compare pooled CR3 warps with the unshaded fallback and isolate diagnostic runs 2026-12-02 07:29:56 +01:00
Khawar Zamman Wani 8e55f56f47 perf(merge): grid ring search for ANMS point thinning (#4953)
ANMS compared every keypoint with every stronger one (O(n^2), n up to
12,000). Bucket the points into a uniform grid and search rings of cells
outward until no unsearched cell can hold a closer stronger point. Points
with no stronger predecessor skip the search. The result is identical;
a test checks it against the old quadratic version.
2026-12-02 11:49:08 +05:30