* 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)
* 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
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.
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.
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.
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]>
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.
- 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]>
#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.
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.
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.
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.
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.
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.