Expand description
Sans-IO Ogg page/packet mux and demux (RFC 3533) — no OS I/O, no Mediaway types.
Muxerwrites one page per packet (simple, always spec-valid — see crate-local ADR-0001 for what real-encoder features are deferred).Demuxeris a true incrementalpush_bytes/poll_packetreader that handles the general case: multiple packets per page, packets spanning continuation pages, and CRC verification.
Codec::Opus already exists in iso-bmff’s Codec enum (for ISOBMFF
muxing) — this crate is the separate native Ogg transport (carries
Opus/Vorbis/FLAC logical bitstreams), independent of ISOBMFF.
Structs§
- Demuxer
- Reads Ogg pages from pushed byte chunks and yields fully reassembled packets.
- Muxer
- Writes Ogg pages for one logical bitstream (one
serial). - Packet
- A fully reassembled Ogg packet (continuation pages already merged).
Enums§
- Error
- Errors from Ogg mux/demux.
Constants§
- MAX_
SINGLE_ PAGE_ PAYLOAD - Max packet payload representable in a single page’s 255-entry segment table (254 full 255-byte segments + one final terminator segment of up to 254 bytes).