quantize.h

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

H
26
字号
#ifndef QUANTIZE_H
#define QUANTIZE_H

#include "wave.h"

/****

*NOTE* : the LL section is quantized with Q = 1 !!

the intent here is just to stuff the floats to ints, and
get as much extra stuff out of it as possible

we also get rid of signs here : the ints output by quantize
are all positive, with the sign bit in the last bit of the int

*****/

void doquantize(void * plane,int width,int height,int stride,float Q);
void dequantize(void * plane,int width,int height,int stride,float Q);
void dequantizerow(uint *fm,float *to,int width,float Q);
void doquantizenopack(void * plane,int width,int height,int stride,float Q);
void dequantizenopack(void * plane,int width,int height,int stride,float Q);

#endif // QUANTIZE_H

⌨️ 快捷键说明

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