Commit Graph
231 Commits
Author SHA1 Message Date
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
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 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
.CooCoo 7db608d694 Dependencies: take craft-libs main at 23acc70493 (#4127)
* Updates: take craft-update from craft-libs main at 6e03f65bf

craft-update moves from storytold/craft-libs at 1b34eba41 to 6e03f65bf,
craft-libs main with the update fixes from #763 and #803. Cargo.lock
records the new revision. The other craft-libs pins are unchanged.

* Updates: take craft-update from craft-libs main at e98299546

craft-libs e98299546 includes #923: the check of whether the copy can install itself now runs on the update-check thread instead of in Updater::tick on the UI thread.

* Dependencies: take craft-libs main at 3af2280ee3

Every craft-libs crate in the workspace moves to craft-libs main at
3af2280ee3, so the app builds against one craft-libs commit.

- crates/codecs: the separate craft-avif-encode alias of
  craft-image-codecs is removed. With both on one commit, cargo refuses
  the same package under two names. On native targets the avif feature
  now enables craft-image-codecs' avif and threads features, so a build
  without avif, and the wasm32 build, still leave the AV1 encoder out.
- crates/ui-egui: GroupLocation has two new fields, flyout_width and
  flyout_offset (storytold/craft-libs#627); the default dock location
  sets both to None, as craft-ui does for a new group.

* Dependencies: take craft-libs main at 3af718585c

Every craft-libs crate moves from 3af2280ee3 to craft-libs main at
3af718585c. craft-image-codecs now depends on the new craft-dds crate.

* Flatpak: regenerate cargo sources for craft-libs at 3af718585c

cargo-sources.json now lists the craft-libs git sources that Cargo.lock locks: one
commit, 3af718585c, for every craft-libs crate, and the new craft-dds crate. It
was generated with ./packaging/linux/flatpak/generate-cargo-sources.py.

* Dependencies: take craft-libs main at 453b0da782

Every craft-libs crate moves from 3af718585c to craft-libs main at
453b0da782. Cargo.lock changes only the craft-libs source lines, and
packaging/linux/flatpak/cargo-sources.json is regenerated with
generate-cargo-sources.py for the new commit.

craft-update now reads the installed files for a release the app offers
on a thread of its own, and the prompt opens at a later tick
(storytold/craft-libs#1149). startup_prompt_shows_and_closes offered a
release and checked the prompt after one frame, so it failed when that
thread had not answered yet. The test now waits for the thread's repaint
request and ticks until the prompt opens.

* Updates: startup prompt test fails instead of waiting forever

The offer's thread sends its answer before it asks for a repaint, so the
tick after that repaint reads the answer. The helper now ticks once after
the repaint and asserts that the prompt is open, instead of waiting for
another repaint that never comes when the answer opens no prompt.

The test also gives its updater a pins file that does not exist, so a
launcher choice on the machine running the tests does not stop the offer.
2026-11-18 11:43:24 -06:00
Dylan M. Taylor b800c6e573 Merge remote-tracking branch 'base-src/main' into tmp4308
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	crates/codecs/Cargo.toml
#	crates/raw/tests/it/dng.rs
#	packaging/linux/flatpak/cargo-sources.json
2026-11-18 10:02:00 -05:00
Dylan M. Taylor 19bfe49c2a Merge remote-tracking branch 'base-src/main' into pr-4426
# Conflicts:
#	packaging/linux/flatpak/cargo-sources.json
2026-11-18 09:57:56 -05:00
Dylan M. Taylor 635b542e0b Merge remote-tracking branch 'base-src/main' into pr-4426
# Conflicts:
#	Cargo.lock
#	crates/codecs/Cargo.toml
#	packaging/linux/flatpak/cargo-sources.json
2026-11-18 09:53:00 -05:00
Dylan M. Taylor 44add76111 Merge remote-tracking branch 'base-src/main' into pr-4304
# Conflicts:
#	packaging/linux/flatpak/cargo-sources.json
2026-11-18 09:51:18 -05:00
Dylan M. Taylor 7ff6c8e1f5 Merge pull request #4307 from storytold/codex/shared-jpeg-inspection-consumer
Use shared JPEG marker and MPF handling
2026-11-18 09:47:27 -05:00
Dylan M. Taylor 2a07c3398e Merge remote-tracking branch 'origin/main' into pr-4426 2026-11-18 09:19:02 -05:00
Dylan M. Taylor 2abd2881b9 Merge remote-tracking branch 'origin/main' into pr-4304 2026-11-18 09:15:54 -05:00
Dylan M. Taylor c3c8e93b20 fix(codecs): gate the legacy EXIF walker to tests
Merging main left the app-owned TIFF walker without non-test callers, so
clippy's dead_code lint failed the gate. The walker is still the oracle for
the shared-summary compatibility test.
2026-11-18 09:10:59 -05:00
Dylan M. Taylor 5606bccb4f Merge remote-tracking branch 'origin/main' into codex/shared-webp-consumer 2026-11-18 07:50:02 -05:00
Dylan M. Taylor 7609d6e60c Merge remote-tracking branch 'origin/main' into codex/shared-jpeg-inspection-consumer 2026-11-18 07:49:50 -05:00
cf3d0205ef Decode AVIF through shared image codecs (#4312)
* Decode AVIF through shared image codecs

* Include JPEG encoder distribution notices

* Exercise AVIF HDR decoding through public API

* Preserve AVIF source bit depth

* Test AVIF alpha through public entrypoints

* Update AVIF round trip for supported decode

* Document native AVIF decode support

* Clarify import feature gates

* Keep RAW fixtures valid under shared container and strip bounds

* Include sample-to-chunk mappings in CR3 fixtures

* Find Similar test: a photo read from memory isn't a missing read (#3823)

The second search after a stop plans its reads after frames in which the
loupe and filmstrip decoded photos; those are measured from memory
(source_ref takes the cached source), so the drive sees fewer than 12 reads
on a loaded machine. Check instead that no file is read twice, the searched
photo above all; the answer still needs every photo's signature.

* Find Similar test: every photo is measured after the resumed search

* Bound AVIF padded picture storage and preserve integer source flag

* Size the AVIF picture-store budget for the stored canvas, not the clap-cropped size

* Attribute the AVIF lossless decode fixture

* Keep the AVIF clap test helpers free of unwrap for the codecs lint gate

* lightcraft: keep the newer craft-cms pin after merging main

---------

Co-authored-by: Bruno-Alumn <171815746+Bruno-Alumn@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-18 01:58:41 -05:00
Dylan M. Taylor 9e659e472f Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	crates/codecs/Cargo.toml
2026-11-17 08:08:04 -05:00
Dylan M. Taylor f8b3aff5fc Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	packaging/linux/flatpak/cargo-sources.json
2026-11-16 23:11:52 -05:00
Dylan M. Taylor 33d3498e17 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	packaging/linux/flatpak/cargo-sources.json
2026-11-16 23:08:04 -05:00
Dylan M. Taylor a0dd5d68e1 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	packaging/linux/flatpak/cargo-sources.json
2026-11-16 23:07:20 -05:00
Dylan M. Taylor 7bb9165c6b Delegate TIFF RAW classification to shared codecs (#4311) 2026-11-16 21:58:44 -05:00
Dylan M. Taylor 9de93337c5 Use shared HEIF metadata and preserve location checks (#4315) 2026-11-16 21:58:40 -05:00
Dylan M. Taylor 4c119c1f5c Pin BMP routing to merged shared implementation 2026-11-16 18:01:34 -05:00
Dylan M. Taylor 5bba2c23d2 Delegate BMP header recognition to shared codecs 2026-11-16 16:03:31 -05:00
Dylan M. Taylor 85e0a13b44 Refresh WebP header cutover with merged stored-dimension fix 2026-11-16 16:00:48 -05:00
Dylan M. Taylor 70831f12b6 Merge latest main cutovers and regenerate PSD Flatpak sources 2026-11-16 08:08:16 -05:00
Dylan M. Taylor e0e9a5afeb Merge latest shared PNG cutover and regenerate Flatpak sources 2026-11-16 07:15:23 -05:00
Dylan M. Taylor 74edf78d7c Merge current main and regenerate Flatpak ICC sources 2026-11-16 06:53:15 -05:00
FredApps 7215ade1d9 codecs: PSD resource recovery skips over-limit files and allocates fallibly 2026-11-16 12:20:57 +01:00
FredApps 36ff3fa0d6 Merge remote-tracking branch 'origin/main' into t4307
# Conflicts:
#	packaging/linux/flatpak/cargo-sources.json
2026-11-16 12:04:19 +01:00
FredApps f0451d9be9 Merge remote-tracking branch 'origin/main' into t4300
# Conflicts:
#	packaging/linux/flatpak/cargo-sources.json
2026-11-16 12:03:46 +01:00
FredApps 292a4c03b0 Merge remote-tracking branch 'origin/main' into t4298
# Conflicts:
#	packaging/linux/flatpak/cargo-sources.json
2026-11-16 12:01:58 +01:00
FredApps 77c7dc0c30 Merge remote-tracking branch 'origin/main' into t4304
Conflicts in Cargo.toml and crates/codecs/src/psd.rs after #4301:
- keep this branch's craft-psd d181e08d (merged reader; newer than main's
  16d83810) and main's jpeg-encoder line;
- keep the shared merged reader (craft_psd::merged) for decode and header,
  with main's writer (craft_psd::flat) and resources(&[ImageResource]);
- keep main's behaviour that a damaged image resources section is left out
  of the decode (8dd2d60a): Merged::open refuses it, so the file is reopened
  with that section emptied.
2026-11-16 11:51:04 +01:00
Dylan M. Taylor d6715fb4c6 Merge pull request #4301 from storytold/codex/shared-psd-writer
Use shared borrowed PSD writer for flat exports
2026-11-16 05:46:02 -05:00
FredApps e92905fac3 Merge pull request #4299 from storytold/codex/shared-bmp-consumer
Use shared BMP coverage inspection
2026-11-16 11:39:42 +01:00
FredApps 4cc84dce91 Merge remote-tracking branch 'origin/main' into t4300
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	packaging/linux/flatpak/cargo-sources.json
2026-11-16 10:50:12 +01:00
FredApps d6e2745404 Merge remote-tracking branch 'origin/main' into t4307
# Conflicts:
#	Cargo.lock
#	packaging/linux/flatpak/cargo-sources.json
2026-11-16 10:48:45 +01:00
Dylan M. Taylor e391fb8ceb Integrate current main and merged shared ICC normalization 2026-11-16 04:47:07 -05:00
FredApps 207c20f558 Merge remote-tracking branch 'origin/main' into t4298
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	packaging/linux/flatpak/cargo-sources.json
2026-11-16 10:33:04 +01:00
FredApps 526d93387e Merge remote-tracking branch 'origin/main' into t4301
# Conflicts:
#	packaging/linux/flatpak/cargo-sources.json
2026-11-16 10:22:20 +01:00
FredApps 7d66c79cff Merge remote-tracking branch 'origin/main' into t4307
# Conflicts:
#	Cargo.lock
#	packaging/linux/flatpak/cargo-sources.json
2026-11-16 08:54:59 +01:00
Dylan M. Taylor 6c00da188a Merge TIFF cutover and regenerate integrated codec sources 2026-11-16 02:48:02 -05:00
FredApps 3e3f477222 Merge remote-tracking branch 'origin/main' into t4301
# Conflicts:
#	packaging/linux/flatpak/cargo-sources.json
2026-11-16 08:39:55 +01:00
FredApps 45f887995b codecs: test PNG header and decode agree on conflicting Orientation entries 2026-11-16 08:32:38 +01:00
FredApps 82acd0b90d Merge main and pin shared crates to craft-libs#1660 merge 2026-11-16 08:32:38 +01:00
FredApps 62c00575c0 Merge main and pin craft-image-codecs to craft-libs#1613 merge 2026-11-16 08:25:42 +01:00
FredApps a1d7168a8a Merge main; main's craft-image-codecs pin (947dc5fb) already contains craft-libs#1610 2026-11-16 08:16:23 +01:00
FredApps 4650f83b18 Merge main into shared JPEG inspection branch 2026-11-16 07:51:51 +01:00
FredApps 7557fa5f78 Merge remote-tracking branch 'origin/main' into t4270b 2026-11-16 07:38:59 +01:00