]> Creatis software - clitk.git/blob - utilities/CxImage/ximacfg.h
ef89b227098bbc846a0ec98cf7d57e7390780987
[clitk.git] / utilities / CxImage / ximacfg.h
1 #if !defined(__ximaCFG_h)\r
2 #define __ximaCFG_h\r
3 \r
4 /////////////////////////////////////////////////////////////////////////////\r
5 // Protability issues\r
6 #ifdef ntohs\r
7 #  undef ntohs\r
8 #endif\r
9 #ifdef ntohl\r
10 #  undef ntohl\r
11 #endif\r
12 #ifndef _tfopen\r
13 #  define _tfopen fopen\r
14 #endif\r
15 #ifndef LPCTSTR\r
16 #  define LPCTSTR char*\r
17 #endif\r
18 #ifndef HDC\r
19 #  define HDC void*\r
20 #endif\r
21 #ifndef _tcsnicmp\r
22 #  define _tcsnicmp strncasecmp\r
23 #endif\r
24 \r
25 /////////////////////////////////////////////////////////////////////////////\r
26 // CxImage supported features\r
27 #define CXIMAGE_SUPPORT_ALPHA          1\r
28 #define CXIMAGE_SUPPORT_SELECTION      1\r
29 #define CXIMAGE_SUPPORT_TRANSFORMATION 1\r
30 #define CXIMAGE_SUPPORT_DSP            0\r
31 #define CXIMAGE_SUPPORT_LAYERS             1\r
32 #define CXIMAGE_SUPPORT_INTERPOLATION  0\r
33 \r
34 #define CXIMAGE_SUPPORT_DECODE  1\r
35 #define CXIMAGE_SUPPORT_ENCODE  1               //<vho><T.Peck>\r
36 #define CXIMAGE_SUPPORT_WINDOWS 0\r
37 \r
38 /////////////////////////////////////////////////////////////////////////////\r
39 // CxImage supported formats\r
40 #define CXIMAGE_SUPPORT_BMP 0\r
41 #define CXIMAGE_SUPPORT_GIF 1\r
42 #define CXIMAGE_SUPPORT_JPG 0\r
43 #define CXIMAGE_SUPPORT_PNG 0\r
44 #define CXIMAGE_SUPPORT_ICO 0\r
45 #define CXIMAGE_SUPPORT_TIF 0\r
46 #define CXIMAGE_SUPPORT_TGA 0\r
47 #define CXIMAGE_SUPPORT_PCX 0\r
48 #define CXIMAGE_SUPPORT_WBMP 0\r
49 #define CXIMAGE_SUPPORT_WMF 0\r
50 \r
51 #define CXIMAGE_SUPPORT_JP2 0\r
52 #define CXIMAGE_SUPPORT_JPC 0\r
53 #define CXIMAGE_SUPPORT_PGX 0\r
54 #define CXIMAGE_SUPPORT_PNM 0\r
55 #define CXIMAGE_SUPPORT_RAS 0\r
56 \r
57 #define CXIMAGE_SUPPORT_JBG 0           // GPL'd see ../jbig/copying.txt & ../jbig/patents.htm\r
58 \r
59 #define CXIMAGE_SUPPORT_MNG 0\r
60 #define CXIMAGE_SUPPORT_SKA 0\r
61 #define CXIMAGE_SUPPORT_RAW 0\r
62 \r
63 /////////////////////////////////////////////////////////////////////////////\r
64 #define CXIMAGE_MAX_MEMORY 268435456\r
65 \r
66 #define CXIMAGE_DEFAULT_DPI 96\r
67 \r
68 #define CXIMAGE_ERR_NOFILE "null file handler"\r
69 #define CXIMAGE_ERR_NOIMAGE "null image!!!"\r
70 \r
71 #define CXIMAGE_SUPPORT_EXCEPTION_HANDLING 1\r
72 \r
73 /////////////////////////////////////////////////////////////////////////////\r
74 //color to grey mapping <H. Muelner> <jurgene>\r
75 //#define RGB2GRAY(r,g,b) (((b)*114 + (g)*587 + (r)*299)/1000)\r
76 #define RGB2GRAY(r,g,b) (((b)*117 + (g)*601 + (r)*306) >> 10)\r
77 \r
78 #endif\r