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