⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 comp.h

📁 一个含有compress、expand、lzw等等压缩算法的源码
💻 H
字号:
/*
        Define storage allocation parameters

        FAR_TABLES dynamically allocates dictionary using far pointers
        SPLIT_TABLES allows a dictionary size over 32K
*/

#define FAR_TABLES
#undef SPLIT_TABLES

/*  Define size of dictionary and other useful parameters  */

#define NDICT          28000U   /* Size of circular dictionary */
#define MAX_ORDER      8                /* Maximum order accomodated by the model */
#define MAX_CHAR_CODE  256      /* Number of symbols accepted by model */

#define HTBL1_SIZE     256              /* Hash table size - equals character set size */

#define MIN_STR        3                /* Minimum string length */
#define MAX_STR_CODE   64       /* Maximum code value for string length */

#define MAX_STR        (MIN_STR+MAX_STR_CODE+254)
#define MAX_STR_SAVE   (MIN_STR)
#define MAX_SYM        (MAX_CHAR_CODE + 2)

#define MAX_DICT       (NDICT+MAX_ORDER)
#define NIL_DICT_PTR   0

#define SWITCH_SYM     -1
#define END_OF_FILE    MAX_CHAR_CODE
#define START_STRING   (MAX_CHAR_CODE + 1)


void InitModel (int);
void CompressSymbol (int);
int ExpandSymbol (void);
void CloseModel (void);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -