29 #define SIZE (COUNT * 4)
43 for (i = 0; i <
COUNT; i++)
48 for (i = 0; i <
COUNT; i++) {
53 fprintf(stderr,
"get_ue_golomb: expected %d, got %d. bits: %7x\n",
59 #define EXTEND(i) (i << 3 | i & 7)
61 for (i = 0; i <
COUNT; i++)
66 for (i = 0; i <
COUNT; i++) {
71 fprintf(stderr,
"get_ue_golomb_long: expected %d, got %d. "
72 "bits: %8x\n",
EXTEND(i), j, s);
78 for (i = 0; i <
COUNT; i++)
83 for (i = 0; i <
COUNT; i++) {
87 if (j != i - COUNT / 2) {
88 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.
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
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.
void av_free(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). ...
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.