⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 quantize.h

📁 傅立叶变换和小波变换是图像压缩的重要工具。该代大戏是利用小波变换进行图像压缩。
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -