tiffconf.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. /* clang-format off */
  7. /* clang-format disabled because CMake scripts are very sensitive to the
  8. * formatting of this file. configure_file variables of type "" are
  9. * modified by clang-format and won't be substituted.
  10. */
  11. #ifndef _TIFFCONF_
  12. #define _TIFFCONF_
  13. #include <stddef.h>
  14. #include <stdint.h>
  15. #include <inttypes.h>
  16. /* Signed 16-bit type */
  17. #define TIFF_INT16_T int16_t
  18. /* Signed 32-bit type */
  19. #define TIFF_INT32_T int32_t
  20. /* Signed 64-bit type */
  21. #define TIFF_INT64_T int64_t
  22. /* Signed 8-bit type */
  23. #define TIFF_INT8_T int8_t
  24. /* Unsigned 16-bit type */
  25. #define TIFF_UINT16_T uint16_t
  26. /* Unsigned 32-bit type */
  27. #define TIFF_UINT32_T uint32_t
  28. /* Unsigned 64-bit type */
  29. #define TIFF_UINT64_T uint64_t
  30. /* Unsigned 8-bit type */
  31. #define TIFF_UINT8_T uint8_t
  32. /* Signed size type */
  33. #define TIFF_SSIZE_T int64_t
  34. /* Compatibility stuff. */
  35. /* Define as 0 or 1 according to the floating point format supported by the
  36. machine */
  37. #define HAVE_IEEEFP 1
  38. /* The concept of HOST_FILLORDER is broken. Since libtiff 4.5.1
  39. * this macro will always be hardcoded to FILLORDER_LSB2MSB on all
  40. * architectures, to reflect past long behavior of doing so on x86 architecture.
  41. * Note however that the default FillOrder used by libtiff is FILLORDER_MSB2LSB,
  42. * as mandated per the TIFF specification.
  43. * The influence of HOST_FILLORDER is only when passing the 'H' mode in
  44. * TIFFOpen().
  45. * You should NOT rely on this macro to decide the CPU endianness!
  46. * This macro will be removed in libtiff 4.6
  47. */
  48. #define HOST_FILLORDER FILLORDER_LSB2MSB
  49. /* Native cpu byte order: 1 if big-endian (Motorola) or 0 if little-endian
  50. (Intel) */
  51. #define HOST_BIGENDIAN 0
  52. /* Support CCITT Group 3 & 4 algorithms */
  53. #define CCITT_SUPPORT 1
  54. /* Support JPEG compression (requires IJG JPEG library) */
  55. #define JPEG_SUPPORT 1
  56. /* Support JBIG compression (requires JBIG-KIT library) */
  57. /* #undef JBIG_SUPPORT */
  58. /* Support LERC compression */
  59. /* #undef LERC_SUPPORT */
  60. /* Support LogLuv high dynamic range encoding */
  61. #define LOGLUV_SUPPORT 1
  62. /* Support LZW algorithm */
  63. #define LZW_SUPPORT 1
  64. /* Support NeXT 2-bit RLE algorithm */
  65. #define NEXT_SUPPORT 1
  66. /* Support Old JPEG compresson (read contrib/ojpeg/README first! Compilation
  67. fails with unpatched IJG JPEG library) */
  68. #define OJPEG_SUPPORT 1
  69. /* Support Macintosh PackBits algorithm */
  70. #define PACKBITS_SUPPORT 1
  71. /* Support Pixar log-format algorithm (requires Zlib) */
  72. #define PIXARLOG_SUPPORT 1
  73. /* Support ThunderScan 4-bit RLE algorithm */
  74. #define THUNDER_SUPPORT 1
  75. /* Support Deflate compression */
  76. #define ZIP_SUPPORT 1
  77. /* Support libdeflate enhanced compression */
  78. /* #undef LIBDEFLATE_SUPPORT */
  79. /* Support strip chopping (whether or not to convert single-strip uncompressed
  80. images to multiple strips of ~8Kb to reduce memory usage) */
  81. #define STRIPCHOP_DEFAULT TIFF_STRIPCHOP
  82. /* Enable SubIFD tag (330) support */
  83. #define SUBIFD_SUPPORT 1
  84. /* Treat extra sample as alpha (default enabled). The RGBA interface will
  85. treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many
  86. packages produce RGBA files but don't mark the alpha properly. */
  87. #define DEFAULT_EXTRASAMPLE_AS_ALPHA 1
  88. /* Pick up YCbCr subsampling info from the JPEG data stream to support files
  89. lacking the tag (default enabled). */
  90. #define CHECK_JPEG_YCBCR_SUBSAMPLING 1
  91. /* Support MS MDI magic number files as TIFF */
  92. #define MDI_SUPPORT 1
  93. /*
  94. * Feature support definitions.
  95. * XXX: These macros are obsoleted. Don't use them in your apps!
  96. * Macros stays here for backward compatibility and should be always defined.
  97. */
  98. #define COLORIMETRY_SUPPORT
  99. #define YCBCR_SUPPORT
  100. #define CMYK_SUPPORT
  101. #define ICC_SUPPORT
  102. #define PHOTOSHOP_SUPPORT
  103. #define IPTC_SUPPORT
  104. #endif /* _TIFFCONF_ */
  105. /* clang-format on */