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