DLConst.h

Go to the documentation of this file.
00001 #ifndef _DLCONST_H_
00002 #define _DLCONST_H_
00003 
00004 #include <string>
00005 
00006 using namespace std;
00007 //
00008 //# define DL_MAX(a,b) (((a) > (b)) ? (a) : (b))
00009 //# define DL_MIN(a,b) (((a) < (b)) ? (a) : (b))
00010 //const static double pi = 3.14159265359;
00011 const static double DL_PI_OVER_180 = 0.0174532925199432957692;
00012 const static double DL_PI_OVER_200 = 0.0157079632679489661923;
00013 const static double DL_PI = 3.14159265358979323846;
00014 //const static double DL_PI = 3.14159265359;
00015 const static double DL_2_PI = 6.28318530717958647692;
00016 const static double DL_PI_OVER_2 = 1.57079632679489661923;
00017 const static double DL_PI_OVER_4 = 0.78539816339744830962;
00018 const static double DL_SQRT_2 = 1.41421356237309504880; 
00019 
00020 /*
00021 //image format
00022 const static short int DL_UNKNOWNFORMAT = 0;
00023 const static short int DL_TIFFORMAT = 1;
00024 const static short int DL_BMPFORMAT = 2;
00025 const static short int DL_JPGFORMAT = 3;
00026 const static short int DL_PPMFORMAT = 4;
00027 const static short int DL_GIFFORMAT = 8;
00028 */
00029 
00035 enum DLBitDepths
00036 {
00037         DL_BITDEPTH_1 = 1,
00038         DL_BITDEPTH_8 = 8,
00039         DL_BITDEPTH_24 = 24
00040 };
00041 
00042 //const static short int DL_BITDEPTH_1 = 1;
00043 //const static short int DL_BITDEPTH_8 = 8;
00044 //const static short int DL_BITDEPTH_24 = 24;
00045 
00051 enum DLColorTypes
00052 {
00053    DL_UNKNOWN_COLOR = -1,
00054    DL_BINARY        = 1,
00055    DL_GRAY          = 2,
00056    DL_RGBCOLOR = 3,
00057    DL_YUVCOLOR = 4
00058 };
00059 
00065 enum DLDataAlignments 
00066 {
00067         DL_1BYTE_ALIGN = 1,
00068         DL_4BYTE_ALIGN = 4
00069 };
00070 
00071 //const static short int        DL_1BYTE_ALIGN = 1;
00072 //const static short int        DL_4BYTE_ALIGN = 4;
00073 
00075 //const static short int  DL_2BINARY = 1;
00076 //const static short int  DL_2GRAY = 2;
00077 //const static short int  DL_2COLOR = 3;
00078 
00079 
00084 enum DLBWColors{
00085    DL_WHITE = 255,
00086    DL_BLACK = 0
00087 };
00088 
00089 
00090 // image flip direction
00091 //const static short int DL_HORIZONTAL = 1;
00092 //const static short int DL_VERTICAL = 2;
00093 
00094 
00095 
00096 //#defineDL_255 0xFF
00097 const static short DL_255 = 0xff;
00098 
00099 //#if defined(_WINDOWS) || defined(__WIN32__) || defined(_Windows)
00100 #if defined (WIN32) || defined(_WINDOWS) || defined(__WIN32__) || defined(_Windows)
00101 const static  char* DL_DIR_SEPARATOR = "\\";
00102 #else 
00103 const static  char* DL_DIR_SEPARATOR    = "/";
00104 #endif
00105 
00106 #endif //_DLCONST_H_

DOCLIB is being developed under contract by a collaboration between:
The Laboratory for Language and Media Processing
Unviersity of Maryland, College Park
and
Booz | Allen | Hamilton

All Rights Reserved, 2003-2007