wave.h

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

H
71
字号
#ifndef WAVE_H
#define WAVE_H

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <stdarg.h>

#include <crblib/inc.h>

/* global types *************/

typedef struct Wavelet Wavelet;
typedef struct SubBand SubBand;
typedef struct Packet Packet;

typedef enum
{
	SBT_LL=0,
	SBT_LH,
	SBT_HL,
	SBT_HH
} subBandType;

typedef bool    (*GiveLinesCB) (void *Context, ubyte *LineData, int NumLines);
typedef ubyte * (* GetLinesCB) (void *Context, int NumLines);

/* global options *************/

extern int tune_param;

/* global options *************/

#define DO_REPORT

/* global defines *************/

#define MAX_LINE_SIZE (4096)	// for lazy people

#ifdef INLINE
#undef INLINE
#endif

#define INLINE	static __forceinline __fastcall

/* miscellaneous utilities *************/

extern void __cdecl myassert (void *expr,void *filename,unsigned lineno);

#ifdef assert
#undef assert
#endif

#ifdef _DEBUG
#define assert(exp) (void)( (exp) || (myassert(#exp, __FILE__, __LINE__), 0) )
#else
#define assert(exp) 
#endif

extern void dprintf(const char * string, ...);
						// dual printf ; goes to console & pipe file
						//	doesn't duplicate if there's no pipe file

#define compileAssert(exp)	extern char _compileAssertHack[ (exp) ? 1 : -1 ]

/**********************************/

#endif // WAVE_H

⌨️ 快捷键说明

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