#ifndef __WAVELET_H
#define __WAVELET_H

#define BYTE	unsigned char
#define FPU		float
#define LENBITS 8
#define MAXXRES 512
#define MAXYRES 512

typedef struct
{
	unsigned int xres,yres,levels,subs,ldiv;
}WAVEHEADER;

typedef struct{
	float min, max;
}QHEADER;

typedef struct {
	int numc;
    FPU l[16];
    FPU h[16];
    FPU li[16];
    FPU hi[16];
}FPU_WAVELET;

#ifdef __cplusplus
extern "C"
{
#endif

void load_kwi (BYTE *src,BYTE *dest);	//data, dest (argb)

#ifdef __cplusplus
};
#endif

#endif