00001 #ifndef types_H 00002 #define types_H 00003 00004 typedef unsigned char byte; 00005 00006 //MAKRA 00007 #define pow2(x) ((1)<<(x)) // makro pro mocninu 2 pomocà bitového posunu 00008 //#define r(k,m) (pow2(k)-(1))*((m)-(1)) 00009 //#define max(x,y) x>y?x:y 00010 //#define min(x,y) x<y?x:y 00011 #define odd(x) (x%2)!=0 00012 #define even(x) (x%2)==0 00013 00014 /* 00015 typedef enum { 00016 NO_ERROR = 0, 00017 UNKNOWN_ERROR = -1 00018 }WRESULT; 00019 00020 typedef struct { 00021 int width; 00022 int height; 00023 //Size(int width,int height): width(width), height(height){} 00024 }Size; 00025 00026 typedef struct { 00027 float* values_lo; 00028 float* values_hi; 00029 int length; 00030 //wavelet(float* lo, float* hi,int length, char* name, bool bank = 0):values_lo(lo),values_hi(hi),length(length){} 00031 }wavelet; 00032 00033 typedef enum { 00034 ZERO_PADDING = 0, 00035 CONST_PADDING = 1, 00036 SYMETRIC_HP = 2, 00037 SYMERIC_WP = 3 00038 } wrapType; 00039 00040 typedef struct { 00041 int x; 00042 int y; 00043 int width; 00044 int height; 00045 }Rect;*/ 00046 00047 00048 00049 #endif