runtrans.h

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

H
31
字号
#ifndef CRB_RUN_TRANSFORM_H
#define CRB_RUN_TRANSFORM_H

/** RunPack does a full arith on the runlengths ; it creates a literal array
*	with no run-flags in it; this is optimal for post-coding of the literals
*  RunPack : Array[ArrayLen] -> Literals[NumLiterals] + PackedRuns[NumRuns,PackedLen]
* UnRunpack: Literals + PackedRuns -> Array[ArrayLen]
*
******/

extern bool RunPack(ubyte *Array,ulong ArrayLen,ubyte * Literals,
  ulong * NumLiteralsPtr,ubyte * PackedRunArray,ulong * NumRunsPtr,
  ulong * RunPackedLenPtr);

extern bool UnRunPack(ubyte *Array,ulong ArrayLen,ubyte * Literals,
  ubyte * PackedRunArray);

/**
* 
* runTransform is a ubyte <-> ubyte reversible transform
*
* both return the len of the comp array
*
*****/

extern int doRunTransform(ubyte *raw,int rawLen,ubyte *comp);
extern int unRunTransform(ubyte *raw,int rawLen,ubyte *comp);

#endif

⌨️ 快捷键说明

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