Commit Graph

4713 Commits

Author SHA1 Message Date
FredApps f8530b3479 Merge origin/main into fix/523-v7-highlights-shadows; this PR's process becomes V13 (#523)
main took V8 (lettering-safe Highlights/Shadows base, #3460) and V10 (checked Bradford
fallback, craft-libs#587), and reserves 9 for #4069; 11 and 12 are claimed by the open
#4069 and #4047. So this PR's Shadows easing, negative Texture and Global wheel are
process V13 = V10 plus these changes, and V1 to V10 render as on main.

- finish::tone_slider / texture_slider and colorops::global_wheel gate on V13.
- The colour ops moved to craft_develop on main: the Global wheel's share is applied
  to the resolved wheel in lightcraft's ColorOps::new, so craft-libs is untouched.
- Tests check every process before V13 keeps the linear amounts and the Global
  wheel, and relations instead of the fitted values (AGENTS.md rule 28); process
  numbers 11 and 12 fall back to V10.
- Tests that meant V10 build V10 settings instead of relying on the default.
- docs: process-versions, parity checklist, gaps and what's new say V13.
2026-11-23 19:10:30 +01:00
FredApps e73b8d3b09 Merge branch 'main' into fredapps/craft-libs-pin-2be967e 2026-11-23 08:40:56 +07:00
FredApps f53de4399a build: pin craft-libs to main 2be967e (craft-libs#778)
Moves every storytold/craft-libs crate from 33be356 to 2be967ec, the
merge of storytold/craft-libs#3042, refreshes Cargo.lock with
cargo update -w and regenerates the Flatpak cargo sources.
2026-11-23 07:54:32 +07:00
FredApps c1ba5e0cff engine: scan committed WAL prefixes through craft-sqlite (craft-libs#778)
The constant-space checksum scan moved to craft_sqlite::wal in
craft-libs#3066. The catalog keeps its error strings, overlay and
limits; the test fixtures keep a local checksum writer.
2026-11-23 06:07:57 +07:00
FredApps a65bb94bd6 build: pin craft-libs to main 33be356 (craft-libs#778)
Move every craft-libs crate to one rev merged on craft-libs main, so the
shared WAL committed-prefix scan from craft-libs#3066 is available for
the follow-up catalog caller switch.
2026-11-23 05:57:03 +07:00
Dylan M. Taylor f3aa598c69 pipeline, raw, inpaint: delegate extracted #587 modules to craft-develop (#4656)
* pipeline, raw, inpaint: delegate extracted #587 modules to craft-develop

* raw: fix craft_raw ColorData/RawImage bridge and opcode test imports

* raw: remove unused to_craft_mat3 in bridge

* pipeline: fix craft-develop bridge, Cargo.toml, Planes Clone, and light_v3 tests

* pipeline: remove unused is_bw, from_craft_mat3, and srgb_to_linear

* raw, pipeline: preserve lightcraft_geom::Orientation in SourcePlacement

* pipeline: use camera-space wb_matrix_for in white_balance and scene_linear_pre

* pipeline: forward masks and LocalAdjustments in to_craft_settings

* pipeline: fill remaining LocalAdjustments fields in bridge
2026-11-22 16:57:48 -05:00
FredApps bbb529f64b test(pipeline): preserve visible local Clarity in RAW development (#4664)
* test(pipeline): prove visible mask clarity reaches the render

* test: format local clarity regression

* test: isolate Clarity scheduler borrow

---------

Co-authored-by: Codex <codex@openai.com>
2026-11-23 04:43:29 +07:00
Terra854 fd564fdf98 engine: use shared SQLite record boundaries (#4616) 2026-11-23 04:30:48 +07:00
Terra854 e92f4e52de pipeline: share HDR preview histogram binning (#4644) 2026-11-23 04:29:25 +07:00
Terra854 71425df614 engine: preserve native Lightroom WAL companion paths (#4615)
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-23 04:26:45 +07:00
FredApps 543b94a00e test(pipeline): lock down CPU camera white balance stages (#4659)
Co-authored-by: Codex <codex@openai.com>
2026-11-23 03:04:52 +07:00
FredApps 8d9016a606 engine: check saved RAW process rendering and GPU cache parity (#4651) 2026-11-22 22:35:12 +07:00
Terra854 fdcfc4e5aa deps: align LightCraft on merged craft-libs (#4645)
* deps: pin shared HDR histogram and SQLite record helpers

* deps: align LightCraft on merged craft-libs

* test(codecs): distinguish a missing PSD pad from truncated data
2026-11-22 20:49:31 +07:00
Dylan M. Taylor 08179b9bc3 develop,pipeline,color: add Process::V9 checked warm-green WB fallback (#587) (#4599)
* develop,pipeline,color: add Process::V9 checked warm-green WB fallback (#587)

* fix(color): use root-reexported craft_color_transform::RgbSpace

* develop,pipeline,docs: use Process::V10 for checked WB and reserve V9 for #4069

* pipeline: include checked_wb in pre_nr_key for StageCache invalidation

* pipeline: wrap scene in Arc for render_cached in WB cache test
2026-11-21 23:14:00 -05:00
Terra854 03be6b43cb codecs: borrow EXIF when reading PSD headers (#4640) 2026-11-21 22:20:06 -05:00
Terra854 b24a5b228e Use the shared PSD and PSB prefix check for file routing (#4639) 2026-11-21 22:20:02 -05:00
FredApps 1a81a5a267 test(raw): keep saved V8 warm-green rendering on reopen (#4636) 2026-11-22 03:36:02 +07:00
Terra854 81db84ab43 Use shared ISO-BMFF brand framing for image sniffing (#4617)
* Stage the shared brand reader dependency

* Use shared ISO-BMFF brand framing for image sniffing
2026-11-21 13:04:34 -05:00
Terra854 35527de6a3 test(codecs): assert decoded PNG pixels in EXIF regression (#4601)
* test(codecs): cover PNG EXIF bytes and checksum

* Credits: add Terra854 to About
2026-11-21 13:00:34 -05:00
Terra854 8a04ebe5d1 Keep the JPEG XL encoder API available without the codec (#4618) 2026-11-21 13:00:31 -05:00
FredApps bd8aba38e1 Merge branch 'main' into lr-lib-delete-folder-name-index 2026-11-21 17:04:04 +07:00
Dylan M. Taylor be760ee524 engine: adopt shared craft-sqlite page/record helpers and cross-app parity tests (#4605)
* engine: adopt shared craft-sqlite page/record helpers and cross-app parity tests

* engine: drop unused be_u16_at and bump craft-sqlite rev

* engine: adopt #2696 PayloadKind local_payload_len and fix cyclic overflow fixture

* chore: pin craft-sqlite to merged craft-libs main (0350c2edc)
2026-11-20 20:57:14 -05:00
Dylan M. Taylor 1c778f150b pipeline,color: use shared 1024-entry LUT composition and tone/finish math (#587) (#4598)
* pipeline,color: use shared 1024-entry LUT composition and tone/finish math (#587)

* test(pipeline): satisfy clippy field_reassign_with_default

* fix(color): preserve legacy MonotoneCurve points past 1024 before sorting

* test(pipeline): verify composed channel samples and pinned tone/finish render parity

* test(pipeline): match ToneMap::display log-EV LUT tolerance (2e-3)
2026-11-20 20:37:28 -05:00
Dylan M. Taylor a8b482a95e codecs,engine: validate video sample packets and expand AV1/mux round-trip tests (#4604)
* codecs,engine: validate video sample packets and expand AV1/mux round-trip tests

* test(codecs): fix vec! syntax in FailAfter MP4 test

* test(codecs,engine): fix FailAfter MP4 limit and poll cancel cleanup
2026-11-20 20:02:18 -05:00
Dylan M. Taylor 10b2c2e3e1 codecs(psd): recover PSD/PSB composites from original bytes via craft-psd (#4602)
* T010: recover PSD composites from original bytes

* test(codecs): cover odd final pad, truncated resource, and huge pixel limit

---------

Co-authored-by: Terra854 <bentinner@yahoo.com.sg>
2026-11-20 19:55:33 -05:00
Terra854 a0d2c1cf38 test(engine): cover late slideshow video cancellation (#4600) 2026-11-21 06:22:38 +07:00
Dylan M. Taylor 6d0303382c test(codecs): complete image metadata framing and sniff parity coverage (#4603) 2026-11-20 18:14:06 -05:00
Terra854 6b637dd3b9 test(engine): cover Lightroom ZIP64 backup recovery (#4595) 2026-11-20 15:41:46 -05:00
Dylan M. Taylor 442d51021b test(codecs): assert explicit zero pad and sniff/decode on odd WebP EXIF (#4594) 2026-11-20 15:19:02 -05:00
Bruno cb91d69eec perf(raw): hot-pixel candidates skip the neighbour sort when they can't pass (#4592)
A photosite brighter than its same-colour neighbours was tested against K σ at the median of those neighbours,
which sorts them. σ rises with level and the median is at least the dimmest neighbour, so σ at that neighbour
bounds the threshold from below: a photosite that fails it fails the full test too, and nearly all of them do.
Same candidates, so the same output; the pass takes 125 ms instead of 200 ms on a 45 MP NIKON D850 NEF.
2026-11-20 14:33:53 -05:00
Dylan M. Taylor c17badc68a test(codecs): add JPEG/WebP metadata framing and MP4/WebM writer parity tests (#4591)
* test(codecs): add JPEG/WebP metadata framing and MP4/WebM writer parity tests

* test(codecs): fix MP4 MAX_PERIODS overflow test case
2026-11-20 13:40:44 -05:00
Dylan M. Taylor 968b0428fc test(engine): add committed-WAL multi-commit growth and shrink parity tests (#4588)
* test(engine): add committed-WAL multi-commit growth and shrink parity tests

* test(engine): cover shrink after growth in one SQLite WAL
2026-11-20 13:18:56 -05:00
FredApps 041c8db2f7 Merge pull request #3482 from dotCooCoo/fix/keyword-names-no-trailing-asterisk
LRC-LIB-KEYWORDS: a new keyword name cannot end in an asterisk
2026-11-20 21:04:02 +07:00
FredApps d501e3c5d4 Merge pull request #3469 from dotCooCoo/feat/keywording-enter-keywords
LRC-LIB-KEYWORDS: the Keywording panel's Enter Keywords view edits keywords as text
2026-11-20 21:03:57 +07:00
FredApps 9b6a264304 Merge pull request #2110 from helgehelge123/hebrew-glyph-fallback
LR-BEHAV-LOCALIZE: Hebrew file and folder names get glyphs (part of #1915)
2026-11-20 21:03:47 +07:00
FredApps fd93a14654 Merge pull request #2020 from nledford/album-counts-background
LR-LIB-SMARTALBUM: creating or giving a keyword no longer freezes the window while albums are counted
2026-11-20 21:03:42 +07:00
Terra854 55644724be Restore JPEG format detection precedence (#778) (#4583) 2026-11-20 21:00:00 +07:00
Dylan M. Taylor 368855cd1e codecs: use shared container muxing for slideshow video (#4557)
* codecs: use shared container muxing for slideshow video

* codecs: format shared mux adapter and return invalid writer state

* codecs: box active WebM mux state to keep writer variants compact

* test(slideshow): ignore craft-media Mp4Writer placeholder free box

* fix(codecs): include av01 ftyp brand and real WebM ReferenceBlock delta
2026-11-20 06:21:27 -05:00
Dylan M. Taylor 5eca431541 engine: use craft-sqlite for varint and serial-type decoding (#4576) 2026-11-20 03:54:34 -05:00
Dylan M. Taylor 89d11ab116 fix(engine): allow duplicate non-catalog entries in Lightroom backup ZIPs (#4581) 2026-11-20 03:01:52 -05:00
Dylan M. Taylor 2d905e0ab3 fix(engine): reject duplicate .lrcat central directory records in Lightroom backups (#4574)
* fix(engine): reject duplicate .lrcat central directory records in Lightroom backups

* fix(engine): use craft_zip::lenient::file::directory_record_names path

* build: enable lenient feature on craft-zip for directory_record_names

* fix(engine): decode DirectoryRecordName::name lossily as UTF-8

* fix(engine): use SeekableArchive::has_duplicate_names for strict directory parity
2026-11-19 23:32:35 -05:00
Terra854 976f52ab69 geocode: use craft-zip for GeoNames downloads (#4566)
* T006: read GeoNames ZIPs with craft-zip

* geocode: take craft-zip at the workspace's craft-libs rev; build the fixture with its writer

craft-zip at 23acc704, the rev every other craft-libs crate here uses, has
the same Archive and Writer code as 5c496f6e (that rev only adds the
seekable reader), so the workspace stays on one craft-libs rev.

unzip::make now builds its one-file fixture with craft_zip::Writer instead
of hand-written headers, so geocode no longer needs crc32fast or
miniz_oxide.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* geocode: retain the selected ZIP entry index

---------

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:31:08 -05:00
Dylan M. Taylor a3f65b67b8 fetch: use shared craft_http_url::parse_content_range (#4546)
* fetch: use shared craft_http_url::parse_content_range

* chore: repin craft-http-url to craft-libs main
2026-11-19 20:41:29 -05:00
Dylan M. Taylor 8539efc832 codecs: share image metadata framing and sniffing (#4556)
* codecs: share image metadata framing and sniffing

* codecs: cover BigTIFF and JPEG-LS shared routing parity

* codecs: add unit tests for BMFF probe precedence and sniff fallback
2026-11-19 20:36:49 -05:00
Dylan M. Taylor 7c7965989b codecs(psd): share PSD recovery framing with craft_psd::HeadView (#4562) 2026-11-19 19:53:31 -05:00
Dylan M. Taylor 1901762de2 engine: read Lightroom backup zip via craft-zip (#4555)
* engine: read Lightroom backup zip via craft-zip

* engine: pin Lightroom ZIP reader to merged shared revision

* engine: add mid-stream cancellation test for Lightroom backup extraction
2026-11-19 18:49:30 -05:00
Dylan M. Taylor 78b575658a fetch: delegate HTTP URL and redirect syntax to craft-http-url (#4337) 2026-11-19 09:14:32 -05:00
Dylan M. Taylor 5a24289898 raw: consume merged DJI DNG and Sony ZV-E10 fixes (#4532)
* raw: consume merged DJI DNG and Sony ZV-E10 fixes (#587)

Pin craft-raw to merged f589ff48, carrying craft-libs #2042 and #2039. Preserve the Fuji Kelvin adapter and other application codec pins. Bridge the RAW writer TIFF identity explicitly and regenerate Flatpak sources.

* raw: align engine preview fallback test TIFF error identity
2026-11-18 23:27:04 -05:00
eliets2 2e49c4561e Match bundled camera profiles to Nikon model spellings (#3861)
* Match bundled camera profiles to Nikon model spellings

NEF files without colour matrices depend on the bundled camera profile for colour; missing it leaves the image flat and desaturated.

Normalize the model name (case, spacing and separators) when looking up bundled profiles so variant EXIF spellings find the same profile.

Test: bundled_profile_matches_nikon_model_spelling_variants failed before the change and passes after.

* Find the bundled Nikon Z 8 profile under the Z8 spelling and rebuild older previews

Add an explicit alias for the Exif spelling "NIKON Z8", which the case and spacing fold does not cover.
Advance the camera look version so previews made without the bundled profile are rebuilt.
Test: bundled_profile_matches_nikon_model_spelling_variants and a_proxy_from_the_previous_look_version_is_stale pass.

* Address review for pull request 3861

* Address remaining review requests

* Address review for pull request 3861

* Format the files this pull request changes

* Repair review branch integration

* Address remaining review requests

* Address review for pull request 3861

* Format the files this pull request changes

* Repair review branch integration

---------

Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com>
2026-11-18 14:49:56 -06:00
Chad Elliott 6c3083ebbd fix(raw): Fujifilm RAFs keep their Kelvin white-balance scale (#4492)
craft-raw gives a RAF's white-balance presets as the camera's neutral
multipliers for Illuminant A and D65 (`neutral_pair()`) with no points:
placing points between them is left to the developer. The adapter in
convert.rs rebuilt LightCraft's scale from `points()` alone, so every RAF
lost its Kelvin scale when RAF decoding moved to craft-raw (#4234).

Bodies that rely on it showed a different As Shot Temp / Tint. On the
corpus, seven of the 70 RAFs changed, all to a tint near +110: X-H1
4960 K / +7 became 6384 K / +110, and the X-T2, X-T20 (both files), X-E3,
X-Pro2 and X100F moved the same way. A neutral pair now goes through
`KelvinPresets::from_neutral_pair`, as the RAF decoder did before the
move, and all seven read the same Temp / Tint as before it.

Fixes #4491

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 15:15:06 -05:00