Commit Graph
3565 Commits
Author SHA1 Message Date
dotCooCoo 3ec7639bf7 audio-dsp: filter design takes 1 kHz for a NaN edge frequency
`realize` and `design` replaced a NaN edge frequency with nothing, so the
prewarp gave NaN coefficients and the filter output NaN. A NaN edge now
takes 1 kHz in every band, as a NaN ripple or attenuation takes its usual
value.
2026-11-17 10:38:19 -08:00
dotCooCoo 1a8548c2b5 audio-dsp: Mastering maximizer fade stays finite on overflowed samples
A sample that the widener overflows to infinity takes the maximized value
during the maximizer's crossfade, as it does once the maximizer is fully
on, instead of turning the blend into NaN.
2026-11-17 10:32:29 -08:00
dotCooCoo 938771c12e Merge main into feat/audio-dsp 2026-11-17 08:37:20 -08:00
Dylan M. Taylor cff5af869d drawingml: accept borrowed table definitions and caller XML validation (#2045) 2026-11-17 11:30:24 -05:00
6792748fea Add shared HAR capture reader with explicit input admission (#2043)
* har: preserve source reader history

Port Craft Anything crates/formats/src/har.rs from f64ae3bf3c8863a982af1304e06de20653803968.

* har: preserve source reader history

Port Craft Anything crates/formats/src/har.rs from cb0bb9d8fa4536ba44ef2c86f5ed759b879cc2d3.

* Expose shared HAR reader with explicit input admission

---------

Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: BFlat <bombayapirat@gmail.com>
2026-11-17 11:29:30 -05:00
FredApps e11ee59ed3 Merge pull request #1168 from Blenux/dds/import-options
raster-codecs: DDS header info and bounded mip-chain decoding
2026-11-17 16:49:12 +01:00
dotCooCoo 9d24360e52 audio-dsp: resampler frames past the position limit read at the limit
A block that starts near MAX_RESAMPLE_POSITION and runs past it now reads
every later frame at the limit's position, as the constant's docs say,
instead of reading past the held source and returning silence.
2026-11-17 07:11:15 -08:00
dotCooCoo 07370abc7e audio-dsp: Analog Delay tail covers its ramps; Mastering maximizer crossfades
- Analog Delay's tail counts the delay, spread and feedback at the larger
  of their current and target values, so a shortened delay still reports
  the echoes left in the line while the delay ramps down.
- The Mastering loudness maximizer crossfades in and out over the 20 ms
  smoothing ramp instead of switching its soft clip on or off at once.
  During the fade the output stays within the -0.3 dB ceiling.
2026-11-17 07:06:41 -08:00
Dylan M. TaylorandRRFZ 42bb9d35bb tar: preserve current sparse, PAX size and CRC symlink behavior (#2012)
* tar: port old GNU sparse extension traversal from Craft Anything

Source: storytold/craft-anything#1973, 8ea2ec66a1bc80f0420f3695baac877a0cb9b9a5. Retains non-extractable sparse member kind and regression tests.

* tar: preserve GNU CRC symlink checksum compatibility

Source: storytold/craft-anything#1984, b226a475f7dce9710e3af7a069386fe7a9720df7; preserves nonzero checks and regular-file checksum validation.

* tar: apply valid PAX sizes before legacy member size fields

Source: storytold/craft-anything#2007, d29465c20b0d570ea4973be512a0cb4e212bb60f; metadata records still retain their own framing.

* Record provenance of current TAR and CPIO compatibility fixes

---------

Co-authored-by: RRFZ <247457381+Plastic-time@users.noreply.github.com>
2026-11-17 09:58:18 -05:00
dotCooCoo 267a66cfd5 audio-dsp: meter Dynamics, multiband and tube compressor gain reduction; smooth Mastering bypasses
- Dynamics, the multiband compressor and the tube-modeled compressor
  report their deepest gain reduction in the last block through
  gain_reduction_db, and clear it on reset. Dynamics leaves out the
  compressor's make-up gain; the multiband compressor adds the limiter to
  the most reduced band.
- Mastering keeps the loudness maximizer in while its boost ramps back
  to 0 dB, and clears the limiter once it is out.
- Mastering clears its reverb at the end of the chunk in which the fade
  ends, so the result does not depend on the block size.
2026-11-17 06:34:35 -08:00
dotCooCoo 2625ee59f8 audio-dsp: reverbs keep the side signal; fix delay tails and crossover ramps
- Reverb feeds the side signal (even channels minus odd channels) into
  its network as well as the mid, and Surround Reverb's early reflections
  carry the side too. Opposite-polarity stereo input, or Surround Reverb
  with Center Input at 0, no longer gives a silent reverb.
- Analog Delay reports the tail of its longest channel delay, which
  Spread lengthens by up to half.
- The multiband compressor designs its crossovers once more after a
  ramp ends, so they reach the frequency that was set.
- Mastering keeps running its reverb while the amount fades to 0 and then
  clears it, so turning the reverb off fades the tail and turning it back
  on starts from silence.
2026-11-17 06:22:48 -08:00
dotCooCoo e8b366dbf1 audio-dsp: report Mastering and flanger tails, band-limit the triangle, bound Sections
- Mastering reports its reverb's tail while the reverb is on, Chorus/Flanger
  the echoes of its longest voice delay, and Flanger those of the longer
  sweep delay, so an offline render no longer cuts their tails off.
- The triangle oscillator rounds its corners with PolyBLAMP: a 10 kHz
  triangle at 48 kHz no longer has the naive -18.7 dB alias at 18 kHz.
- Sections::as_slice and magnitude_db read a count above MAX_SECTIONS as
  every section instead of panicking.
2026-11-17 06:11:34 -08:00
dotCooCoo e3a4c0b2bd audio-dsp: Dynamics make-up comes before the limiter; Mastering covers every channel
Dynamics applied the compressor's make-up gain together with the output
gain after the limiter, so make-up raised the signal past the limiter
threshold (constant 1.0 with 6 dB make-up and a -1 dB limiter came out at
about +5 dBFS). Make-up now goes into the gain the limiter detects, the
output gain stays after the limiter, and transfer_db reports the same order.

Mastering ran the EQ on every channel but the exciter, the loudness
maximizer and the output gain on the first two only. Those stages now run
on every channel, with the maximizer taking its peak across all of them;
reverb and the widener stay on the first two channels.
2026-11-17 06:02:12 -08:00
Dylan M. Taylor 90947c57d7 Merge pull request #1460 from alehel/feat/vmd-decoding
feat(media,video,audio): Sierra VMD demuxer and decoders
2026-11-17 08:53:39 -05:00
dotCooCoo f277a9046f Merge main into feat/audio-dsp 2026-11-17 05:36:19 -08:00
Dylan M. Taylor 1291955de9 Merge pull request #1789 from el-j/feat/audio-g722
craft-audio: ITU-T G.722 wideband speech codec (#1530)
2026-11-17 08:33:15 -05:00
Dylan M. Taylor 923d2975e2 Merge pull request #1756 from el-j/feat/audio-mp2-encode
craft-audio: MPEG-1/2 Layer II (MP2) encoder (mpa-encode)
2026-11-17 08:31:52 -05:00
Dylan M. Taylor 64fcd9531a Add shared span-preserving JSONC editor (#2030) 2026-11-17 08:13:52 -05:00
FredApps e2dad54008 Merge main and adapt DDS mip APIs to canonical decoder 2026-11-17 13:57:02 +01:00
Dylan M. Taylor 5631e99fe1 Merge pull request #2008 from storytold/feat/zip-aligned-stored
zip: share aligned stored entries for USDZ packaging
2026-11-17 07:44:13 -05:00
Dylan M. Taylor a7fb55eaf9 Merge pull request #1982 from storytold/feat/hpgl-byte-lexer
plotter: share HP-GL byte lexer and correct PJL language selection
2026-11-17 07:43:41 -05:00
Dylan M. Taylor 20baec266a Accept horizontal tabs around PJL language separator 2026-11-17 05:43:28 -05:00
Dylan M. Taylor 51673a8fea Merge main preserving aligned ZIP and Lottie provenance 2026-11-17 04:35:16 -05:00
Dylan M. Taylor 83cb1133dd Merge pull request #2009 from storytold/feat/lottie-raw-gradient
feat(lottie): expose raw gradient values for animated fitting
2026-11-17 04:32:57 -05:00
el-j e5bde5203c Merge main into feat/audio-mp2-encode 2026-11-17 10:12:38 +01:00
el-j 3d06331fc8 Merge main into feat/audio-g722 2026-11-17 10:12:12 +01:00
alehelandClaude Opus 5.5 e0440f9942 video: the VMD decoder is behind vmd-decode, with vmd turning it on
craft-audio names its VMD decoder feature `vmd-decode`, and craft-video
names a codec's decoder `<codec>-decode` wherever the codec may also have
an encoder (mpeg2, mpeg4, vp8…). The video decoder now follows that:
`vmd-decode` gates the module and its VideoFrame conversion, and `vmd`
turns it on, so `vmd` keeps working and an encoder can be added later
without renaming.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 09:39:25 +01:00
Dylan M. Taylor 1b7ab973fa Document intentional PJL language recovery correction 2026-11-17 03:24:53 -05:00
Dylan M. Taylor 763b0f32a1 Only select PJL language for ENTER commands 2026-11-17 03:19:11 -05:00
Dylan M. Taylor 8672aff3d8 Merge pull request #1991 from storytold/fix/plot-range-contains
unbreak the Workspace gate: the xlsx fixture Result and the docx range-contains lint
2026-11-17 03:17:42 -05:00
alehel 983a32c6e6 Merge remote-tracking branch 'origin/main' into n1460-merge
# Conflicts:
#	crates/video/src/lib.rs
2026-11-17 08:32:17 +01:00
Dylan M. Taylor 73a6103021 Merge current main preserving both attribution sections 2026-11-17 02:18:14 -05:00
Dylan M. Taylor 5bbf16b61e Merge branch 'main' of https://github.com/storytold/craft-libs into feat/lottie-raw-gradient
# Conflicts:
#	ATTRIBUTION.md
2026-11-17 02:18:09 -05:00
Dylan M. Taylor fd91be74f0 Merge pull request #2001 from storytold/feat/screen-video
video: share bounded Screen Video key-frame decoder from AniCraft
2026-11-17 02:16:15 -05:00
Dylan M. Taylor 3a1a627dc6 Merge pull request #1965 from storytold/feat/score-writers
craft-score: share MusicXML and SVG score writers with per-pitch ties
2026-11-17 02:16:11 -05:00
Dylan M. Taylor 77686f24fe Merge pull request #2007 from storytold/feat/svg-transform-compat
svg: extract prefix-preserving transform-list compatibility
2026-11-17 02:16:06 -05:00
FredApps bf448c194a Merge pull request #1729 from D13GOOOO/docx-stacking-order
craft-docx: a relativeHeight of 0 stays the lowest stacking order (wordcraft#2638)
2026-11-17 07:40:05 +01:00
Dylan M. Taylor a953b26365 Merge branch 'main' of https://github.com/storytold/craft-libs into fix/chart-title-range-parity 2026-11-17 00:39:34 -05:00
Dylan M. Taylor 6526535a1e Merge branch 'main' of https://github.com/storytold/craft-libs into feat/hpgl-byte-lexer 2026-11-17 00:39:33 -05:00
dotCooCoo 5a0f824678 Add craft-audio-dsp: compressor, limiter, equalizer, loudness meter and other effects
Adds crates/audio-dsp. It combines FilmCraft's crates/audio-dsp
(3f137a7) and SoundCraft's crates/dsp (648ed9d): the AudioEffect trait
and its registry, the effects, a BS.1770-4 / EBU R 128 loudness meter,
panning, channel layouts, test signals, resampling, time stretch,
offset search and ducking. NOTICE keeps both projects' copyright
notices.

- pan::direction_gains sends an ear-level direction to the height
  speakers at full level when a layout has no ear-level speakers,
  instead of returning silence.
- realtime_factor_sanity compares processing time with the wall clock
  and is now ignored by default.
- The crate inherits the workspace package fields and lints, and
  ATTRIBUTION.md lists it.
2026-11-16 21:20:51 -08:00
alehelandClaude Opus 5.5 873fc3ecd5 video: the real-file VMD oracle checks that ffmpeg succeeded
real_files_match_ffmpeg waited for ffmpeg without looking at its exit
status, so pictures that matched before ffmpeg failed still passed. It now
asserts success, as the generated-file oracle does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 06:08:45 +01:00
FredApps b72421f53a Integrate latest main for validated stacking-order fixes 2026-11-17 05:48:53 +01:00
FredApps c2f9bed6c9 Integrate current shared flow fixes before stacking validation 2026-11-17 05:30:00 +01:00
Dylan M. Taylor 6e9031edc3 Merge branch 'main' of https://github.com/storytold/craft-libs into feat/screen-video 2026-11-16 23:28:47 -05:00
Dylan M. Taylor be65dde808 Merge branch 'main' of https://github.com/storytold/craft-libs into feat/score-writers 2026-11-16 23:28:26 -05:00
Dylan M. Taylor 6181ae557f feat(lottie): flatten borrowed gradient stops without temporary buffers 2026-11-16 23:26:35 -05:00
Dylan M. Taylor 6128eabbfb Keep aligned stored entry headers compatible with USDZ exporter 2026-11-16 23:24:27 -05:00
Dylan M. Taylorandbflatastic e66b3a7954 zip: support bounded aligned stored entry options
Co-authored-by: bflatastic <bombayapirat@gmail.com>
2026-11-16 23:23:25 -05:00
Dylan M. Taylor a6d5f86ee4 svg: pin transform composition and malformed-list parity 2026-11-16 23:22:03 -05:00
Dylan M. Taylor c2ae800d87 test(lottie): preserve raw gradient precision and alpha topology 2026-11-16 23:21:59 -05:00