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