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