Commit Graph
662 Commits
Author SHA1 Message Date
Dylan M. Taylor 6f20a6b9f2 gpu, camera_raw: develop Detail on the GPU using craft_develop (#13519, #587) (#16480)
* gpu,camera_raw: develop Detail on the GPU using craft_develop::camera_raw (#13519, #587)

* ui-egui/camera_raw_gpu: remove temporary gpu_stages Detail filter (#16485)
2026-11-23 08:55:17 -05:00
Dylan M. Taylor 976919707a algo: delegate Camera Raw Filter to craft_develop::camera_raw (#587) (#16444)
* algo: delegate Camera Raw Filter to craft_develop::camera_raw (#587)

* algo/camera_raw: put spatial module re-exports in pub mod spatial

* algo/camera_raw: put spatial module re-exports in pub mod spatial

* algo/photo_util: gate hash01 and bilinear to cfg(test)
2026-11-22 15:05:39 -05:00
Dylan M. Taylor 309e4c7a65 camera_raw: preserve legacy filter renders and native preview (#16419) 2026-11-22 12:57:39 -05:00
Dylan M. Taylor 65fc546bba raw, camera_raw: adopt craft-develop 7631ed550 and add explicit parity tests (#587) (#16393)
* raw,camera_raw: bump craft-develop to 7631ed550 and add explicit parity tests (#587)

* raw,camera_raw: cut over develop_sensor demosaic and camera_raw::develop to craft_develop (#587)

* raw,camera_raw: fix craft_develop field names and test imports (#587)

* camera_raw: fix clippy excessive_precision and unnecessary cast lints

* raw,camera_raw: use exact gaussian_taps for sharpening, silence camera_raw_gpu dead_code, update post-cutover pins

* raw,camera_raw: fix highlights sign, <0.3px sharpen noop, non-Bayer/fused parity, and gpu test ignores

* engine: update camera_raw_filter_legacy_baseline_pixels to post-cutover craft_develop baseline

* raw,camera_raw: early-exit noop sharpen, exact full desat, PAD=6 fused margin

* raw,camera_raw: guard <0.3px texture/clarity blur and route fused band demosaic through craft_develop

* io: update default RAW Open baseline pins for craft_develop::sensor::demosaic reflect borders

* io: add Windows libm FNV-1a hash pins for RAW Open baselines
2026-11-22 10:36:03 -05:00
David Mann 7078515fe7 Merge PR #16158: #15930: compute the measured structure-continue fill once 2026-11-22 13:24:44 +01:00
David Mann 71495f89e5 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-22 12:23:08 +01:00
FredApps c05c4c5fdf fix(raw): preserve legacy Camera Raw curve knot selection (#16373)
Normalize and deduplicate saved point-curve knots in the original f32 domain before using the shared spline. Regression tests pin the LUT and a generated native Smart Filter after save/reopen.
2026-11-22 00:34:27 -05:00
Dylan M. Taylor b8635a8323 feat(raw): wire craft-develop MonotoneCurve and craft-develop-model migrate_camera_raw (#587) (#16370) 2026-11-21 23:55:36 -05:00
David Mann f5094111a2 Merge PR #15837: fix(algo): prevent Exact indexed colour from dropping source colours 2026-11-22 00:28:08 +01:00
RickiNano 03561a189d #15930: compute the measured structure-continue fill once
The six measured `structure_continue_tests` (Auto and Rectangular x
samples, boundary, phase) all filled the same document with the same
options, and `measured_auto_area_is_the_rectangular_one` asserts that
Auto gives `fill` the Rectangular area there. One test now fills once
and checks the nine samples, the blue / green boundary and the phase
through the whole hole, reporting every check that is off.
2026-11-21 13:38:34 +01:00
David Mann 6831a19167 Merge #15284 into the merge queue batch
fix(algo): continue straight bands and stripes through the fill's hole
2026-11-20 15:06:05 +01:00
David Mann 79100d117a Merge #15775 into the merge queue batch
Read the Object Finder seed at full resolution
2026-11-20 14:16:37 +01:00
hnoerenberg a1afe4cf51 Merge upstream/main into fix/content-aware-stripes-14191 2026-11-20 11:57:32 +01:00
David Mann 8587babd14 Merge #13130 into the merge queue batch
Match measured Sponge Saturate and Desaturate colors
2026-11-19 22:27:47 +01:00
David Mann de12d655fd Merge #15217 into the merge queue batch
Merge to HDR Pro: Remove ghosts catches a moved object where frames are clipped
2026-11-19 22:27:45 +01:00
Mex 81bf5826fe Add test for exact palette with forced colors
Exercise a full opaque image palette with forced black and white, a union that fits at 256 entries, and forced colours already present in the image.
2026-11-19 22:17:54 +01:00
Mex e31b356c63 fix(algo): reject Exact palettes that exceed 256 with forced colours
Count distinct image and forced colours before building the Exact palette. Report an overflow instead of dropping source colours.
2026-11-19 22:16:53 +01:00
hnoerenberg 315eaebd26 Merge upstream/main into fix/content-aware-stripes-14191 2026-11-19 19:40:05 +01:00
David Mann de06bae36c Merge pull request #14205 from davidmann4/fix/12633-art-history-tolerance-threshold
Art History Brush: Tolerance threshold per stroke start (#12633)
2026-11-19 18:38:35 +01:00
haranishi 3e050bd6cf Check Object Finder click alpha at full resolution 2026-11-20 01:09:12 +09:00
FredApps 44a50908d9 Isolate exhaustive oil rounding proof 2026-11-19 13:19:45 +01:00
hnoerenberg 83390ee9b3 Merge upstream/main into fix/content-aware-stripes-14191 2026-11-19 13:17:35 +01:00
hnoerenberg 36066eae8f fix(algo): retry today's patch radius when 11x11 leaves no donor
Round 2 review on #15284: with the measured option set the fill asked for
11x11 patches even where no such donor window exists, so the completion
found nothing to copy and the fill answered with the smooth membrane
where today's 7x7 patch still copies pieces.

Two distinct causes, both measured at b2764ca1c on stripe buffers with
the measured options and the Rectangular area:
- a buffer narrower than the patch: at 9x9 (1 px border hole) the
  radius-3 completion fills the hole with 96 channel values differing
  from the membrane, radius 5 has no donor at all and the fill returned
  the membrane in all 243 channel values; at 10x10 that is 108 of 300.
- a hole that uses up every window of a big enough buffer: at 18x18 with
  an 8x8 centre hole there are 11x11 windows (centres x and y 5 to 12)
  but the hole is in each of them, while 7x7 windows remain; radius 5
  gives no donor and the fill returned the membrane, 192 of 972 channel
  values away from today's radius-3 completion. (The review's 18x18 with
  a 2x2 centre hole is not one of these: there the fill still completed
  with radius 5, 178 channel values from today's answer.)

Change: fill_cow now hands the completion today's default radius when the
measured radius finds nothing to copy, before the membrane fallback. A
measured fill keeps its pixels borrowed and rebuilds the attempt (the
mosaic gap follows the radius); every other option set still gets exactly
one attempt, in place as before, so the not-measured pins are untouched.
`fill_cow` also gives way to named parts: variant_specs, mosaic_variants,
mosaic_pixels, window_roles, fill_attempt and fill_retry.

New tests in the file #14191 names, red before the fix (2 failed), green
after: measured_fill_on_a_small_image_keeps_todays_patch_radius,
measured_fill_falls_back_to_todays_radius_when_the_hole_leaves_no_room_for_the_patch;
guards pinning what did not change:
measured_fill_uses_the_11x11_patch_when_a_window_fits,
measured_fill_without_room_for_todays_patch_still_falls_back_to_the_membrane.
2026-11-19 12:38:27 +01:00
FredApps 378fda83b0 Pair extrude sweep fixture axes 2026-11-19 10:02:15 +01:00
FredApps b0c0abee54 Pair sharpen tile and format cases 2026-11-19 09:56:44 +01:00
FredApps 83f391c3c9 Reduce sparse resampling fixture 2026-11-19 09:46:01 +01:00
FredApps bd0671f017 Exercise relight bands with a smaller budget 2026-11-19 09:21:52 +01:00
FredApps 475dcbcad1 Reduce redundant smart blur offsets 2026-11-19 08:58:53 +01:00
FredApps 878d5fa717 Pair scalar cell filter cases 2026-11-19 08:52:11 +01:00
FredApps 8b68407a61 Reduce blur and selection test fixtures 2026-11-19 08:36:50 +01:00
FredApps 63ac4be5a2 Reduce redundant pixelate fixture combinations 2026-11-19 08:17:10 +01:00
FredApps e681044bf5 Reduce slow algorithm test fixtures 2026-11-19 07:58:27 +01:00
hnoerenberg b2764ca1cd Merge upstream/main into fix/content-aware-stripes-14191 2026-11-19 02:52:42 +01:00
David MannandClaude Opus 5.5 493d2df62f Tests: trim the loops of the unclaimed slow tests that reach no new code (#15652)
Each removed variant takes the same branch as one that stays, or is covered without the app or
oracle cost by a named lower-level test; the commit's comments say which for every test.

ui-egui: floating-document zoom (10 frames after Enter, not 60), Wide Angle (one depth per mode,
alpha kept), Brush panel sections (only those Brush Settings draws; Brushes ignores the section),
Camera Raw GPU (8 and 32 bits), enable rules (one app per world, a copied style for Paste only),
Content-Aware Move preview (selection just past the coarse budget, smaller canvas).
algo/compose/engine/gpu/format: Pixelate (Lab, cell 100, seed 37, tile 1), box blurs (Gaussian
40), Smart Blur (multichannel layouts cover every arm; Low and High), FFT sharpen gate (one
depth), panorama batching (budgets at every split instead of a 47-step sweep), bevel and chisel
threads (2 and 16), fused tone tiles (256 x 256, the U16 table threshold), live dabs (8 and 32
bits), Camera Raw GPU sizes (1600 x 240 wide case; the proxy-size per-pixel run lives in the
clarity test), directory bundle (two modes; zip_cases has the matrix).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 22:14:12 +01:00
David MannandClaude Opus 5.5 aa328ca681 Merge main into fix/12633-art-history-tolerance-threshold
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-11-18 18:49:51 +01:00
David Mann 01a5b5a389 Merge pull request #15381 from davidmann4/perf/test-speed-quick-wins
Test speed: no font scan in test processes, CMYK profile once, raw-develop at one depth (#15377)
2026-11-17 16:49:07 +01:00
aiongg ed14e1c413 PhotoCraft on the craft UI framework (#15449)
PhotoCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (next branch): shell, dock and panels, hosted dialogs, keyboard, focus, IME and pointer routing, the canvas's view commands, themes and tokens. The engine, document model, file formats, commands and automation stay. PhotoCraft pins storytold/craft-libs next.
2026-11-17 10:41:35 -05:00
David MannandClaude Opus 5.5 484483b691 test: build the CMYK test profile once, run large raw-develop sizes at one depth
- cmyk_flatten_profile: synthesise the test profile once per process and
  share one Arc, so CmykSpace's per-allocation cache builds the transforms
  once; exact() reads both rows from one run (4 documents, not 8).
- camera_raw GPU tests: the 858x572 and 1600x900 comparisons run at one
  depth each. The depth only changes the input quantization (8 and 16 bits
  both develop with float = false) and every depth runs at 171x113 above.
- cols_timing is a benchmark without assertions: ignore it like its
  siblings.
- compose: delete clipped_dissolve_is_binary_and_preserves_the_base_shape,
  a byte-identical copy of clipped_dissolve_opacity_fill_is_binary_and_
  preserves_base_shape (whose doc comment names both issues).

Part of #15376.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-17 02:03:03 +01:00
hnoerenberg c8bef7880c fix(algo): keep the 7x7 patch when the sampling area is not the Rectangular one
#14191 measured Rectangular, and Auto where it keeps that same area. Auto
where its content-based choice differs from Rectangular is marked not
measured and keeps today's radius. fill_cow now takes the 11x11 patch only
when the source mask is every pixel outside the hole.
2026-11-16 17:53:24 +01:00
hnoerenberg 73dc8e2f82 test(algo): keep the unmeasured #14191 guards pinned across libms
The two guard tests failed on the ubuntu-24.04 gate job (run
43833457124) while they pass bit for bit on Windows: colour
adaptation High gives (300,180) 64 instead of 65, rotation Low gives
(285,220) 118 instead of 119, every other channel matches. Not a
change from main: no commit between f143ce5849, where the samples
were captured, and the branch parent eea585958 touches
content_aware or inpaint, and the pins also hold here at
RAYON_NUM_THREADS 4, 2 and 1. The vote that blends the seams between
the copied pieces weights the patches with (-cost / (2 sigma2)).exp()
of the host C library (inpaint/solver.rs); two samples sit right on a
level boundary and round one level apart between glibc and the
Windows runtime.

Compare the nine samples of each option set within 2 levels per
channel instead of bit for bit, list every sample over that slack in
the failure message, and say in the code why. All 27 pinned values
stay and the guard intent stays: unmeasured option sets keep today's
fill. The pin still bites, because the structure path this PR adds
moves these samples by tens of levels, 60 at (300,165) alone.
2026-11-16 14:33:22 +01:00
hnoerenberg 8baf4639ca fix(algo): continue straight bands and stripes through the fill's hole
Content-Aware Fill copies the sampling area with a 7x7 patch. On the
document #14191 measured, the straight features are 10 px bands and
20 px stripes: a 7x7 patch fits inside one stripe or inside one band
gap, so it carries no phase information and the completion decides from
colour alone. The blue half of that document ran down into the green
one (300,205 gave 65,127,205 where the reference application shows
80,180,90) and the light band was not continued at all (300,165 gave
64,124,201 instead of 120,170,230).

The fill now works the option set #14191 measured out with an 11x11
patch, which covers a feature and the one next to it and keeps their
phase through the hole: all nine measured samples land within 4 levels
of the reference values (the issue asks for 12), and every one of the
10000 hole pixels carries the document's own colour within 12 levels.

High and Very High colour adaptation, the rotation levels, Scale and
Mirror are marked "not measured" in #14191, so they keep the old patch
radius; the new tests pin their samples as main gives them today.
2026-11-16 08:32:44 +01:00
Hector Villarreal c3fa1c57de Merge to HDR Pro: Remove ghosts catches a moved object where frames are clipped (#14020)
Each frame's value bounds the log radiance (one-sided where clipped or
black); a pixel whose frame interval misses the base's by more than a
factor of two in any channel is a ghost too, so a moved bright patch is
taken from the base image even where no frame is well exposed. Unmoved
areas and ghost-free sets are unchanged.
2026-11-15 15:55:11 -06:00
David MannandClaude Opus 5.5 8ecf714e41 Merge main into fix/12633-art-history-tolerance-threshold
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-11-15 22:34:59 +01:00
David Mann b78ee402be Merge pull request #14367 from rmsff/fix/lens-auto-scale-corners-13992
Lens Correction: Auto Scale keeps the border pixels clear of the Edge fill
2026-11-15 15:58:21 +01:00
David Mann 4b2f72b2f7 Merge pull request #14149 from chamber074/12528-anti-alias-edge
Paint Bucket: pin #12528's Tolerance 0 edge and opaque-ramp fringe in tests
2026-11-15 15:49:13 +01:00
rmsff a025d31fff lens: test that Auto Scale leaves no Edge fill in the corners
Shrinking generic profiles across 12-200 mm on the measured 400 x 300
picture keep every pixel opaque and free of the Black or White edge
colour; magnifying profiles stay at 100 % and Auto Scale off keeps the
edge fills.
2026-11-15 16:40:39 +03:00
rmsff 1c606fddfd lens: Auto Scale keeps the border pixels clear of the Edge fill
The coverage check let border pixels sample up to half a pixel outside
the frame, so remap's 1 px soft edge still mixed the Edge fill into the
corners. Check the border pixel centres against the frame inset by half
a pixel instead.
2026-11-15 16:40:39 +03:00
Dylan M. Taylor 1d2074889e Replace local camera EXIF reader and writer with craft-metadata 2026-11-15 12:19:19 +00:00
Dylan M. Taylor 11c40806ca refactor(algo): reuse shared TIFF spans for camera EXIF 2026-11-15 05:48:30 -05:00
Dylan M. Taylor b0e0bcc6c4 Merge pull request #14236 from storytold/codex/photocraft-format-migration
Move remaining file formats and codecs to craft-libs (#778)
2026-11-13 23:03:16 -05:00