Commit Graph
2553 Commits
Author SHA1 Message Date
Dylan M. Taylor 8a7c7d7e80 Integrate shared main after USD LZ4 prerequisite merge 2026-11-15 17:05:33 -05:00
Dylan M. Taylor 040b5202f9 Merge pull request #1743 from storytold/extract/psd-unicode-names
psd: share borrowed Unicode channel-name record framing
2026-11-15 17:04:49 -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
Dylan M. Taylor b841da4124 Merge pull request #1737 from storytold/extract/psd-channel-resources
psd: share DisplayInfo and alternate spot-color raw records
2026-11-15 17:01:58 -05:00
Dylan M. Taylor 272a095b61 Merge pull request #1735 from storytold/extract/icc-v2-matrix
cms: share bounded ICC v2 matrix/TRC profile writer
2026-11-15 17:01:18 -05:00
Dylan M. Taylor f7e0d7fd55 Merge pull request #1736 from storytold/fix/stream-codecs-vendored-jbig2
Fix external stream-codecs consumers to retain bounded JBIG2 decoder
2026-11-15 17:00:31 -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 fba532b6b2 Merge pull request #467 from AxylumRust/refactor/i18n-clippy-pedantic
i18n: satisfy Clippy pedantic lints
2026-11-15 16:45:48 -05:00
Dylan M. Taylor f494b2d3b1 Merge pull request #1332 from AxylumRust/docs/dxf-configured-tag-limit
docs(dxf): describe configurable tag limit
2026-11-15 16:36:32 -05:00
Dylan M. Taylor f12249ba7d Merge pull request #1346 from AxylumRust/refactor/dwg-clippy-pedantic
refactor(dwg): apply behavior-preserving cleanups
2026-11-15 16:35:58 -05:00
Dylan M. Taylor 506d093a61 Merge pull request #1283 from AxylumRust/test/prc-compressed-validation
craft-prc: validate compressed tessellation reconstruction (#778)
2026-11-15 16:35:34 -05:00
FredApps 5a7a63a21d Merge pull request #1593 from storytold/i778/opus-encoder-effectcraft-speedups
craft-audio: port EffectCraft's later Opus encoder speed-ups
2026-11-15 22:26:13 +01:00
Dylan M. Taylor 30596f73c5 Merge pull request #1707 from storytold/extract/wav-marker-metadata
audio: extract WAV cue, adtl, RF64 and XMP marker metadata
2026-11-15 15:43:10 -05:00
Dylan M. Taylor 589842f0da Merge pull request #1702 from storytold/extract/psd-guides-v2
craft-psd: share Grid and Guides v2 record decoding
2026-11-15 15:18:52 -05:00
bflatastic 456abf7b7a Extract bounded USD Crate integer delta decoding
Retain TextureCraft signed wrapping and delta widths from bdbb52c9b66b221a55b370105b42f485a76e6fc7; use explicit widths, output byte budget, checked code-table admission and fallible reservation.
2026-11-15 15:08:22 -05:00
9d56699be8 psd: share borrowed Unicode channel-name record framing
Extract framing from PhotoCraft 16941f7198da9ae1811a8928f4c256b5cb37c1cb, retaining the overflow protection added by 3b45e8baee7117e53847523b5bc3ae2b337966d4. Allocation-free adaptation leaves text policy with callers.

Co-authored-by: Valentin Klein <vangel1976@googlemail.com>

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-15 15:08:20 -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
5e2bc54a48 psd: share raw channel display and alternate spot records
Port raw framing from PhotoCraft f7f8fdcd89 and 9a390661b5; preserve tolerant import semantics and keep colour policy with consumers.

Co-authored-by: Khawar Zamman Wani <wanikhawar@gmail.com>
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-15 14:38:21 -05:00
Dylan M. Taylor 201601fa2d Fix external stream-codecs consumers to use bounded vendored JBIG2 2026-11-15 14:31:01 -05:00
SteamSmithandbflatastic 6c09292724 cms: share bounded ICC v2 matrix-profile serialization
Extract the TextureCraft writer originally introduced in 59f0ab48508e2dc5a812acd1aee00d5d59a528d8, retaining caller colour and timestamp policy. Preserve the is_multiple_of cleanup from 59a3018.

Co-authored-by: bflatastic <bflat@storyteller.ai>
2026-11-15 14:27:36 -05:00
Dylan M. Taylor 7d39dc4df2 Merge pull request #1145 from vangel76/feat/mxf-cinemadng
MXF: CinemaDNG pictures can be read and written
2026-11-15 14:22:04 -05:00
Dylan M. Taylor 654e8d55e1 Merge pull request #1611 from storytold/codex/bento-public
aaf: expose bounded Bento container access
2026-11-15 14:11:15 -05:00
Dylan M. Taylor cae7c1d8a6 Share Samsung SEF repair and JPEG EOI inspection (#1640)
* Expose tolerant JPEG marker inspection

* Export JPEG inspection API

* Factor JPEG inspection fields from shared walker

* Share ICC chunk collection between JPEG inspection modes

* Cover JPEG MPF and gain-map inspection

* Expose MPF index inspection for located payloads

* Cover located MPF index parity

* Preserve bounded MPF index directory validation

* Share Samsung SEF repair and JPEG EOI inspection

* Cover JPEG scan byte search
2026-11-15 13:57:49 -05:00
Dylan M. Taylor 27b1134e23 Share Opus FFT and CELT allocation primitives 2026-11-15 18:57:27 +00:00
Dylan M. Taylor e7c96161dd Share JPEG marker and MPF index inspection (#1634)
* Expose tolerant JPEG marker inspection

* Export JPEG inspection API

* Factor JPEG inspection fields from shared walker

* Share ICC chunk collection between JPEG inspection modes

* Cover JPEG MPF and gain-map inspection

* Expose MPF index inspection for located payloads

* Cover located MPF index parity

* Preserve bounded MPF index directory validation
2026-11-15 13:51:53 -05:00
Dylan M. Taylor 3f4de9ca11 Merge pull request #1637 from storytold/codex/adts-asc-config
audio: expose ASC prefix to ADTS configuration
2026-11-15 13:36:24 -05:00
Dylan M. Taylor 7738cc6c68 Merge pull request #1639 from storytold/codex/dng-ljpeg-lines
raw: share line-restart lossless JPEG decoder
2026-11-15 13:36:14 -05:00
Dylan M. Taylor 1fdc42e5d6 Merge pull request #1626 from storytold/codex/exr-zlib
exr: share ZIP chunk compression
2026-11-15 13:17:40 -05:00
Bram Heerink 6d590ce432 Extract PSD guide resource decoding for shared consumers
Adapt PhotoCraft f49564d281bf8892db58ed154767717223aff4f6 to a validated allocation-free iterator; retain caller-owned guide policy.
2026-11-15 13:17:03 -05:00
FredAppsandDylan M. Taylor 8bd1412eaa craft-dxf: add VectorCraft's ASCII drawing writer (#1588)
* craft-dxf: add VectorCraft's ASCII drawing writer

Move the incremental file writer from vectorcraft-cad (crates/cad/src/writer.rs)
into craft_dxf::drawing. It writes the HEADER/TABLES/BLOCKS/OBJECTS skeleton
around a pre-built ENTITIES section, which is the format API VectorCraft's
scene mapper already uses. The existing model::write tag serializer is
unchanged.

Golden files lock the bytes for empty and one-LINE drawings in R12, 2000 and
2018. Part of #791 / #778.

* test(dxf): preserve exact golden bytes on Windows checkout

* fix(dxf): preserve BYBLOCK and use valid image dictionary keys

* test(dxf): clone images before write in dictionary-key test

Drawing::write takes self, so the assertions have to use a clone of
the image list. The rest of the test is unchanged.

---------

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-15 19:07:46 +01:00
Dylan M. Taylor d181e08d3d Read selected merged PSD planes without parsing layers (#1623)
* Read selected merged PSD planes without parsing layers

* Validate merged PSD payload bounds without decoding

* Expose declared dimensions for limit reporting

* Cover complete and truncated merged payloads
2026-11-15 13:04:18 -05:00
Dylan M. Taylor 9ed120e6b1 Merge pull request #1622 from storytold/codex/dxf-mtext-tokenizer
Add streaming MTEXT lexical tokens
2026-11-15 13:01:02 -05:00
Dylan M. Taylor 16d838105b Write flat PSD from borrowed samples (#1620)
* Write flat PSD from borrowed interleaved samples

* Cover multiple PSD rows and planes

* Document flat PSD inputs and satisfy lint
2026-11-15 12:59:08 -05:00
Dylan M. Taylor e56b4e3cd4 Deduplicate EXIF orientation and ColorSpace through craft-metadata (#1465)
Extract the remaining metadata delegation from #1198 after #1331 landed the raster facade changes. Preserve current image-codecs API, pixel transforms, docs and regression tests; omit unrelated resolution reexports and TIFF cleanup.

Original-change: 1d52e89405
2026-11-15 12:55:47 -05: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 993749338d Merge pull request #1618 from storytold/codex/aaf-property-bound
aaf: bound duplicate property detection work
2026-11-15 12:49:45 -05:00
Dylan M. Taylor 7b7568d95e Merge pull request #1608 from storytold/codex/wav-range-cutover
audio: share bounded range-backed WAV PCM access
2026-11-15 12:49:32 -05:00
Dylan M. Taylor 10f0fac31c Merge pull request #1619 from storytold/codex/dxf-mtext-escapes
Share MTEXT Unicode and MIF escape decoding
2026-11-15 12:38:03 -05:00
Dylan M. Taylor c9de09877b Share bounded BMP coverage inspection (#1610) 2026-11-15 12:29:34 -05:00
Dylan M. Taylor 8503f24cb8 Merge pull request #1595 from storytold/extract/cms-srgb-v2
cms: share the byte-compatible ICC v2 sRGB generator
2026-11-15 12:23:08 -05:00
Dylan M. Taylor 2d0d993c6d Merge pull request #1594 from storytold/feat/psd-tysh-envelope
psd: share editable TySh binary envelope
2026-11-15 12:23:02 -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 d1f67cae22 Merge pull request #1578 from el-j/feat/video-ffv1
craft-video: FFV1 lossless video (version 3, range coder) decoder and encoder
2026-11-15 12:22:53 -05:00
Dylan M. Taylor adf049efb3 Merge pull request #1572 from el-j/feat/audio-qoa
craft-audio: QOA (Quite OK Audio) decoder and encoder
2026-11-15 12:22:50 -05:00
Dylan M. Taylor 0325b2d736 Merge pull request #1606 from storytold/codex/base64-legacy-compatible
Add opt-in legacy Base64 compatibility
2026-11-15 12:17:04 -05:00
Dylan M. Taylor b6222158fb Merge pull request #1604 from storytold/codex/mcp-policy
Support configurable legacy MCP sessions and envelopes
2026-11-15 12:14:36 -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 b84bce6ef6 Merge pull request #1607 from storytold/codex/shared-png-header
Share PNG header and color chunk inspection
2026-11-15 12:08:10 -05:00
Dylan M. Taylor 86a206d6cd aaf: exercise default Bento writer API 2026-11-15 17:07:46 +00:00
Dylan M. Taylor 9eb96c47e0 Merge pull request #1199 from storytold/codex/craft-svg-photo-preflight
Expose shared SVG preflight and viewport rewrite
2026-11-15 11:49:35 -05:00