2
0

tiffconf.vc.h 3.9 KB

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