FFmpeg
Functions
leb.h File Reference
#include "get_bits.h"

Go to the source code of this file.

Functions

static unsigned get_leb (GetBitContext *s)
 Read a unsigned integer coded as a variable number of up to eight little-endian bytes, where the MSB in a byte signals another byte must be read. More...
 
static int64_t get_leb128 (GetBitContext *gb)
 Read a unsigned integer coded as a variable number of up to eight little-endian bytes, where the MSB in a byte signals another byte must be read. More...
 

Detailed Description

leb128 handling implementations

Definition in file leb.h.

Function Documentation

◆ get_leb()

static unsigned get_leb ( GetBitContext s)
inlinestatic

Read a unsigned integer coded as a variable number of up to eight little-endian bytes, where the MSB in a byte signals another byte must be read.

All coded bits are read, but values > UINT_MAX are truncated.

Definition at line 35 of file leb.h.

Referenced by ff_iamf_parse_obu_header(), and metadata_is_global().

◆ get_leb128()

static int64_t get_leb128 ( GetBitContext gb)
inlinestatic

Read a unsigned integer coded as a variable number of up to eight little-endian bytes, where the MSB in a byte signals another byte must be read.

Definition at line 57 of file leb.h.

Referenced by parse_obu_header().