lightcraft/crates/gpu/src
Exalted5373 ed59d78e83 LR-MASK-SKY: AI masks use DNG semantic mattes (iPhone ProRAW sky matte)
Read DNG 1.6 semantic masks (SemanticName, SemanticInstanceID,
MaskSubArea; any coding the tile/strip reader decodes, e.g. ProRAW's
lossy-JPEG matte) with lightcraft_raw::semantic_masks, map them onto the
developed image, and carry Apple's sky / portrait / skin / hair / teeth /
glasses mattes in SourceInfo::mattes (SourceInfo is no longer Copy).
Sky, Subject, Background and People components sample them through
orientation, warp (Warp::frame, as geometry.rs) and crop like the image,
so preview = export, instead of the heuristics; files without mattes
render as before. Malformed mask IFDs are skipped, and only the first
MAX_MASKS mask IFDs are decoded, so a file full of them costs bounded
work. The render cache version is bumped once, in the white-balance commit.

The corpus test reads corpus/raw/dng-apple-iphone12pro-proraw.dng, the
name `cargo xtask corpus` downloads it under.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 18:18:54 -07:00
..
wgsl #323: windows on the GPU; Auto Mask strokes grow the window; dab references at f32 2026-10-08 18:28:45 -04:00
backend.rs Issues #164, #169: --memory sessions write nothing — no ui.json, no settings folder 2026-10-08 11:17:38 +00:00
ctx.rs GPU: decide warped-geometry edges with a CPU coverage mask 2026-10-07 18:49:59 -04:00
lib.rs #323: the windows of a big photo share one device copy of its source 2026-10-08 18:28:45 -04:00
params.rs #323: windows on the GPU; Auto Mask strokes grow the window; dab references at f32 2026-10-08 18:28:45 -04:00
render.rs LR-MASK-SKY: AI masks use DNG semantic mattes (iPhone ProRAW sky matte) 2026-10-08 18:18:54 -07:00