Commit Graph
402 Commits
Author SHA1 Message Date
FredApps 030a9dda15 Merge pull request #1765 from storytold/extract/light-http-url
http-url: extract bounded HTTP URL and redirect syntax from LightCraft
2026-11-16 01:12:20 +01:00
FredApps 9687434f72 Merge pull request #1632 from storytold/codex/shared-font-outline
Share catalog face metrics and glyph outlines
2026-11-16 00:11:44 +01:00
FredApps 6bd1c3dc35 Merge pull request #1715 from storytold/codex/filmcraft-project-format
Share FilmCraft project envelope and schema migrations
2026-11-16 00:10:16 +01:00
FredApps 99d0a6eca4 Merge pull request #1724 from storytold/codex/shared-control-protocol
Share authenticated JSON-lines control protocol
2026-11-16 00:10:04 +01:00
FredApps 24a9b2928e Merge pull request #1722 from storytold/extract/dds-float-surface
craft-texture: add bounded DDS float surface adapter
2026-11-16 00:07:17 +01:00
FredApps 947dc5fb0e Merge pull request #1630 from storytold/codex/shared-tiff-inspection
Share first-directory TIFF inspection
2026-11-16 00:05:27 +01:00
FredApps 254e9a409b Add craft-deckcraft-format: the .deckcraft package layer from DeckCraft (#1748)
The package layer of DeckCraft's native format, moved from storytold/deckcraft
crates/format at 0d5c0b85 (lib.rs, finite.rs): the mimetype and legacy
SlideCraft type, sniffing, the presentation.json envelope (generic over the
app's presentation), the NaN-safe JSON writer (Finite), the reader that patches
null numbers in older files, member names and compression choice, and the
bounded, budget-charged member reads with the format's limits.

The presentation model, repair, media and chart-part mapping, and outline/RTF
stay in DeckCraft. Writes go through craft-zip's deterministic writer; the
consumer's golden test shows the package bytes are unchanged.

Part of #778.
2026-11-15 23:44:31 +01:00
Dylan M. Taylor 7b58f84547 Merge main for shared HTTP URL integration 2026-11-15 17:30:48 -05:00
Dylan M. Taylor 4ce781dab2 Merge pull request #1738 from storytold/extract/usd-crate-codec
Extract bounded USD Crate LZ4 decompression
2026-11-15 17:04:17 -05:00
FredApps d1a431c4b5 audio: pure-Rust Vorbis encoder (1-8 channels, quality, tags, wasm) and an Ogg page writer (#1642)
* audio: pure-Rust Vorbis encoder, and an Ogg page writer in craft-media

Replace the libvorbis wrapper (vorbis_rs, C, desktop only) behind
`vorbis-encode` with FilmCraft's clean-room Vorbis I encoder by
@JordyUSA (storytold/filmcraft#4481), and move its Ogg page writer into
craft-media's `ogg` module.

craft-audio:
- `vorbis::encoder::{Encoder, EncoderConfig, Error}`: 1-8 channels in
  Vorbis order, any sample rate, quality -1 to 10 (VBR), streaming
  packets with granule positions.
- `encode_ogg_vorbis` with `OggVorbisOptions` (quality, vendor, tags,
  serial) writes a whole Ogg Vorbis file with a comment header.
- `encode_ogg(buf, kbps)` and `OGG_BITRATES` keep working: the bit rate
  picks the quality whose nominal rate it is (`quality_for_bitrate`).
- `encode` with `EncodeFormat::Ogg` takes 1-8 channel WAV-order layouts
  and writes them in Vorbis order, and `RateControl::Quality`.
- Ogg is built on wasm32 too.
- Residue partitions hold whole sample frames (48, 40, 48 or 56 values
  for 3, 5, 6 and 7 channels): libvorbis decodes each partition from
  channel 0, so 32-value partitions came out scrambled for those counts.
- The first audio packet gets a page of its own, so a short file's
  first audio page is never also its last (ffmpeg then kept the padding).

craft-media: `ogg::PageWriter`, `opus_tags`, `vorbis_comment`.

Part of storytold/craft-libs#778.

* audio, media: address review on the Vorbis encoder and Ogg writer

- Encoder: read cursor into the pending input, compacted once per call,
  so a large encode() call no longer moves the tail on every block.
- Tests: check ffmpeg's libvorbis decoder only when ffmpeg has it.
- PageWriter::finish: the end granule replaces the last page's only when
  a packet completes on it (RFC 7845 4.4); documented and tested.
- README: Ogg Opus packet granules are the samples decoded so far.

* audio: pick Ogg by extension on wasm32 too

The Vorbis encoder is pure Rust now, so encode_format_for("ogg") follows
the vorbis-encode feature alone, as EncodeFormat::Ogg.is_built() and
ENCODE_EXTENSIONS already do.
2026-11-15 22:59:29 +01:00
Dylan M. Taylor c247a085be Expose dependency-free HTTP URL syntax with bounded redirect input 2026-11-15 16:53:07 -05:00
bflatastic 556d02941a Extract bounded USD Crate LZ4 decoding from TextureCraft
Source: storytold/texturecraft bdbb52c9b66b221a55b370105b42f485a76e6fc7. Preserve chunk framing and output cap policy, with fallible allocation and checked offsets.
2026-11-15 14:49:24 -05:00
Dylan M. Taylor 82276297a6 Share authenticated JSON-lines control protocol 2026-11-15 18:57:52 +00:00
chasse20 eeaa77c081 Share bounded DDS float surface decoding
Adapt MaterialCraft DDS backend integration from cc052aeaa8c61fbe6975674b6d5e28bb3c597b9d; retain float precision and first-surface behavior, keep transfer policy app-local.
2026-11-15 13:54:31 -05:00
Dylan M. Taylor 81057428d1 Add shared FilmCraft project envelope and migrations 2026-11-15 18:41:32 +00:00
Dylan M. Taylor 0d87f371ad Merge pull request #1591 from el-j/feat/captions-ass
craft-captions: ASS and SSA subtitles
2026-11-15 12:51:03 -05:00
Dylan M. Taylor f5a22a008c Merge pull request #1576 from el-j/feat/image-codecs-jpegls
craft-image-codecs: JPEG-LS reader and writer
2026-11-15 12:22:57 -05:00
Dylan M. Taylor c4c4547b7b Merge pull request #1602 from storytold/codex/svg-neutral-document
Share streaming SVG primitives and drawing output
2026-11-15 12:10:47 -05:00
Dylan M. Taylor b0d84cd15d Merge pull request #1598 from storytold/codex/vectorcraft-streaming-envelope
Share VectorCraft streaming envelope helpers
2026-11-15 11:48:48 -05:00
Dylan M. Taylor c376774f15 Merge pull request #1579 from storytold/codex/tcraft-stream-format
Share streaming TextureCraft tile payloads
2026-11-15 11:27:35 -05:00
Dylan M. Taylor fb6cb78006 Depend on shared TIFF directory parser 2026-11-15 16:15:21 +00:00
Dylan M. Taylor 553c86719c Share catalog face metrics and glyph outlines 2026-11-15 16:14:57 +00:00
Dylan M. Taylor 8dcdca5476 Merge pull request #1597 from storytold/codex/shared-segmented-gzip
Share streaming gzip writer with stored segments
2026-11-15 11:02:33 -05:00
Dylan M. Taylor 6c22881fc1 Share streaming neutral SVG geometry and output 2026-11-15 15:16:39 +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
Dylan M. Taylor 0cdda6e15d Share VectorCraft streaming envelope helpers 2026-11-15 14:44:38 +00:00
Dylan M. Taylor 424a2dc2be Share streaming gzip writer with stored segments 2026-11-15 14:41:14 +00: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
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 533b37bd56 Add reusable MCP server session envelopes 2026-11-15 13:41:22 +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
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
Dylan M. Taylor 478c50560d Merge pull request #1448 from storytold/fix/avif-exif-hlg
fix(image-codecs): preserve AVIF EXIF and HLG levels
2026-11-15 08:02:58 -05:00
Dylan M. Taylor 1ec7ab92b5 Expose bounded cross-platform binary plist reader with explicit limits 2026-11-15 07:57:29 -05:00
Dylan M. Taylor b85e4b150b Add neutral project document schema 2026-11-15 12:34:47 +00:00
Dylan M. Taylor 3e970577b9 Merge pull request #1564 from storytold/dot/shared-pctip
pcraft-format: share PCTIP1 brush-tip serialization
2026-11-15 07:29:12 -05:00
Dylan M. Taylor 6ac9046bd4 Share streaming TextureCraft tile payloads 2026-11-15 12:10:04 +00:00
el-j 3ce92b332d craft-image-codecs: JPEG-LS (ITU-T T.87) reader and writer
Adds Format::JpegLs: lossless and near-lossless gray and RGB, 2 to 16
bits. Reads scans that code one component each; writes lossless 8- and
16-bit gray and RGB. Line- and sample-interleaved scans, mapping tables
and colour transforms are reported as unsupported.

Closes #1558
2026-11-15 12:53:20 +01:00
Dylan M. Taylor 10ef64f183 Merge remote-tracking branch 'origin/main' into codex/jsonrpc-envelope 2026-11-15 11:51:21 +00:00
Dylan M. Taylor e67d770c09 Add bounded JSON-RPC server envelopes 2026-11-15 11:51:16 +00:00
Dylan M. Taylor 4780f75080 Merge remote-tracking branch 'origin/main' into fix/avif-exif-hlg
# Conflicts:
#	Cargo.lock
2026-11-15 11:39:31 +00:00
Dylan M. Taylor fe6b443acf Merge pull request #1505 from storytold/fix/svg-embedded-image-accounting
craft-svg: account for malformed embedded image data
2026-11-15 06:37:46 -05:00
Dylan M. Taylor 55b1d7f3c5 Merge pull request #1501 from storytold/extract/apng-container
craft-image-codecs: extract bounded APNG container assembly
2026-11-15 06:30:57 -05:00
Dylan M. Taylor 7dbfafa356 Share bounded portable material archives 2026-11-15 11:26:24 +00:00
3401d0af8e pcraft-format: extract PhotoCraft brush tip envelope and samples
Port PhotoCraft preset_store.rs at 19aec5eb44131de44361189d64910e7b3e19e57c. Preserve original primary author and later codec contributions.

Co-authored-by: David Mann <daaavid.mann@gmail.com>

Co-authored-by: FinnNk <finnnk@gmail.com>
2026-11-15 05:58:00 -05:00
Dylan M. Taylor a8f2612c7c Test decoded HLG AVIF reference levels 2026-11-15 10:46:51 +00:00
Dylan M. Taylor 0f5b23b4de Merge pull request #1455 from storytold/pr-mailcraft-smime
feat: add craft-smime (S/MIME CMS/X.509/PKCS#12)
2026-11-15 05:34:46 -05:00
Dylan M. Taylor 4e9b3e9fdd fix(svg): account for invalid embedded image data 2026-11-15 04:11:43 -05:00
.CooCoo b63198042b craft-image-codecs: check the deep EXR corpus against pinned SHA-256 values (#1487)
The deep EXR corpus test read the five OpenEXR files in corpus/exr/
without a size bound or digest check, and a missing file failed with
advice to run `cargo xtask corpus --exr`, which craft-libs does not have.

- REAL_FILE_SHA256 pins the five files (OpenEXR commit 69b2604f). The
  test reads only those names, refuses a file that is missing, is not
  a regular file, is larger than 4 MiB or does not match its digest,
  and names the file and both digests.
- The failure points at the crate README, which says where the files
  come from and how to fill corpus/exr/, either from OpenEXR or with
  PhotoCraft's fetcher at the commit CI uses.
- Three tests that run without the corpus feature cover the pins, a
  changed byte, and missing, oversize and folder inputs.
2026-11-15 04:11:00 -05:00