31 #define SIZE (COUNT * 4)
45 for (i = 0; i <
COUNT; i++)
50 for (i = 0; i <
COUNT; i++) {
55 fprintf(stderr,
"get_ue_golomb: expected %d, got %d. bits: %7x\n",
61 #define EXTEND(i) ((i) << 3 | (i) & 7)
63 for (i = 0; i <
COUNT; i++)
68 for (i = 0; i <
COUNT; i++) {
73 fprintf(stderr,
"get_ue_golomb_long: expected %d, got %d. "
74 "bits: %8x\n",
EXTEND(i), j, s);
80 for (i = 0; i <
COUNT; i++)
85 for (i = 0; i <
COUNT; i++) {
89 if (j != i - COUNT / 2) {
90 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 int get_se_golomb(GetBitContext *gb)
read signed exp golomb code.
memory handling functions
static void set_ue_golomb(PutBitContext *pb, int i)
write unsigned exp golomb code.
bitstream reader API header.
static int get_ue_golomb(GetBitContext *gb)
read unsigned exp golomb code.
static unsigned int show_bits(GetBitContext *s, int n)
Show 1-25 bits.
static unsigned get_ue_golomb_long(GetBitContext *gb)
Read an unsigned Exp-Golomb code in the range 0 to UINT32_MAX-1.
static void set_se_golomb(PutBitContext *pb, int i)
write signed exp golomb code.
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
static void flush_put_bits(PutBitContext *s)
Pad the end of the output stream with zeros.
static void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size)
Initialize the PutBitContext s.