home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / HPACK78S.ZIP / lza / model2.h < prev    next >
C/C++ Source or Header  |  1992-06-22  |  1KB  |  39 lines

  1. /****************************************************************************
  2. *                                                                            *
  3. *                            HPACK Multi-System Archiver                        *
  4. *                            ===========================                        *
  5. *                                                                            *
  6. *                          LZSS Code Length Model Interface                    *
  7. *                             MODEL2.H  Updated 08/04/92                        *
  8. *                                                                            *
  9. * This program is protected by copyright and as such any use or copying of    *
  10. *  this code for your own purposes directly or indirectly is highly uncool    *
  11. *                      and if you do so there will be....trubble.                *
  12. *                 And remember: We know where your kids go to school.            *
  13. *                                                                            *
  14. *        Copyright 1990 - 1992  Peter C.Gutmann.  All rights reserved        *
  15. *                                                                            *
  16. ****************************************************************************/
  17.  
  18. /* The set of symbols that may be encoded */
  19.  
  20. #define NO_LENGTHS    64 - 4
  21.  
  22. /* Translation tables between high positions and symbol indices */
  23.  
  24. extern int lengthToIndex[];
  25. extern int indexToLength[];
  26.  
  27. /* Cumulative frequency table */
  28.  
  29. #ifndef MAX_FREQ
  30.   #define MAX_FREQ    16383                /* Max freq.count: 2^14 - 1 */
  31. #endif /* !MAX_FREQ */
  32.  
  33. extern int lengthCumFreq[];                /* Cumulative symbol frequencies */
  34.  
  35. /* Prototypes for functions in MODEL2.C */
  36.  
  37. void startLengthModel( void );
  38. void updateLengthModel( const int symbol );
  39.