home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
h
/
hpack78s.zip
/
lza
/
model2.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-06-22
|
1KB
|
39 lines
/****************************************************************************
* *
* HPACK Multi-System Archiver *
* =========================== *
* *
* LZSS Code Length Model Interface *
* MODEL2.H Updated 08/04/92 *
* *
* This program is protected by copyright and as such any use or copying of *
* this code for your own purposes directly or indirectly is highly uncool *
* and if you do so there will be....trubble. *
* And remember: We know where your kids go to school. *
* *
* Copyright 1990 - 1992 Peter C.Gutmann. All rights reserved *
* *
****************************************************************************/
/* The set of symbols that may be encoded */
#define NO_LENGTHS 64 - 4
/* Translation tables between high positions and symbol indices */
extern int lengthToIndex[];
extern int indexToLength[];
/* Cumulative frequency table */
#ifndef MAX_FREQ
#define MAX_FREQ 16383 /* Max freq.count: 2^14 - 1 */
#endif /* !MAX_FREQ */
extern int lengthCumFreq[]; /* Cumulative symbol frequencies */
/* Prototypes for functions in MODEL2.C */
void startLengthModel( void );
void updateLengthModel( const int symbol );