USGS

Isis 3.0 Application Source Code Reference

Home

huffman.cpp File Reference

Go to the source code of this file.

Defines

#define ZRL   240
#define EOB   0

Functions

void inithuffcode ()
void genhuffsize (char *, short *, short *)
void genhuffcode (short *, char *)
void genehuf (short *, short *, short *, char *, char *, short)
void gendectbls (short *, short *, short *, short *, short *)
void decode (short *u, BitStream *ibs)

Variables

short dcbits [16]
short acbits [16]
char dchuffval [12]
char achuffval [162]
short dcehufco [16]
short dcehufsi [16]
short dcmincode [16]
short dcmaxcode [16]
short dcvalptr [16]
short acehufco [256]
short acehufsi [256]
short acmincode [16]
short acmaxcode [16]
short acvalptr [16]
unsigned short mask []
short code

Define Documentation

#define ZRL   240

Definition at line 18 of file huffman.cpp.

#define EOB   0

Definition at line 19 of file huffman.cpp.


Function Documentation

void inithuffcode (  ) 

Definition at line 44 of file huffman.cpp.

void genhuffsize ( char *  huffsize,
short *  bits,
short *  lastk 
)

Definition at line 68 of file huffman.cpp.

void genhuffcode ( short *  huffcode,
char *  huffsize 
)

Definition at line 85 of file huffman.cpp.

void genehuf ( short *  ehufco,
short *  ehufsi,
short *  huffcode,
char *  huffsize,
char *  huffvalue,
short  lastk 
)

Definition at line 105 of file huffman.cpp.

void gendectbls ( short *  mincode,
short *  maxcode,
short *  valptr,
short *  huffcode,
short *  bits 
)

Definition at line 121 of file huffman.cpp.

void decode ( short *  u,
BitStream ibs 
)

Definition at line 149 of file huffman.cpp.


Variable Documentation

short dcbits[16]

Definition at line 28 of file huffman.cpp.

short acbits[16]

Definition at line 28 of file huffman.cpp.

char dchuffval[12]

Definition at line 29 of file huffman.cpp.

char achuffval[162]

Definition at line 29 of file huffman.cpp.

short dcehufco[16]

Definition at line 31 of file huffman.cpp.

short dcehufsi[16]

Definition at line 32 of file huffman.cpp.

short dcmincode[16]

Definition at line 33 of file huffman.cpp.

short dcmaxcode[16]

Definition at line 34 of file huffman.cpp.

short dcvalptr[16]

Definition at line 35 of file huffman.cpp.

short acehufco[256]

Definition at line 37 of file huffman.cpp.

short acehufsi[256]

Definition at line 38 of file huffman.cpp.

short acmincode[16]

Definition at line 39 of file huffman.cpp.

short acmaxcode[16]

Definition at line 40 of file huffman.cpp.

short acvalptr[16]

Definition at line 41 of file huffman.cpp.

void mask
Initial value:
 {0x0000,
                         0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020, 0x0040, 0x0080,
                         0x0100, 0x0200, 0x0400, 0x0800, 0x1000, 0x2000, 0x4000, 0x8000
                        }

Definition at line 142 of file huffman.cpp.

short code

Definition at line 147 of file huffman.cpp.