* /harbour/* -> /*
* moved whole Harbour source tree one level up to
avoid single 'harbour' top dir
185 lines
4.1 KiB
C
185 lines
4.1 KiB
C
/*
|
|
Configuration defines for installed libtiff.
|
|
This file maintained for backward compatibility. Do not use definitions
|
|
from this file in your programs.
|
|
*/
|
|
|
|
#ifndef _TIFFCONF_
|
|
#define _TIFFCONF_
|
|
|
|
#include "hbdefs.h"
|
|
#include "hb_io.h"
|
|
|
|
/* Signed 16-bit type */
|
|
#define TIFF_INT16_T HB_I16
|
|
|
|
/* Signed 32-bit type */
|
|
#define TIFF_INT32_T HB_I32
|
|
|
|
/* Signed 64-bit type */
|
|
#define TIFF_INT64_T HB_I64
|
|
|
|
/* Signed 8-bit type */
|
|
#define TIFF_INT8_T HB_I8
|
|
|
|
/* Unsigned 16-bit type */
|
|
#define TIFF_UINT16_T HB_U16
|
|
|
|
/* Unsigned 32-bit type */
|
|
#define TIFF_UINT32_T HB_U32
|
|
|
|
/* Unsigned 64-bit type */
|
|
#define TIFF_UINT64_T HB_U64
|
|
|
|
/* Unsigned 8-bit type */
|
|
#define TIFF_UINT8_T HB_U8
|
|
|
|
/* Signed size type */
|
|
#define TIFF_SSIZE_T HB_ISIZ
|
|
|
|
/* Pointer difference type */
|
|
#define TIFF_PTRDIFF_T HB_PTRDIFF
|
|
|
|
/* Signed 32-bit type formatter */
|
|
#define TIFF_INT32_FORMAT "%d"
|
|
|
|
/* Unsigned 32-bit type formatter */
|
|
#define TIFF_UINT32_FORMAT "%u"
|
|
|
|
/* Signed 64-bit type formatter */
|
|
#define TIFF_INT64_FORMAT "%" HB_PF64 "d"
|
|
|
|
/* Unsigned 64-bit type formatter */
|
|
#define TIFF_UINT64_FORMAT "%" HB_PF64 "u"
|
|
|
|
/* Signed size type formatter */
|
|
#define TIFF_SSIZE_FORMAT "%" HB_PFS "d"
|
|
|
|
/* file handler */
|
|
#define TIFF_FILE_HANDLE HB_FHANDLE
|
|
|
|
/* Define to 1 if the system has the type `int16'. */
|
|
#define HAVE_INT16
|
|
|
|
/* Define to 1 if the system has the type `int32'. */
|
|
#define HAVE_INT32
|
|
|
|
/* Define to 1 if the system has the type `int8'. */
|
|
#define HAVE_INT8
|
|
|
|
/* Compatibility stuff. */
|
|
|
|
/* Define as 0 or 1 according to the floating point format suported by the
|
|
machine */
|
|
#undef HAVE_IEEEFP
|
|
|
|
/* Set the native cpu bit order (FILLORDER_LSB2MSB or FILLORDER_MSB2LSB) */
|
|
#if defined( HB_BIG_ENDIAN )
|
|
#define HOST_FILLORDER FILLORDER_LSB2MSB
|
|
#elif defined( HB_LITTLE_ENDIAN )
|
|
#define HOST_FILLORDER FILLORDER_MSB2LSB
|
|
#else
|
|
#undef HOST_FILLORDER
|
|
#endif
|
|
|
|
/* Native cpu byte order: 1 if big-endian (Motorola) or 0 if little-endian
|
|
(Intel) */
|
|
#if defined( HB_BIG_ENDIAN )
|
|
#define HOST_BIGENDIAN
|
|
#endif
|
|
|
|
#if 0
|
|
/* Support CCITT Group 3 & 4 algorithms */
|
|
#undef CCITT_SUPPORT
|
|
#endif
|
|
|
|
#if 0
|
|
/* Support JPEG compression (requires IJG JPEG library) */
|
|
#undef JPEG_SUPPORT
|
|
#endif
|
|
|
|
/* Support JBIG compression (requires JBIG-KIT library) */
|
|
#undef JBIG_SUPPORT
|
|
|
|
/* Support LogLuv high dynamic range encoding */
|
|
#undef LOGLUV_SUPPORT
|
|
|
|
#if 0
|
|
/* Support LZW algorithm */
|
|
#undef LZW_SUPPORT
|
|
#endif
|
|
|
|
#if 0
|
|
/* Support NeXT 2-bit RLE algorithm */
|
|
#undef NEXT_SUPPORT
|
|
#endif
|
|
|
|
/* Support Old JPEG compresson (read contrib/ojpeg/README first! Compilation
|
|
fails with unpatched IJG JPEG library) */
|
|
#undef OJPEG_SUPPORT
|
|
|
|
/* Support Macintosh PackBits algorithm */
|
|
#undef PACKBITS_SUPPORT
|
|
|
|
/* Support Pixar log-format algorithm (requires Zlib) */
|
|
#undef PIXARLOG_SUPPORT
|
|
|
|
/* Support ThunderScan 4-bit RLE algorithm */
|
|
#undef THUNDER_SUPPORT
|
|
|
|
#if 0
|
|
/* Support Deflate compression */
|
|
#undef ZIP_SUPPORT
|
|
#endif
|
|
|
|
/* Support strip chopping (whether or not to convert single-strip uncompressed
|
|
images to mutiple strips of ~8Kb to reduce memory usage) */
|
|
#undef STRIPCHOP_DEFAULT
|
|
|
|
/* Enable SubIFD tag (330) support */
|
|
#undef SUBIFD_SUPPORT
|
|
|
|
/* Treat extra sample as alpha (default enabled). The RGBA interface will
|
|
treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many
|
|
packages produce RGBA files but don't mark the alpha properly. */
|
|
#undef DEFAULT_EXTRASAMPLE_AS_ALPHA
|
|
|
|
/* Pick up YCbCr subsampling info from the JPEG data stream to support files
|
|
lacking the tag (default enabled). */
|
|
#undef CHECK_JPEG_YCBCR_SUBSAMPLING
|
|
|
|
/* Support MS MDI magic number files as TIFF */
|
|
#undef MDI_SUPPORT
|
|
|
|
/*
|
|
* Feature support definitions.
|
|
* XXX: These macros are obsoleted. Don't use them in your apps!
|
|
* Macros stays here for backward compatibility and should be always defined.
|
|
*/
|
|
#define COLORIMETRY_SUPPORT
|
|
#define YCBCR_SUPPORT
|
|
#define CMYK_SUPPORT
|
|
#define ICC_SUPPORT
|
|
#define PHOTOSHOP_SUPPORT
|
|
#define IPTC_SUPPORT
|
|
|
|
#if ! defined( HB_OS_DARWIN )
|
|
#ifndef O_RDONLY
|
|
#define O_RDONLY 0
|
|
#endif
|
|
#ifndef O_RDWR
|
|
#define O_RDWR 2
|
|
#endif
|
|
#ifndef O_WRONLY
|
|
#define O_WRONLY 000001
|
|
#endif
|
|
#ifndef O_CREAT
|
|
#define O_CREAT 000100
|
|
#endif
|
|
#ifndef O_TRUNC
|
|
#define O_TRUNC 001000
|
|
#endif
|
|
#endif
|
|
|
|
#endif /* _TIFFCONF_ */
|