Skip to content
Closed
Show file tree
Hide file tree
Changes from 220 commits
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
4ffc487
PERF-CULL-0: ui.inspect reports how the loupe showed each photo it wa…
OneSlips Oct 14, 2026
bc3cf2c
PERF-CULL-1: browsing a folder shows its first photos within a second
OneSlips Oct 14, 2026
e477cc4
PERF-CULL-2: the loupe makes the next photos' camera previews ahead o…
OneSlips Oct 14, 2026
d46dbb5
PERF-CULL-3: CR3 previews take the smallest embedded JPEG that covers…
OneSlips Oct 14, 2026
6e87dee
PERF-CULL-4: Camera preview label; thumbnails ahead of the step; 100 …
OneSlips Oct 14, 2026
124ff5b
PERF-CULL-5: lightcraft-cli bench-cull and tools/cull-bench.py time c…
OneSlips Oct 14, 2026
0f3c941
PERF-CULL-5: bench-cull --files K samples a slow folder; e2e test; cu…
OneSlips Oct 14, 2026
43c59f3
PERF-CULL: docs for culling speed (parity rows, gap 26, preview reads…
OneSlips Oct 14, 2026
18c3d19
PERF-CULL: the whole-file preview decodes a plain sRGB camera JPEG th…
OneSlips Oct 15, 2026
54f1e9d
PERF-THUMB-FIRST: CR3 thumbnails decode the 1620 px PRVW copy, and gr…
OneSlips Oct 16, 2026
e0770fe
PERF-CULL: cargo fmt
OneSlips Oct 26, 2026
b8ddec5
PERF-CULL: docs for culling speed (parity rows LR-IMP-LOCAL, LR-IMP-P…
OneSlips Oct 26, 2026
3f8ffb2
PERF-CULL: review fixes (bench work folder, 8-bit APP1 cap, size sort)
OneSlips Oct 26, 2026
4668189
PERF-PREVIEW-PREP: the loupe uses built previews; photos are prepared…
OneSlips Oct 21, 2026
dfd9830
PERF-CULL-TIERS: the camera JPEG first for every cell and the loupe; …
OneSlips Oct 22, 2026
f3b65fe
PERF-CULL: the bench work-folder test removes only a folder it made
OneSlips Oct 26, 2026
ad1e876
Merge pr/culling-speed (review fix) into pr/preview-prep
OneSlips Oct 26, 2026
9a12940
Merge pr/preview-prep (review fix of #3055) into pr/cull-tiers
OneSlips Oct 26, 2026
280c4c3
PERF-CULL: browsing keeps the whole listing for the folder bookkeepin…
OneSlips Oct 26, 2026
a9f79fd
PERF-PREVIEW-PREP: review fixes (smart previews honour id, editing bu…
OneSlips Oct 26, 2026
caa0c6f
Merge pr/culling-speed (review fixes) into pr/preview-prep
OneSlips Oct 26, 2026
cb37152
Merge pr/preview-prep (review fixes) into pr/cull-tiers
OneSlips Oct 26, 2026
06fc873
PERF-CULL-TIERS: review fixes (stand-in priority in the renderer's ch…
OneSlips Oct 26, 2026
6a9853f
PERF-CULL: cull-bench counts twelve thumbnails while the folder is st…
OneSlips Oct 26, 2026
ace414e
PERF-PREVIEW-PREP: a view change stops the background build for the o…
OneSlips Oct 26, 2026
49e035e
Merge pr/culling-speed (review fix) into pr/preview-prep
OneSlips Oct 26, 2026
817685e
Merge pr/preview-prep (review fixes) into pr/cull-tiers
OneSlips Oct 26, 2026
a770e25
PERF-CULL: cull-bench picks the thumbnail threshold from the final ph…
OneSlips Oct 26, 2026
27baae7
PERF-PREVIEW-PREP: the view signature covers every photo; the view-ch…
OneSlips Oct 26, 2026
c9c402e
Merge pr/culling-speed (review fix) into pr/preview-prep
OneSlips Oct 26, 2026
a4887a4
Merge pr/preview-prep (review fixes) into pr/cull-tiers
OneSlips Oct 26, 2026
e5acb06
PERF-CULL: cull-bench stops waiting for twelve thumbnails 30 s after …
OneSlips Oct 26, 2026
7a9a6d0
PERF-PREVIEW-PREP: in the marked scope, marking a photo changes what …
OneSlips Oct 26, 2026
2ca46f0
Merge pr/culling-speed (review fix) into pr/preview-prep
OneSlips Oct 26, 2026
e63df43
Merge pr/preview-prep (review fixes) into pr/cull-tiers
OneSlips Oct 26, 2026
c96dd9a
PERF-CULL: cull-bench times only the thumbnails the browse adds
OneSlips Oct 26, 2026
ca217b7
PERF-PREVIEW-PREP: merge cull-bench fix from pr/culling-speed
OneSlips Oct 26, 2026
b110982
PERF-CULL-TIERS: merge cull-bench fix from pr/preview-prep
OneSlips Oct 26, 2026
38d8bd2
PERF-CULL: count every thumbnail made, for the browse benchmark
OneSlips Oct 26, 2026
aef6866
PERF-PREVIEW-PREP: merge thumbnail counter from pr/culling-speed
OneSlips Oct 26, 2026
d2a8687
PERF-PREVIEW-PREP: the marked-scope test waits for its builds before …
OneSlips Oct 26, 2026
ddbcbb3
PERF-CULL-TIERS: merge thumbnail counter and test cleanup from pr/pre…
OneSlips Oct 27, 2026
cfe47d4
PERF-CULL: stand-ins made ahead keep their order, size and photo
OneSlips Oct 27, 2026
a8093d7
PERF-PREVIEW-PREP: merge stand-in fixes from pr/culling-speed
OneSlips Oct 27, 2026
7298853
PERF-CULL-TIERS: merge stand-in fixes from pr/preview-prep
OneSlips Oct 27, 2026
3f70027
PERF-CULL: a late stand-in never takes another photo's place in the l…
OneSlips Oct 27, 2026
0a0f1c2
PERF-PREVIEW-PREP: merge loupe stand-in guard from pr/culling-speed
OneSlips Oct 27, 2026
75fd0b1
PERF-CULL-TIERS: merge loupe stand-in guard from pr/preview-prep
OneSlips Oct 27, 2026
dcb3df1
PERF-CULL: a stand-in made ahead and no longer wanted is dropped when…
OneSlips Oct 27, 2026
d1d9c7e
PERF-PREVIEW-PREP: merge look-ahead fix from pr/culling-speed
OneSlips Oct 27, 2026
6262664
PERF-CULL-TIERS: merge look-ahead fix from pr/preview-prep
OneSlips Oct 27, 2026
8e0b280
PERF-CULL: a running stand-in the loupe waits for keeps its look-ahea…
OneSlips Oct 27, 2026
ee7bc04
PERF-PREVIEW-PREP: merge look-ahead slot fix from pr/culling-speed
OneSlips Oct 27, 2026
ca35d54
PERF-CULL-TIERS: merge look-ahead slot fix from pr/preview-prep
OneSlips Oct 27, 2026
a0b4d5e
PERF-CULL: merge main (upstream module split) into pr/culling-speed
OneSlips Oct 27, 2026
5517b48
PERF-PREVIEW-PREP: merge pr/culling-speed (with main's module split)
OneSlips Oct 27, 2026
c825956
PERF-CULL-TIERS: merge pr/preview-prep (with main's module split)
OneSlips Oct 27, 2026
055b755
PERF-CULL: merge main (#2975) into pr/culling-speed
OneSlips Oct 27, 2026
ff53132
PERF-PREVIEW-PREP: merge pr/culling-speed (main #2975)
OneSlips Oct 27, 2026
43da25d
PERF-CULL-TIERS: merge pr/preview-prep (main #2975)
OneSlips Oct 27, 2026
627ed43
PERF-CULL: CodeRabbit round 10 (browse order ties, library skip, CR3 …
OneSlips Oct 27, 2026
64e2036
PERF-PREVIEW-PREP: merge pr/culling-speed (CodeRabbit round 10)
OneSlips Oct 27, 2026
9da02c8
PERF-CULL-TIERS: merge pr/preview-prep (CodeRabbit round 10); filmstr…
OneSlips Oct 27, 2026
bd8cd0b
PERF-CULL: CodeRabbit round 11 (browse listing errors and library roo…
OneSlips Oct 27, 2026
a1e8ede
PERF-PREVIEW-PREP: merge pr/culling-speed (CodeRabbit round 11)
OneSlips Oct 27, 2026
0073579
PERF-CULL-TIERS: merge pr/preview-prep (CodeRabbit round 11)
OneSlips Oct 27, 2026
c298f44
PERF-CULL: CodeRabbit round 12 (loupe timing: the After window, over …
OneSlips Oct 27, 2026
0d44248
PERF-PREVIEW-PREP: merge pr/culling-speed (CodeRabbit round 12)
OneSlips Oct 27, 2026
14d927d
PERF-CULL-TIERS: merge pr/preview-prep (CodeRabbit round 12)
OneSlips Oct 27, 2026
7fa770f
PERF-CULL: CodeRabbit round 13 (loupe timing: the Before window when …
OneSlips Oct 27, 2026
aa852a7
PERF-PREVIEW-PREP: merge pr/culling-speed (CodeRabbit round 13)
OneSlips Oct 27, 2026
703f572
PERF-CULL-TIERS: merge pr/preview-prep (CodeRabbit round 13)
OneSlips Oct 27, 2026
ca78df4
PERF-CULL: CodeRabbit round 14 (loupe timing: a Before window side by…
OneSlips Oct 27, 2026
757179f
PERF-PREVIEW-PREP: merge pr/culling-speed (CodeRabbit round 14)
OneSlips Oct 27, 2026
0e24ada
PERF-CULL: CodeRabbit round 15 (the split-view timing test asserts it…
OneSlips Oct 27, 2026
be21c91
PERF-PREVIEW-PREP: merge pr/culling-speed (CodeRabbit round 15)
OneSlips Oct 27, 2026
54ed6ba
PERF-CULL-TIERS: merge pr/preview-prep (CodeRabbit rounds 14-15)
OneSlips Oct 27, 2026
a84f9a5
PERF-CULL: CodeRabbit round 16 (side by side with \ held, each window…
OneSlips Oct 27, 2026
b162dc0
PERF-PREVIEW-PREP: merge pr/culling-speed (CodeRabbit round 16)
OneSlips Oct 27, 2026
643686d
PERF-CULL-TIERS: merge pr/preview-prep (CodeRabbit round 16)
OneSlips Oct 27, 2026
d86ca15
PERF-CULL: merge main (37b2e523a)
OneSlips Oct 27, 2026
0f8d402
PERF-PREVIEW-PREP: merge pr/culling-speed (main 37b2e523a)
OneSlips Oct 27, 2026
45e387e
PERF-CULL: a cancelled browse stops ordering its files; browsing hand…
OneSlips Oct 27, 2026
0cd8100
PERF-CULL-TIERS: merge pr/preview-prep (main 37b2e523a)
OneSlips Oct 27, 2026
7ea9270
PERF-PREVIEW-PREP: merge pr/culling-speed (cancelled browse, earlier …
OneSlips Oct 28, 2026
83c87eb
PERF-CULL-TIERS: merge pr/preview-prep (cancelled browse, earlier pro…
OneSlips Oct 28, 2026
8df2933
PERF-CULL: the web build runs the browse job in place as FnMut (it ha…
OneSlips Oct 28, 2026
22e05e5
Merge branch 'pr/culling-speed' into pr/preview-prep
OneSlips Oct 28, 2026
cf7fb95
Merge branch 'pr/preview-prep' into pr/cull-tiers
OneSlips Oct 28, 2026
d1909e4
PERF-CULL: a scan hands the probes it took back however it ends (Code…
OneSlips Oct 28, 2026
5a5c108
Merge branch 'pr/culling-speed' into pr/preview-prep
OneSlips Oct 28, 2026
71c85d8
PERF-PREVIEW-PREP: built previews are the ones on disk; stand-ins ahe…
OneSlips Oct 28, 2026
60ee8a7
PERF-CULL-TIERS: merge pr/preview-prep (scan probes kept however a sc…
OneSlips Oct 28, 2026
ccdc0e9
PERF-PREVIEW-PREP: a preview for a discarded cache fails the photo; c…
OneSlips Oct 28, 2026
4c9a6c3
PERF-CULL-TIERS: merge pr/preview-prep (discarded-cache previews fail…
OneSlips Oct 28, 2026
3a15550
PERF-PREVIEW-PREP: a photo another build renders counts once it is bu…
OneSlips Oct 28, 2026
c551798
PERF-CULL: put_memory holds the cache generation through its insertio…
OneSlips Oct 28, 2026
a1d095d
PERF-CULL: merge main (59a5d00c6, the ui-egui split of #3111)
OneSlips Oct 28, 2026
1dcd883
PERF-PREVIEW-PREP: merge pr/culling-speed (main 59a5d00c6, the ui-egu…
OneSlips Oct 28, 2026
2a0beb4
PERF-CULL-TIERS: merge pr/preview-prep (main 59a5d00c6; shared photos…
OneSlips Oct 28, 2026
aabd24d
PERF-CULL: browsing skips the library's folder by any name it has (a …
OneSlips Oct 28, 2026
2b40f33
PERF-CULL: merge main (e381c1ae6, Release 0.15.0)
OneSlips Oct 28, 2026
bae8a0c
PERF-CULL: rustfmt the library-folder check
OneSlips Oct 28, 2026
4f4d838
PERF-PREVIEW-PREP: cancelled builds stop before their test library is…
OneSlips Oct 28, 2026
3772223
PERF-PREVIEW-PREP: merge pr/culling-speed (library folder by any name…
OneSlips Oct 28, 2026
fdf068c
PERF-CULL-TIERS: merge pr/preview-prep (library folder by any name; c…
OneSlips Oct 28, 2026
c0662a5
PERF-CULL: the library folder is skipped by its resolved path only; l…
OneSlips Oct 28, 2026
ac1436c
PERF-PREVIEW-PREP: the replaced background build is held by TestHold,…
OneSlips Oct 28, 2026
8aa0d0a
PERF-PREVIEW-PREP: merge pr/culling-speed (library folder by its reso…
OneSlips Oct 28, 2026
0d9da6f
PERF-CULL-TIERS: merge pr/preview-prep (library folder by its resolve…
OneSlips Oct 28, 2026
bd982d2
PERF-CULL: a browsed folder has one spelling (. and .. taken out by n…
OneSlips Oct 29, 2026
ee710da
PERF-PREVIEW-PREP: TestHold counts its holders: one test's release do…
OneSlips Oct 29, 2026
6b43907
PERF-PREVIEW-PREP: merge pr/culling-speed (a browsed folder's one spe…
OneSlips Oct 29, 2026
b3b9904
PERF-PREVIEW-PREP: TestHold's release without the deprecated fetch_up…
OneSlips Oct 29, 2026
e6614d1
PERF-CULL-TIERS: merge pr/preview-prep (a browsed folder's one spelli…
OneSlips Oct 29, 2026
ca616d2
PERF-CULL: browsing resolves `..` the way the system does, and `.` is…
OneSlips Oct 29, 2026
7885a20
PERF-PREVIEW-PREP: merge pr/culling-speed (browsing resolves `..` sym…
OneSlips Oct 29, 2026
f6edc11
PERF-CULL-TIERS: merge pr/preview-prep (browsing resolves `..` symlin…
OneSlips Oct 29, 2026
35b7420
PERF-CULL: browsing resolves the folder on its worker, never on the w…
OneSlips Oct 29, 2026
5d25c9c
PERF-PREVIEW-PREP: merge pr/culling-speed (browse folder resolved on …
OneSlips Oct 29, 2026
ecde1ef
PERF-CULL-TIERS: merge pr/preview-prep (browse folder resolved on the…
OneSlips Oct 29, 2026
0f5dc60
PERF-CULL: merge origin/main (77c0a6adf)
OneSlips Oct 29, 2026
4383021
PERF-CULL: the browse worker resolves the path as given, not the view…
OneSlips Oct 29, 2026
26d7c31
PERF-PREVIEW-PREP: merge pr/culling-speed (browse worker gets the pat…
OneSlips Oct 29, 2026
52e7671
PERF-PREVIEW-PREP: bench-cull measures small folders and never writes…
OneSlips Oct 29, 2026
e79b002
PERF-PREVIEW-PREP: editing renders the loupe from its source; the lou…
OneSlips Oct 29, 2026
5d9cf42
PERF-PREVIEW-PREP: loupeSteps.total, a step cursor that survives the …
OneSlips Oct 29, 2026
6ae4e3b
PERF-PREVIEW-PREP: the camera preview is located once when the fast d…
OneSlips Oct 29, 2026
c9ad3b2
PERF-CULL-TIERS: merge pr/preview-prep (CodeRabbit fixes for #3055 / …
OneSlips Oct 29, 2026
36d8ded
PERF-CULL-TIERS: bench-cull times only the previews that loaded; --fi…
OneSlips Oct 29, 2026
c11d136
PERF-CULL-TIERS: background preparation: no prefs.json write for an a…
OneSlips Oct 29, 2026
cdaac06
PERF-CULL-TIERS: document ui.inspect thumbFirst (CodeRabbit, #3080)
OneSlips Oct 29, 2026
b1d7587
PERF-PREVIEW-PREP: the uncapped preview cache warns once per session …
OneSlips Oct 29, 2026
cebda0a
PERF-CULL-TIERS: merge pr/preview-prep (low-disk alert for the uncapp…
OneSlips Oct 29, 2026
ab8b405
PERF-PREVIEW-PREP: the free-space read runs off the UI thread; a queu…
OneSlips Oct 29, 2026
b6469c4
PERF-CULL-TIERS: merge pr/preview-prep (free-space read off the UI th…
OneSlips Oct 29, 2026
3d2776b
PERF-CULL-TIERS: a failed loupe render stops holding background prepa…
OneSlips Oct 29, 2026
c1c0384
PERF-PREVIEW-PREP: one free-space read at a time across library switc…
OneSlips Oct 29, 2026
345ad13
PERF-CULL-TIERS: merge pr/preview-prep (one free-space read at a time…
OneSlips Oct 29, 2026
6089278
PERF-PREVIEW-PREP: bench-cull --json replaces its file instead of wri…
OneSlips Oct 29, 2026
6f3ceaa
PERF-CULL-TIERS: merge pr/preview-prep (bench-cull --json replaces it…
OneSlips Oct 29, 2026
5581833
PERF-PREVIEW-PREP: bench-cull refuses a --json entry in the source fo…
OneSlips Oct 29, 2026
c704ac5
PERF-CULL-TIERS: merge pr/preview-prep (bench-cull refuses a --json e…
OneSlips Oct 29, 2026
77e4ef3
PERF-CULL-TIERS: merge main (prefetch check keeps main's is_none_or f…
OneSlips Oct 30, 2026
cb17c83
PERF-CULL-TIERS: merge main (upstream's updater-icon CI fix, #3365)
OneSlips Oct 30, 2026
9213c91
PERF-CULL: merge main (integration batch 45)
OneSlips Oct 30, 2026
5068b38
PERF-PREVIEW-PREP: merge main (integration batch 45)
OneSlips Oct 30, 2026
4260968
PERF-CULL-TIERS: merge main (integration batch 45)
OneSlips Oct 30, 2026
eaff8ae
PERF-CULL: a frame without the loupe ends its step timing, so time aw…
OneSlips Oct 31, 2026
8dee32d
PERF-PREVIEW-PREP: Build Standard-Sized Previews keeps 2560 px before…
OneSlips Oct 31, 2026
8f76176
PERF-PREVIEW-PREP: merge pr/culling-speed (#3055 loupe timing fix)
OneSlips Oct 31, 2026
369fbb2
PERF-CULL-TIERS: merge pr/preview-prep (#3055 loupe timing and #3077 …
OneSlips Oct 31, 2026
094f945
PERF-CULL: merge main (integration PR #3430)
OneSlips Oct 31, 2026
a204e97
PERF-CULL: main's merge keeps one Russian "★ Favorites" and its brows…
OneSlips Oct 31, 2026
ed3fa98
PERF-CULL: stepping fast drops the queued Before render too; the thum…
OneSlips Oct 31, 2026
f1fa8c5
PERF-PREVIEW-PREP: merge pr/culling-speed (#3055 with main c4fd54e0a,…
OneSlips Oct 31, 2026
d661120
PERF-CULL-TIERS: merge pr/preview-prep (#3077 and #3055 with main c4f…
OneSlips Oct 31, 2026
79bca88
PERF-CULL-TIERS: merge main (2987aeef7, #3390: Flatpak accessibility …
OneSlips Oct 31, 2026
14b9482
PERF-PREVIEW-PREP: the free space is read every few minutes, not only…
OneSlips Oct 31, 2026
25e81d0
PERF-PREVIEW-PREP: merge main (2987aeef7, #3390: Flatpak accessibilit…
OneSlips Oct 31, 2026
b37a1c6
PERF-CULL-TIERS: merge pr/preview-prep (#3077: the free space is read…
OneSlips Oct 31, 2026
4a756c8
PERF-PREVIEW-PREP: a slow free-space read shows in the activity stack…
OneSlips Oct 31, 2026
e169dc3
PERF-CULL-TIERS: merge pr/preview-prep (#3077: the slow free-space re…
OneSlips Oct 31, 2026
e8bac33
PERF-PREVIEW-PREP: background preparation advances on every logic pas…
OneSlips Oct 31, 2026
cc3adca
PERF-CULL-TIERS: merge pr/preview-prep (#3077: background preparation…
OneSlips Oct 31, 2026
a0465aa
PERF-CULL: a photo the loupe opens on is never a fast step; only a st…
OneSlips Oct 31, 2026
53b0baf
PERF-PREVIEW-PREP: merge pr/culling-speed (#3055: a photo the loupe o…
OneSlips Nov 1, 2026
2254fe0
PERF-CULL-TIERS: merge pr/preview-prep (#3055 via #3077: a photo the …
OneSlips Nov 1, 2026
d99ba16
PERF-CULL: merge main (c50b74df9, #3390 Flatpak accessibility bus, #3…
OneSlips Nov 1, 2026
6cc52b2
PERF-CULL: the cull benchmark rates one named photo and puts its rati…
OneSlips Nov 1, 2026
1b5bb73
PERF-PREVIEW-PREP: merge pr/culling-speed (#3055: main c50b74df9, the…
OneSlips Nov 1, 2026
dd14bda
PERF-CULL: the cull benchmark refuses a full step history, says when …
OneSlips Nov 1, 2026
8267943
PERF-PREVIEW-PREP: a forced build renders a photo another build was r…
OneSlips Nov 1, 2026
4b14567
PERF-PREVIEW-PREP: merge pr/culling-speed (#3055: cull benchmark fixe…
OneSlips Nov 1, 2026
316c6b6
PERF-CULL-TIERS: merge pr/preview-prep (#3077: forced builds render s…
OneSlips Nov 1, 2026
3afaf92
PERF-CULL: the cull benchmark stops on a folder with no photos and ti…
OneSlips Nov 1, 2026
2d224ee
PERF-PREVIEW-PREP: merge pr/culling-speed (#3055: cull benchmark empt…
OneSlips Nov 1, 2026
e169db6
PERF-CULL-TIERS: merge pr/preview-prep (#3055: cull benchmark empty-f…
OneSlips Nov 1, 2026
550c416
PERF-CULL: the cull benchmark says no photos are visible, keeps an ea…
OneSlips Nov 1, 2026
5477fe4
PERF-CULL: a raw's preview pointer is read with checked bounds on its…
OneSlips Nov 1, 2026
7599729
PERF-PREVIEW-PREP: merge pr/culling-speed (#3055: cull benchmark mess…
OneSlips Nov 1, 2026
fb889c2
PERF-CULL-TIERS: merge pr/preview-prep (#3055: cull benchmark message…
OneSlips Nov 1, 2026
e084927
PERF-CULL: bench-cull refuses a --work or --json inside the photo fol…
OneSlips Nov 1, 2026
4bbe52a
PERF-PREVIEW-PREP: merge pr/culling-speed (#3055: bench-cull refuses …
OneSlips Nov 1, 2026
898c278
PERF-PREVIEW-PREP: a test that building previews writes nothing next …
OneSlips Nov 1, 2026
11b2182
PERF-CULL-TIERS: merge pr/preview-prep (#3055 bench-cull --work guard…
OneSlips Nov 1, 2026
4f3df77
PERF-CULL-TIERS: background work waits for the pictures at most 2 s a…
OneSlips Nov 1, 2026
a653dd8
PERF-CULL: cull-bench.py prints its usage on missing arguments and re…
OneSlips Nov 1, 2026
3687f24
PERF-CULL: a preview cut short by the end of the file is not taken (C…
OneSlips Nov 1, 2026
9da19f1
PERF-PREVIEW-PREP: merge pr/culling-speed (#3055: cull-bench.py usage…
OneSlips Nov 1, 2026
8999c39
PERF-PREVIEW-PREP: the shoot-folder test waits for the background bui…
OneSlips Nov 1, 2026
4898771
PERF-CULL-TIERS: merge pr/preview-prep (#3055 cull-bench.py usage, tr…
OneSlips Nov 1, 2026
e8c6840
PERF-CULL-TIERS: only the release window of a long hold frees the win…
OneSlips Nov 1, 2026
a9a8d0f
PERF-CULL: a cut-short preview must reach its own JPEG end marker; cu…
OneSlips Nov 1, 2026
d6ea456
PERF-CULL: merge pr/culling-speed (#3055: the JPEG end-marker walk an…
OneSlips Nov 1, 2026
90f889c
PERF-CULL: merge pr/preview-prep (#3077, with #3055's JPEG end-marker…
OneSlips Nov 1, 2026
c08b030
PERF-CULL: cull-bench refuses a run whose steps wouldn't fit the app'…
OneSlips Nov 1, 2026
1b19560
PERF-CULL: merge pr/culling-speed (#3055: cull-bench refuses a run th…
OneSlips Nov 1, 2026
01301a9
PERF-CULL: merge pr/preview-prep (#3077, with #3055's cull-bench hist…
OneSlips Nov 1, 2026
89b45f3
PERF-CULL: bench-cull refuses ".." in --json and --work (CodeRabbit, …
OneSlips Nov 1, 2026
56dcf4d
PERF-CULL: a cut-short preview needs a scan before its end and the wa…
OneSlips Nov 1, 2026
5c81672
PERF-CULL: merge pr/culling-speed (#3055: scan-before-end, shared wal…
OneSlips Nov 1, 2026
83dfd0f
PERF-CULL: merge pr/preview-prep (#3077: '..' refused in bench-cull o…
OneSlips Nov 1, 2026
20860c7
PERF-CULL: the camera JPEG goes only under the window render, and a s…
OneSlips Nov 1, 2026
acd1b59
PERF-CULL: a bad build request leaves the background build alone, and…
OneSlips Nov 1, 2026
2a69157
PERF-CULL: merge pr/culling-speed (#3055: camera JPEG under the windo…
OneSlips Nov 1, 2026
b93949d
PERF-CULL: merge pr/preview-prep (#3077: build cancel after validatio…
OneSlips Nov 1, 2026
e7d4f92
PERF-CULL: the cull benches report failed loupe renders, a failed bro…
OneSlips Nov 1, 2026
7803986
PERF-CULL: a background build that can't start waits 30 s before the …
OneSlips Nov 1, 2026
ec8a162
PERF-CULL: merge pr/preview-prep (#3077: a build that can't start wai…
OneSlips Nov 1, 2026
9c5ae14
PERF-CULL: bench-cull labels a small folder's loupe sample warm; cull…
OneSlips Nov 1, 2026
d8c019a
PERF-CULL: a build waiting to retry asks for a frame at its time; a b…
OneSlips Nov 1, 2026
4794f81
PERF-CULL: merge #3077 (d8c019ac1): retry frame, build that can't start
OneSlips Nov 1, 2026
89073f6
PERF-CULL: cull_bench exits when the library's own preparation settin…
OneSlips Nov 1, 2026
6c8a429
PERF-CULL: a retry time that has passed asks for no more frames
OneSlips Nov 1, 2026
cfeb94f
PERF-CULL: merge #3077 (6c8a4297b): a passed retry time asks for no f…
OneSlips Nov 1, 2026
a46e968
PERF-CULL: cull_bench gives the app the preparation settings it asks …
OneSlips Nov 2, 2026
302ccd3
PERF-CULL: CodeRabbit items from #3577 that live in #3077 and #3055
OneSlips Nov 2, 2026
708db79
PERF-CULL: merge pr/preview-prep (#3077: CodeRabbit items from #3577)
OneSlips Nov 2, 2026
20a0270
PERF-CULL: CodeRabbit items from #3577 that live in #3080
OneSlips Nov 2, 2026
20359cf
PERF-CULL: CodeRabbit round 4 on #3077 and the #3583 items in its code
OneSlips Nov 2, 2026
6393fae
PERF-CULL-TIERS: merge pr/preview-prep (#3077 round 4: smart-preview …
OneSlips Nov 2, 2026
a3fb25b
PERF-CULL-TIERS: CodeRabbit round 4 on #3080
OneSlips Nov 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ log = "0.4"
# All date/time conversion goes through chrono (no hand-rolled calendar code beyond the 400-year range extension; AGENTS.md).
chrono = { version = "0.4.45", default-features = false, features = ["std"] }
rayon = "1"
# free/total space of a drive (engine's low-disk alert); MIT OR Apache-2.0, pure Rust (rustix / windows-sys)
fs4 = { version = "1.1", default-features = false }
winapi-util = "0.1" # lightcraft-catalog reads a file's volume serial number and file index with it on Windows
proptest = "1"
bytemuck = { version = "1", features = ["derive"] }
Expand Down
664 changes: 664 additions & 0 deletions apps/lightcraft-cli/src/bench_cull.rs

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions apps/lightcraft-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
//! lightcraft-cli commands [--json]
//! lightcraft-cli controls [--json]
//! lightcraft-cli calibrate [--max N] [--out DIR] FOLDERS/FILES…
//! lightcraft-cli bench-cull FOLDER [--files K] [--n N] [--copy M] [--work DIR] [--json FILE]
//! ```
#![forbid(unsafe_code)]
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]

mod alloc_release;
mod bench_cull;

use std::io::Write;
use std::path::Path;
Expand Down Expand Up @@ -110,6 +112,12 @@ USAGE:
model, written as <model>.json to DIR (default: the profiles folder LightCraft reads,
<config>/camera-profiles, or $LIGHTCRAFT_CAMERA_PROFILES). Raws of a profiled model then
take their colour from the profile and only their tone from their own JPEG.
lightcraft-cli bench-cull FOLDER [--files K] [--n N] [--copy M] [--work DIR] [--json FILE]
Time what culling a shoot costs on its own files: reading the folder (browse), the first
screen of grid thumbnails, camera previews at loupe sizes and full size, a loupe render,
rating, and importing N files in place (default 2000) and copying M (default 200). Libraries
are made in a new folder under DIR (default: the temp folder); nothing is written next to the
photos. --files K reads only the first K files by name (a sample of a slow network folder).
lightcraft-cli --version | --help
";

Expand Down Expand Up @@ -176,6 +184,7 @@ fn main() -> ExitCode {
Some("controls") => controls(&args[1..]),
Some("denoise-serve") => denoise_serve(&args[1..]),
Some("calibrate") => calibrate(&args[1..]),
Some("bench-cull") => bench_cull::run(&args[1..]),
Some("--version" | "-V" | "version") => {
println!("lightcraft-cli {}", env!("CARGO_PKG_VERSION"));
Ok(())
Expand Down
74 changes: 74 additions & 0 deletions apps/lightcraft-cli/tests/it/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,80 @@ fn gradient_png(path: &std::path::Path) {
std::fs::write(path, png).unwrap();
}

/// PERF-CULL-5: `bench-cull` times a folder end to end and writes nothing next to the photos.
#[test]
fn bench_cull_times_a_folder_and_leaves_it_untouched() {
let dir = tmp("bench-cull-src");
std::fs::create_dir_all(&dir).unwrap();
for (seed, name) in ["a.png", "b.png", "c.png"].iter().enumerate() {
// three different pictures (the same bytes would import as one photo)
let img = lightcraft_raster::Rgba8::from_fn(120, 80, |x, y| [(x * 2) as u8, (y * 3) as u8, (seed * 80) as u8, 255]);
let png = lightcraft_codecs::encode_png(&lightcraft_codecs::EncodeImage::rgba8(&img), &Default::default()).unwrap();
std::fs::write(dir.join(name), png).unwrap();
}
// every file's name and bytes: nothing added, and no photo written into (CodeRabbit on #3577)
let listing = |d: &std::path::Path| {
let mut v: Vec<(String, Vec<u8>)> = std::fs::read_dir(d)
.unwrap()
.map(|e| e.unwrap())
.map(|e| (e.file_name().to_string_lossy().to_string(), std::fs::read(e.path()).unwrap()))
.collect();
v.sort();
v
};
let before = listing(&dir);
let work = tmp("bench-cull-work");
let json_out = tmp("bench-cull.json");
let r = Command::new(binary())
.arg("bench-cull")
.arg(&dir)
.args(["--n", "3", "--copy", "1", "--work"])
.arg(&work)
.arg("--json")
.arg(&json_out)
.output()
.unwrap();
let stdout = String::from_utf8_lossy(&r.stdout);
assert!(r.status.success(), "{stdout}{}", String::from_utf8_lossy(&r.stderr));
assert!(stdout.contains("browse 3 photos") && stdout.contains("ms wall"), "{stdout}");
let v: Value = serde_json::from_str(&std::fs::read_to_string(&json_out).unwrap()).unwrap();
assert_eq!(v["browse"]["photos"], 3);
assert_eq!(v["importAdd"]["photos"], 3);
assert_eq!(v["importCopy"]["photos"], 1);
assert_eq!(v["rate"]["n"], 3);
// a folder smaller than the samples is measured on the photos it has, not reported empty
assert_eq!((v["loupeRender"]["n"].as_u64(), v["loupeRender"]["failed"].as_u64()), (Some(3), Some(0)), "{}", v["loupeRender"]);
assert_eq!(v["loupeRender"]["warm"], true, "three photos, all read by the stages before: {}", v["loupeRender"]);
assert!(stdout.contains("loupe render 2560 px (warm"), "{stdout}");
// PNGs carry no camera preview: counted as not loaded, never timed as previews
assert_eq!((v["thumbs"]["count"].as_u64(), v["thumbs"]["failed"].as_u64()), (Some(0), Some(3)), "{}", v["thumbs"]);
for stage in ["camera1280", "camera2560", "cameraFull"] {
assert_eq!((v[stage]["n"].as_u64(), v[stage]["failed"].as_u64()), (Some(0), Some(3)), "{stage}: {}", v[stage]);
}
assert_eq!(listing(&dir), before, "nothing written next to the photos");
// results asked for in the source folder: refused, the photo untouched
let photo = std::fs::read(dir.join("a.png")).unwrap();
let r = Command::new(binary())
.arg("bench-cull")
.arg(&dir)
.args(["--n", "0", "--work"])
.arg(&work)
.arg("--json")
.arg(dir.join("a.png"))
.output()
.unwrap();
assert!(!r.status.success() && String::from_utf8_lossy(&r.stderr).contains("--json"), "{}", String::from_utf8_lossy(&r.stderr));
assert_eq!(std::fs::read(dir.join("a.png")).unwrap(), photo);
assert_eq!(listing(&dir), before);
// a sample of the folder, no import
let r = Command::new(binary()).arg("bench-cull").arg(&dir).args(["--files", "2", "--n", "0", "--work"]).arg(&work).output().unwrap();
let stdout = String::from_utf8_lossy(&r.stdout);
assert!(r.status.success() && stdout.contains("browse 2 photos (first files)") && !stdout.contains("import"), "{stdout}");
// a bad folder is an error, not a panic
let r = Command::new(binary()).args(["bench-cull", "/no/such/folder"]).output().unwrap();
assert!(!r.status.success() && String::from_utf8_lossy(&r.stderr).contains("not a folder"));
}

#[test]
fn calibrate_reads_raf_inputs_and_reports_bad_files() {
let input = tmp("invalid.RAF");
Expand Down
1 change: 1 addition & 0 deletions apps/lightcraft/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ fn main() -> eframe::Result {
app.notices.extend(launch_notices);
app.notices.extend(window_notice);
app.gpu_notice = true;
app.disk_space_notice = true;
// an empty library opens where Import is offered (a grid, with the sidebar); before
// the snapshot below, so this alone isn't written to the settings file
if problem.is_none() && files.is_empty() {
Expand Down
205 changes: 205 additions & 0 deletions crates/codecs/src/jpeg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -862,3 +862,208 @@ mod tests {
}
}
}

/// [`crate::decode_jpeg_srgb8_fit`]: a plain 8-bit sRGB JPEG decoded (DCT-scaled when that still
/// covers the box) and area-averaged in linear light straight into 8-bit sRGB, without the
/// float image the general path builds (for a 45 MP camera preview fitted to 2560 px that float
/// image and its conversions were half the time). `Ok(None)` for anything else.
pub(crate) fn srgb8_fit(bytes: &[u8], max_w: u32, max_h: u32) -> Result<Option<(lightcraft_raster::Rgba8, u16)>> {
let Some(m) = parse_markers(bytes) else { return Ok(None) };
let plain = matches!(m.components, 1 | 3)
&& m.precision == 8
&& matches!(m.sof, 0xC0..=0xC2)
&& m.icc.is_none()
&& !m.icc_invalid
&& m.adobe_transform.is_none();
let summary = m.exif.as_deref().map(exif::summarize).unwrap_or_default();
if !plain || summary.adobe_rgb_hint || max_w == 0 || max_h == 0 {
return Ok(None);
}
let budget = DecodeOptions::default();
check_size(F, m.width as u64, m.height as u64, &budget)?;
// as in the general decode: the decoders below walk every APP1 again
if m.app1 > MAX_APP1 {
return Err(Error::Malformed(F, "too many APP1 markers".into()));
}
let scale_to = (m.width >= max_w.saturating_mul(2) || m.height >= max_h.saturating_mul(2)).then_some((max_w, max_h));
let non_interleaved = matches!(m.sof, 0xC0 | 0xC1) && m.first_scan_components < m.components;
let raw =
if scale_to.is_some() || non_interleaved { decode_jpeg_decoder(bytes, &m, scale_to, &budget)? } else { decode_zune(bytes, &m, &budget)? };
let Buf::U8(px) = &raw.buf else { return Ok(None) };
let ch = match raw.model {
Model::Rgb => 3,
Model::Gray => 1,
Model::Cmyk => return Ok(None),
};
let (w, h) = (raw.width, raw.height);
if w == 0 || h == 0 || px.len() < w.saturating_mul(h).saturating_mul(ch) {
return Err(Error::Malformed(F, "short output".into()));
}
// the size `lightcraft_raster::resample::fit` gives: within the box, aspect kept, never larger
let s = (max_w as f64 / w as f64).min(max_h as f64 / h as f64).min(1.0);
let tw = ((w as f64 * s).round() as usize).clamp(1, w);
let th = ((h as f64 * s).round() as usize).clamp(1, h);
let orientation = summary.orientation.filter(|o| (1..=8).contains(o)).unwrap_or(1);
Ok(Some((area_average_srgb8(px, w, h, ch, tw, th), orientation)))
}

/// Source pixels and weights each output pixel along one axis covers: a box of the scale's width
/// (`n` source pixels onto `out`), partly covered pixels at its ends weighted by their share.
fn box_taps(n: usize, out: usize) -> Vec<(usize, Vec<f32>)> {
let scale = n as f64 / out as f64;
(0..out)
.map(|o| {
let (a, b) = (o as f64 * scale, ((o + 1) as f64 * scale).min(n as f64));
let first = (a.floor() as usize).min(n - 1);
let last = ((b.ceil() as usize).max(first + 1)).min(n);
let ws: Vec<f32> =
(first..last).map(|j| ((b.min(j as f64 + 1.0) - a.max(j as f64)).max(0.0) / (b - a).max(f64::MIN_POSITIVE)) as f32).collect();
(first, ws)
})
.collect()
}

/// `px` (`w × h`, `ch` = 1 or 3 interleaved 8-bit sRGB samples) averaged over boxes in linear
/// light into `tw × th` opaque 8-bit sRGB pixels. A copy when the size doesn't change.
fn area_average_srgb8(px: &[u8], w: usize, h: usize, ch: usize, tw: usize, th: usize) -> lightcraft_raster::Rgba8 {
use lightcraft_color::transfer::{decode_srgb8, encode_srgb8};
let mut out = lightcraft_raster::Rgba8::new(tw, th);
let sample = |x: usize, y: usize, c: usize| px.get((y * w + x) * ch + if ch == 3 { c } else { 0 }).copied().unwrap_or(0);
if (tw, th) == (w, h) {
lightcraft_raster::par_rows(&mut out.data, tw, |y, row| {
for (x, o) in row.iter_mut().enumerate() {
*o = [sample(x, y, 0), sample(x, y, 1), sample(x, y, 2), 255];
}
});
return out;
}
let lut: [f32; 256] = std::array::from_fn(|i| decode_srgb8(i as u8));
let xs = box_taps(w, tw);
let ys = box_taps(h, th);
// one source row filtered across into linear RGB at the output width
let across = |sy: usize, buf: &mut Vec<[f32; 3]>| {
buf.clear();
let Some(src) = px.get(sy * w * ch..(sy + 1) * w * ch) else {
buf.resize(tw, [0.0; 3]);
return;
};
for (x0, wx) in &xs {
let mut a = [0f32; 3];
if let Some(span) = src.get(x0 * ch..(x0 + wx.len()) * ch) {
for (p, &k) in span.chunks_exact(ch).zip(wx) {
match p {
[r, g, b] => {
a[0] += lut[*r as usize] * k;
a[1] += lut[*g as usize] * k;
a[2] += lut[*b as usize] * k;
}
[v] => {
let l = lut[*v as usize] * k;
a = [a[0] + l, a[1] + l, a[2] + l];
}
_ => {}
}
}
}
buf.push(a);
}
};
lightcraft_raster::par_rows(&mut out.data, tw, |y, row| {
let Some((y0, wy)) = ys.get(y) else { return };
let mut acc = vec![[0f32; 3]; tw];
let mut line = Vec::with_capacity(tw);
for (dy, &k) in wy.iter().enumerate() {
across(y0 + dy, &mut line);
for (a, l) in acc.iter_mut().zip(&line) {
a[0] += l[0] * k;
a[1] += l[1] * k;
a[2] += l[2] * k;
}
}
for (o, a) in row.iter_mut().zip(&acc) {
*o = [encode_srgb8(a[0]), encode_srgb8(a[1]), encode_srgb8(a[2]), 255];
}
});
out
}

#[cfg(test)]
mod srgb8_fit_tests {
use super::*;

fn jpeg(w: usize, h: usize, f: impl Fn(usize, usize) -> [u8; 3]) -> Vec<u8> {
let data: Vec<[u8; 4]> = (0..w * h)
.map(|i| {
let [r, g, b] = f(i % w, i / w);
[r, g, b, 255]
})
.collect();
let img = lightcraft_raster::Rgba8 { width: w, height: h, data };
crate::encode_jpeg(&crate::EncodeImage::rgba8(&img), 95, crate::ChromaSubsampling::S420, &crate::EncodeMeta::default()).unwrap()
}

/// The fast path shows what the general decode shows for a plain sRGB JPEG, at the same size.
#[test]
fn matches_the_general_decode_within_a_few_levels() {
let b = jpeg(1203, 801, |x, y| [((x * 7) ^ (y * 3)) as u8, (x / 5 + y / 3) as u8, ((x * y) % 251) as u8]);
for (mw, mh) in [(300u32, 300u32), (640, 640), (1203, 801), (5000, 5000), (500, 120)] {
let (fast, o) = srgb8_fit(&b, mw, mh).unwrap().unwrap();
let slow = crate::decode(&b, DecodeOptions::fit(mw, mh)).unwrap().to_srgb8();
assert_eq!((fast.width, fast.height), (slow.width, slow.height), "box {mw}×{mh}");
assert_eq!(o, 1);
let diff: Vec<u32> =
fast.data.iter().zip(&slow.data).flat_map(|(a, b)| (0..3).map(move |c| (a[c] as i32 - b[c] as i32).unsigned_abs())).collect();
let mean = diff.iter().sum::<u32>() as f64 / diff.len() as f64;
assert!(mean < 3.0, "box {mw}×{mh}: mean difference {mean}");
}
}

/// Anything but plain 8-bit sRGB goes the general way; junk is an error or `None`, never a panic.
#[test]
fn declines_what_it_does_not_cover_and_never_panics() {
let b = jpeg(64, 48, |x, _| [x as u8, 0, 0]);
assert!(srgb8_fit(&b, 0, 10).unwrap().is_none());
assert!(srgb8_fit(b"not a jpeg", 10, 10).unwrap().is_none());
for cut in [0, 2, 20, b.len() / 2, b.len() - 3] {
let _ = srgb8_fit(&b[..cut], 32, 32);
}
// a 1-pixel-wide image into a box much smaller in one axis
let thin = jpeg(1, 300, |_, y| [y as u8, y as u8, y as u8]);
let (img, _) = srgb8_fit(&thin, 10, 10).unwrap().unwrap();
assert_eq!((img.width, img.height), (1, 10));
}

/// An incomplete ICC_PROFILE sequence (chunk 1 of 2) is "has a profile we can't read", not
/// "plain sRGB": the general decode handles it, as the doc says (CodeRabbit on #3577).
#[test]
fn an_incomplete_icc_sequence_goes_the_general_way() {
let b = jpeg(16, 16, |x, y| [x as u8, y as u8, 0]);
let mut seg = vec![0xFF, 0xE2, 0, 0];
seg.extend_from_slice(b"ICC_PROFILE");
seg.extend_from_slice(&[1, 2]);
seg.extend_from_slice(&[0u8; 64]);
let len = u16::try_from(seg.len() - 2).unwrap();
seg[2..4].copy_from_slice(&len.to_be_bytes());
let mut with = b[..2].to_vec();
with.extend_from_slice(&seg);
with.extend_from_slice(&b[2..]);
assert!(parse_markers(&with).unwrap().icc_invalid);
assert!(srgb8_fit(&b, 8, 8).unwrap().is_some());
assert!(srgb8_fit(&with, 8, 8).unwrap().is_none());
}

/// The 8-bit path refuses an APP1 flood before its decoders walk it again, as the general one does.
#[test]
fn an_app1_flood_is_refused_by_the_8_bit_path_too() {
let b = jpeg(16, 16, |x, y| [x as u8, y as u8, 0]);
let mut flood = b[..2].to_vec();
for _ in 0..200 {
flood.extend_from_slice(&[0xFF, 0xE1, 0x00, 0x02]);
}
flood.extend_from_slice(&b[2..]);
match srgb8_fit(&flood, 8, 8) {
Err(Error::Malformed(_, m)) => assert!(m.contains("APP1"), "{m}"),
other => panic!("unexpected: {other:?}"),
}
}
}
14 changes: 14 additions & 0 deletions crates/codecs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,20 @@ pub fn decode(bytes: &[u8], opts: DecodeOptions) -> Result<Decoded> {
std::panic::catch_unwind(|| decode_unguarded(bytes, format, &opts)).unwrap_or_else(|_| Err(Error::Malformed(format, "decoder panicked".into())))
}

/// A JPEG for display, fast: fitted within `max_w × max_h` (never enlarged) as 8-bit sRGB with its
/// EXIF orientation (1..=8, not applied), the picture `decode(bytes, DecodeOptions::fit(..))
/// .to_srgb8()` gives within a few levels, in about half the time for a large camera preview.
/// `Ok(None)` when the file is not a plain 8-bit sRGB JPEG (an ICC profile or an Adobe RGB EXIF
/// hint, CMYK, 12-bit, lossless or arithmetic coding): use [`decode`]. Malformed input is an
/// error, never a panic.
pub fn decode_jpeg_srgb8_fit(bytes: &[u8], max_w: u32, max_h: u32) -> Result<Option<(lightcraft_raster::Rgba8, u16)>> {
if sniff(bytes) != Some(Format::Jpeg) {
return Ok(None);
}
std::panic::catch_unwind(|| jpeg::srgb8_fit(bytes, max_w, max_h))
.unwrap_or_else(|_| Err(Error::Malformed(Format::Jpeg, "decoder panicked".into())))
}

/// What a file's headers say about its image: enough to catalogue it without decoding pixels.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct Header {
Expand Down
2 changes: 2 additions & 0 deletions crates/engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ lightcraft-segment = { workspace = true, optional = true }
lightcraft-fetch = { workspace = true }
# capture-time parsing for face recognition (native only)
chrono = { workspace = true }
# free space of the drive holding the preview cache (the low-disk alert; pure Rust: rustix / windows-sys)
fs4 = { workspace = true }

[features]
# AI masks with SAM 3 (Object / Describe). Off for the web and CLI builds.
Expand Down
Loading
Loading