Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/libtiff-src/tiffconf.h

raw
1 /* libtiff/tiffconf.h. Compiled from tiffconf.h.in and that of the libtiff v. 4.0.8 manually. */
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
8 /* clang-format off */
9 /* clang-format disabled because CMake scripts are very sensitive to the
10 * formatting of this file. configure_file variables of type "@VAR@" are
11 * modified by clang-format and won't be substituted.
12 */
13
14 #ifndef _TIFFCONF_
15 #define _TIFFCONF_
16
17 #define DEBUG
18 #undef NDEBUG
19
20 #include <stddef.h>
21 #include <stdint.h>
22 #include <inttypes.h>
23
24
25 /* Define to 1 if the system has the type `int16'. */
26 /* #undef HAVE_INT16 */
27
28 /* Define to 1 if the system has the type `int32'. */
29 /* #undef HAVE_INT32 */
30
31 /* Define to 1 if the system has the type `int8'. */
32 /* #undef HAVE_INT8 */
33
34 /* Signed 16-bit type */
35 #define int16_t signed short
36
37 /* Signed 32-bit type */
38 #define int32_t signed int
39
40 /* Signed 64-bit type */
41 #undef int64_t
42 #ifdef __MINGW32__
43 #define int64_t signed __int64
44 #else
45 #define int64_t long long signed int
46 #endif
47
48 /* Signed 8-bit type */
49 #define int8_t signed char
50
51 /* Unsigned 16-bit type */
52 #define uint16_t unsigned short
53
54 /* Unsigned 32-bit type */
55 #define uint32_t unsigned int
56
57 /* Unsigned 64-bit type */
58 #undef uint64_t
59 #ifdef __MINGW32__
60 #define uint64_t unsigned __int64
61 #else
62 #define uint64_t long long unsigned int
63 #endif
64
65 /* Unsigned 8-bit type */
66 #define uint8_t unsigned char
67
68 /* Signed size type */
69 #undef TIFF_SSIZE_T
70 #ifdef _WIN64
71 #define TIFF_SSIZE_T long long signed int
72 #else
73 #define TIFF_SSIZE_T long signed int
74 #endif
75
76 /* Pointer difference type */
77 #define TIFF_PTRDIFF_T ptrdiff_t
78
79 /* Compatibility stuff. */
80
81 /* Define as 0 or 1 according to the floating point format supported by the
82 machine */
83 #define HAVE_IEEEFP 1
84
85 /* The concept of HOST_FILLORDER is broken. Since libtiff 4.5.1
86 * this macro will always be hardcoded to FILLORDER_LSB2MSB on all
87 * architectures, to reflect past long behavior of doing so on x86 architecture.
88 * Note however that the default FillOrder used by libtiff is FILLORDER_MSB2LSB,
89 * as mandated per the TIFF specification.
90 * The influence of HOST_FILLORDER is only when passing the 'H' mode in
91 * TIFFOpen().
92 * You should NOT rely on this macro to decide the CPU endianness!
93 * This macro will be removed in libtiff 4.6
94 */
95 #define HOST_FILLORDER FILLORDER_LSB2MSB
96
97 /* Native cpu byte order: 1 if big-endian (Motorola) or 0 if little-endian
98 (Intel) */
99 #define HOST_BIGENDIAN 0
100
101 /* Support CCITT Group 3 & 4 algorithms */
102 #define CCITT_SUPPORT 1
103
104 /* Support JPEG compression (requires IJG JPEG library) */
105 /* #undef JPEG_SUPPORT */
106
107 /* Support JBIG compression (requires JBIG-KIT library) */
108 /* #undef JBIG_SUPPORT */
109
110 /* Support LERC compression */
111 #undef LERC_SUPPORT
112
113 /* Support LogLuv high dynamic range encoding */
114 #define LOGLUV_SUPPORT 1
115
116 /* Support LZW algorithm */
117 #define LZW_SUPPORT 1
118
119 /* Support NeXT 2-bit RLE algorithm */
120 #define NEXT_SUPPORT 1
121
122 /* Support Old JPEG compresson (read contrib/ojpeg/README first! Compilation
123 fails with unpatched IJG JPEG library) */
124 /* #undef OJPEG_SUPPORT */
125
126 /* Support Macintosh PackBits algorithm */
127 #define PACKBITS_SUPPORT 1
128
129 /* Support Pixar log-format algorithm (requires Zlib) */
130 /* #undef PIXARLOG_SUPPORT */
131
132 /* Support ThunderScan 4-bit RLE algorithm */
133 #define THUNDER_SUPPORT 1
134
135 /* Support Deflate compression */
136 #define ZIP_SUPPORT 1
137
138 /* Support libdeflate enhanced compression */
139 #undef LIBDEFLATE_SUPPORT
140
141 /* Support strip chopping (whether or not to convert single-strip uncompressed
142 images to multiple strips of ~8Kb to reduce memory usage) */
143 #define STRIPCHOP_DEFAULT TIFF_STRIPCHOP
144
145 /* Enable SubIFD tag (330) support */
146 #define SUBIFD_SUPPORT 1
147
148 /* Treat extra sample as alpha (default enabled). The RGBA interface will
149 treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many
150 packages produce RGBA files but don't mark the alpha properly. */
151 #define DEFAULT_EXTRASAMPLE_AS_ALPHA 1
152
153 /* Pick up YCbCr subsampling info from the JPEG data stream to support files
154 lacking the tag (default enabled). */
155 #define CHECK_JPEG_YCBCR_SUBSAMPLING 1
156
157 /* Support MS MDI magic number files as TIFF */
158 #define MDI_SUPPORT 1
159
160 /*
161 * Feature support definitions.
162 * XXX: These macros are obsoleted. Don't use them in your apps!
163 * Macros stays here for backward compatibility and should be always defined.
164 */
165 #define COLORIMETRY_SUPPORT
166 #define YCBCR_SUPPORT
167 #define CMYK_SUPPORT
168 #define ICC_SUPPORT
169 #define PHOTOSHOP_SUPPORT
170 #define IPTC_SUPPORT
171
172 #endif /* _TIFFCONF_ */
173
174 /* clang-format on */