scontext.h
来自「傅立叶变换和小波变换是图像压缩的重要工具。该代大戏是利用小波变换进行图像压缩。」· C头文件 代码 · 共 29 行
H
29 行
#ifndef CRB_SCONTEXT_H
#define CRB_SCONTEXt_H
/*
* scontext : for coding small-alphabet contexts
*
* uses a linear array, not a binary tree
*
* takes care to make sure escape is set to zero whenever the
* context fills up
*
*/
#include <crblib/arithc.h>
typedef struct { int private; } scontext;
extern scontext * scontextCreate(arithInfo * arithinfo,int size,int escmax,int totmax,int inc,bool noesc);
extern void scontextAdd(scontext *sc, int symbol);
extern bool scontextEncode(scontext *sc, int symbol); /** returns "coded?" **/
extern int scontextDecode(scontext *sc); /** returns -1 for escape **/
extern void scontextHalve(scontext *sc);
extern void scontextFree(scontext *sc);
extern bool scontextHas(scontext *sc,int symbol);
extern int scontextGetProb(scontext *sc,int symbol);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?