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