o1coder.h

来自「傅立叶变换和小波变换是图像压缩的重要工具。该代大戏是利用小波变换进行图像压缩。」· C头文件 代码 · 共 23 行

H
23
字号
#ifndef CRB_O1CODER_H
#define CRB_O1CODER_H

#include <crblib/arithc.h>

struct O1coderInfo {  long Private; };
typedef struct O1CoderInfo oOne;

extern struct O1coderInfo * O1coder_Init(arithInfo * ari,long numChars,long numContexts);
extern struct O1coderInfo * O1coder_InitMax(arithInfo * ari,long numChars,long numContexts,long max);
extern void O1coder_EncodeC(struct O1coderInfo * O1I,long Char,long Context);
extern long O1coder_DecodeC(struct O1coderInfo * O1I,long Context);
extern void O1coder_CleanUp(struct O1coderInfo * O1I);
extern void O1coder_Reset(struct O1coderInfo * O1I);

#define oOneCreate 		(oOne *)O1coder_Init
#define oOneCreateMax 	(oOne *)O1coder_InitMax
#define oOneEncode(x,y,z)	O1coder_EncodeC((struct O1coderInfo *)x,y,z)
#define oOneDecode(x,y)		O1coder_DecodeC((struct O1coderInfo *)x,y)
#define oOneFree(x)     	O1coder_CleanUp((struct O1coderInfo *)x)

#endif

⌨️ 快捷键说明

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