#include "bitstream.h"

Go to the source code of this file.
Functions | |
| void | Bitstream_Init (void *buffer) |
| void | Bitstream_PutBits (int n, unsigned int val) |
| int | Bitstream_Close () |
| int | Bitstream_NextStartCode () |
| int | Bitstream_GetLength () |
Variables | |
| static unsigned int | mask [33] |
| static unsigned char * | byteptr |
| static int | bytecnt |
| static unsigned char | outbfr |
| static int | outcnt |
| int Bitstream_Close | ( | void | ) |
Definition at line 98 of file bitstream.c.
References Bitstream_PutBits(), bytecnt, and outcnt.
Referenced by encore().

| int Bitstream_GetLength | ( | void | ) |
| void Bitstream_Init | ( | void * | buffer | ) |
| int Bitstream_NextStartCode | ( | void | ) |
Definition at line 105 of file bitstream.c.
References Bitstream_PutBits(), and outcnt.
Referenced by BitstreamPutVopHeader(), PutVoVolHeader(), and VopCode().

| void Bitstream_PutBits | ( | int | n, | |
| unsigned int | val | |||
| ) |
Definition at line 74 of file bitstream.c.
References bytecnt, byteptr, outbfr, and outcnt.
Referenced by Bitstream_Close(), Bitstream_NextStartCode(), and PutVoVolHeader().
int bytecnt [static] |
Definition at line 59 of file bitstream.c.
unsigned char* byteptr [static] |
unsigned int mask[33] [static] |
Initial value:
{
0x00000000, 0x00000001, 0x00000003, 0x00000007,
0x0000000f, 0x0000001f, 0x0000003f, 0x0000007f,
0x000000ff, 0x000001ff, 0x000003ff, 0x000007ff,
0x00000fff, 0x00001fff, 0x00003fff, 0x00007fff,
0x0000ffff, 0x0001ffff, 0x0003ffff, 0x0007ffff,
0x000fffff, 0x001fffff, 0x003fffff, 0x007fffff,
0x00ffffff, 0x01ffffff, 0x03ffffff, 0x07ffffff,
0x0fffffff, 0x1fffffff, 0x3fffffff, 0x7fffffff,
0xffffffff
}
Definition at line 40 of file bitstream.c.
unsigned char outbfr [static] |
Definition at line 62 of file bitstream.c.
int outcnt [static] |
Definition at line 64 of file bitstream.c.
1.5.5