00001 00002 #ifndef _MOM_IMAGE_H_ 00003 #define _MOM_IMAGE_H_ 00004 00005 # ifdef __cplusplus 00006 extern "C" { 00007 # endif /* __cplusplus */ 00008 00009 #include "momusys.h" 00010 00011 Image *AllocImage(UInt size_x, UInt size_y, ImageType type); 00012 Void FreeImage(Image *image); 00013 Void CopyImage(Image *image_in, Image *image_out); 00014 Void SetConstantImage(Image *image, Float val); 00015 Void SubImage(Image *image_in1, Image *image_in2, Image *image_out); 00016 00017 Vop * SallocVop (void); 00018 Vop * AllocVop (UInt x, UInt y); 00019 Void SfreeVop (Vop *vop); 00020 Void FreeVop (Vop *vop); 00021 Void CopyVopNonImageField (Vop *in, Vop *out); 00022 00023 # ifdef __cplusplus 00024 } 00025 # endif /* __cplusplus */ 00026 00027 #endif 00028 00029 00030 #ifndef _TUH_TOOLBOX_H 00031 #define _TUH_TOOLBOX_H 00032 00033 # ifdef __cplusplus 00034 extern "C" { 00035 # endif /* __cplusplus */ 00036 00037 #define MAX_UCHAR_VAL 255 00038 #define MAX_SHORT_VAL 32767 00039 #define MAX_FLOAT_VAL 2000000000 00040 00041 #ifndef SIGN0 00042 #define SIGN0(a) ( ((a)<0) ? -1 : (((a)>0) ? 1 : 0) ) 00043 #endif 00044 00045 #ifndef SIGN 00046 #define SIGN(a) ((a)<0 ? (-1) : (1)) 00047 #endif 00048 00049 #ifndef ROUND 00050 #define ROUND(x) ( (Int) ((x) + SIGN0(x)*0.5) ) 00051 #endif 00052 00053 #include "mom_structs.h" 00054 00055 00056 # ifdef __cplusplus 00057 } 00058 # endif /* __cplusplus */ 00059 00060 #endif /* ifndef _TUH_TOOLBOX_H */
1.5.5