| 1 | /* $Id: tiffiop.h,v 1.84 2012-05-30 01:50:17 fwarmerdam Exp $ */cxx . . $ `<file>/Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h`/ |
| 2 | |
| 3 | /* |
| 4 | * Copyright (c) 1988-1997 Sam Leffler |
| 5 | * Copyright (c) 1991-1997 Silicon Graphics, Inc. |
| 6 | * |
| 7 | * Permission to use, copy, modify, distribute, and sell this software and |
| 8 | * its documentation for any purpose is hereby granted without fee, provided |
| 9 | * that (i) the above copyright notices and this permission notice appear in |
| 10 | * all copies of the software and related documentation, and (ii) the names of |
| 11 | * Sam Leffler and Silicon Graphics may not be used in any advertising or |
| 12 | * publicity relating to the software without the specific, prior written |
| 13 | * permission of Sam Leffler and Silicon Graphics. |
| 14 | * |
| 15 | * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, |
| 16 | * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY |
| 17 | * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. |
| 18 | * |
| 19 | * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR |
| 20 | * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, |
| 21 | * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, |
| 22 | * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF |
| 23 | * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE |
| 24 | * OF THIS SOFTWARE. |
| 25 | */ |
| 26 | |
| 27 | #ifndef _TIFFIOP_ |
| 28 | #define _TIFFIOP_cxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:28:10`! |
| 29 | /* |
| 30 | * ``Library-private'' definitions. |
| 31 | */ |
| 32 | |
| 33 | #include "itk_tif_config.h"cxx . . $ `<file>/build/Modules/ThirdParty/TIFF/src/itktiff/itk_tif_config.h`/ |
| 34 | |
| 35 | #ifdef HAVE_FCNTL_Hcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tif_config.h:43:9`! |
| 36 | # include <fcntl.h> |
| 37 | #endif |
| 38 | |
| 39 | #ifdef HAVE_SYS_TYPES_Hcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tif_config.h:170:9`! |
| 40 | # include <sys/types.h> |
| 41 | #endif |
| 42 | |
| 43 | #ifdef HAVE_STRING_Hcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tif_config.h:149:9`! |
| 44 | # include <string.h> |
| 45 | #endif |
| 46 | |
| 47 | #ifdef HAVE_ASSERT_Hcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tif_config.h:37:9`! |
| 48 | # include <assert.h> |
| 49 | #else |
| 50 | # define assert(x) |
| 51 | #endif |
| 52 | |
| 53 | #ifdef HAVE_SEARCH_Hcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tif_config.h:128:9`! |
| 54 | # include <search.h> |
| 55 | #else |
| 56 | extern void *lfind(const void *, const void *, size_t *, size_t, |
| 57 | int (*)(const void *, const void *)); |
| 58 | #endif |
| 59 | |
| 60 | #include "tiffio.h"cxx . . $ `<file>/Modules/ThirdParty/TIFF/src/itktiff/tiffio.h`/ |
| 61 | |
| 62 | #include "tif_dir.h"cxx . . $ `<file>/Modules/ThirdParty/TIFF/src/itktiff/tif_dir.h`/ |
| 63 | |
| 64 | #ifndef STRIP_SIZE_DEFAULT |
| 65 | # define STRIP_SIZE_DEFAULTcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:65:10`! 8192 |
| 66 | #endif |
| 67 | |
| 68 | #define streqcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:68:12`!(a,b) (strcmp(a,b) == 0) |
| 69 | |
| 70 | #ifndef TRUE |
| 71 | #define TRUEcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:71:10`! 1 |
| 72 | #define FALSEcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:72:10`! 0 |
| 73 | #endif |
| 74 | |
| 75 | typedef struct client_infocxx . . $ client_info# { |
| 76 | struct client_infocxx . . $ client_info# *nextcxx . . $ client_info#next.; |
| 77 | void *datacxx . . $ client_info#data.; |
| 78 | char *namecxx . . $ client_info#name.; |
| 79 | } TIFFClientInfoLinkcxx . . $ TIFFClientInfoLink#; |
| 80 | |
| 81 | /* |
| 82 | * Typedefs for ``method pointers'' used internally. |
| 83 | * these are depriciated and provided only for backwards compatibility |
| 84 | */ |
| 85 | typedef unsigned char tidataval_tcxx . . $ tidataval_t#; /* internal image data value type */ |
| 86 | typedef tidataval_tcxx . . $ tidataval_t#* tidata_tcxx . . $ tidata_t#; /* reference to internal image data */ |
| 87 | |
| 88 | typedef void (*TIFFVoidMethodcxx . . $ TIFFVoidMethod#)(TIFFcxx . . $ TIFF#*); |
| 89 | typedef int (*TIFFBoolMethodcxx . . $ TIFFBoolMethod#)(TIFFcxx . . $ TIFF#*); |
| 90 | typedef int (*TIFFPreMethodcxx . . $ TIFFPreMethod#)(TIFFcxx . . $ TIFF#*, uint16cxx . . $ uint16#); |
| 91 | typedef int (*TIFFCodeMethodcxx . . $ TIFFCodeMethod#)(TIFFcxx . . $ TIFF#* tif, uint8cxx . . $ uint8#* buf, tmsize_tcxx . . $ tmsize_t# size, uint16cxx . . $ uint16# sample); |
| 92 | typedef int (*TIFFSeekMethodcxx . . $ TIFFSeekMethod#)(TIFFcxx . . $ TIFF#*, uint32cxx . . $ uint32#); |
| 93 | typedef void (*TIFFPostMethodcxx . . $ TIFFPostMethod#)(TIFFcxx . . $ TIFF#* tif, uint8cxx . . $ uint8#* buf, tmsize_tcxx . . $ tmsize_t# size); |
| 94 | typedef uint32cxx . . $ uint32# (*TIFFStripMethodcxx . . $ TIFFStripMethod#)(TIFFcxx . . $ TIFF#*, uint32cxx . . $ uint32#); |
| 95 | typedef void (*TIFFTileMethodcxx . . $ TIFFTileMethod#)(TIFFcxx . . $ TIFF#*, uint32cxx . . $ uint32#*, uint32cxx . . $ uint32#*); |
| 96 | |
| 97 | struct tiffcxx . . $ tiff# { |
| 98 | char* tif_namecxx . . $ tiff#tif_name.; /* name of open file */ |
| 99 | int tif_fdcxx . . $ tiff#tif_fd.; /* open file descriptor */ |
| 100 | int tif_modecxx . . $ tiff#tif_mode.; /* open mode (O_*) */ |
| 101 | uint32cxx . . $ uint32# tif_flagscxx . . $ tiff#tif_flags.; |
| 102 | #define TIFF_FILLORDERcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:102:11`! 0x00003 /* natural bit fill order for machine */ |
| 103 | #define TIFF_DIRTYHEADERcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:103:11`! 0x00004 /* header must be written on close */ |
| 104 | #define TIFF_DIRTYDIRECTcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:104:11`! 0x00008 /* current directory must be written */ |
| 105 | #define TIFF_BUFFERSETUPcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:105:11`! 0x00010 /* data buffers setup */ |
| 106 | #define TIFF_CODERSETUPcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:106:11`! 0x00020 /* encoder/decoder setup done */ |
| 107 | #define TIFF_BEENWRITINGcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:107:11`! 0x00040 /* written 1+ scanlines to file */ |
| 108 | #define TIFF_SWABcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:108:11`! 0x00080 /* byte swap file information */ |
| 109 | #define TIFF_NOBITREVcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:109:11`! 0x00100 /* inhibit bit reversal logic */ |
| 110 | #define TIFF_MYBUFFERcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:110:11`! 0x00200 /* my raw data buffer; free on close */ |
| 111 | #define TIFF_ISTILEDcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:111:11`! 0x00400 /* file is tile, not strip- based */ |
| 112 | #define TIFF_MAPPEDcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:112:11`! 0x00800 /* file is mapped into memory */ |
| 113 | #define TIFF_POSTENCODEcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:113:11`! 0x01000 /* need call to postencode routine */ |
| 114 | #define TIFF_INSUBIFDcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:114:11`! 0x02000 /* currently writing a subifd */ |
| 115 | #define TIFF_UPSAMPLEDcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:115:11`! 0x04000 /* library is doing data up-sampling */ |
| 116 | #define TIFF_STRIPCHOPcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:116:11`! 0x08000 /* enable strip chopping support */ |
| 117 | #define TIFF_HEADERONLYcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:117:11`! 0x10000 /* read header only, do not process the first directory */ |
| 118 | #define TIFF_NOREADRAWcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:118:11`! 0x20000 /* skip reading of raw uncompressed image data */ |
| 119 | #define TIFF_INCUSTOMIFDcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:119:11`! 0x40000 /* currently writing a custom IFD */ |
| 120 | #define TIFF_BIGTIFFcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:120:11`! 0x80000 /* read/write bigtiff */ |
| 121 | #define TIFF_BUF4WRITEcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:121:17`! 0x100000 /* rawcc bytes are for writing */ |
| 122 | #define TIFF_DIRTYSTRIPcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:122:17`! 0x200000 /* stripoffsets/stripbytecount dirty*/ |
| 123 | #define TIFF_PERSAMPLEcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:123:17`! 0x400000 /* get/set per sample tags as arrays */ |
| 124 | #define TIFF_BUFFERMMAPcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:124:17`! 0x800000 /* read buffer (tif_rawdata) points into mmap() memory */ |
| 125 | #define TIFF_WARNABOUTUNKNOWNTAGScxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:125:17`! 0x1000000 /* emit a warning when encountering a unknown tag */ |
| 126 | uint64cxx . . $ uint64# tif_diroffcxx . . $ tiff#tif_diroff.; /* file offset of current directory */ |
| 127 | uint64cxx . . $ uint64# tif_nextdiroffcxx . . $ tiff#tif_nextdiroff.; /* file offset of following directory */ |
| 128 | uint64cxx . . $ uint64#* tif_dirlistcxx . . $ tiff#tif_dirlist.; /* list of offsets to already seen directories to prevent IFD looping */ |
| 129 | uint16cxx . . $ uint16# tif_dirlistsizecxx . . $ tiff#tif_dirlistsize.; /* number of entires in offset list */ |
| 130 | uint16cxx . . $ uint16# tif_dirnumbercxx . . $ tiff#tif_dirnumber.; /* number of already seen directories */ |
| 131 | TIFFDirectorycxx . . $ TIFFDirectory# tif_dircxx . . $ tiff#tif_dir.; /* internal rep of current directory */ |
| 132 | TIFFDirectorycxx . . $ TIFFDirectory# tif_customdircxx . . $ tiff#tif_customdir.; /* custom IFDs are separated from the main ones */ |
| 133 | unioncxx . . $ tiff#$anonymous_type_0# { |
| 134 | TIFFHeaderCommoncxx . . $ TIFFHeaderCommon# commoncxx . . $ tiff#$anonymous_type_0#common.; |
| 135 | TIFFHeaderClassiccxx . . $ TIFFHeaderClassic# classiccxx . . $ tiff#$anonymous_type_0#classic.; |
| 136 | TIFFHeaderBigcxx . . $ TIFFHeaderBig# bigcxx . . $ tiff#$anonymous_type_0#big.; |
| 137 | } tif_headercxx . . $ tiff#tif_header.; |
| 138 | uint16cxx . . $ uint16# tif_header_sizecxx . . $ tiff#tif_header_size.; /* file's header block and its length */ |
| 139 | uint32cxx . . $ uint32# tif_rowcxx . . $ tiff#tif_row.; /* current scanline */ |
| 140 | uint16cxx . . $ uint16# tif_curdircxx . . $ tiff#tif_curdir.; /* current directory (index) */ |
| 141 | uint32cxx . . $ uint32# tif_curstripcxx . . $ tiff#tif_curstrip.; /* current strip for read/write */ |
| 142 | uint64cxx . . $ uint64# tif_curoffcxx . . $ tiff#tif_curoff.; /* current offset for read/write */ |
| 143 | uint64cxx . . $ uint64# tif_dataoffcxx . . $ tiff#tif_dataoff.; /* current offset for writing dir */ |
| 144 | /* SubIFD support */ |
| 145 | uint16cxx . . $ uint16# tif_nsubifdcxx . . $ tiff#tif_nsubifd.; /* remaining subifds to write */ |
| 146 | uint64cxx . . $ uint64# tif_subifdoffcxx . . $ tiff#tif_subifdoff.; /* offset for patching SubIFD link */ |
| 147 | /* tiling support */ |
| 148 | uint32cxx . . $ uint32# tif_colcxx . . $ tiff#tif_col.; /* current column (offset by row too) */ |
| 149 | uint32cxx . . $ uint32# tif_curtilecxx . . $ tiff#tif_curtile.; /* current tile for read/write */ |
| 150 | tmsize_tcxx . . $ tmsize_t# tif_tilesizecxx . . $ tiff#tif_tilesize.; /* # of bytes in a tile */ |
| 151 | /* compression scheme hooks */ |
| 152 | int tif_decodestatuscxx . . $ tiff#tif_decodestatus.; |
| 153 | TIFFBoolMethodcxx . . $ TIFFBoolMethod# tif_fixuptagscxx . . $ tiff#tif_fixuptags.; /* called in TIFFReadDirectory */ |
| 154 | TIFFBoolMethodcxx . . $ TIFFBoolMethod# tif_setupdecodecxx . . $ tiff#tif_setupdecode.; /* called once before predecode */ |
| 155 | TIFFPreMethodcxx . . $ TIFFPreMethod# tif_predecodecxx . . $ tiff#tif_predecode.; /* pre- row/strip/tile decoding */ |
| 156 | TIFFBoolMethodcxx . . $ TIFFBoolMethod# tif_setupencodecxx . . $ tiff#tif_setupencode.; /* called once before preencode */ |
| 157 | int tif_encodestatuscxx . . $ tiff#tif_encodestatus.; |
| 158 | TIFFPreMethodcxx . . $ TIFFPreMethod# tif_preencodecxx . . $ tiff#tif_preencode.; /* pre- row/strip/tile encoding */ |
| 159 | TIFFBoolMethodcxx . . $ TIFFBoolMethod# tif_postencodecxx . . $ tiff#tif_postencode.; /* post- row/strip/tile encoding */ |
| 160 | TIFFCodeMethodcxx . . $ TIFFCodeMethod# tif_decoderowcxx . . $ tiff#tif_decoderow.; /* scanline decoding routine */ |
| 161 | TIFFCodeMethodcxx . . $ TIFFCodeMethod# tif_encoderowcxx . . $ tiff#tif_encoderow.; /* scanline encoding routine */ |
| 162 | TIFFCodeMethodcxx . . $ TIFFCodeMethod# tif_decodestripcxx . . $ tiff#tif_decodestrip.; /* strip decoding routine */ |
| 163 | TIFFCodeMethodcxx . . $ TIFFCodeMethod# tif_encodestripcxx . . $ tiff#tif_encodestrip.; /* strip encoding routine */ |
| 164 | TIFFCodeMethodcxx . . $ TIFFCodeMethod# tif_decodetilecxx . . $ tiff#tif_decodetile.; /* tile decoding routine */ |
| 165 | TIFFCodeMethodcxx . . $ TIFFCodeMethod# tif_encodetilecxx . . $ tiff#tif_encodetile.; /* tile encoding routine */ |
| 166 | TIFFVoidMethodcxx . . $ TIFFVoidMethod# tif_closecxx . . $ tiff#tif_close.; /* cleanup-on-close routine */ |
| 167 | TIFFSeekMethodcxx . . $ TIFFSeekMethod# tif_seekcxx . . $ tiff#tif_seek.; /* position within a strip routine */ |
| 168 | TIFFVoidMethodcxx . . $ TIFFVoidMethod# tif_cleanupcxx . . $ tiff#tif_cleanup.; /* cleanup state routine */ |
| 169 | TIFFStripMethodcxx . . $ TIFFStripMethod# tif_defstripsizecxx . . $ tiff#tif_defstripsize.; /* calculate/constrain strip size */ |
| 170 | TIFFTileMethodcxx . . $ TIFFTileMethod# tif_deftilesizecxx . . $ tiff#tif_deftilesize.; /* calculate/constrain tile size */ |
| 171 | uint8cxx . . $ uint8#* tif_datacxx . . $ tiff#tif_data.; /* compression scheme private data */ |
| 172 | /* input/output buffering */ |
| 173 | tmsize_tcxx . . $ tmsize_t# tif_scanlinesizecxx . . $ tiff#tif_scanlinesize.; /* # of bytes in a scanline */ |
| 174 | tmsize_tcxx . . $ tmsize_t# tif_scanlineskewcxx . . $ tiff#tif_scanlineskew.; /* scanline skew for reading strips */ |
| 175 | uint8cxx . . $ uint8#* tif_rawdatacxx . . $ tiff#tif_rawdata.; /* raw data buffer */ |
| 176 | tmsize_tcxx . . $ tmsize_t# tif_rawdatasizecxx . . $ tiff#tif_rawdatasize.; /* # of bytes in raw data buffer */ |
| 177 | tmsize_tcxx . . $ tmsize_t# tif_rawdataoffcxx . . $ tiff#tif_rawdataoff.; /* rawdata offset within strip */ |
| 178 | tmsize_tcxx . . $ tmsize_t# tif_rawdataloadedcxx . . $ tiff#tif_rawdataloaded.;/* amount of data in rawdata */ |
| 179 | uint8cxx . . $ uint8#* tif_rawcpcxx . . $ tiff#tif_rawcp.; /* current spot in raw buffer */ |
| 180 | tmsize_tcxx . . $ tmsize_t# tif_rawcccxx . . $ tiff#tif_rawcc.; /* bytes unread from raw buffer */ |
| 181 | /* memory-mapped file support */ |
| 182 | uint8cxx . . $ uint8#* tif_basecxx . . $ tiff#tif_base.; /* base of mapped file */ |
| 183 | tmsize_tcxx . . $ tmsize_t# tif_sizecxx . . $ tiff#tif_size.; /* size of mapped file region (bytes, thus tmsize_t) */ |
| 184 | TIFFMapFileProccxx . . $ TIFFMapFileProc# tif_mapproccxx . . $ tiff#tif_mapproc.; /* map file method */ |
| 185 | TIFFUnmapFileProccxx . . $ TIFFUnmapFileProc# tif_unmapproccxx . . $ tiff#tif_unmapproc.; /* unmap file method */ |
| 186 | /* input/output callback methods */ |
| 187 | thandle_tcxx . . $ thandle_t# tif_clientdatacxx . . $ tiff#tif_clientdata.; /* callback parameter */ |
| 188 | TIFFReadWriteProccxx . . $ TIFFReadWriteProc# tif_readproccxx . . $ tiff#tif_readproc.; /* read method */ |
| 189 | TIFFReadWriteProccxx . . $ TIFFReadWriteProc# tif_writeproccxx . . $ tiff#tif_writeproc.; /* write method */ |
| 190 | TIFFSeekProccxx . . $ TIFFSeekProc# tif_seekproccxx . . $ tiff#tif_seekproc.; /* lseek method */ |
| 191 | TIFFCloseProccxx . . $ TIFFCloseProc# tif_closeproccxx . . $ tiff#tif_closeproc.; /* close method */ |
| 192 | TIFFSizeProccxx . . $ TIFFSizeProc# tif_sizeproccxx . . $ tiff#tif_sizeproc.; /* filesize method */ |
| 193 | /* post-decoding support */ |
| 194 | TIFFPostMethodcxx . . $ TIFFPostMethod# tif_postdecodecxx . . $ tiff#tif_postdecode.; /* post decoding routine */ |
| 195 | /* tag support */ |
| 196 | TIFFFieldcxx . . $ TIFFField#** tif_fieldscxx . . $ tiff#tif_fields.; /* sorted table of registered tags */ |
| 197 | size_t tif_nfieldscxx . . $ tiff#tif_nfields.; /* # entries in registered tag table */ |
| 198 | const TIFFFieldcxx . . $ TIFFField#* tif_foundfieldcxx . . $ tiff#tif_foundfield.; /* cached pointer to already found tag */ |
| 199 | TIFFTagMethodscxx . . $ TIFFTagMethods# tif_tagmethodscxx . . $ tiff#tif_tagmethods.; /* tag get/set/print routines */ |
| 200 | TIFFClientInfoLinkcxx . . $ TIFFClientInfoLink#* tif_clientinfocxx . . $ tiff#tif_clientinfo.; /* extra client information. */ |
| 201 | /* Backward compatibility stuff. We need these two fields for |
| 202 | * setting up an old tag extension scheme. */ |
| 203 | TIFFFieldArraycxx . . $ TIFFFieldArray#* tif_fieldscompatcxx . . $ tiff#tif_fieldscompat.; |
| 204 | size_t tif_nfieldscompatcxx . . $ tiff#tif_nfieldscompat.; |
| 205 | }; |
| 206 | |
| 207 | #define isPseudoTagcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:207:9`!(t) (t > 0xffff) /* is tag value normal or pseudo */ |
| 208 | |
| 209 | #define isTiledcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:209:9`!(tif) (((tif)->tif_flags & TIFF_ISTILED) != 0) |
| 210 | #define isMappedcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:210:9`!(tif) (((tif)->tif_flags & TIFF_MAPPEDcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:112:11`!) != 0) |
| 211 | #define isFillOrdercxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:211:9`!(tif, o) (((tif)->tif_flags & (o)) != 0) |
| 212 | #define isUpSampledcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:212:9`!(tif) (((tif)->tif_flags & TIFF_UPSAMPLED) != 0) |
| 213 | #define TIFFReadFilecxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:213:9`!(tif, buf, size) \ |
| 214 | ((*(tif)->tif_readproc)((tif)->tif_clientdata,(buf),(size))) |
| 215 | #define TIFFWriteFilecxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:215:9`!(tif, buf, size) \ |
| 216 | ((*(tif)->tif_writeproc)((tif)->tif_clientdata,(buf),(size))) |
| 217 | #define TIFFSeekFilecxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:217:9`!(tif, off, whence) \ |
| 218 | ((*(tif)->tif_seekproc)((tif)->tif_clientdata,(off),(whence))) |
| 219 | #define TIFFCloseFilecxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:219:9`!(tif) \ |
| 220 | ((*(tif)->tif_closeproc)((tif)->tif_clientdata)) |
| 221 | #define TIFFGetFileSizecxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:221:9`!(tif) \ |
| 222 | ((*(tif)->tif_sizeproc)((tif)->tif_clientdata)) |
| 223 | #define TIFFMapFileContentscxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:223:9`!(tif, paddr, psize) \ |
| 224 | ((*(tif)->tif_mapproc)((tif)->tif_clientdata,(paddr),(psize))) |
| 225 | #define TIFFUnmapFileContentscxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:225:9`!(tif, addr, size) \ |
| 226 | ((*(tif)->tif_unmapproc)((tif)->tif_clientdata,(addr),(size))) |
| 227 | |
| 228 | /* |
| 229 | * Default Read/Seek/Write definitions. |
| 230 | */ |
| 231 | #ifndef ReadOK |
| 232 | #define ReadOKcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:232:9`!(tif, buf, size) \ |
| 233 | (TIFFReadFile((tif),(buf),(size))==(size)) |
| 234 | #endif |
| 235 | #ifndef SeekOK |
| 236 | #define SeekOKcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:236:9`!(tif, off) \ |
| 237 | (TIFFSeekFile((tif),(off),SEEK_SET)==(off)) |
| 238 | #endif |
| 239 | #ifndef WriteOK |
| 240 | #define WriteOKcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:240:9`!(tif, buf, size) \ |
| 241 | (TIFFWriteFile((tif),(buf),(size))==(size)) |
| 242 | #endif |
| 243 | |
| 244 | /* NB: the uint32 casts are to silence certain ANSI-C compilers */ |
| 245 | #define TIFFhowmany_32cxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:245:9`!(x, y) (((uint32)x < (0xffffffff - (uint32)(y-1))) ? \ |
| 246 | ((((uint32)(x))+(((uint32)(y))-1))/((uint32)(y))) : \ |
| 247 | 0U) |
| 248 | #define TIFFhowmany8_32cxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:248:9`!(x) (((x)&0x07)?((uint32)(x)>>3)+1:(uint32)(x)>>3) |
| 249 | #define TIFFroundup_32cxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:249:9`!(x, y) (TIFFhowmany_32(x,y)*(y)) |
| 250 | #define TIFFhowmany_64cxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:250:9`!(x, y) ((((uint64)(x))+(((uint64)(y))-1))/((uint64)(y))) |
| 251 | #define TIFFhowmany8_64cxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:251:9`!(x) (((x)&0x07)?((uint64)(x)>>3)+1:(uint64)(x)>>3) |
| 252 | #define TIFFroundup_64cxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:252:9`!(x, y) (TIFFhowmany_64(x,y)*(y)) |
| 253 | |
| 254 | /* Safe multiply which returns zero if there is an integer overflow */ |
| 255 | #define TIFFSafeMultiplycxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:255:9`!(t,v,m) ((((t)(m) != (t)0) && (((t)(((v)*(m))/(m))) == (t)(v))) ? (t)((v)*(m)) : (t)0) |
| 256 | |
| 257 | #define TIFFmaxcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:257:9`!(A,B) ((A)>(B)?(A):(B)) |
| 258 | #define TIFFmincxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:258:9`!(A,B) ((A)<(B)?(A):(B)) |
| 259 | |
| 260 | #define TIFFArrayCountcxx . . $ `Modules/ThirdParty/TIFF/src/itktiff/tiffiop.h:260:9`!(a) (sizeof (a) / sizeof ((a)[0])) |
| 261 | |
| 262 | #if defined(__cplusplus) |
| 263 | extern "C" { |
| 264 | #endif |
| 265 | extern int _TIFFgetModecxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:323:9`!(const char* mode, const char* module); |
| 266 | extern int _TIFFNoRowEncodecxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:304:9`!(TIFFcxx . . $ TIFF#* tif, uint8cxx . . $ uint8#* pp, tmsize_tcxx . . $ tmsize_t# cc, uint16cxx . . $ uint16# s); |
| 267 | extern int _TIFFNoStripEncodecxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:307:9`!(TIFFcxx . . $ TIFF#* tif, uint8cxx . . $ uint8#* pp, tmsize_tcxx . . $ tmsize_t# cc, uint16cxx . . $ uint16# s); |
| 268 | extern int _TIFFNoTileEncodecxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:309:9`!(TIFFcxx . . $ TIFF#*, uint8cxx . . $ uint8#* pp, tmsize_tcxx . . $ tmsize_t# cc, uint16cxx . . $ uint16# s); |
| 269 | extern int _TIFFNoRowDecodecxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:303:9`!(TIFFcxx . . $ TIFF#* tif, uint8cxx . . $ uint8#* pp, tmsize_tcxx . . $ tmsize_t# cc, uint16cxx . . $ uint16# s); |
| 270 | extern int _TIFFNoStripDecodecxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:306:9`!(TIFFcxx . . $ TIFF#* tif, uint8cxx . . $ uint8#* pp, tmsize_tcxx . . $ tmsize_t# cc, uint16cxx . . $ uint16# s); |
| 271 | extern int _TIFFNoTileDecodecxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:308:9`!(TIFFcxx . . $ TIFF#*, uint8cxx . . $ uint8#* pp, tmsize_tcxx . . $ tmsize_t# cc, uint16cxx . . $ uint16# s); |
| 272 | extern void _TIFFNoPostDecodecxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:301:9`!(TIFFcxx . . $ TIFF#* tif, uint8cxx . . $ uint8#* buf, tmsize_tcxx . . $ tmsize_t# cc); |
| 273 | extern int _TIFFNoPreCodecxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:302:9`!(TIFFcxx . . $ TIFF#* tif, uint16cxx . . $ uint16# s); |
| 274 | extern int _TIFFNoSeekcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:305:9`!(TIFFcxx . . $ TIFF#* tif, uint32cxx . . $ uint32# off); |
| 275 | extern void _TIFFSwab16BitDatacxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:314:9`!(TIFFcxx . . $ TIFF#* tif, uint8cxx . . $ uint8#* buf, tmsize_tcxx . . $ tmsize_t# cc); |
| 276 | extern void _TIFFSwab24BitDatacxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:315:9`!(TIFFcxx . . $ TIFF#* tif, uint8cxx . . $ uint8#* buf, tmsize_tcxx . . $ tmsize_t# cc); |
| 277 | extern void _TIFFSwab32BitDatacxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:316:9`!(TIFFcxx . . $ TIFF#* tif, uint8cxx . . $ uint8#* buf, tmsize_tcxx . . $ tmsize_t# cc); |
| 278 | extern void _TIFFSwab64BitDatacxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:317:9`!(TIFFcxx . . $ TIFF#* tif, uint8cxx . . $ uint8#* buf, tmsize_tcxx . . $ tmsize_t# cc); |
| 279 | extern int TIFFFlushData1cxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:164:9`!(TIFFcxx . . $ TIFF#* tif); |
| 280 | extern int TIFFDefaultDirectorycxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:137:9`!(TIFFcxx . . $ TIFF#* tif); |
| 281 | extern void _TIFFSetDefaultCompressionStatecxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:312:9`!(TIFFcxx . . $ TIFF#* tif); |
| 282 | extern int _TIFFRewriteFieldcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:311:9`!(TIFFcxx . . $ TIFF# *, uint16cxx . . $ uint16#, TIFFDataTypecxx . . $ TIFFDataType#, tmsize_tcxx . . $ tmsize_t#, void *); |
| 283 | extern int TIFFSetCompressionSchemecxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:227:9`!(TIFFcxx . . $ TIFF#* tif, int scheme); |
| 284 | extern int TIFFSetDefaultCompressionStatecxx . . $ TIFFSetDefaultCompressionState(77ba1bfb1fde79c2).(TIFFcxx . . $ TIFF#* tif); |
| 285 | extern uint32cxx . . $ uint32# _TIFFDefaultStripSizecxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:289:9`!(TIFFcxx . . $ TIFF#* tif, uint32cxx . . $ uint32# s); |
| 286 | extern void _TIFFDefaultTileSizecxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:290:9`!(TIFFcxx . . $ TIFF#* tif, uint32cxx . . $ uint32#* tw, uint32cxx . . $ uint32#* th); |
| 287 | extern int _TIFFDataSizecxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:288:9`!(TIFFDataTypecxx . . $ TIFFDataType# type); |
| 288 | |
| 289 | extern void _TIFFsetByteArraycxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:331:9`!(void**, void*, uint32cxx . . $ uint32#); |
| 290 | extern void _TIFFsetStringcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:338:9`!(char**, char*); |
| 291 | extern void _TIFFsetShortArraycxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:337:9`!(uint16cxx . . $ uint16#**, uint16cxx . . $ uint16#*, uint32cxx . . $ uint32#); |
| 292 | extern void _TIFFsetLongArraycxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:335:9`!(uint32cxx . . $ uint32#**, uint32cxx . . $ uint32#*, uint32cxx . . $ uint32#); |
| 293 | extern void _TIFFsetFloatArraycxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:333:9`!(float**, float*, uint32cxx . . $ uint32#); |
| 294 | extern void _TIFFsetDoubleArraycxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:332:9`!(double**, double*, uint32cxx . . $ uint32#); |
| 295 | |
| 296 | extern void _TIFFprintAsciicxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:328:9`!(FILEcxx . . $ FILE#*, const char*); |
| 297 | extern void _TIFFprintAsciiTagcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:329:9`!(FILEcxx . . $ FILE#*, const char*, const char*); |
| 298 | |
| 299 | extern TIFFErrorHandlercxx . . $ TIFFErrorHandler# _TIFFwarningHandlercxx . . $ itk_tiff__TIFFwarningHandler.; |
| 300 | extern TIFFErrorHandlercxx . . $ TIFFErrorHandler# _TIFFerrorHandlercxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:320:9`!; |
| 301 | extern TIFFErrorHandlerExtcxx . . $ TIFFErrorHandlerExt# _TIFFwarningHandlerExtcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:340:9`!; |
| 302 | extern TIFFErrorHandlerExtcxx . . $ TIFFErrorHandlerExt# _TIFFerrorHandlerExtcxx . . $ itk_tiff__TIFFerrorHandlerExt.; |
| 303 | |
| 304 | extern uint32cxx . . $ uint32# _TIFFMultiply32cxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:298:9`!(TIFFcxx . . $ TIFF#*, uint32cxx . . $ uint32#, uint32cxx . . $ uint32#, const char*); |
| 305 | extern uint64cxx . . $ uint64# _TIFFMultiply64cxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:299:9`!(TIFFcxx . . $ TIFF#*, uint64cxx . . $ uint64#, uint64cxx . . $ uint64#, const char*); |
| 306 | extern void* _TIFFCheckMalloccxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:285:9`!(TIFFcxx . . $ TIFF#*, tmsize_tcxx . . $ tmsize_t#, tmsize_tcxx . . $ tmsize_t#, const char*); |
| 307 | extern void* _TIFFCheckRealloccxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:286:9`!(TIFFcxx . . $ TIFF#*, void*, tmsize_tcxx . . $ tmsize_t#, tmsize_tcxx . . $ tmsize_t#, const char*); |
| 308 | |
| 309 | extern double _TIFFUInt64ToDoublecxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:318:9`!(uint64cxx . . $ uint64#); |
| 310 | extern float _TIFFUInt64ToFloatcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:319:9`!(uint64cxx . . $ uint64#); |
| 311 | |
| 312 | extern int TIFFInitDumpModecxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:182:9`!(TIFFcxx . . $ TIFF#*, int); |
| 313 | #ifdef PACKBITS_SUPPORTcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tif_config.h:266:9`! |
| 314 | extern int TIFFInitPackBitscxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:80:9`!(TIFFcxx . . $ TIFF#*, int); |
| 315 | #endif |
| 316 | #ifdef CCITT_SUPPORTcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tif_config.h:16:9`! |
| 317 | extern int TIFFInitCCITTRLEcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:47:9`!(TIFFcxx . . $ TIFF#*, int), TIFFInitCCITTRLEWcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:48:9`!(TIFFcxx . . $ TIFF#*, int); |
| 318 | extern int TIFFInitCCITTFax3cxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:45:9`!(TIFFcxx . . $ TIFF#*, int), TIFFInitCCITTFax4cxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:46:9`!(TIFFcxx . . $ TIFF#*, int); |
| 319 | #endif |
| 320 | #ifdef THUNDER_SUPPORT |
| 321 | extern int TIFFInitThunderScan(TIFF*, int); |
| 322 | #endif |
| 323 | #ifdef NEXT_SUPPORTcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tif_config.h:235:9`! |
| 324 | extern int TIFFInitNeXTcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:72:9`!(TIFFcxx . . $ TIFF#*, int); |
| 325 | #endif |
| 326 | #ifdef LZW_SUPPORTcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tif_config.h:229:9`! |
| 327 | extern int TIFFInitLZWcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:68:9`!(TIFFcxx . . $ TIFF#*, int); |
| 328 | #endif |
| 329 | #ifdef OJPEG_SUPPORT |
| 330 | extern int TIFFInitOJPEG(TIFF*, int); |
| 331 | #endif |
| 332 | #ifdef JPEG_SUPPORTcxx . . $ `<built-in>:410:9`! |
| 333 | extern int TIFFInitJPEGcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:56:9`!(TIFFcxx . . $ TIFF#*, int); |
| 334 | #endif |
| 335 | #ifdef JBIG_SUPPORT |
| 336 | extern int TIFFInitJBIG(TIFF*, int); |
| 337 | #endif |
| 338 | #ifdef ZIP_SUPPORTcxx . . $ `<built-in>:411:9`! |
| 339 | extern int TIFFInitZIPcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:92:9`!(TIFFcxx . . $ TIFF#*, int); |
| 340 | #endif |
| 341 | #ifdef PIXARLOG_SUPPORT |
| 342 | extern int TIFFInitPixarLog(TIFF*, int); |
| 343 | #endif |
| 344 | #ifdef LOGLUV_SUPPORTcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tif_config.h:219:9`! |
| 345 | extern int TIFFInitSGILogcxx . . $ `build/Modules/ThirdParty/TIFF/src/itktiff/itk_tiff_mangle.h:60:9`!(TIFFcxx . . $ TIFF#*, int); |
| 346 | #endif |
| 347 | #ifdef LZMA_SUPPORT |
| 348 | extern int TIFFInitLZMA(TIFF*, int); |
| 349 | #endif |
| 350 | #ifdef VMS |
| 351 | extern const TIFFCodec _TIFFBuiltinCODECS[]; |
| 352 | #else |
| 353 | extern TIFFCodeccxx . . $ TIFFCodec# _TIFFBuiltinCODECScxx . . $ itk_tiff__TIFFBuiltinCODECS.[]; |
| 354 | #endif |
| 355 | |
| 356 | #if defined(__cplusplus) |
| 357 | } |
| 358 | #endif |
| 359 | #endif /* _TIFFIOP_ */ |
| 360 | |
| 361 | /* vim: set ts=8 sts=8 sw=8 noet: */ |
| 362 | /* |
| 363 | * Local Variables: |
| 364 | * mode: c |
| 365 | * c-basic-offset: 8 |
| 366 | * fill-column: 78 |
| 367 | * End: |
| 368 | */ |