Skip to main content

Module range_coder

Module range_coder 

Source

Structs§

RangeCoder

Constants§

BITRES
EC_CODE_BITS
EC_CODE_BOT
EC_CODE_EXTRA
EC_CODE_SHIFT
EC_CODE_TOP
EC_SYM_BITS
EC_SYM_MAX
RANGE_BUF_MAX
Maximum range-coder buffer capacity. Opus packets are bounded by 1276 bytes (RFC 6716 §3.1); standalone CELT usage (e.g. tests) may use up to 2048, so the heap-free buffer is sized for that. The Opus encoder additionally clamps its per-frame budget to OPUS_MAX_PACKET_BYTES = 1276 (see lib.rs).