mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-15 06:52:23 +00:00
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>
22 lines
548 B
Rust
22 lines
548 B
Rust
//! Tests of the codecs ported from FilmCraft and EffectCraft, built as one test binary: each file
|
|
//! is a module, as in their original crates.
|
|
// Index loops follow the specifications, as in FilmCraft (which allows this lint workspace-wide).
|
|
#![allow(clippy::needless_range_loop)]
|
|
|
|
use craft_media_testkit as common;
|
|
#[macro_use]
|
|
mod testkit;
|
|
|
|
mod aac;
|
|
mod ac3_encoder_oracle;
|
|
mod ac3_oracle;
|
|
mod alac;
|
|
mod concealment;
|
|
mod mp3_decoder_oracle;
|
|
mod mp3_encoder_oracle;
|
|
mod mpa_oracle;
|
|
mod opus;
|
|
mod opusenc;
|
|
mod routing_oracle;
|
|
mod track_decoder;
|