• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* libtiff/tiffconf.h.  Generated by configure.  */
2 /*
3   Configuration defines for installed libtiff.
4   This file maintained for backward compatibility. Do not use definitions
5   from this file in your programs.
6 */
7 #ifndef _TIFFCONF_
8 #define _TIFFCONF_
9 
10 #include "core/fxcrt/fx_system.h"
11 
12 //NOTE: The tiff codec requires an ANSI C compiler environment for building and
13 //		presumes an ANSI C environment for use.
14 
15 # define HAVE_SYS_TYPES_H 1
16 # define HAVE_FCNTL_H 1
17 
18 /* Compatibility stuff. */
19 
20 /* Define to 1 if you have the <assert.h> header file. */
21 #define HAVE_ASSERT_H 1
22 
23 /* Define as 0 or 1 according to the floating point format suported by the
24    machine */
25 #define HAVE_IEEEFP 1
26 
27 /* Define to 1 if you have the <string.h> header file. */
28 //#define HAVE_STRING_H 1
29 //fx_system.h already include the string.h in ANSIC
30 
31 /* Define to 1 if you have the <search.h> header file. */
32 #if _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_ && _MSC_VER >= 1900
33 // search.h is always available in VS 2015 and above, and may be
34 // available in earlier versions.
35 #define HAVE_SEARCH_H 1
36 #endif
37 
38 /* The size of a `int'. */
39 /* According typedef int  int32_t; in the fx_system.h*/
40 #define SIZEOF_INT 4
41 
42 /* Sunliang.Liu 20110325. We should config the correct long size for tif
43    fax4decode optimize in tif_fax3.c  -- Linux64 decode issue.
44    TESTDOC: Bug #23661 - z1.tif. */
45 #if _FX_CPU_ == _FX_X64_ || _FX_CPU_ == _FX_IA64_
46 /* The size of `unsigned long', as computed by sizeof. */
47 #define SIZEOF_UNSIGNED_LONG 8
48 #else
49 #define SIZEOF_UNSIGNED_LONG 4
50 #endif
51 
52 /* The size of void*. */
53 #ifdef __LP64__
54 #define SIZEOF_VOIDP 8
55 #else
56 #define SIZEOF_VOIDP 4
57 #endif
58 
59 /* Signed 8-bit type */
60 #define TIFF_INT8_T signed char
61 
62 /* Unsigned 8-bit type */
63 #define TIFF_UINT8_T unsigned char
64 
65 /* Signed 16-bit type */
66 #define TIFF_INT16_T signed short
67 
68 /* Unsigned 16-bit type */
69 #define TIFF_UINT16_T unsigned short
70 
71 /* Signed 32-bit type */
72 #define TIFF_INT32_T signed int
73 
74 /* Unsigned 32-bit type */
75 #define TIFF_UINT32_T unsigned int
76 
77 /* Signed 32-bit type formatter */
78 #define TIFF_INT32_FORMAT "%d"
79 
80 /* Unsigned 32-bit type formatter */
81 #define TIFF_UINT32_FORMAT "%u"
82 
83 #ifdef _MSC_VER		// windows
84 
85 /* Signed 64-bit type formatter */
86 #define TIFF_INT64_FORMAT "%I64d"
87 
88 /* Unsigned 64-bit type formatter */
89 #define TIFF_UINT64_FORMAT "%I64u"
90 
91 /* Signed 64-bit type */
92 #define TIFF_INT64_T signed __int64
93 
94 /* Unsigned 64-bit type */
95 #define TIFF_UINT64_T unsigned __int64
96 
97 #else						// linux/unix
98 
99 #if 0 //_FX_CPU_ == _FX_X64_	// linux/unix 64
100 
101 /* Signed 64-bit type formatter */
102 #define TIFF_INT64_FORMAT "%ld"
103 
104 /* Unsigned 64-bit type formatter */
105 #define TIFF_UINT64_FORMAT "%lu"
106 
107 /* Signed 64-bit type */
108 #define TIFF_INT64_T signed long
109 
110 #else						// linux/unix 32
111 
112 /* Signed 64-bit type formatter */
113 #define TIFF_INT64_FORMAT "%lld"
114 
115 /* Unsigned 64-bit type formatter */
116 #define TIFF_UINT64_FORMAT "%llu"
117 
118 /* Signed 64-bit type */
119 #define TIFF_INT64_T signed long long
120 
121 #endif						// end _FX_CPU_
122 
123 /* Unsigned 64-bit type */
124 #define TIFF_UINT64_T unsigned long long
125 
126 #endif
127 
128 
129 /* Signed size type */
130 #ifdef _MSC_VER
131 
132 #if defined(_WIN64)
133 #define TIFF_SSIZE_T signed __int64
134 #else
135 #define TIFF_SSIZE_T signed int
136 #endif
137 
138 #else
139 
140 #define TIFF_SSIZE_T signed long
141 
142 #endif
143 
144 /* Signed size type formatter */
145 #if defined(_WIN64)
146 #define TIFF_SSIZE_FORMAT "%I64d"
147 #else
148 #define TIFF_SSIZE_FORMAT "%ld"
149 #endif
150 
151 /* Pointer difference type */
152 #ifdef _MSC_VER
153 #define TIFF_PTRDIFF_T long
154 #else
155 #define TIFF_PTRDIFF_T ptrdiff_t
156 #endif
157 
158 /* Signed 64-bit type */
159 /*#define TIFF_INT64_T signed __int64*/
160 
161 /* Unsigned 64-bit type */
162 /*#define TIFF_UINT64_T unsigned __int64*/
163 
164 /* Define to `__inline__' or `__inline' if that's what the C compiler
165    calls it, or to nothing if 'inline' is not supported under any name.  */
166 #ifndef __cplusplus
167 # ifndef inline
168 #  define inline __inline
169 # endif
170 #endif
171 
172 #define lfind _lfind
173 
174 #define BSDTYPES
175 
176 /* Set the native cpu bit order (FILLORDER_LSB2MSB or FILLORDER_MSB2LSB) */
177 #define HOST_FILLORDER FILLORDER_LSB2MSB
178 
179 /* Native cpu byte order: 1 if big-endian (Motorola) or 0 if little-endian
180    (Intel) */
181 #if _FX_ENDIAN_ == _FX_BIG_ENDIAN_
182 # define HOST_BIGENDIAN 1
183 #else
184 # define HOST_BIGENDIAN 0
185 #endif
186 
187 /* Support CCITT Group 3 & 4 algorithms */
188 #define CCITT_SUPPORT 1
189 
190 /* Support JPEG compression (requires IJG JPEG library) */
191 #define JPEG_SUPPORT 1
192 
193 /* Support LogLuv high dynamic range encoding */
194 #define LOGLUV_SUPPORT 1
195 
196 /* Support LZW algorithm */
197 #define LZW_SUPPORT 1
198 
199 /* Support NeXT 2-bit RLE algorithm */
200 #define NEXT_SUPPORT 1
201 
202 /* Support Old JPEG compresson (read contrib/ojpeg/README first! Compilation
203    fails with unpatched IJG JPEG library) */
204 #define  OJPEG_SUPPORT	1
205 
206 /* Support Macintosh PackBits algorithm */
207 #define PACKBITS_SUPPORT 1
208 
209 /* Support Pixar log-format algorithm (requires Zlib) */
210 #define PIXARLOG_SUPPORT 1
211 
212 /* Support ThunderScan 4-bit RLE algorithm */
213 #define THUNDER_SUPPORT 1
214 
215 /* Support Deflate compression */
216 #define ZIP_SUPPORT 1
217 
218 /* Support strip chopping (whether or not to convert single-strip uncompressed
219    images to mutiple strips of ~8Kb to reduce memory usage) */
220 #define STRIPCHOP_DEFAULT TIFF_STRIPCHOP
221 
222 /* Enable SubIFD tag (330) support */
223 #define SUBIFD_SUPPORT 1
224 
225 /* Treat extra sample as alpha (default enabled). The RGBA interface will
226    treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many
227    packages produce RGBA files but don't mark the alpha properly. */
228 #define DEFAULT_EXTRASAMPLE_AS_ALPHA 1
229 
230 /* Pick up YCbCr subsampling info from the JPEG data stream to support files
231    lacking the tag (default enabled). */
232 #define CHECK_JPEG_YCBCR_SUBSAMPLING 1
233 
234 /* Support MS MDI magic number files as TIFF */
235 #define MDI_SUPPORT 1
236 
237 /*
238  * Feature support definitions.
239  * XXX: These macros are obsoleted. Don't use them in your apps!
240  * Macros stays here for backward compatibility and should be always defined.
241  */
242 #define COLORIMETRY_SUPPORT
243 #define YCBCR_SUPPORT
244 #define CMYK_SUPPORT
245 #define ICC_SUPPORT
246 #define PHOTOSHOP_SUPPORT
247 #define IPTC_SUPPORT
248 
249 #endif /* _TIFFCONF_ */
250