Commit Graph
145 Commits
Author SHA1 Message Date
Dylan M. Taylor 6c00da188a Merge TIFF cutover and regenerate integrated codec sources 2026-11-16 02:48:02 -05:00
FredApps 7557fa5f78 Merge remote-tracking branch 'origin/main' into t4270b 2026-11-16 07:38:59 +01:00
Dylan M. Taylor 0466978870 test(codecs): preserve two-plane JXL fixture and large AV1 coverage 2026-11-16 01:34:37 -05:00
FredApps 8734e619c3 Merge main and pin craft-image-codecs to craft-libs#1630 merge 2026-11-16 06:51:45 +01:00
Dylan M. Taylor 0d61484dda fix(codecs): preserve AV1 quality-100 quantizer 2026-11-15 22:35:29 -05:00
Dylan M. Taylor 629481764e fix(avif): preserve shared encoder threading without repinning other codecs 2026-11-15 19:44:00 -05:00
Dylan M. Taylor f5da4a27d3 Merge pull request #4167 from storytold/lc-switch/craft-psd
Read the PSD header and image resources with craft-psd
2026-11-15 19:39:59 -05:00
Dylan M. Taylor ae702cb5c5 Merge main while preserving AVIF and JPEG cutovers 2026-11-15 19:26:35 -05:00
Dylan M. Taylor 3d524ceef7 Share TIFF decode preflight inspection 2026-11-15 16:17:55 +00:00
Dylan M. Taylor 6b0e7c62e8 Use shared TIFF header validation 2026-11-15 16:15:50 +00:00
Dylan M. Taylor 1a74a51b58 Merge branch 'feat/cutover-avif-jxl-tests' of https://github.com/storytold/lightcraft into codex/lightcraft-av1-buffered-caller
# Conflicts:
#	Cargo.toml
2026-11-15 15:17:34 +00:00
Dylan M. Taylor 1b4384902d Merge remote-tracking branch 'origin/main' into codex/lightcraft-jpeg-writer 2026-11-15 15:16:12 +00:00
FredApps e785d9ccb5 codecs: share the craft-image-codecs image conversion of the PNG, TIFF and AVIF writers
The AVIF cutover added a third copy of the channel-layout and sample match
(Sonar: 8.8% duplication on new code). One helper builds the image; each
writer keeps its own float refusal message.
2026-11-15 15:37:02 +01:00
FredApps 92cfbf0ad0 Merge main into lc-switch/craft-psd
The stack below this branch has landed on main: craft-heif (#4085's content via
#4234 and #4238), craft-gainmap (#4165), and "Read the PSD header and image
resources with craft-psd" itself (f30bd05c via #4234). Take main everywhere, so
this PR carries only what main still lacks: a damaged image-resource section is
left out of the decode instead of refusing the whole file, as before the
craft-psd cutover (8dd2d60a). main already has the valid sidecar-test headers.
2026-11-15 15:29:34 +01:00
FredApps 27638e1b3d Merge remote-tracking branch 'origin/main' into avif 2026-11-15 15:21:48 +01:00
Dylan M. Taylor 54d7531a73 Merge remote-tracking branch 'origin/main' into codex/lightcraft-av1-buffered-caller 2026-11-15 13:04:51 +00:00
Dylan M. Taylor 34411fecb9 Preserve buffered AV1 frames and durations 2026-11-15 11:30:02 +00:00
Dylan M. Taylor 3798bc52be test(codecs): cover JPEG gain map encoder paths 2026-11-15 09:02:01 +00:00
Lars Ostwald acb90d2daa 4264: simplify TIFF header colour-type predicate 2026-11-15 09:44:42 +01:00
Dylan M. Taylor 3dfb134574 fix(codecs): keep AVIF fallback wasm compatible 2026-11-15 02:46:50 +00:00
Dylan M. Taylor 7197597e13 fix: box single AV1 encoder backend 2026-11-15 00:25:09 +00:00
Dylan M. Taylor f8edf82585 fix: box large AV1 encoder backend 2026-11-15 00:20:50 +00:00
Dylan M. Taylor c0d3596e27 chore(codecs): drop obsolete AV1 speed binding 2026-11-15 00:15:22 +00:00
Dylan M. Taylor 11e31c2521 fix(codecs): preserve AV1 speed for large frames 2026-11-15 00:07:26 +00:00
Dylan M. Taylor 2d13d97c6b fix(codecs): retain large AV1 frame support 2026-11-15 00:06:33 +00:00
Dylan M. Taylor 45a0f55ad4 Merge latest LightCraft main into JPEG encoder cutover 2026-11-14 23:41:11 +00:00
Dylan M. Taylor 176e15eeef fix(codecs): clear dead_code and useless_conversion clippy warnings 2026-11-14 21:56:22 +00:00
Dylan M. Taylor 8784024395 fix(codecs): use av1 feature and craft_video::av1 exports 2026-11-14 21:45:11 +00:00
Dylan M. Taylor c11eb960eb codecs: use shared JPEG encoder 2026-11-14 21:28:58 +00:00
Dylan M. Taylor 5d22eff36c chore(codecs): cut over AVIF, AV1, and JXL tests to craft-libs 2026-11-14 21:19:39 +00:00
Dylan M. Taylor 25ffe3e5d4 codecs,raw,preview,meta,engine: cut over TIFF/JPEG/focus to craft-libs and fix CI (#4244)
* codecs,raw,preview,meta,engine: cut over TIFF/JPEG/focus to craft-libs and fix CI

* docs: update parity-checklist paths after craft-raw/craft-metadata cutover

* Remove unused codec workspace deps and cut examples over to craft-image-codecs

* chore: update Cargo.lock after removing unused codec deps
2026-11-14 13:49:38 -05:00
Dylan M. Taylor b406f217fa codecs: use shared image encoder for HDR PNG 2026-11-14 09:24:51 +00:00
Dylan M. Taylor 4e7c9d74af fix(codecs): initialize craft_heif::Options with ..Default::default() 2026-11-14 06:06:00 +00:00
Dylan M. Taylor 9381392579 Merge pull request #4234 from storytold/switch-lightcraft/wip-craft-raw
WIP: cut over crates/raw, lensdb XML, and gainmap to craft-libs (#778)
2026-11-14 00:44:19 -05:00
Dylan M. Taylor 8a2f20f1ac Merge remote-tracking branch 'origin/main' into switch-lightcraft/wip-craft-raw
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	crates/codecs/Cargo.toml
#	crates/codecs/src/heif.rs
#	crates/codecs/src/psd.rs
#	crates/meta/Cargo.toml
#	crates/raw/Cargo.toml
#	crates/raw/src/dcp.rs
#	crates/raw/src/dng.rs
#	crates/raw/src/gaintable.rs
#	crates/raw/src/lib.rs
#	crates/raw/src/semantic.rs
#	crates/raw/src/vendor/arw6.rs
#	crates/raw/src/vendor/cr2.rs
#	crates/raw/src/vendor/cr2/sraw.rs
#	crates/raw/src/vendor/crw.rs
#	crates/raw/src/vendor/erf.rs
#	crates/raw/src/vendor/hasselblad.rs
#	crates/raw/src/vendor/kodak.rs
#	crates/raw/src/vendor/mef.rs
#	crates/raw/src/vendor/mrw.rs
#	crates/raw/src/vendor/nef.rs
#	crates/raw/src/vendor/nef_lens.rs
#	crates/raw/src/vendor/nefc.rs
#	crates/raw/src/vendor/pef.rs
#	crates/raw/src/vendor/srw.rs
2026-11-14 05:26:37 +00:00
Dylan M. Taylor 7927090f19 codecs: use DeflateLevel::Balanced for TIFF ZIP compression 2026-11-14 05:15:48 +00:00
Dylan M. Taylor 08aefe52d7 codecs: use shared craft-jxl codec in LightCraft (craft-libs#1229) 2026-11-14 00:14:06 +00:00
Dylan M. Taylor 27791850a0 codecs: migrate GIF decoding and bounds to craft-gif (#4222) 2026-11-14 00:12:10 +00:00
Dylan M. Taylor 9cd6817c3b codecs, meta: read PSD header and image resources with craft-psd (#4167) 2026-11-14 00:09:58 +00:00
Dylan M. Taylor e4dd081dd4 Use craft-gainmap from craft-libs for gain map metadata and arithmetic
Use craft-gainmap from craft-libs for gain map metadata and arithmetic

* Use craft-heif from craft-libs; remove crates/heif

lightcraft-heif moved to craft-libs unchanged as craft-heif
(storytold/craft-libs#784), so PhotoCraft can share it. The layer table,
the heif CI step and the change triggers drop the local crate; a workspace
file change (which a craft-heif rev bump is) still runs the heif step.

* Pin craft-heif to the merge of storytold/craft-libs#794

* docs: the HEIF rows point at craft-heif, not the removed crates/heif

* Use craft-gainmap from craft-libs for gain map metadata and arithmetic

crates/codecs/src/gainmap.rs keeps the JPEG layout (encode_jpeg, read_jpeg,
is_gain_map_jpeg) and re-exports GainMapMeta, GainImage, GainMapOptions,
ISO_URN, compute and apply from craft-gainmap, which is this file's metadata
and arithmetic moved to craft-libs (storytold/craft-libs#904). The tests of
the moved code went with it.

* craft-heif's Options has a chroma field at this rev: keep the libheif upsampling LightCraft had

* raw: count the chunks a TIFF declares from its offsets table

craft-tiff builds at most one chunk descriptor per byte of file
(craft-libs#827), so a grid of tiles sharing one payload lists fewer
chunks than the image declares. Compare the offsets table, which is the
source of truth, so such a file reaches the byte-accounting check and is
refused for the data it actually holds.
2026-11-12 00:43:54 -05:00
Dylan M. Taylor 8dd2d60a24 PSD: a damaged resource section is left out of the decode, as before; valid headers in the sidecar test
The decode keeps the picture when the image resources don't parse (the import
of such a file relies on it); the metadata reader still reports it as
malformed. craft-psd validates the header, so the sidecar test's synthetic
PSDs get a valid one.
2026-11-12 03:01:31 +00:00
Dylan M. Taylor 69cd98a5c2 Read the PSD header and image resources with craft-psd
lightcraft-meta's EXIF/XMP scan and lightcraft-codecs' PSD probe and decoder
take the header, colour mode data and image resources from craft_psd::Head
(storytold/craft-libs#885). The merged-image decoder and the flat writer stay.
2026-11-12 01:06:59 +00:00
Dylan M. Taylor 884956e27e Use craft-gainmap from craft-libs for gain map metadata and arithmetic
crates/codecs/src/gainmap.rs keeps the JPEG layout (encode_jpeg, read_jpeg,
is_gain_map_jpeg) and re-exports GainMapMeta, GainImage, GainMapOptions,
ISO_URN, compute and apply from craft-gainmap, which is this file's metadata
and arithmetic moved to craft-libs (storytold/craft-libs#904). The tests of
the moved code went with it.
2026-11-12 01:06:47 +00:00
Dylan M. Taylor 6ae275700c Merge formats/craft-heif (#4085) into main; craft-heif and craft-tiff at craft-libs 430a908f
craft-heif at this rev has the port of lightcraft#3645 (craft-libs#812) and
an Options::chroma field; the decoder keeps its default (libheif chroma).
2026-11-12 01:06:25 +00:00
Dylan M. Taylor f30bd05cfe Read the PSD header and image resources with craft-psd
lightcraft-meta's EXIF/XMP scan and lightcraft-codecs' PSD probe and decoder
take the header, colour mode data and image resources from craft_psd::Head
(storytold/craft-libs#885). The merged-image decoder and the flat writer stay.
2026-11-12 01:05:29 +00:00
Dylan M. Taylor 4068e131f7 Use craft-gainmap from craft-libs for gain map metadata and arithmetic
crates/codecs/src/gainmap.rs keeps the JPEG layout (encode_jpeg, read_jpeg,
is_gain_map_jpeg) and re-exports GainMapMeta, GainImage, GainMapOptions,
ISO_URN, compute and apply from craft-gainmap, which is this file's metadata
and arithmetic moved to craft-libs (storytold/craft-libs#904). The tests of
the moved code went with it.
2026-11-12 00:53:36 +00:00
Dylan M. Taylor c5d60d2fa7 Use craft-tiff from craft-libs for TIFF/IFD (#4088)
* Use craft-tiff from craft-libs; remove crates/tiff

lightcraft-tiff moved to craft-libs unchanged as craft-tiff
(storytold/craft-libs#783), the first step of sharing RAW support with
PhotoCraft (storytold/craft-libs#587). The layer table drops tiff and its
intra-layer ordering before raster.

* Pin craft-tiff to the merge of storytold/craft-libs#795
2026-11-11 19:51:47 -05:00
Dylan M. Taylor 55b14eaa31 Merge #4085 (craft-heif) into #4088 (craft-tiff) 2026-11-12 00:37:30 +00:00
Dylan M. Taylor ebfd2d063b Use craft-heif from craft-libs; remove crates/heif
lightcraft-heif moved to craft-libs unchanged as craft-heif
(storytold/craft-libs#784), so PhotoCraft can share it. The layer table,
the heif CI step and the change triggers drop the local crate; a workspace
file change (which a craft-heif rev bump is) still runs the heif step.
2026-11-11 01:25:39 +00:00
Dylan M. Taylor 34161c9a8c Use craft-tiff from craft-libs; remove crates/tiff
lightcraft-tiff moved to craft-libs unchanged as craft-tiff
(storytold/craft-libs#783), the first step of sharing RAW support with
PhotoCraft (storytold/craft-libs#587). The layer table drops tiff and its
intra-layer ordering before raster.
2026-11-11 01:25:32 +00:00