00001 #ifndef __DWT_COMPRESS_H
00002 #define __DWT_COMPRESS_H
00003
00004
00005 #define DWT_HAAR 0
00006 #define DWT_CD22 1
00007 #define DWT_CD12 2
00008
00009
00010
00011
00012
00013 int dwt_compress(int transform, int quant, int levels, int width, int height,
00014 short *data, int *lengths, unsigned char *zdata);
00015 int dwt_decompress(int transform, int quant, int levels, int width, int height,
00016 int *lengths, unsigned char *zdata, short *data);
00017 void dwt_down(int transform, int quant, int width, int height,
00018 short *input, short *output);
00019 void dwt_up(int transform, int quant, int width, int height,
00020 short *input, short *output);
00021
00022 int dwt_rec(int transform, int quant, int levels, int width, int height,
00023 short *tmp, short *data, int *lengths, unsigned char *zdata);
00024 int dwtinv_rec(int transform, int quant, int levels, int width, int height,
00025 short *tmp, int *lengths, unsigned char *zdata,
00026 short *data);
00027
00028
00029
00030 #endif