hvirtual/quicktime/encore50/bitstream.c File Reference

#include "bitstream.h"

Include dependency graph for bitstream.c:

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


Function Documentation

int Bitstream_Close ( void   ) 

Definition at line 98 of file bitstream.c.

References Bitstream_PutBits(), bytecnt, and outcnt.

Referenced by encore().

Here is the call graph for this function:

int Bitstream_GetLength ( void   ) 

Definition at line 116 of file bitstream.c.

References bytecnt.

void Bitstream_Init ( void *  buffer  ) 

Definition at line 66 of file bitstream.c.

References bytecnt, byteptr, outbfr, and outcnt.

Referenced by encore().

int Bitstream_NextStartCode ( void   ) 

Definition at line 105 of file bitstream.c.

References Bitstream_PutBits(), and outcnt.

Referenced by BitstreamPutVopHeader(), PutVoVolHeader(), and VopCode().

Here is the call graph for this function:

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().


Variable Documentation

int bytecnt [static]

Definition at line 59 of file bitstream.c.

unsigned char* byteptr [static]

Definition at line 57 of file bitstream.c.

Referenced by Bitstream_Init(), and Bitstream_PutBits().

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.


Generated on Mon Apr 28 13:58:46 2008 for Cinelerra by  doxygen 1.5.5