tiffconf.vc.h 3.8 KB

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