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