Expand description
§rusty_flac — pure-Rust FLAC codec
A self-contained FLAC encoder + decoder: no FFI, no dependencies.
Encoder: feed planar or interleavedi32samples (8/16/24-bit, up to 8 channels), get a complete spec-valid FLAC stream with STREAMINFO MD5.Decoder: streaming per-frame decode of a FLAC stream to planari32, with CRC verification;decodeis the whole-stream convenience.
Lossless is the invariant: decode(encode(x)) == x exactly, and every
stream interoperates with libFLAC/ffmpeg in both directions.
Structs§
- Decoder
- Streaming FLAC decoder over a complete in-memory stream.
- Encode
Stats - Wiring-audit counters: every decision path in the encoder counts what it chose, so a corpus run can prove no path is silently dead and no fallback is silently hot. Cheap (a few increments per subframe).
- Encoder
- A pure-Rust FLAC encoder. Feed planar or interleaved
i32samples at the configured bit depth, thenEncoder::finishreturns the complete stream. - Stream
Info - Parsed STREAMINFO.
Enums§
- Decode
Error - Encode
Error - Encoder configuration / stream errors.
Functions§
- decode
- Decode a complete FLAC stream to
(StreamInfo, planar samples).