roentgen b75cab
/* $Id: tiffiop.h,v 1.84 2012-05-30 01:50:17 fwarmerdam Exp $ */
roentgen b75cab
roentgen b75cab
/*
roentgen b75cab
 * Copyright (c) 1988-1997 Sam Leffler
roentgen b75cab
 * Copyright (c) 1991-1997 Silicon Graphics, Inc.
roentgen b75cab
 *
roentgen b75cab
 * Permission to use, copy, modify, distribute, and sell this software and 
roentgen b75cab
 * its documentation for any purpose is hereby granted without fee, provided
roentgen b75cab
 * that (i) the above copyright notices and this permission notice appear in
roentgen b75cab
 * all copies of the software and related documentation, and (ii) the names of
roentgen b75cab
 * Sam Leffler and Silicon Graphics may not be used in any advertising or
roentgen b75cab
 * publicity relating to the software without the specific, prior written
roentgen b75cab
 * permission of Sam Leffler and Silicon Graphics.
roentgen b75cab
 * 
roentgen b75cab
 * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
roentgen b75cab
 * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
roentgen b75cab
 * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
roentgen b75cab
 * 
roentgen b75cab
 * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
roentgen b75cab
 * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
roentgen b75cab
 * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
roentgen b75cab
 * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
roentgen b75cab
 * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
roentgen b75cab
 * OF THIS SOFTWARE.
roentgen b75cab
 */
roentgen b75cab
roentgen b75cab
#ifndef _TIFFIOP_
roentgen b75cab
#define	_TIFFIOP_
roentgen b75cab
/*
roentgen b75cab
 * ``Library-private'' definitions.
roentgen b75cab
 */
roentgen b75cab
roentgen b75cab
#include "tif_config.h"
roentgen b75cab
roentgen b75cab
#ifdef HAVE_FCNTL_H
roentgen b75cab
# include <fcntl.h></fcntl.h>
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
#ifdef HAVE_SYS_TYPES_H
roentgen b75cab
# include <sys types.h=""></sys>
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
#ifdef HAVE_STRING_H
roentgen b75cab
# include <string.h></string.h>
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
#ifdef HAVE_ASSERT_H
roentgen b75cab
# include <assert.h></assert.h>
roentgen b75cab
#else
roentgen b75cab
# define assert(x) 
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
#ifdef HAVE_SEARCH_H
roentgen b75cab
# include <search.h></search.h>
roentgen b75cab
#else
roentgen b75cab
extern void *lfind(const void *, const void *, size_t *, size_t,
roentgen b75cab
		   int (*)(const void *, const void *));
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
#include "tiffio.h"
roentgen b75cab
roentgen b75cab
#include "tif_dir.h"
roentgen b75cab
roentgen b75cab
#ifndef STRIP_SIZE_DEFAULT
roentgen b75cab
# define STRIP_SIZE_DEFAULT 8192
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
#define    streq(a,b)      (strcmp(a,b) == 0)
roentgen b75cab
roentgen b75cab
#ifndef TRUE
roentgen b75cab
#define	TRUE	1
roentgen b75cab
#define	FALSE	0
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
typedef struct client_info {
roentgen b75cab
    struct client_info *next;
roentgen b75cab
    void *data;
roentgen b75cab
    char *name;
roentgen b75cab
} TIFFClientInfoLink;
roentgen b75cab
roentgen b75cab
/*
roentgen b75cab
 * Typedefs for ``method pointers'' used internally.
roentgen b75cab
 * these are depriciated and provided only for backwards compatibility
roentgen b75cab
 */
roentgen b75cab
typedef unsigned char tidataval_t;    /* internal image data value type */
roentgen b75cab
typedef tidataval_t* tidata_t;        /* reference to internal image data */
roentgen b75cab
roentgen b75cab
typedef void (*TIFFVoidMethod)(TIFF*);
roentgen b75cab
typedef int (*TIFFBoolMethod)(TIFF*);
roentgen b75cab
typedef int (*TIFFPreMethod)(TIFF*, uint16);
roentgen b75cab
typedef int (*TIFFCodeMethod)(TIFF* tif, uint8* buf, tmsize_t size, uint16 sample);
roentgen b75cab
typedef int (*TIFFSeekMethod)(TIFF*, uint32);
roentgen b75cab
typedef void (*TIFFPostMethod)(TIFF* tif, uint8* buf, tmsize_t size);
roentgen b75cab
typedef uint32 (*TIFFStripMethod)(TIFF*, uint32);
roentgen b75cab
typedef void (*TIFFTileMethod)(TIFF*, uint32*, uint32*);
roentgen b75cab
roentgen b75cab
struct tiff {
roentgen b75cab
	char*                tif_name;         /* name of open file */
roentgen b75cab
	int                  tif_fd;           /* open file descriptor */
roentgen b75cab
	int                  tif_mode;         /* open mode (O_*) */
roentgen b75cab
	uint32               tif_flags;
roentgen b75cab
	#define TIFF_FILLORDER   0x00003 /* natural bit fill order for machine */
roentgen b75cab
	#define TIFF_DIRTYHEADER 0x00004 /* header must be written on close */
roentgen b75cab
	#define TIFF_DIRTYDIRECT 0x00008 /* current directory must be written */
roentgen b75cab
	#define TIFF_BUFFERSETUP 0x00010 /* data buffers setup */
roentgen b75cab
	#define TIFF_CODERSETUP  0x00020 /* encoder/decoder setup done */
roentgen b75cab
	#define TIFF_BEENWRITING 0x00040 /* written 1+ scanlines to file */
roentgen b75cab
	#define TIFF_SWAB        0x00080 /* byte swap file information */
roentgen b75cab
	#define TIFF_NOBITREV    0x00100 /* inhibit bit reversal logic */
roentgen b75cab
	#define TIFF_MYBUFFER    0x00200 /* my raw data buffer; free on close */
roentgen b75cab
	#define TIFF_ISTILED     0x00400 /* file is tile, not strip- based */
roentgen b75cab
	#define TIFF_MAPPED      0x00800 /* file is mapped into memory */
roentgen b75cab
	#define TIFF_POSTENCODE  0x01000 /* need call to postencode routine */
roentgen b75cab
	#define TIFF_INSUBIFD    0x02000 /* currently writing a subifd */
roentgen b75cab
	#define TIFF_UPSAMPLED   0x04000 /* library is doing data up-sampling */
roentgen b75cab
	#define TIFF_STRIPCHOP   0x08000 /* enable strip chopping support */
roentgen b75cab
	#define TIFF_HEADERONLY  0x10000 /* read header only, do not process the first directory */
roentgen b75cab
	#define TIFF_NOREADRAW   0x20000 /* skip reading of raw uncompressed image data */
roentgen b75cab
	#define TIFF_INCUSTOMIFD 0x40000 /* currently writing a custom IFD */
roentgen b75cab
	#define TIFF_BIGTIFF     0x80000 /* read/write bigtiff */
roentgen b75cab
        #define TIFF_BUF4WRITE  0x100000 /* rawcc bytes are for writing */
roentgen b75cab
        #define TIFF_DIRTYSTRIP 0x200000 /* stripoffsets/stripbytecount dirty*/
roentgen b75cab
        #define TIFF_PERSAMPLE  0x400000 /* get/set per sample tags as arrays */
roentgen b75cab
        #define TIFF_BUFFERMMAP 0x800000 /* read buffer (tif_rawdata) points into mmap() memory */
roentgen b75cab
	uint64               tif_diroff;       /* file offset of current directory */
roentgen b75cab
	uint64               tif_nextdiroff;   /* file offset of following directory */
roentgen b75cab
	uint64*              tif_dirlist;      /* list of offsets to already seen directories to prevent IFD looping */
roentgen b75cab
	uint16               tif_dirlistsize;  /* number of entires in offset list */
roentgen b75cab
	uint16               tif_dirnumber;    /* number of already seen directories */
roentgen b75cab
	TIFFDirectory        tif_dir;          /* internal rep of current directory */
roentgen b75cab
	TIFFDirectory        tif_customdir;    /* custom IFDs are separated from the main ones */
roentgen b75cab
	union {
roentgen b75cab
		TIFFHeaderCommon common;
roentgen b75cab
		TIFFHeaderClassic classic;
roentgen b75cab
		TIFFHeaderBig big;
roentgen b75cab
	} tif_header;
roentgen b75cab
	uint16               tif_header_size;  /* file's header block and its length */
roentgen b75cab
	uint32               tif_row;          /* current scanline */
roentgen b75cab
	uint16               tif_curdir;       /* current directory (index) */
roentgen b75cab
	uint32               tif_curstrip;     /* current strip for read/write */
roentgen b75cab
	uint64               tif_curoff;       /* current offset for read/write */
roentgen b75cab
	uint64               tif_dataoff;      /* current offset for writing dir */
roentgen b75cab
	/* SubIFD support */
roentgen b75cab
	uint16               tif_nsubifd;      /* remaining subifds to write */
roentgen b75cab
	uint64               tif_subifdoff;    /* offset for patching SubIFD link */
roentgen b75cab
	/* tiling support */
roentgen b75cab
	uint32               tif_col;          /* current column (offset by row too) */
roentgen b75cab
	uint32               tif_curtile;      /* current tile for read/write */
roentgen b75cab
	tmsize_t             tif_tilesize;     /* # of bytes in a tile */
roentgen b75cab
	/* compression scheme hooks */
roentgen b75cab
	int                  tif_decodestatus;
roentgen b75cab
	TIFFBoolMethod       tif_fixuptags;    /* called in TIFFReadDirectory */
roentgen b75cab
	TIFFBoolMethod       tif_setupdecode;  /* called once before predecode */
roentgen b75cab
	TIFFPreMethod        tif_predecode;    /* pre- row/strip/tile decoding */
roentgen b75cab
	TIFFBoolMethod       tif_setupencode;  /* called once before preencode */
roentgen b75cab
	int                  tif_encodestatus;
roentgen b75cab
	TIFFPreMethod        tif_preencode;    /* pre- row/strip/tile encoding */
roentgen b75cab
	TIFFBoolMethod       tif_postencode;   /* post- row/strip/tile encoding */
roentgen b75cab
	TIFFCodeMethod       tif_decoderow;    /* scanline decoding routine */
roentgen b75cab
	TIFFCodeMethod       tif_encoderow;    /* scanline encoding routine */
roentgen b75cab
	TIFFCodeMethod       tif_decodestrip;  /* strip decoding routine */
roentgen b75cab
	TIFFCodeMethod       tif_encodestrip;  /* strip encoding routine */
roentgen b75cab
	TIFFCodeMethod       tif_decodetile;   /* tile decoding routine */
roentgen b75cab
	TIFFCodeMethod       tif_encodetile;   /* tile encoding routine */
roentgen b75cab
	TIFFVoidMethod       tif_close;        /* cleanup-on-close routine */
roentgen b75cab
	TIFFSeekMethod       tif_seek;         /* position within a strip routine */
roentgen b75cab
	TIFFVoidMethod       tif_cleanup;      /* cleanup state routine */
roentgen b75cab
	TIFFStripMethod      tif_defstripsize; /* calculate/constrain strip size */
roentgen b75cab
	TIFFTileMethod       tif_deftilesize;  /* calculate/constrain tile size */
roentgen b75cab
	uint8*               tif_data;         /* compression scheme private data */
roentgen b75cab
	/* input/output buffering */
roentgen b75cab
	tmsize_t             tif_scanlinesize; /* # of bytes in a scanline */
roentgen b75cab
	tmsize_t             tif_scanlineskew; /* scanline skew for reading strips */
roentgen b75cab
	uint8*               tif_rawdata;      /* raw data buffer */
roentgen b75cab
	tmsize_t             tif_rawdatasize;  /* # of bytes in raw data buffer */
roentgen b75cab
        tmsize_t             tif_rawdataoff;   /* rawdata offset within strip */
roentgen b75cab
        tmsize_t             tif_rawdataloaded;/* amount of data in rawdata */
roentgen b75cab
	uint8*               tif_rawcp;        /* current spot in raw buffer */
roentgen b75cab
	tmsize_t             tif_rawcc;        /* bytes unread from raw buffer */
roentgen b75cab
	/* memory-mapped file support */
roentgen b75cab
	uint8*               tif_base;         /* base of mapped file */
roentgen b75cab
	tmsize_t             tif_size;         /* size of mapped file region (bytes, thus tmsize_t) */
roentgen b75cab
	TIFFMapFileProc      tif_mapproc;      /* map file method */
roentgen b75cab
	TIFFUnmapFileProc    tif_unmapproc;    /* unmap file method */
roentgen b75cab
	/* input/output callback methods */
roentgen b75cab
	thandle_t            tif_clientdata;   /* callback parameter */
roentgen b75cab
	TIFFReadWriteProc    tif_readproc;     /* read method */
roentgen b75cab
	TIFFReadWriteProc    tif_writeproc;    /* write method */
roentgen b75cab
	TIFFSeekProc         tif_seekproc;     /* lseek method */
roentgen b75cab
	TIFFCloseProc        tif_closeproc;    /* close method */
roentgen b75cab
	TIFFSizeProc         tif_sizeproc;     /* filesize method */
roentgen b75cab
	/* post-decoding support */
roentgen b75cab
	TIFFPostMethod       tif_postdecode;   /* post decoding routine */
roentgen b75cab
	/* tag support */
roentgen b75cab
	TIFFField**          tif_fields;       /* sorted table of registered tags */
roentgen b75cab
	size_t               tif_nfields;      /* # entries in registered tag table */
roentgen b75cab
	const TIFFField*     tif_foundfield;   /* cached pointer to already found tag */
roentgen b75cab
	TIFFTagMethods       tif_tagmethods;   /* tag get/set/print routines */
roentgen b75cab
	TIFFClientInfoLink*  tif_clientinfo;   /* extra client information. */
roentgen b75cab
	/* Backward compatibility stuff. We need these two fields for
roentgen b75cab
	 * setting up an old tag extension scheme. */
roentgen b75cab
	TIFFFieldArray*      tif_fieldscompat;
roentgen b75cab
	size_t               tif_nfieldscompat;
roentgen b75cab
};
roentgen b75cab
roentgen b75cab
#define isPseudoTag(t) (t > 0xffff)            /* is tag value normal or pseudo */
roentgen b75cab
roentgen b75cab
#define isTiled(tif) (((tif)->tif_flags & TIFF_ISTILED) != 0)
roentgen b75cab
#define isMapped(tif) (((tif)->tif_flags & TIFF_MAPPED) != 0)
roentgen b75cab
#define isFillOrder(tif, o) (((tif)->tif_flags & (o)) != 0)
roentgen b75cab
#define isUpSampled(tif) (((tif)->tif_flags & TIFF_UPSAMPLED) != 0)
roentgen b75cab
#define TIFFReadFile(tif, buf, size) \
roentgen b75cab
	((*(tif)->tif_readproc)((tif)->tif_clientdata,(buf),(size)))
roentgen b75cab
#define TIFFWriteFile(tif, buf, size) \
roentgen b75cab
	((*(tif)->tif_writeproc)((tif)->tif_clientdata,(buf),(size)))
roentgen b75cab
#define TIFFSeekFile(tif, off, whence) \
roentgen b75cab
	((*(tif)->tif_seekproc)((tif)->tif_clientdata,(off),(whence)))
roentgen b75cab
#define TIFFCloseFile(tif) \
roentgen b75cab
	((*(tif)->tif_closeproc)((tif)->tif_clientdata))
roentgen b75cab
#define TIFFGetFileSize(tif) \
roentgen b75cab
	((*(tif)->tif_sizeproc)((tif)->tif_clientdata))
roentgen b75cab
#define TIFFMapFileContents(tif, paddr, psize) \
roentgen b75cab
	((*(tif)->tif_mapproc)((tif)->tif_clientdata,(paddr),(psize)))
roentgen b75cab
#define TIFFUnmapFileContents(tif, addr, size) \
roentgen b75cab
	((*(tif)->tif_unmapproc)((tif)->tif_clientdata,(addr),(size)))
roentgen b75cab
roentgen b75cab
/*
roentgen b75cab
 * Default Read/Seek/Write definitions.
roentgen b75cab
 */
roentgen b75cab
#ifndef ReadOK
roentgen b75cab
#define ReadOK(tif, buf, size) \
roentgen b75cab
	(TIFFReadFile((tif),(buf),(size))==(size))
roentgen b75cab
#endif
roentgen b75cab
#ifndef SeekOK
roentgen b75cab
#define SeekOK(tif, off) \
roentgen b75cab
	(TIFFSeekFile((tif),(off),SEEK_SET)==(off))
roentgen b75cab
#endif
roentgen b75cab
#ifndef WriteOK
roentgen b75cab
#define WriteOK(tif, buf, size) \
roentgen b75cab
	(TIFFWriteFile((tif),(buf),(size))==(size))
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
/* NB: the uint32 casts are to silence certain ANSI-C compilers */
roentgen b75cab
#define TIFFhowmany_32(x, y) (((uint32)x < (0xffffffff - (uint32)(y-1))) ? \
roentgen b75cab
			   ((((uint32)(x))+(((uint32)(y))-1))/((uint32)(y))) : \
roentgen b75cab
			   0U)
roentgen b75cab
#define TIFFhowmany8_32(x) (((x)&0x07)?((uint32)(x)>>3)+1:(uint32)(x)>>3)
roentgen b75cab
#define TIFFroundup_32(x, y) (TIFFhowmany_32(x,y)*(y))
roentgen b75cab
#define TIFFhowmany_64(x, y) ((((uint64)(x))+(((uint64)(y))-1))/((uint64)(y)))
roentgen b75cab
#define TIFFhowmany8_64(x) (((x)&0x07)?((uint64)(x)>>3)+1:(uint64)(x)>>3)
roentgen b75cab
#define TIFFroundup_64(x, y) (TIFFhowmany_64(x,y)*(y))
roentgen b75cab
roentgen b75cab
/* Safe multiply which returns zero if there is an integer overflow */
roentgen b75cab
#define TIFFSafeMultiply(t,v,m) ((((t)(m) != (t)0) && (((t)(((v)*(m))/(m))) == (t)(v))) ? (t)((v)*(m)) : (t)0)
roentgen b75cab
roentgen b75cab
#define TIFFmax(A,B) ((A)>(B)?(A):(B))
roentgen b75cab
#define TIFFmin(A,B) ((A)<(B)?(A):(B))
roentgen b75cab
roentgen b75cab
#define TIFFArrayCount(a) (sizeof (a) / sizeof ((a)[0]))
roentgen b75cab
roentgen b75cab
#if defined(__cplusplus)
roentgen b75cab
extern "C" {
roentgen b75cab
#endif
roentgen b75cab
extern int _TIFFgetMode(const char* mode, const char* module);
roentgen b75cab
extern int _TIFFNoRowEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s);
roentgen b75cab
extern int _TIFFNoStripEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s);
roentgen b75cab
extern int _TIFFNoTileEncode(TIFF*, uint8* pp, tmsize_t cc, uint16 s);
roentgen b75cab
extern int _TIFFNoRowDecode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s);
roentgen b75cab
extern int _TIFFNoStripDecode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s);
roentgen b75cab
extern int _TIFFNoTileDecode(TIFF*, uint8* pp, tmsize_t cc, uint16 s);
roentgen b75cab
extern void _TIFFNoPostDecode(TIFF* tif, uint8* buf, tmsize_t cc);
roentgen b75cab
extern int _TIFFNoPreCode(TIFF* tif, uint16 s);
roentgen b75cab
extern int _TIFFNoSeek(TIFF* tif, uint32 off);
roentgen b75cab
extern void _TIFFSwab16BitData(TIFF* tif, uint8* buf, tmsize_t cc);
roentgen b75cab
extern void _TIFFSwab24BitData(TIFF* tif, uint8* buf, tmsize_t cc);
roentgen b75cab
extern void _TIFFSwab32BitData(TIFF* tif, uint8* buf, tmsize_t cc);
roentgen b75cab
extern void _TIFFSwab64BitData(TIFF* tif, uint8* buf, tmsize_t cc);
roentgen b75cab
extern int TIFFFlushData1(TIFF* tif);
roentgen b75cab
extern int TIFFDefaultDirectory(TIFF* tif);
roentgen b75cab
extern void _TIFFSetDefaultCompressionState(TIFF* tif);
roentgen b75cab
extern int _TIFFRewriteField(TIFF *, uint16, TIFFDataType, tmsize_t, void *);
roentgen b75cab
extern int TIFFSetCompressionScheme(TIFF* tif, int scheme);
roentgen b75cab
extern int TIFFSetDefaultCompressionState(TIFF* tif);
roentgen b75cab
extern uint32 _TIFFDefaultStripSize(TIFF* tif, uint32 s);
roentgen b75cab
extern void _TIFFDefaultTileSize(TIFF* tif, uint32* tw, uint32* th);
roentgen b75cab
extern int _TIFFDataSize(TIFFDataType type);
roentgen b75cab
roentgen b75cab
extern void _TIFFsetByteArray(void**, void*, uint32);
roentgen b75cab
extern void _TIFFsetString(char**, char*);
roentgen b75cab
extern void _TIFFsetShortArray(uint16**, uint16*, uint32);
roentgen b75cab
extern void _TIFFsetLongArray(uint32**, uint32*, uint32);
roentgen b75cab
extern void _TIFFsetFloatArray(float**, float*, uint32);
roentgen b75cab
extern void _TIFFsetDoubleArray(double**, double*, uint32);
roentgen b75cab
roentgen b75cab
extern void _TIFFprintAscii(FILE*, const char*);
roentgen b75cab
extern void _TIFFprintAsciiTag(FILE*, const char*, const char*);
roentgen b75cab
roentgen b75cab
extern TIFFErrorHandler _TIFFwarningHandler;
roentgen b75cab
extern TIFFErrorHandler _TIFFerrorHandler;
roentgen b75cab
extern TIFFErrorHandlerExt _TIFFwarningHandlerExt;
roentgen b75cab
extern TIFFErrorHandlerExt _TIFFerrorHandlerExt;
roentgen b75cab
roentgen b75cab
extern uint32 _TIFFMultiply32(TIFF*, uint32, uint32, const char*);
roentgen b75cab
extern uint64 _TIFFMultiply64(TIFF*, uint64, uint64, const char*);
roentgen b75cab
extern void* _TIFFCheckMalloc(TIFF*, tmsize_t, tmsize_t, const char*);
roentgen b75cab
extern void* _TIFFCheckRealloc(TIFF*, void*, tmsize_t, tmsize_t, const char*);
roentgen b75cab
roentgen b75cab
extern double _TIFFUInt64ToDouble(uint64);
roentgen b75cab
extern float _TIFFUInt64ToFloat(uint64);
roentgen b75cab
roentgen b75cab
extern int TIFFInitDumpMode(TIFF*, int);
roentgen b75cab
#ifdef PACKBITS_SUPPORT
roentgen b75cab
extern int TIFFInitPackBits(TIFF*, int);
roentgen b75cab
#endif
roentgen b75cab
#ifdef CCITT_SUPPORT
roentgen b75cab
extern int TIFFInitCCITTRLE(TIFF*, int), TIFFInitCCITTRLEW(TIFF*, int);
roentgen b75cab
extern int TIFFInitCCITTFax3(TIFF*, int), TIFFInitCCITTFax4(TIFF*, int);
roentgen b75cab
#endif
roentgen b75cab
#ifdef THUNDER_SUPPORT
roentgen b75cab
extern int TIFFInitThunderScan(TIFF*, int);
roentgen b75cab
#endif
roentgen b75cab
#ifdef NEXT_SUPPORT
roentgen b75cab
extern int TIFFInitNeXT(TIFF*, int);
roentgen b75cab
#endif
roentgen b75cab
#ifdef LZW_SUPPORT
roentgen b75cab
extern int TIFFInitLZW(TIFF*, int);
roentgen b75cab
#endif
roentgen b75cab
#ifdef OJPEG_SUPPORT
roentgen b75cab
extern int TIFFInitOJPEG(TIFF*, int);
roentgen b75cab
#endif
roentgen b75cab
#ifdef JPEG_SUPPORT
roentgen b75cab
extern int TIFFInitJPEG(TIFF*, int);
roentgen b75cab
#endif
roentgen b75cab
#ifdef JBIG_SUPPORT
roentgen b75cab
extern int TIFFInitJBIG(TIFF*, int);
roentgen b75cab
#endif
roentgen b75cab
#ifdef ZIP_SUPPORT
roentgen b75cab
extern int TIFFInitZIP(TIFF*, int);
roentgen b75cab
#endif
roentgen b75cab
#ifdef PIXARLOG_SUPPORT
roentgen b75cab
extern int TIFFInitPixarLog(TIFF*, int);
roentgen b75cab
#endif
roentgen b75cab
#ifdef LOGLUV_SUPPORT
roentgen b75cab
extern int TIFFInitSGILog(TIFF*, int);
roentgen b75cab
#endif
roentgen b75cab
#ifdef LZMA_SUPPORT
roentgen b75cab
extern int TIFFInitLZMA(TIFF*, int);
roentgen b75cab
#endif
roentgen b75cab
#ifdef VMS
roentgen b75cab
extern const TIFFCodec _TIFFBuiltinCODECS[];
roentgen b75cab
#else
roentgen b75cab
extern TIFFCodec _TIFFBuiltinCODECS[];
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
#if defined(__cplusplus)
roentgen b75cab
}
roentgen b75cab
#endif
roentgen b75cab
#endif /* _TIFFIOP_ */
roentgen b75cab
roentgen b75cab
/* vim: set ts=8 sts=8 sw=8 noet: */
roentgen b75cab
/*
roentgen b75cab
 * Local Variables:
roentgen b75cab
 * mode: c
roentgen b75cab
 * c-basic-offset: 8
roentgen b75cab
 * fill-column: 78
roentgen b75cab
 * End:
roentgen b75cab
 */