Commit Graph
3074 Commits
Author SHA1 Message Date
Dylan M. Taylor 2bb5d0344f docs(psd): document editable TySh envelope fields 2026-11-15 10:10:41 -05:00
FredApps 9399c25341 image-codecs: decode AVIF pixels with craft-video's pure-Rust AV1 decoder
New optional `avif-decode` feature (native targets) reads still AVIF
files: the HEIF/ISOBMFF item graph, grids, clap/irot/imir, alpha
auxiliary images (including premultiplied), 8/10/12-bit 4:0:0, 4:2:0,
4:2:2 and 4:4:4, nclx/ICC colour, Exif and XMP, and PQ/HLG to linear
F32 through cicp::linearize as the HEIF path does.

The container walk follows LightCraft #3017 by @emmertex. Every size is
checked against the caller's Limits before the AV1 decoder runs, the
decoder's memory budget is capped by max_alloc, and the decode is
wrapped in catch_unwind so a decoder panic becomes an error.

Fixtures are tiny ffmpeg/libaom files; the 4:2:0 planes match libdav1d
bit for bit. Adds a decode_avif fuzz target.

Part of storytold/craft-libs#778.
2026-11-15 16:10:22 +01:00
Dylan M. Taylor 560b6f8268 Compare streaming native output with previous framing 2026-11-15 15:02:41 +00:00
Dylan M. Taylor 38c26217b1 Support fixed-precision SVG scene coordinates 2026-11-15 15:01:28 +00:00
Dylan M. Taylor e78ede0aa9 Merge pull request #1587 from storytold/codex/mcp-server-session
Share MCP server session envelopes
2026-11-15 09:53:42 -05:00
FredApps a0aae26efe Merge remote-tracking branch 'origin/main' into svg 2026-11-15 15:52:51 +01:00
FredApps cec6e24381 Check the rewritten SVG viewport output under the same limits 2026-11-15 15:52:47 +01:00
Dylan M. Taylor b5bd10d0d8 Stream envelope fields with bounded buffering 2026-11-15 14:49:04 +00:00
Dylan M. Taylor e555cc0afe fix(tga): use eager static footer errors 2026-11-15 09:48:49 -05:00
Dylan M. Taylor d1ee17aca4 Own native JSON schema in streaming writer 2026-11-15 14:46:50 +00:00
Dylan M. Taylor 0cdda6e15d Share VectorCraft streaming envelope helpers 2026-11-15 14:44:38 +00:00
Dylan M. Taylor cab96afd08 cms: keep public v2 helper before test module 2026-11-15 09:43:27 -05:00
Dylan M. Taylor 424a2dc2be Share streaming gzip writer with stored segments 2026-11-15 14:41:14 +00:00
Dylan M. Taylor b6b33b6096 tga: record original metadata-boundary source attribution 2026-11-15 09:40:41 -05:00
nuclearspike 1985afe943 tga: port metadata payload boundaries and regressions from FilmCraft #1932
Source head e7842f76f887005c460c64a8ab51d59d086e6f27; adapt original decoder guard and synthetic regressions to shared Picture/Error API.
2026-11-15 09:40:41 -05:00
Dylan M. Taylor 7bc5f2a4c8 cms: expose fixed v2 sRGB profile and verify shared parsing 2026-11-15 09:40:37 -05:00
Brandon Thomas f483f9d6dd cms: preserve original PDFCraft ICC v2 sRGB generator
Extracted unchanged from storytold/pdfcraft e098c5c85, crates/preflight/src/icc.rs; original implementation 4d60af8b1, rename d3db99818.
2026-11-15 09:39:55 -05:00
Dylan M. Taylor 1e204c51df psd: bound TySh serialization and reject unsafe geometry 2026-11-15 09:33:38 -05:00
Dylan M. Taylor 851c5cb8db Merge remote-tracking branch 'origin/main' into codex/tcraft-stream-format 2026-11-15 14:32:39 +00:00
Dylan M. Taylor e2e3b4213a Merge pull request #1585 from storytold/dot/plist-binary-v2
Extract bounded binary Apple property-list reader into craft-plist
2026-11-15 09:32:06 -05:00
Dylan M. Taylor ca64580510 Merge pull request #1577 from storytold/codex/zip-seek-boundary
Share bounded seekable ZIP indexing
2026-11-15 09:31:45 -05:00
Dylan M. Taylor d0feabc6c8 Exercise displacement dimension guards independently of mode 2026-11-15 09:30:43 -05:00
4d594a1130 psd: share editable TySh binary envelope from PhotoCraft
Preserve transform safety work and compatibility recovery; adapt to shared array geometry and add regression tests.

Co-authored-by: David Mann <daaavid.mann@gmail.com>
Co-authored-by: Sean Lavery <Theseanlavery@gmail.com>
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-15 09:30:30 -05:00
Dylan M. Taylor f2106054e0 Support bounded streaming displacement samples without plane copies 2026-11-15 09:30:28 -05:00
FredApps b850981f83 craft-audio: port EffectCraft's later Opus encoder speed-ups
The shared encoder was imported from storytold/effectcraft@c618429. EffectCraft's
copy has since gained @vangel76's speed-ups (effectcraft #2394, #2398, #2399,
#2402, #2403, #2404) and the strict-Clippy CELT stage refactor. Port them so
EffectCraft can drop crates/opusenc without slowing WebM export.

Packets are byte-identical to effectcraft-opusenc at d6c9ad66 (2100 packets
across SILK, hybrid and CELT, mono and stereo, 10-320 kb/s). The shared Error
API is unchanged.

Refs #778
2026-11-15 15:29:08 +01:00
Dylan M. Taylor 46cd009367 Add exact-plane payload writer and hostile-input regression tests 2026-11-15 09:29:01 -05:00
Scott Macdonald 8322a1166c Port bounded Displace payload reader from PhotoCraft 2026-11-15 09:28:27 -05:00
el-j 2d5f2e4a73 craft-audio: flac_decode tests without index loops (CI clippy) 2026-11-15 15:25:56 +01:00
el-j ee20ae63fd craft-audio: qoa_oracle test without index loops (CI clippy) 2026-11-15 15:24:46 +01:00
el-j 7b4d5f992c craft-captions: ASS and SSA subtitles (Format::Ass)
Reads the [Events] section of ASS v4+ and SSA v4 files and writes a
minimal ASS v4+ file. Keeps line breaks, the Name field as the speaker
and the \i, \b, \u override tags; other override tags and vector
drawings are dropped.

Closes #1550
2026-11-15 15:18:25 +01:00
Dylan M. Taylor 2284a6bf76 Merge pull request #1582 from storytold/extract/psd-annotations
craft-psd: bounded annotation record views and writer
2026-11-15 09:17:31 -05:00
FredApps 4f6e49b1ee Test SVG preflight depth and root viewport rewrite; accept px root sizes
Correct the source-depth expectations (svg>g>path is 3 levels, 2 open), cover
Preflight and every rewrite_root_viewport refusal, and read a root width or
height written with px as the pixels the docs promise.
2026-11-15 15:13:06 +01:00
FredApps 3bfe94538b Merge main into codex/craft-svg-photo-preflight
The base this branch was stacked on has landed separately: #1187 through #1182,
and #1198 through #1331 and #1465. Take main for everything outside crates/svg
so this PR carries only the SVG preflight and viewport rewrite.

In crates/svg, keep main's root_unitless_size, embedded data-URL and text-size
accounting, and check_document, now on top of the shared preflight. Embedded
SVGs still charge the reference-following height to the shared depth budget,
as on main, rather than the source depth.
2026-11-15 15:13:00 +01:00
el-j cdf4a2fa6e craft-audio: native FLAC decoder (flac-decode)
Adds flac::decode for whole files and flac::Decoder for single frames:
RFC 9639 subframes (constant, verbatim, fixed, LPC), Rice and escaped
partitions, wasted bits, all stereo modes, fixed and variable block
sizes, 4 to 32 bits, CRC-8 and CRC-16 checked. Not yet wired into
craft_audio::decode, which still uses symphonia for FLAC.

Part of #1546
2026-11-15 15:11:43 +01:00
FredApps 5ce2b07fde Merge remote-tracking branch 'origin/main' into jpeg-notices 2026-11-15 15:06:50 +01:00
FredApps 2b724bb168 Link jpeg-encoder licence records by repository URL
The relative link and root path do not resolve from a packaged craft-image-codecs.
2026-11-15 15:06:50 +01:00
Dylan M. Taylor b1ecb6776d Guard ZIP64 directory-size sentinel counts 2026-11-15 14:04:03 +00:00
Dylan M. Taylor f2593bc96d Merge main preserving commented and streaming CUBE writers 2026-11-15 08:50:34 -05:00
Dylan M. Taylor 09188c3bbf Merge pull request #1565 from storytold/extract/psd-linked-views
craft-psd: bounded header-only linked records for deferred consumers
2026-11-15 08:47:29 -05:00
Dylan M. Taylor 2cf13ea7c6 Merge commit '4cf2a6f4cb26bc0503191049edccf85d4d0b21a8' into codex/tcraft-stream-format 2026-11-15 13:46:16 +00:00
Dylan M. Taylor 533b37bd56 Add reusable MCP server session envelopes 2026-11-15 13:41:22 +00:00
Dylan M. Taylor d2c1cac032 Reject colliding project extension fields 2026-11-15 13:38:46 +00:00
Dylan M. Taylor 09a962def8 Merge pull request #1575 from storytold/codex/jsonrpc-envelope
Add bounded JSON-RPC server envelopes
2026-11-15 08:37:05 -05:00
vangel76andClaude Opus 5.5 425bcbfaba MXF README: craft-raw decodes the DNG pictures, it does not develop them
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:37:01 +01:00
Dylan M. Taylor 5c077a7b5e Merge pull request #1574 from storytold/codex/cms-commented-cube
Share commented CUBE export serialization in craft-cms
2026-11-15 08:34:18 -05:00
vangel76andClaude Sonnet 5.5 ca49ea78b8 Merge upstream/main into feat/mxf-cinemadng
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 14:23:37 +01:00
vangel76andClaude Sonnet 5.5 6825888d46 Merge upstream/main into fix/mpegts-ts-flags-pmt
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 14:21:58 +01:00
vangel76andClaude Sonnet 5.5 e07edcee5d Merge upstream/main into perf/hevc-residual-decode
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 14:16:57 +01:00
vangel76andClaude Sonnet 5.5 472e064b74 Merge upstream/main into perf/av1-wavefront-3106
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 14:13:59 +01:00
Dylan M. Taylor b6d9feed23 Merge pull request #1569 from storytold/codex/shared-mcmat
Share bounded portable material archives
2026-11-15 08:06:54 -05:00