Skip to main content

Module bitreader

Module bitreader 

Source
Expand description

Exp-Golomb bit reader over an RBSP byte stream.

RBSP (Raw Byte Sequence Payload) requires emulation prevention byte removal before parsing: every 00 00 03 triplet in the NAL unit byte stream is replaced by 00 00 (the 03 is discarded). This is done once when constructing the reader via BitReader::with_unescape.

Supports ue(v) (unsigned) and se(v) (signed) Exp-Golomb coding per ITU-T H.264 §9.1 and H.265 §9.2.2.

Structs§

BitReader
Bit-level reader over an RBSP buffer (after emulation-prevention byte removal).