#ifndef _DEFINITIONS_HH_ #define _DEFINITIONS_HH_ #include #ifndef PI #define PI M_PI #endif /* If the V4L device is used, it will define COLOR_BGR and redefine RED as 2 and BLUE as 0 */ #define RED 0 #define GREEN 1 #define BLUE 2 #define ALPHA 3 #define CYAN 0 #define MAGENTA 1 #define YELLOW 2 #define BLACK 3 typedef enum ImageType { PPM3, PPM6, JPEG, BMP }; #endif /* _DEFINITIONS_HH_ */