39 #ifdef HAVE_SYS_TYPES_H 40 # include <sys/types.h> 56 extern void *lfind(
const void *,
const void *,
size_t *,
size_t,
57 int (*)(
const void *,
const void *));
63 #ifndef STRIP_SIZE_DEFAULT 64 # define STRIP_SIZE_DEFAULT 8192 67 #define streq(a,b) (strcmp(a,b) == 0) 100 #define TIFF_FILLORDER 0x0003 101 #define TIFF_DIRTYHEADER 0x0004 102 #define TIFF_DIRTYDIRECT 0x0008 103 #define TIFF_BUFFERSETUP 0x0010 104 #define TIFF_CODERSETUP 0x0020 105 #define TIFF_BEENWRITING 0x0040 106 #define TIFF_SWAB 0x0080 107 #define TIFF_NOBITREV 0x0100 108 #define TIFF_MYBUFFER 0x0200 109 #define TIFF_ISTILED 0x0400 110 #define TIFF_MAPPED 0x0800 111 #define TIFF_POSTENCODE 0x1000 112 #define TIFF_INSUBIFD 0x2000 113 #define TIFF_UPSAMPLED 0x4000 114 #define TIFF_STRIPCHOP 0x8000 115 #define TIFF_HEADERONLY 0x10000 187 #define isPseudoTag(t) (t > 0xffff) 189 #define isTiled(tif) (((tif)->tif_flags & TIFF_ISTILED) != 0) 190 #define isMapped(tif) (((tif)->tif_flags & TIFF_MAPPED) != 0) 191 #define isFillOrder(tif, o) (((tif)->tif_flags & (o)) != 0) 192 #define isUpSampled(tif) (((tif)->tif_flags & TIFF_UPSAMPLED) != 0) 193 #define TIFFReadFile(tif, buf, size) \ 194 ((*(tif)->tif_readproc)((tif)->tif_clientdata,buf,size)) 195 #define TIFFWriteFile(tif, buf, size) \ 196 ((*(tif)->tif_writeproc)((tif)->tif_clientdata,buf,size)) 197 #define TIFFSeekFile(tif, off, whence) \ 198 ((*(tif)->tif_seekproc)((tif)->tif_clientdata,(toff_t)(off),whence)) 199 #define TIFFCloseFile(tif) \ 200 ((*(tif)->tif_closeproc)((tif)->tif_clientdata)) 201 #define TIFFGetFileSize(tif) \ 202 ((*(tif)->tif_sizeproc)((tif)->tif_clientdata)) 203 #define TIFFMapFileContents(tif, paddr, psize) \ 204 ((*(tif)->tif_mapproc)((tif)->tif_clientdata,paddr,psize)) 205 #define TIFFUnmapFileContents(tif, addr, size) \ 206 ((*(tif)->tif_unmapproc)((tif)->tif_clientdata,addr,size)) 212 #define ReadOK(tif, buf, size) \ 213 (TIFFReadFile(tif, (tdata_t) buf, (tsize_t)(size)) == (tsize_t)(size)) 216 #define SeekOK(tif, off) \ 217 (TIFFSeekFile(tif, (toff_t) off, SEEK_SET) == (toff_t) off) 220 #define WriteOK(tif, buf, size) \ 221 (TIFFWriteFile(tif, (tdata_t) buf, (tsize_t) size) == (tsize_t) size) 225 #define TIFFhowmany(x, y) ((((uint32)(x))+(((uint32)(y))-1))/((uint32)(y))) 226 #define TIFFhowmany8(x) (((x)&0x07)?((uint32)(x)>>3)+1:(uint32)(x)>>3) 227 #define TIFFroundup(x, y) (TIFFhowmany(x,y)*(y)) 229 #define TIFFmax(A,B) ((A)>(B)?(A):(B)) 230 #define TIFFmin(A,B) ((A)<(B)?(A):(B)) 232 #define TIFFArrayCount(a) (sizeof (a) / sizeof ((a)[0])) 234 #if defined(__cplusplus) 278 #ifdef PACKBITS_SUPPORT 285 #ifdef THUNDER_SUPPORT 306 #ifdef PIXARLOG_SUPPORT 309 #ifdef LOGLUV_SUPPORT 318 #if defined(__cplusplus)
TIFFSeekProc tif_seekproc
TIFFCodeMethod tif_decoderow
TIFFTagMethods tif_tagmethods
int TIFFInitZIP(TIFF *, int)
TIFFErrorHandlerExt _TIFFwarningHandlerExt
int(* TIFFCloseProc)(thandle_t)
TIFFPreMethod tif_predecode
int _TIFFDataSize(TIFFDataType)
void(* TIFFVoidMethod)(TIFF *)
struct client_info TIFFClientInfoLink
tdata_t _TIFFCheckMalloc(TIFF *, size_t, size_t, const char *)
int TIFFFlushData1(TIFF *)
void _TIFFNoPostDecode(TIFF *, tidata_t, tsize_t)
int _TIFFNoTileDecode(TIFF *, tidata_t, tsize_t, tsample_t)
int TIFFInitCCITTFax4(TIFF *, int)
TIFFCodeMethod tif_encodestrip
uint32(* TIFFStripMethod)(TIFF *, uint32)
int _TIFFNoPreCode(TIFF *, tsample_t)
TIFFUnmapFileProc tif_unmapproc
void _TIFFSwab24BitData(TIFF *, tidata_t, tsize_t)
int _TIFFNoStripEncode(TIFF *, tidata_t, tsize_t, tsample_t)
void _TIFFDefaultTileSize(TIFF *, uint32 *, uint32 *)
int TIFFInitCCITTRLEW(TIFF *, int)
TIFFClientInfoLink * tif_clientinfo
TIFFCodeMethod tif_encoderow
int TIFFSetDefaultCompressionState(TIFF *)
int TIFFDefaultDirectory(TIFF *)
int TIFFInitCCITTFax3(TIFF *, int)
int(* TIFFPreMethod)(TIFF *, tsample_t)
void(* TIFFErrorHandler)(const char *, const char *, va_list)
int _TIFFNoStripDecode(TIFF *, tidata_t, tsize_t, tsample_t)
void _TIFFprintAscii(FILE *, const char *)
int TIFFInitDumpMode(TIFF *, int)
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
int TIFFSetCompressionScheme(TIFF *, int)
int TIFFInitCCITTRLE(TIFF *, int)
void _TIFFsetByteArray(void **, void *, uint32)
toff_t(* TIFFSeekProc)(thandle_t, toff_t, int)
int TIFFInitSGILog(TIFF *, int)
void(* TIFFUnmapFileProc)(thandle_t, tdata_t, toff_t)
toff_t(* TIFFSizeProc)(thandle_t)
TIFFErrorHandler _TIFFerrorHandler
TIFFCodeMethod tif_decodestrip
TIFFCodeMethod tif_encodetile
int(* TIFFBoolMethod)(TIFF *)
TIFFCodec _TIFFBuiltinCODECS[]
TIFFMapFileProc tif_mapproc
int TIFFInitThunderScan(TIFF *, int)
TIFFTileMethod tif_deftilesize
TIFFPreMethod tif_preencode
void _TIFFSwab32BitData(TIFF *, tidata_t, tsize_t)
TIFFBoolMethod tif_postencode
tsize_t(* TIFFReadWriteProc)(thandle_t, tdata_t, tsize_t)
TIFFPostMethod tif_postdecode
struct client_info * next
int TIFFInitNeXT(TIFF *, int)
int TIFFInitLZW(TIFF *, int)
TIFFErrorHandler _TIFFwarningHandler
int(* TIFFMapFileProc)(thandle_t, tdata_t *, toff_t *)
TIFFCodeMethod tif_decodetile
void(* TIFFErrorHandlerExt)(thandle_t, const char *, const char *, va_list)
int(* TIFFSeekMethod)(TIFF *, uint32)
uint32 _TIFFDefaultStripSize(TIFF *, uint32)
TIFFFieldInfo ** tif_fieldinfo
TIFFReadWriteProc tif_readproc
void(* TIFFPostMethod)(TIFF *, tidata_t, tsize_t)
void _TIFFSetDefaultCompressionState(TIFF *)
TIFFVoidMethod tif_cleanup
TIFFSizeProc tif_sizeproc
TIFFCloseProc tif_closeproc
void _TIFFsetShortArray(uint16 **, uint16 *, uint32)
void _TIFFsetLongArray(uint32 **, uint32 *, uint32)
int(* TIFFCodeMethod)(TIFF *, tidata_t, tsize_t, tsample_t)
unsigned char tidataval_t
void _TIFFprintAsciiTag(FILE *, const char *, const char *)
TIFFReadWriteProc tif_writeproc
int TIFFInitPackBits(TIFF *, int)
int _TIFFNoSeek(TIFF *, uint32)
int _TIFFNoRowDecode(TIFF *, tidata_t, tsize_t, tsample_t)
void(* TIFFTileMethod)(TIFF *, uint32 *, uint32 *)
void _TIFFSwab16BitData(TIFF *, tidata_t, tsize_t)
const TIFFFieldInfo * tif_foundfield
const long * tif_typemask
void _TIFFsetString(char **, char *)
int TIFFInitPixarLog(TIFF *, int)
int TIFFInitJPEG(TIFF *, int)
void _TIFFsetFloatArray(float **, float *, uint32)
int _TIFFNoTileEncode(TIFF *, tidata_t, tsize_t, tsample_t)
void _TIFFsetDoubleArray(double **, double *, uint32)
const int * tif_typeshift
TIFFBoolMethod tif_setupencode
TIFFStripMethod tif_defstripsize
void _TIFFSwab64BitData(TIFF *, tidata_t, tsize_t)
int _TIFFgetMode(const char *, const char *)
TIFFErrorHandlerExt _TIFFerrorHandlerExt
int _TIFFNoRowEncode(TIFF *, tidata_t, tsize_t, tsample_t)
TIFFBoolMethod tif_setupdecode