Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

clip::apt1_0::compactor Class Reference

#include <picture.h>

List of all members.

Public Member Functions

 compactor ()
 ~compactor ()
void putbit (int val)
int getbit ()
void reset ()
void debugon ()
void debugoff ()
void indexnumber (int i)
void attach (class cfileio *f)
void inc (int symbol)
void dec (int symbol)
void writetree (void)
void maketable_encode (void)
void put (int inbyte)
void incorput (int symbol, int which)
void readtree (void)
void maketable_decode (void)
int get ()
void copytree (compactor &source)
int copytreewithout (compactor &source, int from, int to)

Private Member Functions

int usetree (int omit_literal_table) const
void buildtree (int f[], unsigned char num_symbols_of_length[], unsigned char ordered_symbols[], int &longest) const
void buildbothtrees ()

Private Attributes

int debug
int id
cfileiopfio
int longest
int longmask
unsigned char num_symbols_of_length [32]
unsigned char ordered_symbols [256]
long accum
int maxval
int minval
int litlength
int usinghuffman
long freq [256]
unsigned short encode [256]
unsigned char enclength [256]
unsigned char decode [TABLESIZE]
unsigned char declength [TABLESIZE]


Constructor & Destructor Documentation

clip::apt1_0::compactor::compactor  )  [inline]
 

clip::apt1_0::compactor::~compactor  )  [inline]
 


Member Function Documentation

void clip::apt1_0::compactor::attach class cfileio f  )  [inline]
 

void clip::apt1_0::compactor::buildbothtrees  )  [private]
 

void clip::apt1_0::compactor::buildtree int  f[],
unsigned char  num_symbols_of_length[],
unsigned char  ordered_symbols[],
int &  longest
const [private]
 

void clip::apt1_0::compactor::copytree compactor source  ) 
 

int clip::apt1_0::compactor::copytreewithout compactor source,
int  from,
int  to
 

void clip::apt1_0::compactor::debugoff  )  [inline]
 

void clip::apt1_0::compactor::debugon  )  [inline]
 

void clip::apt1_0::compactor::dec int  symbol  )  [inline]
 

int clip::apt1_0::compactor::get  )  [inline]
 

int clip::apt1_0::compactor::getbit  )  [inline]
 

void clip::apt1_0::compactor::inc int  symbol  )  [inline]
 

void clip::apt1_0::compactor::incorput int  symbol,
int  which
[inline]
 

void clip::apt1_0::compactor::indexnumber int  i  )  [inline]
 

void clip::apt1_0::compactor::maketable_decode void   ) 
 

void clip::apt1_0::compactor::maketable_encode void   ) 
 

void clip::apt1_0::compactor::put int  inbyte  ) 
 

void clip::apt1_0::compactor::putbit int  val  )  [inline]
 

void clip::apt1_0::compactor::readtree void   ) 
 

void clip::apt1_0::compactor::reset  ) 
 

int clip::apt1_0::compactor::usetree int  omit_literal_table  )  const [private]
 

void clip::apt1_0::compactor::writetree void   ) 
 


Member Data Documentation

long clip::apt1_0::compactor::accum [private]
 

int clip::apt1_0::compactor::debug [private]
 

unsigned char clip::apt1_0::compactor::declength[TABLESIZE] [private]
 

unsigned char clip::apt1_0::compactor::decode[TABLESIZE] [private]
 

unsigned char clip::apt1_0::compactor::enclength[256] [private]
 

unsigned short clip::apt1_0::compactor::encode[256] [private]
 

long clip::apt1_0::compactor::freq[256] [private]
 

int clip::apt1_0::compactor::id [private]
 

int clip::apt1_0::compactor::litlength [private]
 

int clip::apt1_0::compactor::longest [private]
 

int clip::apt1_0::compactor::longmask [private]
 

int clip::apt1_0::compactor::maxval [private]
 

int clip::apt1_0::compactor::minval [private]
 

unsigned char clip::apt1_0::compactor::num_symbols_of_length[32] [private]
 

unsigned char clip::apt1_0::compactor::ordered_symbols[256] [private]
 

class cfileio* clip::apt1_0::compactor::pfio [private]
 

int clip::apt1_0::compactor::usinghuffman [private]
 


The documentation for this class was generated from the following file:
Generated on Sat Mar 5 17:34:35 2005 for clip by doxygen 1.3.8