1 /*
2   Configuration defines for Qt.
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 #include <qglobal.h>
11 
12 /* Signed 16-bit type */
13 #define TIFF_INT16_T qint16
14 
15 /* Signed 32-bit type */
16 #define TIFF_INT32_T qint32
17 
18 /* Signed 64-bit type */
19 #define TIFF_INT64_T qint64
20 
21 /* Signed 8-bit type */
22 #define TIFF_INT8_T qint8
23 
24 /* Unsigned 16-bit type */
25 #define TIFF_UINT16_T quint16
26 
27 /* Unsigned 32-bit type */
28 #define TIFF_UINT32_T quint32
29 
30 /* Unsigned 64-bit type */
31 #define TIFF_UINT64_T quint64
32 
33 /* Unsigned 8-bit type */
34 #define TIFF_UINT8_T quint8
35 
36 /* Signed size type */
37 #if QT_POINTER_SIZE == 4
38 #define TIFF_SSIZE_T qint32
39 #else
40 #define TIFF_SSIZE_T qint64
41 #endif
42 
43 /* Pointer difference type */
44 #define TIFF_PTRDIFF_T ptrdiff_t
45 
46 /* Define to 1 if the system has the type `int16'. */
47 /* #undef HAVE_INT16 */
48 
49 /* Define to 1 if the system has the type `int32'. */
50 /* #undef HAVE_INT32 */
51 
52 /* Define to 1 if the system has the type `int8'. */
53 /* #undef HAVE_INT8 */
54 
55 /* Compatibility stuff. */
56 
57 /* Define as 0 or 1 according to the floating point format suported by the
58    machine */
59 #define HAVE_IEEEFP 1
60 
61 /* Set the native cpu bit order (FILLORDER_LSB2MSB or FILLORDER_MSB2LSB) */
62 #define HOST_FILLORDER FILLORDER_LSB2MSB
63 
64 /* Native cpu byte order: 1 if big-endian (Motorola) or 0 if little-endian
65    (Intel) */
66 #if (Q_BYTE_ORDER == Q_BIG_ENDIAN)
67 #define HOST_BIGENDIAN 1
68 #else
69 #define HOST_BIGENDIAN 0
70 #endif
71 
72 /* Support CCITT Group 3 & 4 algorithms */
73 #define CCITT_SUPPORT 1
74 
75 /* Support JPEG compression (requires IJG JPEG library) */
76 /* #undef JPEG_SUPPORT */
77 
78 /* Support LogLuv high dynamic range encoding */
79 #define LOGLUV_SUPPORT 1
80 
81 /* Support LZW algorithm */
82 #define LZW_SUPPORT 1
83 
84 /* Support NeXT 2-bit RLE algorithm */
85 #define NEXT_SUPPORT 1
86 
87 /* Support Old JPEG compresson (read contrib/ojpeg/README first! Compilation
88    fails with unpatched IJG JPEG library) */
89 /* #undef OJPEG_SUPPORT */
90 
91 /* Support Macintosh PackBits algorithm */
92 #define PACKBITS_SUPPORT 1
93 
94 /* Support Pixar log-format algorithm (requires Zlib) */
95 #define PIXARLOG_SUPPORT 1
96 
97 /* Support ThunderScan 4-bit RLE algorithm */
98 #define THUNDER_SUPPORT 1
99 
100 /* Support Deflate compression */
101 #define ZIP_SUPPORT 1
102 
103 /* Support strip chopping (whether or not to convert single-strip uncompressed
104    images to mutiple strips of ~8Kb to reduce memory usage) */
105 #define STRIPCHOP_DEFAULT TIFF_STRIPCHOP
106 
107 /* Enable SubIFD tag (330) support */
108 #define SUBIFD_SUPPORT 1
109 
110 /* Treat extra sample as alpha (default enabled). The RGBA interface will
111    treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many
112    packages produce RGBA files but don't mark the alpha properly. */
113 #define DEFAULT_EXTRASAMPLE_AS_ALPHA 1
114 
115 /* Pick up YCbCr subsampling info from the JPEG data stream to support files
116    lacking the tag (default enabled). */
117 #define CHECK_JPEG_YCBCR_SUBSAMPLING 1
118 
119 /* Support MS MDI magic number files as TIFF */
120 #define MDI_SUPPORT 1
121 
122 /*
123  * Feature support definitions.
124  * XXX: These macros are obsoleted. Don't use them in your apps!
125  * Macros stays here for backward compatibility and should be always defined.
126  */
127 #define COLORIMETRY_SUPPORT
128 #define YCBCR_SUPPORT
129 #define CMYK_SUPPORT
130 #define ICC_SUPPORT
131 #define PHOTOSHOP_SUPPORT
132 #define IPTC_SUPPORT
133 
134 #endif /* _TIFFCONF_ */
135