arithmetic_coding.h

来自「学过数据压缩的朋友都知道, arithmetic encode是为了弥补哈夫曼编」· C头文件 代码 · 共 24 行

H
24
字号
/* DECLARATIONS USED FOR ARITHMETIC ENCODING AND DECODING *//* (C) Copyright 1987, Radford Neal.    Permission is granted to use this program for research purposes. Please   note that this code was written to provide performance figures. I am   well aware that it is not documented to the standards of production   code. You're on your own. *//* SIZE OF ARITHMETIC CODE VALUES. */#define Code_value_bits 16		/* Number of bits in a code value   */typedef long code_value;		/* Type of an arithmetic code value */#define Top_value (((long)1<<Code_value_bits)-1)      /* Largest code value *//* HALF AND QUARTER POINTS IN THE CODE VALUE RANGE. */#define First_qtr (Top_value/4+1)	/* Point after first quarter        */#define Half	  (2*First_qtr)		/* Point after first half           */#define Third_qtr (3*First_qtr)		/* Point after third quarter        */

⌨️ 快捷键说明

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