Commit Graph
2444 Commits
Author SHA1 Message Date
Dylan M. Taylor 9444213901 Merge remote-tracking branch 'origin/main' into codex/idml-value-compat-main 2026-11-14 06:08:45 +00:00
Dylan M. Taylor 32e802fa08 Merge remote-tracking branch 'origin/main' into codex/docx-measure-clamp 2026-11-14 06:06:54 +00:00
Dylan M. Taylor c2a5eca2e3 Merge remote-tracking branch 'origin/main' into codex/docx-notes-fallback 2026-11-14 06:06:51 +00:00
Dylan M. Taylor 8a184f715b Merge remote-tracking branch 'origin/main' into codex/craft-xfl-sfx 2026-11-14 06:04:56 +00:00
Dylan M. Taylor 52e1329ce3 Merge pull request #1261 from dylanmtaylor/codex/image-codecs-metadata-cutover
image-codecs: delegate metadata edits to craft-metadata
2026-11-14 01:04:11 -05:00
Dylan M. Taylor 07e89ad30a fix(idml): preserve transforms and text variable values 2026-11-14 05:51:17 +00:00
Dylan M. Taylor 6c894be829 Merge pull request #1180 from dylanmtaylor/codex/craft-idml-geometry
craft-idml: strict bounded path geometry reader
2026-11-14 00:46:14 -05:00
Dylan M. Taylor e58cd131af test(svg): use tree-depth limit for referenced depth 2026-11-14 05:17:03 +00:00
Dylan M. Taylor d2fd4fb09e Clamp OOXML measurements before f32 conversion 2026-11-14 04:54:11 +00:00
Dylan M. Taylor 0559e4214e Read conventional footnote and endnote parts 2026-11-14 04:48:57 +00:00
Dylan M. Taylor 9481cecd22 docs: clarify shared resolution precedence 2026-11-14 04:24:37 +00:00
Dylan M. Taylor c526df24f3 image-codecs: delegate metadata edits to shared crate 2026-11-14 04:22:36 +00:00
Dylan M. Taylor 1c6ac2e086 fix(xfl): honor the ZIP64 entry-count sentinel 2026-11-14 04:02:41 +00:00
Dylan M. Taylor b77af389f3 Merge pull request #1245 from storytold/codex/anicraft-envelope
feat(anicraft-format): extract native JSON envelope
2026-11-13 23:01:08 -05:00
dotCooCoo 47baffee9d craft-texture: compare images by value whether or not the buffer is shared
Image equality no longer short-cuts on a shared buffer. An image holding
NaN compared equal to its clone but unequal to the same image built
again; it is now unequal to both, as f32 comparison gives.
2026-11-13 19:55:39 -08:00
Dylan M. Taylor f9f9e11fd9 Merge pull request #1244 from storytold/codex/docx-conventional-part-fallback
craft-docx: keep conventional parts without relationships
2026-11-13 22:55:28 -05:00
dotCooCoo 316db97052 craft-texture: keep bilinear samples of finite texels finite
The four weighted texels are summed in f64 and a finite sum is clamped
to the f32 range. Rounded weights can add up to slightly more than 1,
which made a constant image of f32::MAX sample to infinity at some
coordinates. Infinite texels still give an infinite or NaN sample.

The crate docs and README now limit the OutOfMemory guarantee of the
try_ forms to the pixel buffer, and name the Arc and the try_resize
resampler as allocations that are not fallible.
2026-11-13 19:52:40 -08:00
Dylan M. Taylor a6b246ebef fix(xfl): support self-extracting archive offsets 2026-11-14 03:49:42 +00:00
Dylan M. Taylor e2dc681a3a Merge pull request #1197 from dylanmtaylor/codex/photocraft-psd-zlib-stream
PSD: expose incremental zlib stream encoding
2026-11-13 22:39:04 -05:00
Dylan M. Taylor fd708734aa Merge pull request #1182 from storytold/codex/photocraft-file-caps
Add shared format capability catalog
2026-11-13 22:38:59 -05:00
Dylan M. Taylor ecee693322 Merge pull request #1171 from dylanmtaylor/codex/photocraft-format-library
Add shared image codec facade
2026-11-13 22:38:50 -05:00
Dylan M. Taylor 2bc600186f Align IDML story test with typed destinations 2026-11-14 03:30:34 +00:00
Dylan M. Taylor 2239b0afb0 Merge pull request #1246 from storytold/prc-compressed
craft-prc: rebuild compressed tessellations whose normals are recalculated (#778)
2026-11-13 22:27:44 -05:00
Dylan M. Taylor f72b69699f craft-prc: rebuild compressed tessellations whose normals are recalculated (#778) 2026-11-14 03:27:29 +00:00
Dylan M. Taylor d9284894ba Merge pull request #1243 from dylanmtaylor/codex/eps-postscript-numeric-operators
craft-eps: share PostScript numeric operators
2026-11-13 22:26:11 -05:00
Dylan M. Taylor 49056e5408 image-codecs: align JPEG tests with progressive support 2026-11-14 03:21:46 +00:00
Dylan M. Taylor c82c83043a Update lockfile after main merge 2026-11-14 03:12:15 +00:00
Dylan M. Taylor 0b1688098a fix(anicraft): preserve invalid envelope diagnostic 2026-11-14 03:12:01 +00:00
Dylan M. Taylor 840d156fbf Merge current main into image codec extraction 2026-11-14 03:10:53 +00:00
Dylan M. Taylor 7f59e8f3f5 fix(docx): preserve case-insensitive main part fallback 2026-11-14 03:04:54 +00:00
Dylan M. Taylor 427fa15899 Merge pull request #1223 from storytold/codex/anicraft-xfl-format
Add bounded XFL FLA package reader
2026-11-13 22:01:31 -05:00
Dylan M. Taylor 9a2dafbf7d Move native format identity into shared crate 2026-11-14 02:47:40 +00:00
Dylan M. Taylor 5df4b49f8c feat(anicraft-format): extract versioned JSON envelope 2026-11-14 02:46:10 +00:00
Dylan M. Taylor fbbebecf27 Preserve conventional Word part fallback 2026-11-14 02:28:04 +00:00
Dylan M. Taylor 964ccae812 craft-eps: share PostScript numeric operators 2026-11-14 02:26:40 +00:00
alehel e5fa1ac2f9 craft-audio: review round 4 for the coded formats
- craft-media: Mp4Writer counts written bytes with a checked sum, so a
  writer that takes bytes past the last position gets an error, not an
  overflow (correction to round 3, which checked only the header).
- Docs: the AAC bit-rate floor keeps a margin above where the encoder
  codes silence, about half of it.

Refs #1230
2026-11-14 03:22:06 +01:00
alehel 098eb2e43a craft-audio: review round 3 for the coded formats
- craft-media: Mp4Writer::new refuses a writer positioned where the header
  would end past u64::MAX instead of overflowing the sum (correction to
  round 2, which let the M4A writer reach that addition).
- AAC is written at 6 kbit/s or a quarter of the sample rate per channel at
  least: the encoder accepts lower rates but codes only silence at them, so
  with_bitrate(128) gave a silent file.
- README: what to do with a layout a coded format refuses, and the names
  encode_format_for takes for M4A.

Refs #1230
2026-11-14 03:16:51 +01:00
alehel 63712c33e6 craft-audio: review round 2 for the coded formats
- craft-media: Mp4Writer counts chunk offsets from the first byte of the
  file, not from position 0 of the writer, so a file begun mid-writer is
  valid. This replaces the seek adapter the M4A writer wrapped its sink in.
- Tests pin the bytes of the roll sample group and each format's feature.
- Docs: ALAC's length comes from the sample durations, not an edit list;
  which readers take an empty AAC file; speaker names as the errors print
  them; craft-media's README lists roll_distance.
- Error messages for a layout a format has not no longer suggest setting
  a layout that was set.

Refs #1230
2026-11-14 03:16:51 +01:00
alehel 3dadce4d7c craft-audio: review round 1 for the coded formats
- craft-media: TrackConfig::roll_distance writes a `roll` sample group
  (sgpd + sbgp) over every sample. The AAC M4A track sets -1: Apple's
  decoders took 2112 frames of priming and dropped the start of the audio
  without it (afinfo now reports the frames written and 1024 priming).
- EncodeFormat::is_built and feature: which formats this build writes.
- Clippy: the writer enum's variants differ in size with flac-encode and
  a codec feature but no pcm-encode.
- Tests for the finished sample entry (AAC bit rate, ALAC cookie), ALAC
  dither and afinfo's reading of the priming.
- README: ffmpeg's reading of 8-channel AAC, and files with no audio.

Refs #1230
2026-11-14 03:16:51 +01:00
alehel eee76c3fc2 craft-audio: AAC, ALAC, MP3, AC-3 and E-AC-3 as formats of encode and FileEncoder
EncodeFormat gains Aac and Alac (M4A through craft-media's MP4 muxer) and
Mp3, Ac3 and Eac3 (raw streams), so one call writes any of them from
WAV-order f32 audio and EncodeOptions.

- EncodeOptions::rate_control (with_bitrate, with_quality): a bit rate is
  moved to the nearest one the stream can carry; quality is AAC's VBR.
- Channels are mapped onto the codec's order by speaker, from
  EncodeOptions::layout. A layout the format has not is Unsupported
  instead of reaching the wrong speakers.
- M4A: the edit list skips the AAC priming, and the last sample's duration
  is cut so the track ends at the last frame written.
- encode_format_for, ENCODE_EXTENSIONS and EncodeFormat::ALL list the new
  formats; aac-encode and alac-encode now turn on craft-media's isobmff.

Refs #1230
2026-11-14 03:16:51 +01:00
Dylan M. Taylor 545155124f feat(xfl): parse native edge attributes (M4) (#1232) 2026-11-13 21:12:36 -05:00
Dylan M. Taylor de7640a006 feat(xml): preserve strict end-tag parsing as an option 2026-11-13 21:11:56 -05:00
alehelandClaude Opus 5.5 7c652beec4 craft-audio: review fixes, round 1 (#446)
- `Encoder::with_application` checks the channel count before clamping
  the bitrate, so 86 channels or more return `Error::Channels` instead
  of panicking in `clamp`. Tested with 86 and 255.
- The ffmpeg oracle test skips a missing `opus`/`libopus` decoder
  through the testkit's `skip`, so `CRAFT_MEDIA_REQUIRE_ORACLES=1` fails
  it.
- README: the encode example pads at least the pre-skip after the audio
  before rounding up to a frame, so the encoder delay is flushed; the
  MP4 note says an explicit edit replaces the `media_start` edit and
  gives its fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 21:09:46 -05:00
alehelandClaude Opus 5.5 bdf8cb2a19 craft-audio: Opus encoder
EffectCraft's `effectcraft-opusenc` as `opus::encoder` (and
`opus::Encoder`) behind `opus-encode`: SILK, hybrid and CELT, 48 kHz,
20 ms frames, mono or stereo. The constructors and `encode_float`
return `Result` instead of panicking. `Bandwidth` is one type for the
decoder and the encoder, and the two `Mode` enums convert into each
other. `encode` now turns on `opus-encode`.

The encoder tests (modes, ffmpeg's two Opus decoders as oracles) and
`TrackDecoder` on Opus without an `OpusHead` come with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 21:09:46 -05:00
Dylan M. Taylor 33958638b2 Validate XFL archive end record candidates 2026-11-14 02:06:54 +00:00
Dylan M. Taylor dc200ff58c Merge pull request #1236 from dylanmtaylor/codex/eps-postscript-vm
Add reusable PostScript VM stack operators
2026-11-13 20:59:50 -05:00
Dylan M. Taylor 948b5c23c1 Merge pull request #1222 from dylanmtaylor/codex/gif-animation-writer
Add shared animated GIF writer
2026-11-13 20:23:11 -05:00
Dylan M. Taylor 39f45eda55 Avoid ambiguous empty stack assertions 2026-11-14 00:48:11 +00:00
Dylan M. Taylor 6d620e971e Merge pull request #1229 from storytold/codex/craft-jxl-extraction
Add shared JPEG XL decoder and encoder
2026-11-13 19:39:17 -05:00
Dylan M. Taylor 26feec69cb Add reusable PostScript VM stack operators 2026-11-14 00:37:04 +00:00