Skip to main content

Crate ogg_core

Crate ogg_core 

Source
Expand description

Sans-IO Ogg page/packet mux and demux (RFC 3533) — no OS I/O, no Mediaway types.

  • Muxer writes one page per packet (simple, always spec-valid — see crate-local ADR-0001 for what real-encoder features are deferred).
  • Demuxer is a true incremental push_bytes/poll_packet reader 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).