41 unsigned bits =
byte & 0x7f;
44 leb |=
bits << (
i * 7);
60 for (
int i = 0;
i < 8;
i++) {
62 ret |= (
int64_t)(
byte & 0x7f) << (
i * 7);
#define i(width, name, range_min, range_max)
static const uint8_t bits[8]
bitstream reader API header.
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
static unsigned get_leb(GetBitContext *s)
Read a unsigned integer coded as a variable number of up to eight little-endian bytes,...
static int64_t get_leb128(GetBitContext *gb)
Read a unsigned integer coded as a variable number of up to eight little-endian bytes,...