ReactOS  0.4.15-dev-1397-g19779b3
tiffconf.h
Go to the documentation of this file.
1 /*
2  Configuration defines for installed libtiff.
3  This file maintained for backward compatibility. Do not use definitions
4  from this file in your programs.
5 */
6 
7 #ifndef _TIFFCONF_
8 #define _TIFFCONF_
9 
10 /* The size of a `int', as computed by sizeof. */
11 #define SIZEOF_INT 4
12 
13 /* Signed 8-bit type */
14 #define TIFF_INT8_T signed char
15 
16 /* Unsigned 8-bit type */
17 #define TIFF_UINT8_T unsigned char
18 
19 /* Signed 16-bit type */
20 #define TIFF_INT16_T signed short
21 
22 /* Unsigned 16-bit type */
23 #define TIFF_UINT16_T unsigned short
24 
25 /* Signed 32-bit type formatter */
26 #define TIFF_INT32_FORMAT "%d"
27 
28 /* Signed 32-bit type */
29 #define TIFF_INT32_T signed int
30 
31 /* Unsigned 32-bit type formatter */
32 #define TIFF_UINT32_FORMAT "%u"
33 
34 /* Unsigned 32-bit type */
35 #define TIFF_UINT32_T unsigned int
36 
37 /* Signed 64-bit type formatter */
38 #define TIFF_INT64_FORMAT "%I64d"
39 
40 /* Signed 64-bit type */
41 #ifdef __GNUC__
42 #define TIFF_INT64_T signed long long
43 #else
44 #define TIFF_INT64_T signed __int64
45 #endif
46 
47 /* Unsigned 64-bit type formatter */
48 #define TIFF_UINT64_FORMAT "%I64u"
49 
50 /* Unsigned 64-bit type */
51 #ifdef __GNUC__
52 #define TIFF_UINT64_T unsigned long long
53 #else
54 #define TIFF_UINT64_T unsigned __int64
55 #endif
56 
57 #if _WIN64
58 /*
59  Windows 64-bit build
60 */
61 
62 /* Signed size type */
63 # define TIFF_SSIZE_T TIFF_INT64_T
64 
65 #else
66 /*
67  Windows 32-bit build
68 */
69 
70 /* Signed size type */
71 # define TIFF_SSIZE_T signed int
72 
73 #endif
74 
75 /* Compatibility stuff. */
76 
77 /* Define as 0 or 1 according to the floating point format suported by the
78  machine */
79 #define HAVE_IEEEFP 1
80 
81 /* Set the native cpu bit order (FILLORDER_LSB2MSB or FILLORDER_MSB2LSB) */
82 #define HOST_FILLORDER FILLORDER_LSB2MSB
83 
84 /* Native cpu byte order: 1 if big-endian (Motorola) or 0 if little-endian
85  (Intel) */
86 #define HOST_BIGENDIAN 0
87 
88 /* Support CCITT Group 3 & 4 algorithms */
89 #define CCITT_SUPPORT 1
90 
91 /* Support JPEG compression (requires IJG JPEG library) */
92 /* #undef JPEG_SUPPORT */
93 
94 /* Support JBIG compression (requires JBIG-KIT library) */
95 /* #undef JBIG_SUPPORT */
96 
97 /* Support LogLuv high dynamic range encoding */
98 #define LOGLUV_SUPPORT 1
99 
100 /* Support LZW algorithm */
101 #define LZW_SUPPORT 1
102 
103 /* Support NeXT 2-bit RLE algorithm */
104 #define NEXT_SUPPORT 1
105 
106 /* Support Old JPEG compresson (read contrib/ojpeg/README first! Compilation
107  fails with unpatched IJG JPEG library) */
108 /* #undef OJPEG_SUPPORT */
109 
110 /* Support Macintosh PackBits algorithm */
111 #define PACKBITS_SUPPORT 1
112 
113 /* Support Pixar log-format algorithm (requires Zlib) */
114  #define PIXARLOG_SUPPORT 1
115 
116 /* Support ThunderScan 4-bit RLE algorithm */
117 #define THUNDER_SUPPORT 1
118 
119 /* Support Deflate compression */
120 #define ZIP_SUPPORT 1
121 
122 /* Support strip chopping (whether or not to convert single-strip uncompressed
123  images to mutiple strips of ~8Kb to reduce memory usage) */
124 #define STRIPCHOP_DEFAULT TIFF_STRIPCHOP
125 
126 /* Enable SubIFD tag (330) support */
127 #define SUBIFD_SUPPORT 1
128 
129 /* Treat extra sample as alpha (default enabled). The RGBA interface will
130  treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many
131  packages produce RGBA files but don't mark the alpha properly. */
132 #define DEFAULT_EXTRASAMPLE_AS_ALPHA 1
133 
134 /* Pick up YCbCr subsampling info from the JPEG data stream to support files
135  lacking the tag (default enabled). */
136 #define CHECK_JPEG_YCBCR_SUBSAMPLING 1
137 
138 /* Support MS MDI magic number files as TIFF */
139 #define MDI_SUPPORT 1
140 
141 /*
142  * Feature support definitions.
143  * XXX: These macros are obsoleted. Don't use them in your apps!
144  * Macros stays here for backward compatibility and should be always defined.
145  */
146 #define COLORIMETRY_SUPPORT
147 #define YCBCR_SUPPORT
148 #define CMYK_SUPPORT
149 #define ICC_SUPPORT
150 #define PHOTOSHOP_SUPPORT
151 #define IPTC_SUPPORT
152 
153 #endif /* _TIFFCONF_ */
154 /*
155  * Local Variables:
156  * mode: c
157  * c-basic-offset: 8
158  * fill-column: 78
159  * End:
160  */