00001 #ifndef _DLCONST_H_
00002 #define _DLCONST_H_
00003
00004 #include <string>
00005
00006 using namespace std;
00007
00008
00009
00010
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
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
00022
00023
00024
00025
00026
00027
00028
00029
00035 enum DLBitDepths
00036 {
00037 DL_BITDEPTH_1 = 1,
00038 DL_BITDEPTH_8 = 8,
00039 DL_BITDEPTH_24 = 24
00040 };
00041
00042
00043
00044
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
00072
00073
00075
00076
00077
00078
00079
00084 enum DLBWColors{
00085 DL_WHITE = 255,
00086 DL_BLACK = 0
00087 };
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097 const static short DL_255 = 0xff;
00098
00099
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_