Commit Graph
198 Commits
Author SHA1 Message Date
FredApps cb6f192259 Merge pull request #1764 from el-j/feat/audio-s302m
craft-audio: SMPTE ST 302M packet decoder and encoder (s302m)
2026-11-26 14:31:27 +01:00
FredApps 05d9aa927a Merge main (3b09a644a5) into feat/audio-s302m
Conflicts:
crates/audio/Cargo.toml

Conflict in crates/audio/Cargo.toml: main folded every [[test]] binary into the library's test executable (tests/main.rs); dropped the [[test]] list and added s302m_oracle to tests/main.rs behind feature s302m. Ran: cargo test -p craft-audio --lib --features s302m s302m (8 passed), clippy -p craft-audio --all-targets --features s302m -D warnings (clean).
2026-11-26 19:22:55 +07:00
FredApps 3b3671bb29 Merge main (3b09a644a5) into fix/alac-shift-per-packet
Conflicts:
crates/audio/src/alac/encoder.rs

Conflict in crates/audio/src/alac/encoder.rs: main's test cleanup removed bad_input_is_refused; kept that removal and this PR's new silence/quiet/shift tests. Ran: cargo test -p craft-audio --lib --features alac-decode,alac-encode alac (13 passed).
2026-11-26 19:22:50 +07:00
FredApps 582549275d Merge branch 'main' into claude/packet-encoder-2064de 2026-11-26 10:17:30 +01:00
BFlat d7977fc26c Merge pull request #2598 from dotCooCoo/feat/audio-vorbis-wav-order
craft-audio: vorbis::wav_order and vorbis::layout map decoded channels to WAV order
2026-11-26 10:03:47 +07:00
aiongg 79c5c887ae tests: is_multiple_of for the gate-sample strides 2026-11-24 20:34:27 +00:00
aiongg b0695c24f7 craft-audio tests: hostile sweeps run 1/N at the gate, encoder mode sweeps use 1 s signals 2026-11-24 19:48:08 +00:00
el-j c59c4c7d3a Reject unsupported bit depths in SMPTE 302M header frame_bytes 2026-11-23 16:43:04 +01:00
el-j 9a6c56a97e Merge remote-tracking branch 'origin/main' into feat/audio-s302m 2026-11-23 16:41:51 +01:00
alehel 84710336ce docs(audio): clarify packet encoder memory bounds 2026-11-23 10:15:27 +01:00
alehel 8823b00c20 Merge main and preserve packet encoding and FLAC decoding modules 2026-11-23 08:28:35 +01:00
aiongg cf35f7dbae Merge remote-tracking branch 'upstream/main' into next-sync-1123
# Conflicts:
#	Cargo.toml
#	crates/audio/src/track.rs
2026-11-23 01:29:52 +00:00
Terra854 6a061a30bd audio: decode FLAC frames through TrackDecoder (#2868)
* audio: decode FLAC frames through TrackDecoder

* audio: keep FLAC state out of the decoder enum layout
2026-11-21 14:04:27 -05:00
dotCooCoo 91ef7aaf78 craft-audio: spell center in American English in the vorbis::layout doc comment 2026-11-20 11:16:36 -08:00
dotCooCoo 843cb77484 craft-audio: vorbis::wav_order and vorbis::layout map decoded channels to WAV order
The Vorbis decoder returns channels in Vorbis I order (L C R ... LFE), and
the rest of craft-audio works in WAV order. vorbis::wav_order(channels)
gives the reorder for 3, 5, 6, 7 and 8 channels, and vorbis::layout(channels)
gives the speakers of the result. For 7 channels the layout is 6.1 with a
back center and side surrounds, which ChannelLayout::default_for(7) does
not give.
2026-11-20 10:34:25 -08:00
aiongg ca58dfe6c9 Merge storytold main into next (19 Nov sync)
Merges main at d7c9632bfb.

- Cargo.toml: both sides' new workspace crates (next's font-subset, harfbuzz-subset-sys and
  host; main's gpu, gpu-null, gpu-providers and gpu-wgpu).
- crates/jpeg: next split lib.rs into modules; main's reduced-size decoding goes to them: the
  scaled IDCT, reconstruction and render_scaled to idct.rs, MAX_SHRINK, reduced_estimate and
  decode_reduced stay public in lib.rs. Main's new test added; the frame test next removed
  stays removed.
- crates/audio, crates/media: next builds the integration tests into the library's test
  executable (autotests off, tests/main.rs); main's new DSD and MPEG-TS mux tests are modules
  there behind their features instead of [[test]] targets, and the mux tests reach their shared
  helper module through the integration module.
- crates/media/src/matroska/track.rs: main's new FFV1 codec-parameter test added; the test
  modules next removed stay removed.
- crates/file-formats: main's JXL capability test, which asks the codec whether JXL reads,
  replaces next's interim check.
2026-11-19 16:22:24 +00:00
el-j 123878b446 Merge origin/main into feat/audio-s302m 2026-11-19 16:51:37 +01:00
el-j df2dcced49 craft-audio: cover 20-bit in s302m oracle tests and clean up unused binding 2026-11-19 09:50:52 +01:00
el-j 7b1a8f4515 craft-audio: validate DSF container bounds and DSDIFF channel counts (#1787) 2026-11-19 09:26:19 +01:00
ljkx cec20449a2 fix(audio): an empty WAV data chunk before a LIST chunk is no audio (#2123) (#2246)
A `data` chunk of size 0 counted as empty only when the RIFF size matched
the file. A writer that appends a `LIST` chunk after writing the RIFF size
leaves it stale, so the reader took the file for an unfinished recording
and decoded the `LIST` chunk's bytes as samples (8 frames of noise instead
of none).

A size-0 `data` chunk is now also empty when whole chunks follow it and the
first one has an id that follows audio (LIST, bext, cue, JUNK, ...). A
recording that was never finalised (PCM after the header) and bytes that
only start like a chunk still decode as audio.
2026-11-18 15:30:49 -05:00
el-j e20290fb43 Check padding addition for DSDIFF size calculation 2026-11-18 21:23:33 +01:00
el-j 4e6a89f006 audio: bound s302m Header::frame_bytes arithmetic against overflow 2026-11-18 21:11:24 +01:00
el-j 669c839251 audio: DSD review fixes (DSDIFF text and padding, channel layouts, ID3 decoding, factor-64 decimation) 2026-11-18 19:45:16 +01:00
el-j 3478b2099b Merge main into feat/audio-s302m 2026-11-18 19:40:56 +01:00
el-j f771b496fa Merge main into feat/audio-dsd 2026-11-18 19:40:45 +01:00
aiongg 4d22e6b958 Merge storytold main d6b5b16bbb into next (18 Nov sync)
- Workflows: main's per-crate layout, with next in the push triggers, Linux only for pushes to
  next, next's crate features (keymap egui, window and update ui) and test paths (crw samples and
  the pdf fixtures run inside the lib's test binary). The workspace gate keeps --keep-going and
  the facade-as-an-app clippy from next's ui.yml. Per-crate doc steps live in docs.yml, which also
  documents craft-ui, the ui-* crates, craft-doc and craft-pdf with every feature. docpath, i18n,
  print and ui workflows go, as on main. actions.lock lists docs.yml and theme.yml.
- Main's cloud and share UI (account, cloud, share, presence, the overflow menu and split button)
  lives in the new crate craft-cloud-ui as main wrote it; the craft-ui facade forwards share and
  cloud and re-exports account, cloud, share and presence, so craft-cloud-local builds unchanged.
- audio and media: main's new tests join tests/main.rs under their features.
- cms: main's new synth and FOGRA39 tests, with the fogra39() helper they use.
- nextest: no gpu group on unix; next's tests create no GPU device.
2026-11-18 01:22:22 +00:00
alehel 618423d68d Merge remote-tracking branch 'origin/main' into apply-1378c
# Conflicts:
#	crates/audio/Cargo.toml
2026-11-17 18:53:19 +01:00
el-jandDylan M. Taylor 0649a07aa1 craft-audio: ITU-T G.726 ADPCM speech codec (#1531) (#1792)
* craft-audio: ITU-T G.726 ADPCM speech codec (#1531)

* fix(audio): mask G726 sample codewords before adaptation

---------

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-17 12:15:52 -05:00
Dylan M. Taylor 2d6d39f1a9 Merge pull request #1959 from el-j/feat/audio-vorbis-decode
craft-audio: native Vorbis I decoder (#1547)
2026-11-17 11:55:19 -05:00
Dylan M. Taylor 25a882c1ce fix(audio): stop DSF audio at the declared data chunk 2026-11-17 10:12:56 -05:00
Dylan M. Taylor cbbba064fd Merge remote-tracking branch 'origin/main' into fix/dsd-chunk-bounds
# Conflicts:
#	crates/audio/Cargo.toml
#	crates/audio/src/lib.rs
2026-11-17 09:58:22 -05:00
Dylan M. Taylor 00048fdadf Merge remote-tracking branch 'origin/main' into fix/vorbis-codebook-size
# Conflicts:
#	crates/audio/src/lib.rs
2026-11-17 09:08:44 -05:00
Dylan M. Taylor 363a51967b fix(audio): bound Vorbis decode allocations and strengthen oracles 2026-11-17 09:07:52 -05:00
Dylan M. Taylor e5db2c26b9 Merge remote-tracking branch 'origin/main' into fix/adpcm-layout-overflow
# Conflicts:
#	crates/audio/src/lib.rs
2026-11-17 09:01:31 -05:00
Dylan M. Taylor 2ad03f00d0 docs(audio): remove duplicated codec overview after merge 2026-11-17 08:56:22 -05: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
Dylan M. Taylor 83048a707e fix(audio): bound DSD writer and aggregate PCM buffers 2026-11-17 08:49:27 -05:00
Dylan M. Taylor 9c4a8a1dd9 Merge main and retain MP2 and ADPCM registrations 2026-11-17 08:49:11 -05:00
Dylan M. Taylor cec152da82 fix(audio): reject overflowing interleaved ADPCM layouts 2026-11-17 08:47:42 -05:00
Dylan M. Taylor 557f9f5fb1 fix(audio): reject overflowing DSD chunk sizes and invalid factors 2026-11-17 08:45:21 -05:00
alehel 51950ff36f Merge remote-tracking branch 'origin/main' into apply-1378
# Conflicts:
#	crates/audio/Cargo.toml
#	crates/audio/README.md
2026-11-17 14:41:11 +01: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
aiongg ac3dfd1f53 Merge storytold main into next (17 Nov sync)
storytold main 83cb1133dd (291 commits) into the integration head bab1a99b85; 47 conflicted files.

- Domain test files (metafile, prepress, pdf plates, settings store, heif, media-testkit, atomic): tests next cut stay cut; tests new on main are kept, as trials where the crate's test target runs trials.
- atomic: main's group-bits test and Faulty::set_group go to src/tests.rs. audio: main's GSM and SBC oracles join tests/main.rs. cms constructors, pdf knockout_backdrop and testing_pdf join their crates' one test binary; timeline's preflight tests become src/preflight_tests.rs trials.
- update: main's changes to detect, install (linux, macos) and the tests land in next's split modules. The app's own offer is inspected on a thread of its own, picked up by tick's polling; settle_for_tests settles offers too. Later on a ready update drops the close it asked for. updater_pin_tests.rs stays deleted; its new pin test is in tests/it/update.rs.
- craft-color: main added a different crate at crates/color (the colour tags of compositor and display frames); it is next's craft-color module `tags`, re-exported at the root.
- Old crates/ui (combo, docking, testing, README) and keymap's ui/view.rs stay deleted; main's new crates/ui/src/testing files are dropped with them.
- New crates in the craft facade: ai, control, dds, frame, ipc, media-source, palette, press-print, score, ssip. testkit and xtask are listed outside it.
- Cargo.lock: the union of both locks, resolved by cargo metadata. Workflow: main's nextest Windows leg, with next's --keep-going clippy.
2026-11-17 12:44:52 +00:00
el-j e524806621 craft-audio: the Vorbis decoder's bit-reversal loop iterates the table 2026-11-17 11:25:41 +01:00
el-j e5bde5203c Merge main into feat/audio-mp2-encode 2026-11-17 10:12:38 +01:00
el-j 46587441df Merge main into feat/audio-adpcm 2026-11-17 10:12:32 +01:00
el-j 094a8f52be Merge main into feat/audio-s302m 2026-11-17 10:12:25 +01:00
el-j 1ec3f6737c Merge main into feat/audio-dsd 2026-11-17 10:12:18 +01:00
el-j 3d06331fc8 Merge main into feat/audio-g722 2026-11-17 10:12:12 +01:00
el-j de861bef5a Merge main into feat/audio-vorbis-decode 2026-11-17 10:11:58 +01:00