Skip to main content

Module bitstream

Module bitstream 

Source
Expand description

Bitstream reading utilities for codec implementations.

Re-exports the av-bitstream crate’s reader types and provides exp-Golomb parsing functions matching FFmpeg’s libavcodec/golomb.h.

Structs§

BitReadBE
A big-endian reader.
BitReadLE
A little-endian reader.

Traits§

BitRead
Used to define a bitreader.

Functions§

get_se_golomb
Read a signed exp-Golomb code (se(v)) from a big-endian bitstream reader.
get_te0_golomb
Read a truncated exp-Golomb code (te(v)) with range==1 returning 0.
get_te_golomb
Read a truncated exp-Golomb code (te(v)) from a big-endian bitstream reader.
get_ue_golomb
Read an unsigned exp-Golomb code (ue(v)) from a big-endian bitstream reader.