#include <picture.h>
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 |
| cfileio * | pfio |
| 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] |
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.8