Go to the documentation of this file.
33 #define SIZE (COUNT * 4)
57 fprintf(stderr,
"get_ue_golomb: expected %d, got %d. bits: %7x\n",
63 #define EXTEND(i) ((i) << 3 | (i) & 7)
75 fprintf(stderr,
"get_ue_golomb_long: expected %d, got %d. "
81 #define EXTEND_L(i) ((i) << 4 | (i) & 15)
93 fprintf(stderr,
"get_ue_golomb_long: expected %d, got %d. "
110 fprintf(stderr,
"get_se_golomb: expected %d, got %d. bits: %7x\n",
static unsigned int show_bits_long(GetBitContext *s, int n)
Show 0-32 bits.
static void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size)
Initialize the PutBitContext s.
static int get_ue_golomb(GetBitContext *gb)
Read an unsigned Exp-Golomb code in the range 0 to 8190.
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
static void set_ue_golomb_long(PutBitContext *pb, uint32_t i)
write unsigned exp golomb code.
exp golomb vlc writing stuff
static int get_se_golomb(GetBitContext *gb)
read signed exp golomb code.
static void set_se_golomb(PutBitContext *pb, int i)
write signed exp golomb code.
#define i(width, name, range_min, range_max)
static unsigned int show_bits(GetBitContext *s, int n)
Show 1-25 bits.
static void set_ue_golomb(PutBitContext *pb, int i)
write unsigned exp golomb code.
static unsigned get_ue_golomb_long(GetBitContext *gb)
Read an unsigned Exp-Golomb code in the range 0 to UINT32_MAX-1.
static void flush_put_bits(PutBitContext *s)
Pad the end of the output stream with zeros.