home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 4
/
AACD04.ISO
/
AACD
/
Sound
/
LAME
/
Source
/
huffman.h
< prev
next >
Wrap
C/C++ Source or Header
|
1999-05-05
|
713b
|
21 lines
#define HUFFBITS unsigned long int
#define HTN 34
#define MXOFF 250
struct huffcodetab {
unsigned int xlen; /*max. x-index+ */
unsigned int ylen; /*max. y-index+ */
unsigned int linbits; /*number of linbits */
unsigned int linmax; /*max number to be stored in linbits */
HUFFBITS *table; /*pointer to array[xlen][ylen] */
unsigned char *hlen; /*pointer to array[xlen][ylen] */
};
extern struct huffcodetab ht[HTN];/* global memory block */
/* array of all huffcodtable headers */
/* 0..31 Huffman code table 0..31 */
/* 32,33 count1-tables */
extern void huffman_coder(unsigned int, unsigned int,
struct huffcodetab*, Bit_stream_struc*);