ruopus 0.1.2

A pure-Rust implementation of the Opus audio codec (RFC 6716). No FFI; unsafe confined to documented SIMD kernels.
Documentation
//! The CELT layer (RFC 6716 §4.3) - under construction.
//!
//! CELT is the MDCT half of Opus: band energies coded with a Laplace model
//! plus fine refinement, and band shapes coded as PVQ pulse vectors. The
//! decode pipeline (§4.3) is
//!
//! ```text
//! coarse energy → fine energy → bit allocation → PVQ shapes →
//! anti-collapse → denormalization → inverse MDCT → post-filter
//! ```
//!
//! Implemented so far, bottom-up - each kernel fully tested in isolation
//! before the pipeline is assembled:
//!
//! | Module | RFC | Contents |
//! |--------|-----|----------|
//! | [`laplace`] | §4.3.2.1 | the Laplace coder for coarse energy deltas |
//! | [`cwrs`] | §4.3.4.2 | PVQ codeword enumeration (pulse vectors ↔ indices) |
//! | [`modes`] | Table 55 | static data of the standard 48 kHz mode |
//! | [`energy`] | §4.3.2 | coarse/fine/finalise energy envelope decoding |
//! | [`rate`] | §4.3.3 | the bit allocation: quality interpolation, band skipping, fine/shape split |
//! | [`tables`] | - | mechanically extracted allocation and pulse-cache tables |
//! | [`vq`] | §4.3.4.3 | spreading rotation, PVQ shape decoding, renormalisation |
//! | [`bands`] | §4.3.4 | the band loop: theta splits, stereo, folding, collapse masks |
//! | [`mdct`] | §4.3.7 | the low-overlap MDCT (forward + backward) with the FFT backend seam |
//! | [`decoder`] | §4.3 | the frame driver: flags, post-filter, synthesis, de-emphasis |

pub mod bands;
pub mod cwrs;
pub mod decoder;
// Encoder, pitch analysis and the SIMD pulse search are encode-only (the decode
// path is SIMD-free), so they stay behind `std` while no_std targets decode.
#[cfg(feature = "std")]
pub mod encoder;
pub mod energy;
pub mod laplace;
pub mod mdct;
pub mod modes;
#[cfg(feature = "std")]
pub(crate) mod pitch;
pub(crate) mod plc;
pub mod rate;
pub mod tables;
pub mod vq;
#[cfg(all(target_arch = "x86_64", feature = "std"))]
mod vq_simd;