Skip to main content

Module bitreader

Module bitreader 

Source
Expand description

MSB-first bit reader plus 0-th-order Exp-Golomb helpers for EVC RBSPs.

Per ISO/IEC 23094-1 §7.2 / §9.2, EVC syntax elements are coded MSB-first within each byte. The ue(v) / se(v) codes are 0-th order Exp-Golomb, identical to the AVC / HEVC mapping.

EVC uses a length-prefixed NAL framing model (Annex B nal_unit_length is u(32)), so the EVC syntax does not specify start-code emulation prevention bytes — RBSPs are read directly out of the NAL body. This reader therefore operates on the raw NAL payload after the 2-byte NAL header.

Structs§

BitReader
MSB-first bit reader over a byte slice.