Skip to content

Upstream review r4: 10 ports from open PRs #3038–#3118 - #635

Merged
emmertex merged 17 commits into
mainfrom
upr/review-20261027
Oct 27, 2026
Merged

emmertex merged 17 commits into
mainfrom
upr/review-20261027

Conversation

@emmertex

Copy link
Copy Markdown
Owner

Upstream review r4 (2026-10-27): open upstream PRs #2930–#3119 and upstream main up to c9860ea7a. Decisions for every PR not yet recorded are in docs/upstream-pr-reviews/open-2930-up.md (r4 section).

Ported (one commit each)

  • #3097 CR3 white level at the sensor's saturation point (highlight reconstruction no longer kicks in early). CR3 only; other formats unchanged; RENDER_CACHE_VERSION 74 → 75, so thumbnails rebuild. Fork-only addition: a camdb white-level override undoes the raise.
  • #3116 Transparent sources keep alpha in PNG, TIFF and WebP exports. JPEG/PSD/AVIF/JXL/HDR, previews and GPU unchanged. Note: TIFFs with associated alpha now unpremultiply before linearising (more correct; changes how such TIFFs look everywhere).
  • #3117 GPU device creation gives up after a time limit instead of hanging (<PREFIX>_GPU_INIT_TIMEOUT).
  • #3118 Memory sizing honours cgroup limits (safe code only in crates/sysmem).
  • #3092 YuNet face detection looks at up to 1024 px in the photo's own shape (finds small faces; CPU scan ~1.5–2× slower).
  • #3076 --connect resends a command that crossed the idle-close notice.
  • #3054 XMP GPS minutes/seconds ≥ 60 rejected (meta core only).
  • #3045 Windows hidden-attribute folders left out of folder trees.
  • #3038 macOS CFBundleLocalizations for the fork's 18 locales.
  • #3098 CLI refused-connection tests use a free port, not 18437.

Already on main (skipped): #3024, #3013, #3020, #2986, #2959, #2954. Upstream main after c7961df10: file-layout refactors (skipped) and the docking follow-ups (still deferred).

Checks

cargo xtask ci --fast, targeted tests of every touched crate (meta, mcp, cli, app, gpu, sysmem, engine, raw, merge, camdb, codecs, faces, ui-egui, xtask: 5,532 passed, 0 failed) and cargo xtask sil: all green, run once after all ports were merged.

🤖 Generated with Claude Code

emmertex and others added 17 commits October 27, 2026 13:00
Ported from upstream #3054 (crates/meta GPS bound and its test only; the PR's
chunk-walk, export, locale and UI parts are not taken).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ported from upstream #3038.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ad of hanging

Ported from storytold/lightcraft#3117 (ab46d2bf8, fa1657436, 79ed3d03b), applied by hand:
the time limit's variable goes through lcc_brand (<PREFIX>_GPU_INIT_TIMEOUT), the fork's
brand-templated messages are kept, and the video LUT test device is created under the
same limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Canon CR3 ColorData states a white level below where the sensor really
clips (EOS RP 14558 vs 16383; R100 at ISO 640 10439 vs ~13300), so
highlights above it were reconstructed as clipped. A full CR3 decode now
raises the white level to the data's pile-up above the stated level
(`RawImage::extend_white_to_saturation`), adds the change to the baseline
exposure so everything below renders as before, and records it as
`ColorData::white_extension_ev` so the camera-look fit still treats what
the file called clipped as clipped. Header probes report the stated
colour. Only CR3 calls the raise; other formats get white_extension_ev 0.

Chromaforge adaptations: engine hunks ported by hand (camera_preview
moved; RENDER_CACHE_VERSION 74 -> 75); vendor `sample_row_step` refactor
keeps the fork's white_from_data plateau behaviour; lcc-camdb's
`Entry::apply` undoes the extension when an entry overrides the white
level; docs notes added to the fork's checklist row / raw-parity (no
whats-new.md edit; docs/whats-new/2026-10-27-cr3-white-level.md).

Ported from storytold/lightcraft#3097 (head e32691a5ca), via gh pr diff.
Sources: own design (upstream).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ported from storytold/lightcraft#3118 (77a6c3dba, d7df83f5b, 3bbb23504, ce61a6067,
f4ad0f9cf, bd0b1fb4a), applied by hand: crate names mapped to lcc-*, the fork's sysmem
docs (two FFI calls, fsync) kept, new limits module is safe std-only code
(#![forbid(unsafe_code)]) with its Linux parts cfg-gated, the fork README kept as is.

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

Ported from upstream #3045.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ported from upstream #3098.

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

Ported from upstream #3076. Adapted: the fork's idle notice text ("idle too
long") is the one matched; the notice is marked only for authenticated idle
timeouts (not the auth deadline); upstream's spawn_connection tests do not
apply, the fork's idle test checks the marker instead.

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

An export to PNG, TIFF or WebP (not HDR) asks for the source's colour without the
white to_working flattens transparency onto (lcc_codecs::unflatten) and carries the
alpha plane through the same geometry (lcc_pipeline::render_alpha,
Frame::sample_alpha). TIFF writes associated alpha; associated-alpha TIFFs are
un-premultiplied in their stored values on decode. JPEG, PSD, AVIF, JPEG XL and HDR
exports, previews and thumbnails render as before (request.alpha stays false).

Adapted: fork's Rendered (warnings, coverage), SourceInfo (filters, colorimetric)
and RenderRequest (downscale) fields kept; export_job_with_alpha keeps the fork's
check_output_size, Sharp downscale and cache-key salt. Parity row only (no
Last updated / revision line). CLI test moved to apps/cli/tests/cli.rs.

(cherry picked from commit 50412e6c6e9b3504ba46740446d1faa7e57a7117)
(cherry picked from commit f3f393765ad4537ec47f7e087a3743eea6ea9348)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…wn shape, not 640 x 640

Adapted: parity row only (no Last updated line); What's New entry in docs/whats-new/.

(cherry picked from commit d4913b2042)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	apps/cli/tests/cli.rs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@emmertex
emmertex merged commit cdb5dd9 into main Oct 27, 2026
9 checks passed
@emmertex
emmertex deleted the upr/review-20261027 branch October 27, 2026 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant