r578: Factored UndoStackItem into an interface class UndoStackItem and
[cinelerra_cv.git] / quicktime / encore50 / mom_util.h
blob9a8c0509841bcc5e4f76c8d28b13b82e45b7b25b
2 #ifndef _MOM_IMAGE_H_
3 #define _MOM_IMAGE_H_
5 # ifdef __cplusplus
6 extern "C" {
7 # endif /* __cplusplus */
9 #include "momusys.h"
11 Image *AllocImage(UInt size_x, UInt size_y, ImageType type);
12 Void FreeImage(Image *image);
13 Void CopyImage(Image *image_in, Image *image_out);
14 Void SetConstantImage(Image *image, Float val);
15 Void SubImage(Image *image_in1, Image *image_in2, Image *image_out);
17 Vop * SallocVop (void);
18 Vop * AllocVop (UInt x, UInt y);
19 Void SfreeVop (Vop *vop);
20 Void FreeVop (Vop *vop);
21 Void CopyVopNonImageField (Vop *in, Vop *out);
23 # ifdef __cplusplus
25 # endif /* __cplusplus */
27 #endif
30 #ifndef _TUH_TOOLBOX_H
31 #define _TUH_TOOLBOX_H
33 # ifdef __cplusplus
34 extern "C" {
35 # endif /* __cplusplus */
37 #define MAX_UCHAR_VAL 255
38 #define MAX_SHORT_VAL 32767
39 #define MAX_FLOAT_VAL 2000000000
41 #ifndef SIGN0
42 #define SIGN0(a) ( ((a)<0) ? -1 : (((a)>0) ? 1 : 0) )
43 #endif
45 #ifndef SIGN
46 #define SIGN(a) ((a)<0 ? (-1) : (1))
47 #endif
49 #ifndef ROUND
50 #define ROUND(x) ( (Int) ((x) + SIGN0(x)*0.5) )
51 #endif
53 #include "mom_structs.h"
56 # ifdef __cplusplus
58 # endif /* __cplusplus */
60 #endif /* ifndef _TUH_TOOLBOX_H */