| 1 |
/* |
| 2 |
* Copyright (c) 1988-1997 Sam Leffler |
| 3 |
* Copyright (c) 1991-1997 Silicon Graphics, Inc. |
| 4 |
* |
| 5 |
* Permission to use, copy, modify, distribute, and sell this software and |
| 6 |
* its documentation for any purpose is hereby granted without fee, provided |
| 7 |
* that (i) the above copyright notices and this permission notice appear in |
| 8 |
* all copies of the software and related documentation, and (ii) the names of |
| 9 |
* Sam Leffler and Silicon Graphics may not be used in any advertising or |
| 10 |
* publicity relating to the software without the specific, prior written |
| 11 |
* permission of Sam Leffler and Silicon Graphics. |
| 12 |
* |
| 13 |
* THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, |
| 14 |
* EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY |
| 15 |
* WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. |
| 16 |
* |
| 17 |
* IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR |
| 18 |
* ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, |
| 19 |
* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, |
| 20 |
* WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF |
| 21 |
* LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE |
| 22 |
* OF THIS SOFTWARE. |
| 23 |
*/ |
| 24 |
|
| 25 |
#ifndef _TIFFIOP_ |
| 26 |
#define _TIFFIOP_cxx . . $ `libtiff/tiffiop.h:26:9`! |
| 27 |
/* |
| 28 |
* ``Library-private'' definitions. |
| 29 |
*/ |
| 30 |
|
| 31 |
#include "tif_config.h"cxx . . $ `<file>/libtiff/tif_config.h`/ |
| 32 |
|
| 33 |
#ifdef HAVE_FCNTL_Hcxx . . $ `libtiff/tif_config.h:36:9`! |
| 34 |
#include <fcntl.h> |
| 35 |
#endif |
| 36 |
|
| 37 |
#ifdef HAVE_SYS_TYPES_Hcxx . . $ `libtiff/tif_config.h:81:9`! |
| 38 |
#include <sys/types.h> |
| 39 |
#endif |
| 40 |
|
| 41 |
#include <string.h> |
| 42 |
|
| 43 |
#ifdef HAVE_ASSERT_Hcxx . . $ `libtiff/tif_config.h:29:9`! |
| 44 |
#include <assert.h> |
| 45 |
#else |
| 46 |
#define assert(x) |
| 47 |
#endif |
| 48 |
|
| 49 |
#include "tif_hash_set.h"cxx . . $ `<file>/libtiff/tif_hash_set.h`/ |
| 50 |
#include "tiffio.h"cxx . . $ `<file>/libtiff/tiffio.h`/ |
| 51 |
|
| 52 |
#include "tif_dir.h"cxx . . $ `<file>/libtiff/tif_dir.h`/ |
| 53 |
|
| 54 |
#include <limits.h> |
| 55 |
|
| 56 |
#ifndef STRIP_SIZE_DEFAULTcxx . . $ `libtiff/tif_config.h:123:9`! |
| 57 |
#define STRIP_SIZE_DEFAULT 8192 |
| 58 |
#endif |
| 59 |
|
| 60 |
#ifndef TIFF_MAX_DIR_COUNTcxx . . $ `libtiff/tif_config.h:126:9`! |
| 61 |
#define TIFF_MAX_DIR_COUNT 1048576 |
| 62 |
#endif |
| 63 |
|
| 64 |
#define TIFF_NON_EXISTENT_DIR_NUMBERcxx . . $ `libtiff/tiffiop.h:64:9`! UINT_MAXcxx . . $ `<external>/67164224788392828/limits.h:124:9`! |
| 65 |
|
| 66 |
#define streqcxx . . $ `libtiff/tiffiop.h:66:9`!(a, b) (strcmp(a, b) == 0) |
| 67 |
#define strneqcxx . . $ `libtiff/tiffiop.h:67:9`!(a, b, n) (strncmp(a, b, n) == 0) |
| 68 |
|
| 69 |
#ifndef TRUE |
| 70 |
#define TRUEcxx . . $ `libtiff/tiffiop.h:70:9`! 1 |
| 71 |
#define FALSEcxx . . $ `libtiff/tiffiop.h:71:9`! 0 |
| 72 |
#endif |
| 73 |
|
| 74 |
typedef struct client_infocxx . . $ client_info# |
| 75 |
{ |
| 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 deprecated 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# *, uint16_tcxx . . $ uint16_t#); |
| 91 |
typedef int (*TIFFCodeMethodcxx . . $ TIFFCodeMethod#)(TIFFcxx . . $ TIFF# *tif, uint8_tcxx . . $ uint8_t# *buf, tmsize_tcxx . . $ tmsize_t# size, |
| 92 |
uint16_tcxx . . $ uint16_t# sample); |
| 93 |
typedef int (*TIFFSeekMethodcxx . . $ TIFFSeekMethod#)(TIFFcxx . . $ TIFF# *, uint32_tcxx . . $ uint32_t#); |
| 94 |
typedef void (*TIFFPostMethodcxx . . $ TIFFPostMethod#)(TIFFcxx . . $ TIFF# *tif, uint8_tcxx . . $ uint8_t# *buf, tmsize_tcxx . . $ tmsize_t# size); |
| 95 |
typedef uint32_tcxx . . $ uint32_t# (*TIFFStripMethodcxx . . $ TIFFStripMethod#)(TIFFcxx . . $ TIFF# *, uint32_tcxx . . $ uint32_t#); |
| 96 |
typedef void (*TIFFTileMethodcxx . . $ TIFFTileMethod#)(TIFFcxx . . $ TIFF# *, uint32_tcxx . . $ uint32_t# *, uint32_tcxx . . $ uint32_t# *); |
| •97 |
typedef uint64_tcxx . . $ uint64_t# (*TIFFGetMaxCompressionRatioMethodcxx . . $ TIFFGetMaxCompressionRatioMethod#)(TIFFcxx . . $ TIFF# *); |
| 98 |
|
| 99 |
struct TIFFOffsetAndDirNumbercxx . . $ TIFFOffsetAndDirNumber# |
| 100 |
{ |
| 101 |
uint64_tcxx . . $ uint64_t# offsetcxx . . $ TIFFOffsetAndDirNumber#offset.; |
| 102 |
tdir_tcxx . . $ tdir_t# dirNumbercxx . . $ TIFFOffsetAndDirNumber#dirNumber.; |
| 103 |
}; |
| 104 |
typedef struct TIFFOffsetAndDirNumbercxx . . $ TIFFOffsetAndDirNumber# TIFFOffsetAndDirNumbercxx . . $ TIFFOffsetAndDirNumber#; |
| 105 |
|
| 106 |
typedef unioncxx . . $ $anonymous_type_e981100bcd476b99_0# |
| 107 |
{ |
| 108 |
TIFFHeaderCommoncxx . . $ TIFFHeaderCommon# commoncxx . . $ $anonymous_type_e981100bcd476b99_0#common.; |
| 109 |
TIFFHeaderClassiccxx . . $ TIFFHeaderClassic# classiccxx . . $ $anonymous_type_e981100bcd476b99_0#classic.; |
| 110 |
TIFFHeaderBigcxx . . $ TIFFHeaderBig# bigcxx . . $ $anonymous_type_e981100bcd476b99_0#big.; |
| 111 |
} TIFFHeaderUnioncxx . . $ TIFFHeaderUnion#; |
| 112 |
|
| 113 |
struct tiffcxx . . $ tiff# |
| 114 |
{ |
| 115 |
char *tif_namecxx . . $ tiff#tif_name.; /* name of open file */ |
| 116 |
int tif_fdcxx . . $ tiff#tif_fd.; /* open file descriptor */ |
| 117 |
int tif_modecxx . . $ tiff#tif_mode.; /* open mode (O_*) */ |
| 118 |
uint32_tcxx . . $ uint32_t# tif_flagscxx . . $ tiff#tif_flags.; |
| 119 |
#define TIFF_FILLORDERcxx . . $ `libtiff/tiffiop.h:119:9`! 0x00003U /* natural bit fill order for machine */ |
| 120 |
#define TIFF_DIRTYHEADERcxx . . $ `libtiff/tiffiop.h:120:9`! 0x00004U /* header must be written on close */ |
| 121 |
#define TIFF_DIRTYDIRECTcxx . . $ `libtiff/tiffiop.h:121:9`! 0x00008U /* current directory must be written */ |
| 122 |
#define TIFF_BUFFERSETUPcxx . . $ `libtiff/tiffiop.h:122:9`! 0x00010U /* data buffers setup */ |
| 123 |
#define TIFF_CODERSETUPcxx . . $ `libtiff/tiffiop.h:123:9`! 0x00020U /* encoder/decoder setup done */ |
| 124 |
#define TIFF_BEENWRITINGcxx . . $ `libtiff/tiffiop.h:124:9`! 0x00040U /* written 1+ scanlines to file */ |
| 125 |
#define TIFF_SWABcxx . . $ `libtiff/tiffiop.h:125:9`! 0x00080U /* byte swap file information */ |
| 126 |
#define TIFF_NOBITREVcxx . . $ `libtiff/tiffiop.h:126:9`! 0x00100U /* inhibit bit reversal logic */ |
| 127 |
#define TIFF_MYBUFFERcxx . . $ `libtiff/tiffiop.h:127:9`! 0x00200U /* my raw data buffer; free on close */ |
| 128 |
#define TIFF_ISTILEDcxx . . $ `libtiff/tiffiop.h:128:9`! 0x00400U /* file is tile, not strip- based */ |
| 129 |
#define TIFF_MAPPEDcxx . . $ `libtiff/tiffiop.h:129:9`! 0x00800U /* file is mapped into memory */ |
| 130 |
#define TIFF_POSTENCODEcxx . . $ `libtiff/tiffiop.h:130:9`! 0x01000U /* need call to postencode routine */ |
| 131 |
#define TIFF_INSUBIFDcxx . . $ `libtiff/tiffiop.h:131:9`! 0x02000U /* currently writing a subifd */ |
| 132 |
#define TIFF_UPSAMPLEDcxx . . $ `libtiff/tiffiop.h:132:9`! 0x04000U /* library is doing data up-sampling */ |
| 133 |
#define TIFF_STRIPCHOPcxx . . $ `libtiff/tiffiop.h:133:9`! 0x08000U /* enable strip chopping support */ |
| 134 |
#define TIFF_HEADERONLYcxx . . $ `libtiff/tiffiop.h:134:9`! \ |
| 135 |
0x10000U /* read header only, do not process the first directory */ |
| 136 |
#define TIFF_NOREADRAWcxx . . $ `libtiff/tiffiop.h:136:9`! \ |
| 137 |
0x20000U /* skip reading of raw uncompressed image data */ |
| 138 |
#define TIFF_INCUSTOMIFDcxx . . $ `libtiff/tiffiop.h:138:9`! 0x40000U /* currently writing a custom IFD */ |
| 139 |
#define TIFF_BIGTIFFcxx . . $ `libtiff/tiffiop.h:139:9`! 0x80000U /* read/write bigtiff */ |
| 140 |
#define TIFF_BUF4WRITEcxx . . $ `libtiff/tiffiop.h:140:9`! 0x100000U /* rawcc bytes are for writing */ |
| 141 |
#define TIFF_DIRTYSTRIPcxx . . $ `libtiff/tiffiop.h:141:9`! 0x200000U /* stripoffsets/stripbytecount dirty*/ |
| 142 |
#define TIFF_PERSAMPLEcxx . . $ `libtiff/tiffiop.h:142:9`! 0x400000U /* get/set per sample tags as arrays */ |
| 143 |
#define TIFF_BUFFERMMAPcxx . . $ `libtiff/tiffiop.h:143:9`! \ |
| 144 |
0x800000U /* read buffer (tif_rawdata) points into mmap() memory */ |
| 145 |
#define TIFF_DEFERSTRILELOADcxx . . $ `libtiff/tiffiop.h:145:9`! \ |
| 146 |
0x1000000U /* defer strip/tile offset/bytecount array loading. */ |
| 147 |
#define TIFF_LAZYSTRILELOADcxx . . $ `libtiff/tiffiop.h:147:9`! \ |
| 148 |
0x2000000U /* lazy/ondemand loading of strip/tile offset/bytecount values. \ |
| 149 |
Only used if TIFF_DEFERSTRILELOAD is set and in read-only \ |
| 150 |
mode */ |
| 151 |
#define TIFF_CHOPPEDUPARRAYScxx . . $ `libtiff/tiffiop.h:151:9`! \ |
| 152 |
0x4000000U /* set when allocChoppedUpStripArrays() has modified strip \ |
| 153 |
array */ |
| 154 |
uint64_tcxx . . $ uint64_t# tif_diroffcxx . . $ tiff#tif_diroff.; /* file offset of current directory */ |
| 155 |
uint64_tcxx . . $ uint64_t# tif_nextdiroffcxx . . $ tiff#tif_nextdiroff.; /* file offset of following directory */ |
| 156 |
uint64_tcxx . . $ uint64_t# tif_lastdiroffcxx . . $ tiff#tif_lastdiroff.; /* file offset of last directory written so far */ |
| 157 |
TIFFHashSetcxx . . $ TIFFHashSet# *tif_map_dir_offset_to_numbercxx . . $ tiff#tif_map_dir_offset_to_number.; |
| 158 |
TIFFHashSetcxx . . $ TIFFHashSet# *tif_map_dir_number_to_offsetcxx . . $ tiff#tif_map_dir_number_to_offset.; |
| 159 |
int tif_setdirectory_force_absolutecxx . . $ tiff#tif_setdirectory_force_absolute.; /* switch between relative and absolute |
| 160 |
stepping in TIFFSetDirectory() */ |
| 161 |
TIFFDirectorycxx . . $ TIFFDirectory# tif_dircxx . . $ tiff#tif_dir.; /* internal rep of current directory */ |
| 162 |
TIFFDirectorycxx . . $ TIFFDirectory# |
| 163 |
tif_customdircxx . . $ tiff#tif_customdir.; /* custom IFDs are separated from the main ones */ |
| 164 |
TIFFHeaderUnioncxx . . $ TIFFHeaderUnion# tif_headercxx . . $ tiff#tif_header.; /* file's header block Classic/BigTIFF union */ |
| 165 |
uint16_tcxx . . $ uint16_t# tif_header_sizecxx . . $ tiff#tif_header_size.; /* file's header block and its length */ |
| 166 |
uint32_tcxx . . $ uint32_t# tif_rowcxx . . $ tiff#tif_row.; /* current scanline */ |
| 167 |
|
| 168 |
/* There are IFDs in the file and an "active" IFD in memory, |
| 169 |
* from which fields are "set" and "get". |
| 170 |
* tif_curdir is set to: |
| 171 |
* a) TIFF_NON_EXISTENT_DIR_NUMBER if there is no IFD in the file |
| 172 |
* or the state is unknown, |
| 173 |
* or the last read (i.e. TIFFFetchDirectory()) failed, |
| 174 |
* or a custom directory was written. |
| 175 |
* b) IFD index of last IFD written in the file. In this case the |
| 176 |
* active IFD is a new (empty) one and tif_diroff is zero. |
| 177 |
* If writing fails, tif_curdir is not changed. |
| 178 |
* c) IFD index of IFD read from file into memory (=active IFD), |
| 179 |
* even if IFD is corrupt and TIFFReadDirectory() returns 0. |
| 180 |
* Then tif_diroff contains the offset of the IFD in the file. |
| 181 |
* d) IFD index 0, whenever a custom directory or an unchained SubIFD |
| 182 |
* was read. */ |
| 183 |
tdir_tcxx . . $ tdir_t# tif_curdircxx . . $ tiff#tif_curdir.; /* current directory (index) */ |
| 184 |
/* tif_curdircount: number of directories (main-IFDs) in file: |
| 185 |
* - TIFF_NON_EXISTENT_DIR_NUMBER means 'dont know number of IFDs'. |
| 186 |
* - 0 means 'empty file opened for writing, but no IFD written yet' */ |
| 187 |
tdir_tcxx . . $ tdir_t# tif_curdircountcxx . . $ tiff#tif_curdircount.; |
| 188 |
uint32_tcxx . . $ uint32_t# tif_curstripcxx . . $ tiff#tif_curstrip.; /* current strip for read/write */ |
| 189 |
uint64_tcxx . . $ uint64_t# tif_curoffcxx . . $ tiff#tif_curoff.; /* current offset for read/write */ |
| 190 |
uint64_tcxx . . $ uint64_t# tif_lastvalidoffcxx . . $ tiff#tif_lastvalidoff.; /* last valid offset allowed for rewrite in |
| 191 |
place. Used only by TIFFAppendToStrip() */ |
| 192 |
uint64_tcxx . . $ uint64_t# tif_dataoffcxx . . $ tiff#tif_dataoff.; /* current offset for writing dir (IFD) */ |
| 193 |
/* SubIFD support */ |
| 194 |
uint16_tcxx . . $ uint16_t# tif_nsubifdcxx . . $ tiff#tif_nsubifd.; /* remaining subifds to write */ |
| 195 |
uint64_tcxx . . $ uint64_t# tif_subifdoffcxx . . $ tiff#tif_subifdoff.; /* offset for patching SubIFD link */ |
| 196 |
/* tiling support */ |
| 197 |
uint32_tcxx . . $ uint32_t# tif_colcxx . . $ tiff#tif_col.; /* current column (offset by row too) */ |
| 198 |
uint32_tcxx . . $ uint32_t# tif_curtilecxx . . $ tiff#tif_curtile.; /* current tile for read/write */ |
| 199 |
tmsize_tcxx . . $ tmsize_t# tif_tilesizecxx . . $ tiff#tif_tilesize.; /* # of bytes in a tile */ |
| 200 |
/* compression scheme hooks */ |
| 201 |
int tif_decodestatuscxx . . $ tiff#tif_decodestatus.; |
| 202 |
TIFFBoolMethodcxx . . $ TIFFBoolMethod# tif_fixuptagscxx . . $ tiff#tif_fixuptags.; /* called in TIFFReadDirectory */ |
| 203 |
TIFFBoolMethodcxx . . $ TIFFBoolMethod# tif_setupdecodecxx . . $ tiff#tif_setupdecode.; /* called once before predecode */ |
| 204 |
TIFFPreMethodcxx . . $ TIFFPreMethod# tif_predecodecxx . . $ tiff#tif_predecode.; /* pre- row/strip/tile decoding */ |
| 205 |
TIFFBoolMethodcxx . . $ TIFFBoolMethod# tif_setupencodecxx . . $ tiff#tif_setupencode.; /* called once before preencode */ |
| 206 |
int tif_encodestatuscxx . . $ tiff#tif_encodestatus.; |
| 207 |
TIFFPreMethodcxx . . $ TIFFPreMethod# tif_preencodecxx . . $ tiff#tif_preencode.; /* pre- row/strip/tile encoding */ |
| 208 |
TIFFBoolMethodcxx . . $ TIFFBoolMethod# tif_postencodecxx . . $ tiff#tif_postencode.; /* post- row/strip/tile encoding */ |
| 209 |
TIFFCodeMethodcxx . . $ TIFFCodeMethod# tif_decoderowcxx . . $ tiff#tif_decoderow.; /* scanline decoding routine */ |
| 210 |
TIFFCodeMethodcxx . . $ TIFFCodeMethod# tif_encoderowcxx . . $ tiff#tif_encoderow.; /* scanline encoding routine */ |
| 211 |
TIFFCodeMethodcxx . . $ TIFFCodeMethod# tif_decodestripcxx . . $ tiff#tif_decodestrip.; /* strip decoding routine */ |
| 212 |
TIFFCodeMethodcxx . . $ TIFFCodeMethod# tif_encodestripcxx . . $ tiff#tif_encodestrip.; /* strip encoding routine */ |
| 213 |
TIFFCodeMethodcxx . . $ TIFFCodeMethod# tif_decodetilecxx . . $ tiff#tif_decodetile.; /* tile decoding routine */ |
| 214 |
TIFFCodeMethodcxx . . $ TIFFCodeMethod# tif_encodetilecxx . . $ tiff#tif_encodetile.; /* tile encoding routine */ |
| 215 |
TIFFVoidMethodcxx . . $ TIFFVoidMethod# tif_closecxx . . $ tiff#tif_close.; /* cleanup-on-close routine */ |
| 216 |
TIFFSeekMethodcxx . . $ TIFFSeekMethod# tif_seekcxx . . $ tiff#tif_seek.; /* position within a strip routine */ |
| 217 |
TIFFVoidMethodcxx . . $ TIFFVoidMethod# tif_cleanupcxx . . $ tiff#tif_cleanup.; /* cleanup state routine */ |
| 218 |
TIFFStripMethodcxx . . $ TIFFStripMethod# tif_defstripsizecxx . . $ tiff#tif_defstripsize.; /* calculate/constrain strip size */ |
| 219 |
TIFFTileMethodcxx . . $ TIFFTileMethod# tif_deftilesizecxx . . $ tiff#tif_deftilesize.; /* calculate/constrain tile size */ |
| •220 |
/* returns maximum compression ratio for current compression method */ |
| 221 |
TIFFGetMaxCompressionRatioMethodcxx . . $ TIFFGetMaxCompressionRatioMethod# tif_getmaxcompressionratiocxx . . $ tiff#tif_getmaxcompressionratio.; |
| 222 |
uint8_tcxx . . $ uint8_t# *tif_datacxx . . $ tiff#tif_data.; /* compression scheme private data */ |
| 223 |
/* input/output buffering */ |
| 224 |
tmsize_tcxx . . $ tmsize_t# tif_scanlinesizecxx . . $ tiff#tif_scanlinesize.; /* # of bytes in a scanline */ |
| 225 |
tmsize_tcxx . . $ tmsize_t# tif_scanlineskewcxx . . $ tiff#tif_scanlineskew.; /* scanline skew for reading strips */ |
| 226 |
uint8_tcxx . . $ uint8_t# *tif_rawdatacxx . . $ tiff#tif_rawdata.; /* raw data buffer */ |
| 227 |
tmsize_tcxx . . $ tmsize_t# tif_rawdatasizecxx . . $ tiff#tif_rawdatasize.; /* # of bytes in raw data buffer */ |
| 228 |
tmsize_tcxx . . $ tmsize_t# tif_rawdataoffcxx . . $ tiff#tif_rawdataoff.; /* rawdata offset within strip */ |
| 229 |
tmsize_tcxx . . $ tmsize_t# tif_rawdataloadedcxx . . $ tiff#tif_rawdataloaded.; /* amount of data in rawdata */ |
| 230 |
uint8_tcxx . . $ uint8_t# *tif_rawcpcxx . . $ tiff#tif_rawcp.; /* current spot in raw buffer */ |
| 231 |
tmsize_tcxx . . $ tmsize_t# tif_rawcccxx . . $ tiff#tif_rawcc.; /* bytes unread from raw buffer */ |
| 232 |
/* memory-mapped file support */ |
| 233 |
uint8_tcxx . . $ uint8_t# *tif_basecxx . . $ tiff#tif_base.; /* base of mapped file */ |
| 234 |
tmsize_tcxx . . $ tmsize_t# tif_sizecxx . . $ tiff#tif_size.; /* size of mapped file region (bytes, thus tmsize_t) */ |
| 235 |
TIFFMapFileProccxx . . $ TIFFMapFileProc# tif_mapproccxx . . $ tiff#tif_mapproc.; /* map file method */ |
| 236 |
TIFFUnmapFileProccxx . . $ TIFFUnmapFileProc# tif_unmapproccxx . . $ tiff#tif_unmapproc.; /* unmap file method */ |
| 237 |
/* input/output callback methods */ |
| 238 |
thandle_tcxx . . $ thandle_t# tif_clientdatacxx . . $ tiff#tif_clientdata.; /* callback parameter */ |
| 239 |
TIFFReadWriteProccxx . . $ TIFFReadWriteProc# tif_readproccxx . . $ tiff#tif_readproc.; /* read method */ |
| 240 |
TIFFReadWriteProccxx . . $ TIFFReadWriteProc# tif_writeproccxx . . $ tiff#tif_writeproc.; /* write method */ |
| 241 |
TIFFSeekProccxx . . $ TIFFSeekProc# tif_seekproccxx . . $ tiff#tif_seekproc.; /* lseek method */ |
| 242 |
TIFFCloseProccxx . . $ TIFFCloseProc# tif_closeproccxx . . $ tiff#tif_closeproc.; /* close method */ |
| 243 |
TIFFSizeProccxx . . $ TIFFSizeProc# tif_sizeproccxx . . $ tiff#tif_sizeproc.; /* filesize method */ |
| 244 |
/* post-decoding support */ |
| 245 |
TIFFPostMethodcxx . . $ TIFFPostMethod# tif_postdecodecxx . . $ tiff#tif_postdecode.; /* post decoding routine */ |
| 246 |
/* tag support */ |
| 247 |
TIFFFieldcxx . . $ TIFFField# **tif_fieldscxx . . $ tiff#tif_fields.; /* sorted table of registered tags */ |
| 248 |
size_tcxx . . $ size_t# tif_nfieldscxx . . $ tiff#tif_nfields.; /* # entries in registered tag table */ |
| 249 |
const TIFFFieldcxx . . $ TIFFField# *tif_foundfieldcxx . . $ tiff#tif_foundfield.; /* cached pointer to already found tag */ |
| 250 |
TIFFTagMethodscxx . . $ TIFFTagMethods# tif_tagmethodscxx . . $ tiff#tif_tagmethods.; /* tag get/set/print routines */ |
| 251 |
TIFFClientInfoLinkcxx . . $ TIFFClientInfoLink# *tif_clientinfocxx . . $ tiff#tif_clientinfo.; /* extra client information. */ |
| 252 |
/* Backward compatibility stuff. We need these two fields for |
| 253 |
* setting up an old tag extension scheme. */ |
| 254 |
TIFFFieldArraycxx . . $ TIFFFieldArray# *tif_fieldscompatcxx . . $ tiff#tif_fieldscompat.; |
| 255 |
size_tcxx . . $ size_t# tif_nfieldscompatcxx . . $ tiff#tif_nfieldscompat.; |
| 256 |
/* Error handler support */ |
| 257 |
TIFFErrorHandlerExtRcxx . . $ TIFFErrorHandlerExtR# tif_errorhandlercxx . . $ tiff#tif_errorhandler.; |
| 258 |
void *tif_errorhandler_user_datacxx . . $ tiff#tif_errorhandler_user_data.; |
| 259 |
TIFFErrorHandlerExtRcxx . . $ TIFFErrorHandlerExtR# tif_warnhandlercxx . . $ tiff#tif_warnhandler.; |
| 260 |
void *tif_warnhandler_user_datacxx . . $ tiff#tif_warnhandler_user_data.; |
| 261 |
tmsize_tcxx . . $ tmsize_t# tif_max_single_mem_alloccxx . . $ tiff#tif_max_single_mem_alloc.; /* in bytes. 0 for unlimited */ |
| 262 |
tmsize_tcxx . . $ tmsize_t# tif_max_cumulated_mem_alloccxx . . $ tiff#tif_max_cumulated_mem_alloc.; /* in bytes. 0 for unlimited */ |
| 263 |
tmsize_tcxx . . $ tmsize_t# tif_cur_cumulated_mem_alloccxx . . $ tiff#tif_cur_cumulated_mem_alloc.; /* in bytes */ |
| 264 |
int tif_warn_about_unknown_tagscxx . . $ tiff#tif_warn_about_unknown_tags.; |
| 265 |
}; |
| 266 |
|
| 267 |
struct TIFFOpenOptionscxx . . $ TIFFOpenOptions# |
| 268 |
{ |
| 269 |
TIFFErrorHandlerExtRcxx . . $ TIFFErrorHandlerExtR# errorhandlercxx . . $ TIFFOpenOptions#errorhandler.; /* may be NULL */ |
| 270 |
void *errorhandler_user_datacxx . . $ TIFFOpenOptions#errorhandler_user_data.; /* may be NULL */ |
| 271 |
TIFFErrorHandlerExtRcxx . . $ TIFFErrorHandlerExtR# warnhandlercxx . . $ TIFFOpenOptions#warnhandler.; /* may be NULL */ |
| 272 |
void *warnhandler_user_datacxx . . $ TIFFOpenOptions#warnhandler_user_data.; /* may be NULL */ |
| 273 |
tmsize_tcxx . . $ tmsize_t# max_single_mem_alloccxx . . $ TIFFOpenOptions#max_single_mem_alloc.; /* in bytes. 0 for unlimited */ |
| 274 |
tmsize_tcxx . . $ tmsize_t# max_cumulated_mem_alloccxx . . $ TIFFOpenOptions#max_cumulated_mem_alloc.; /* in bytes. 0 for unlimited */ |
| 275 |
int warn_about_unknown_tagscxx . . $ TIFFOpenOptions#warn_about_unknown_tags.; |
| 276 |
}; |
| 277 |
|
| 278 |
#define isPseudoTagcxx . . $ `libtiff/tiffiop.h:278:9`!(t) (t > 0xffff) /* is tag value normal or pseudo */ |
| 279 |
|
| 280 |
#define isTiledcxx . . $ `libtiff/tiffiop.h:280:9`!(tif) (((tif)->tif_flags & TIFF_ISTILEDcxx . . $ `libtiff/tiffiop.h:128:9`!) != 0) |
| 281 |
#define isMappedcxx . . $ `libtiff/tiffiop.h:281:9`!(tif) (((tif)->tif_flags & TIFF_MAPPEDcxx . . $ `libtiff/tiffiop.h:129:9`!) != 0) |
| 282 |
#define isFillOrdercxx . . $ `libtiff/tiffiop.h:282:9`!(tif, o) (((tif)->tif_flags & (o)) != 0) |
| 283 |
#define isUpSampledcxx . . $ `libtiff/tiffiop.h:283:9`!(tif) (((tif)->tif_flags & TIFF_UPSAMPLEDcxx . . $ `libtiff/tiffiop.h:132:9`!) != 0) |
| 284 |
#define TIFFReadFilecxx . . $ `libtiff/tiffiop.h:284:9`!(tif, buf, size) \ |
| 285 |
((*(tif)->tif_readproc)((tif)->tif_clientdata, (buf), (size))) |
| 286 |
#define TIFFWriteFilecxx . . $ `libtiff/tiffiop.h:286:9`!(tif, buf, size) \ |
| 287 |
((*(tif)->tif_writeproc)((tif)->tif_clientdata, (buf), (size))) |
| 288 |
#define TIFFSeekFilecxx . . $ `libtiff/tiffiop.h:288:9`!(tif, off, whence) \ |
| 289 |
((*(tif)->tif_seekproc)((tif)->tif_clientdata, (off), (whence))) |
| 290 |
#define TIFFCloseFilecxx . . $ `libtiff/tiffiop.h:290:9`!(tif) ((*(tif)->tif_closeproc)((tif)->tif_clientdata)) |
| 291 |
#define TIFFGetFileSizecxx . . $ `libtiff/tiffiop.h:291:9`!(tif) ((*(tif)->tif_sizeproc)((tif)->tif_clientdata)) |
| 292 |
#define TIFFMapFileContentscxx . . $ `libtiff/tiffiop.h:292:9`!(tif, paddr, psize) \ |
| 293 |
((*(tif)->tif_mapproc)((tif)->tif_clientdata, (paddr), (psize))) |
| 294 |
#define TIFFUnmapFileContentscxx . . $ `libtiff/tiffiop.h:294:9`!(tif, addr, size) \ |
| 295 |
((*(tif)->tif_unmapproc)((tif)->tif_clientdata, (addr), (size))) |
| 296 |
|
| 297 |
/* |
| 298 |
* Default Read/Seek/Write definitions. |
| 299 |
*/ |
| 300 |
#ifndef ReadOK |
| 301 |
#define ReadOKcxx . . $ `libtiff/tiffiop.h:301:9`!(tif, buf, size) (TIFFReadFilecxx . . $ `libtiff/tiffiop.h:284:9`!((tif), (buf), (size)) == (size)) |
| 302 |
#endif |
| 303 |
#ifndef SeekOK |
| 304 |
#define SeekOKcxx . . $ `libtiff/tiffiop.h:304:9`!(tif, off) _TIFFSeekOK(tif, off) |
| 305 |
#endif |
| 306 |
#ifndef WriteOK |
| 307 |
#define WriteOKcxx . . $ `libtiff/tiffiop.h:307:9`!(tif, buf, size) (TIFFWriteFile((tif), (buf), (size)) == (size)) |
| 308 |
#endif |
| 309 |
|
| 310 |
/* NB: the uint32_t casts are to silence certain ANSI-C compilers */ |
| 311 |
#define TIFFhowmany_32cxx . . $ `libtiff/tiffiop.h:311:9`!(x, y) \ |
| 312 |
(((uint32_t)x < (0xffffffff - (uint32_t)(y - 1))) \ |
| 313 |
? ((((uint32_t)(x)) + (((uint32_t)(y)) - 1)) / ((uint32_t)(y))) \ |
| 314 |
: 0U) |
| 315 |
/* Variant of TIFFhowmany_32() that doesn't return 0 if x close to MAXUINT. */ |
| 316 |
/* Caution: TIFFhowmany_32_maxuint_compat(x,y)*y might overflow */ |
| 317 |
#define TIFFhowmany_32_maxuint_compatcxx . . $ `libtiff/tiffiop.h:317:9`!(x, y) \ |
| 318 |
(((uint32_t)(x) / (uint32_t)(y)) + \ |
| 319 |
((((uint32_t)(x) % (uint32_t)(y)) != 0) ? 1 : 0)) |
| 320 |
#define TIFFhowmany8_32cxx . . $ `libtiff/tiffiop.h:320:9`!(x) \ |
| 321 |
(((x)&0x07) ? ((uint32_t)(x) >> 3) + 1 : (uint32_t)(x) >> 3) |
| 322 |
#define TIFFroundup_32cxx . . $ `libtiff/tiffiop.h:322:9`!(x, y) (TIFFhowmany_32(x, y) * (y)) |
| 323 |
#define TIFFhowmany_64cxx . . $ `libtiff/tiffiop.h:323:9`!(x, y) \ |
| 324 |
((((uint64_t)(x)) + (((uint64_t)(y)) - 1)) / ((uint64_t)(y))) |
| 325 |
#define TIFFhowmany8_64cxx . . $ `libtiff/tiffiop.h:325:9`!(x) \ |
| 326 |
(((x)&0x07) ? ((uint64_t)(x) >> 3) + 1 : (uint64_t)(x) >> 3) |
| 327 |
#define TIFFroundup_64cxx . . $ `libtiff/tiffiop.h:327:9`!(x, y) (TIFFhowmany_64(x, y) * (y)) |
| 328 |
|
| 329 |
/* Safe multiply which returns zero if there is an *unsigned* integer overflow. |
| 330 |
* This macro is not safe for *signed* integer types */ |
| 331 |
#define TIFFSafeMultiplycxx . . $ `libtiff/tiffiop.h:331:9`!(t, v, m) \ |
| 332 |
((((t)(m) != (t)0) && (((t)(((v) * (m)) / (m))) == (t)(v))) \ |
| 333 |
? (t)((v) * (m)) \ |
| 334 |
: (t)0) |
| 335 |
|
| 336 |
#define TIFFmaxcxx . . $ `libtiff/tiffiop.h:336:9`!(A, B) ((A) > (B) ? (A) : (B)) |
| 337 |
#define TIFFmincxx . . $ `libtiff/tiffiop.h:337:9`!(A, B) ((A) < (B) ? (A) : (B)) |
| 338 |
|
| 339 |
#define TIFFArrayCountcxx . . $ `libtiff/tiffiop.h:339:9`!(a) (sizeof(a) / sizeof((a)[0])) |
| 340 |
|
| 341 |
/* |
| 342 |
Support for large files. |
| 343 |
|
| 344 |
Windows read/write APIs support only 'unsigned int' rather than 'size_t'. |
| 345 |
Windows off_t is only 32-bit, even in 64-bit builds. |
| 346 |
*/ |
| 347 |
#if defined(HAVE_FSEEKOcxx . . $ `libtiff/tif_config.h:39:9`!) |
| 348 |
/* |
| 349 |
Use fseeko() and ftello() if they are available since they use |
| 350 |
'off_t' rather than 'long'. It is wrong to use fseeko() and |
| 351 |
ftello() only on systems with special LFS support since some systems |
| 352 |
(e.g. FreeBSD) support a 64-bit off_t by default. |
| 353 |
|
| 354 |
For MinGW, __MSVCRT_VERSION__ must be at least 0x800 to expose these |
| 355 |
interfaces. The MinGW compiler must support the requested version. MinGW |
| 356 |
does not distribute the CRT (it is supplied by Microsoft) so the correct CRT |
| 357 |
must be available on the target computer in order for the program to run. |
| 358 |
*/ |
| 359 |
#if defined(HAVE_FSEEKOcxx . . $ `libtiff/tif_config.h:39:9`!) |
| 360 |
#define fseekcxx . . $ `libtiff/tiffiop.h:360:9`!(stream, offset, whence) fseeko(stream, offset, whence) |
| 361 |
#define ftellcxx . . $ `libtiff/tiffiop.h:361:9`!(stream, offset, whence) ftello(stream, offset, whence) |
| 362 |
#endif |
| 363 |
#endif |
| 364 |
#if defined(_WIN32) && \ |
| 365 |
!(defined(__MSVCRT_VERSION__) && __MSVCRT_VERSION__ < 0x800) |
| 366 |
typedef unsigned int TIFFIOSize_t; |
| 367 |
#define _TIFF_lseek_f(fildes, offset, whence) \ |
| 368 |
_lseeki64(fildes, /* __int64 */ offset, whence) |
| 369 |
/* #define _TIFF_tell_f(fildes) /\* __int64 *\/ _telli64(fildes) */ |
| 370 |
#define _TIFF_fseek_f(stream, offset, whence) \ |
| 371 |
_fseeki64(stream, /* __int64 */ offset, whence) |
| 372 |
#define _TIFF_fstat_f(fildes, stat_buff) \ |
| 373 |
_fstati64(fildes, /* struct _stati64 */ stat_buff) |
| 374 |
/* #define _TIFF_ftell_f(stream) /\* __int64 *\/ _ftelli64(stream) */ |
| 375 |
/* #define _TIFF_stat_f(path,stat_buff) _stati64(path,/\* struct _stati64 *\/ |
| 376 |
* stat_buff) */ |
| 377 |
#define _TIFF_stat_s struct _stati64 |
| 378 |
#define _TIFF_off_t __int64 |
| 379 |
#else |
| 380 |
typedef size_tcxx . . $ size_t# TIFFIOSize_tcxx . . $ TIFFIOSize_t#; |
| 381 |
#define _TIFF_lseek_fcxx . . $ `libtiff/tiffiop.h:381:9`!(fildes, offset, whence) lseek(fildes, offset, whence) |
| 382 |
/* #define _TIFF_tell_f(fildes) (_TIFF_lseek_f(fildes,0,SEEK_CUR)) */ |
| 383 |
#define _TIFF_fseek_fcxx . . $ `libtiff/tiffiop.h:383:9`!(stream, offset, whence) fseekcxx . . $ `libtiff/tiffiop.h:360:9`!(stream, offset, whence) |
| 384 |
#define _TIFF_fstat_fcxx . . $ `libtiff/tiffiop.h:384:9`!(fildes, stat_buff) fstat(fildes, stat_buff) |
| 385 |
/* #define _TIFF_ftell_f(stream) ftell(stream) */ |
| 386 |
/* #define _TIFF_stat_f(path,stat_buff) stat(path,stat_buff) */ |
| 387 |
#define _TIFF_stat_scxx . . $ `libtiff/tiffiop.h:387:9`! struct stat |
| 388 |
#define _TIFF_off_tcxx . . $ `libtiff/tiffiop.h:388:9`! off_t |
| 389 |
#endif |
| 390 |
|
| 391 |
#if defined(__has_attribute) && defined(__clang__cxx . . $ `<built-in>:3:9`!) |
| 392 |
#if __has_attribute(no_sanitize) |
| 393 |
#define TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOWcxx . . $ `libtiff/tiffiop.h:393:9`! \ |
| 394 |
__attribute__((no_sanitize("unsigned-integer-overflow"))) |
| 395 |
#else |
| 396 |
#define TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW |
| 397 |
#endif |
| 398 |
#else |
| 399 |
#define TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW |
| 400 |
#endif |
| 401 |
|
| 402 |
#if defined(__cpluspluscxx . . $ `<built-in>:472:9`!) |
| 403 |
extern "C" |
| 404 |
{ |
| 405 |
#endif |
| 406 |
extern int _tiffDummyMapProccxx . . $ _tiffDummyMapProc(75bc687cc19be944).(thandle_tcxx . . $ thandle_t# fd, void **pbase, toff_tcxx . . $ toff_t# *psize); |
| 407 |
extern void _tiffDummyUnmapProccxx . . $ _tiffDummyUnmapProc(d02d295a36f87ec9).(thandle_tcxx . . $ thandle_t# fd, void *base, toff_tcxx . . $ toff_t# size); |
| 408 |
extern int _TIFFgetModecxx . . $ _TIFFgetMode(9ba8e4c955c78d20).(TIFFOpenOptionscxx . . $ TIFFOpenOptions# *opts, thandle_tcxx . . $ thandle_t# clientdata, |
| 409 |
const char *mode, const char *module); |
| 410 |
extern int _TIFFNoRowEncodecxx . . $ _TIFFNoRowEncode(ecb672eccd70493c).(TIFFcxx . . $ TIFF# *tif, uint8_tcxx . . $ uint8_t# *pp, tmsize_tcxx . . $ tmsize_t# cc, |
| 411 |
uint16_tcxx . . $ uint16_t# s); |
| 412 |
extern int _TIFFNoStripEncodecxx . . $ _TIFFNoStripEncode(ecb672eccd70493c).(TIFFcxx . . $ TIFF# *tif, uint8_tcxx . . $ uint8_t# *pp, tmsize_tcxx . . $ tmsize_t# cc, |
| 413 |
uint16_tcxx . . $ uint16_t# s); |
| 414 |
extern int _TIFFNoTileEncodecxx . . $ _TIFFNoTileEncode(ecb672eccd70493c).(TIFFcxx . . $ TIFF# *, uint8_tcxx . . $ uint8_t# *pp, tmsize_tcxx . . $ tmsize_t# cc, uint16_tcxx . . $ uint16_t# s); |
| 415 |
extern int _TIFFNoRowDecodecxx . . $ _TIFFNoRowDecode(ecb672eccd70493c).(TIFFcxx . . $ TIFF# *tif, uint8_tcxx . . $ uint8_t# *pp, tmsize_tcxx . . $ tmsize_t# cc, |
| 416 |
uint16_tcxx . . $ uint16_t# s); |
| 417 |
extern int _TIFFNoStripDecodecxx . . $ _TIFFNoStripDecode(ecb672eccd70493c).(TIFFcxx . . $ TIFF# *tif, uint8_tcxx . . $ uint8_t# *pp, tmsize_tcxx . . $ tmsize_t# cc, |
| 418 |
uint16_tcxx . . $ uint16_t# s); |
| 419 |
extern int _TIFFNoTileDecodecxx . . $ _TIFFNoTileDecode(ecb672eccd70493c).(TIFFcxx . . $ TIFF# *, uint8_tcxx . . $ uint8_t# *pp, tmsize_tcxx . . $ tmsize_t# cc, uint16_tcxx . . $ uint16_t# s); |
| 420 |
extern void _TIFFNoPostDecodecxx . . $ _TIFFNoPostDecode(bd0c3949ea62933d).(TIFFcxx . . $ TIFF# *tif, uint8_tcxx . . $ uint8_t# *buf, tmsize_tcxx . . $ tmsize_t# cc); |
| 421 |
extern int _TIFFNoPreCodecxx . . $ _TIFFNoPreCode(c0fe5aca7ed0e7ba).(TIFFcxx . . $ TIFF# *tif, uint16_tcxx . . $ uint16_t# s); |
| 422 |
extern int _TIFFNoSeekcxx . . $ _TIFFNoSeek(cc5795af05569a67).(TIFFcxx . . $ TIFF# *tif, uint32_tcxx . . $ uint32_t# off); |
| 423 |
extern void _TIFFSwab16BitDatacxx . . $ _TIFFSwab16BitData(bd0c3949ea62933d).(TIFFcxx . . $ TIFF# *tif, uint8_tcxx . . $ uint8_t# *buf, tmsize_tcxx . . $ tmsize_t# cc); |
| 424 |
extern void _TIFFSwab24BitDatacxx . . $ _TIFFSwab24BitData(bd0c3949ea62933d).(TIFFcxx . . $ TIFF# *tif, uint8_tcxx . . $ uint8_t# *buf, tmsize_tcxx . . $ tmsize_t# cc); |
| 425 |
extern void _TIFFSwab32BitDatacxx . . $ _TIFFSwab32BitData(bd0c3949ea62933d).(TIFFcxx . . $ TIFF# *tif, uint8_tcxx . . $ uint8_t# *buf, tmsize_tcxx . . $ tmsize_t# cc); |
| 426 |
extern void _TIFFSwab64BitDatacxx . . $ _TIFFSwab64BitData(bd0c3949ea62933d).(TIFFcxx . . $ TIFF# *tif, uint8_tcxx . . $ uint8_t# *buf, tmsize_tcxx . . $ tmsize_t# cc); |
| 427 |
extern int TIFFFlushData1cxx . . $ TIFFFlushData1(77ba1bfb1fde79c2).(TIFFcxx . . $ TIFF# *tif); |
| 428 |
extern int TIFFDefaultDirectorycxx . . $ TIFFDefaultDirectory(77ba1bfb1fde79c2).(TIFFcxx . . $ TIFF# *tif); |
| 429 |
extern void _TIFFSetDefaultCompressionStatecxx . . $ _TIFFSetDefaultCompressionState(1330bca35e52c9b0).(TIFFcxx . . $ TIFF# *tif); |
| 430 |
extern int _TIFFRewriteFieldcxx . . $ _TIFFRewriteField(35827e15d34e4459).(TIFFcxx . . $ TIFF# *, uint16_tcxx . . $ uint16_t#, TIFFDataTypecxx . . $ TIFFDataType#, tmsize_tcxx . . $ tmsize_t#, |
| 431 |
void *); |
| 432 |
extern int TIFFSetCompressionSchemecxx . . $ TIFFSetCompressionScheme(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *tif, int scheme); |
| 433 |
extern int TIFFSetDefaultCompressionStatecxx . . $ TIFFSetDefaultCompressionState(77ba1bfb1fde79c2).(TIFFcxx . . $ TIFF# *tif); |
| 434 |
extern uint32_tcxx . . $ uint32_t# _TIFFDefaultStripSizecxx . . $ _TIFFDefaultStripSize(f0d2b19673f63623).(TIFFcxx . . $ TIFF# *tif, uint32_tcxx . . $ uint32_t# s); |
| 435 |
extern void _TIFFDefaultTileSizecxx . . $ _TIFFDefaultTileSize(9c4ccfe446fe18f6).(TIFFcxx . . $ TIFF# *tif, uint32_tcxx . . $ uint32_t# *tw, uint32_tcxx . . $ uint32_t# *th); |
| 436 |
|
| 437 |
extern void _TIFFsetByteArraycxx . . $ _TIFFsetByteArray(6a4845b486599c90).(void **, const void *, uint32_tcxx . . $ uint32_t#); |
| 438 |
extern void _TIFFsetByteArrayExtcxx . . $ _TIFFsetByteArrayExt(802dcd9b3e5776a5).(TIFFcxx . . $ TIFF# *, void **, const void *, uint32_tcxx . . $ uint32_t#); |
| 439 |
extern void _TIFFsetShortArraycxx . . $ _TIFFsetShortArray(33e57f1e88fc783b).(uint16_tcxx . . $ uint16_t# **, const uint16_tcxx . . $ uint16_t# *, uint32_tcxx . . $ uint32_t#); |
| 440 |
extern void _TIFFsetShortArrayExtcxx . . $ _TIFFsetShortArrayExt(6a4fe1d8d29956c4).(TIFFcxx . . $ TIFF# *, uint16_tcxx . . $ uint16_t# **, const uint16_tcxx . . $ uint16_t# *, |
| 441 |
uint32_tcxx . . $ uint32_t#); |
| 442 |
extern void _TIFFsetLongArraycxx . . $ _TIFFsetLongArray(375b7088105beb4e).(uint32_tcxx . . $ uint32_t# **, const uint32_tcxx . . $ uint32_t# *, uint32_tcxx . . $ uint32_t#); |
| 443 |
extern void _TIFFsetLongArrayExtcxx . . $ _TIFFsetLongArrayExt(825e399b52661f8d).(TIFFcxx . . $ TIFF# *, uint32_tcxx . . $ uint32_t# **, const uint32_tcxx . . $ uint32_t# *, |
| 444 |
uint32_tcxx . . $ uint32_t#); |
| 445 |
extern void _TIFFsetFloatArraycxx . . $ _TIFFsetFloatArray(e4fae9d235c8b200).(float **, const float *, uint32_tcxx . . $ uint32_t#); |
| 446 |
extern void _TIFFsetFloatArrayExtcxx . . $ _TIFFsetFloatArrayExt(13cd3a94d952de2e).(TIFFcxx . . $ TIFF# *, float **, const float *, |
| 447 |
uint32_tcxx . . $ uint32_t#); |
| 448 |
extern void _TIFFsetDoubleArraycxx . . $ _TIFFsetDoubleArray(48ade63e0970c861).(double **, const double *, uint32_tcxx . . $ uint32_t#); |
| 449 |
extern void _TIFFsetDoubleArrayExtcxx . . $ _TIFFsetDoubleArrayExt(6a36939cac794dcb).(TIFFcxx . . $ TIFF# *, double **, const double *, |
| 450 |
uint32_tcxx . . $ uint32_t#); |
| 451 |
|
| 452 |
extern void _TIFFprintAsciicxx . . $ _TIFFprintAscii(4f2e2787bd611b3a).(FILEcxx . . $ FILE# *, const char *); |
| 453 |
extern void _TIFFprintAsciiTagcxx . . $ _TIFFprintAsciiTag(a742b210474a2b42).(FILEcxx . . $ FILE# *, const char *, const char *); |
| 454 |
|
| 455 |
extern TIFFErrorHandlercxx . . $ TIFFErrorHandler# _TIFFwarningHandlercxx . . $ _TIFFwarningHandler.; |
| 456 |
extern TIFFErrorHandlercxx . . $ TIFFErrorHandler# _TIFFerrorHandlercxx . . $ _TIFFerrorHandler.; |
| 457 |
extern TIFFErrorHandlerExtcxx . . $ TIFFErrorHandlerExt# _TIFFwarningHandlerExtcxx . . $ _TIFFwarningHandlerExt.; |
| 458 |
extern TIFFErrorHandlerExtcxx . . $ TIFFErrorHandlerExt# _TIFFerrorHandlerExtcxx . . $ _TIFFerrorHandlerExt.; |
| 459 |
void _TIFFErrorEarlycxx . . $ _TIFFErrorEarly(465ab884ee3ac129).(TIFFOpenOptionscxx . . $ TIFFOpenOptions# *opts, thandle_tcxx . . $ thandle_t# clientdata, |
| 460 |
const char *module, const char *fmt, ...) |
| 461 |
TIFF_ATTRIBUTEcxx . . $ `libtiff/tiffio.h:292:9`!((__format__(__printf__, 4, 5))); |
| 462 |
|
| 463 |
extern uint32_tcxx . . $ uint32_t# _TIFFMultiply32cxx . . $ _TIFFMultiply32(54b8e144484c1841).(TIFFcxx . . $ TIFF# *, uint32_tcxx . . $ uint32_t#, uint32_tcxx . . $ uint32_t#, const char *); |
| 464 |
extern uint64_tcxx . . $ uint64_t# _TIFFMultiply64cxx . . $ _TIFFMultiply64(7f8a0ccdd9aaccc8).(TIFFcxx . . $ TIFF# *, uint64_tcxx . . $ uint64_t#, uint64_tcxx . . $ uint64_t#, const char *); |
| 465 |
extern tmsize_tcxx . . $ tmsize_t# _TIFFMultiplySSizecxx . . $ _TIFFMultiplySSize(6a26807d17b0e2e).(TIFFcxx . . $ TIFF# *, tmsize_tcxx . . $ tmsize_t#, tmsize_tcxx . . $ tmsize_t#, |
| 466 |
const char *); |
| 467 |
extern tmsize_tcxx . . $ tmsize_t# _TIFFCastUInt64ToSSizecxx . . $ _TIFFCastUInt64ToSSize(e495983c5d8959ca).(TIFFcxx . . $ TIFF# *, uint64_tcxx . . $ uint64_t#, const char *); |
| 468 |
extern void *_TIFFCheckMalloccxx . . $ _TIFFCheckMalloc(194f1a4340c8ffed).(TIFFcxx . . $ TIFF# *, tmsize_tcxx . . $ tmsize_t#, tmsize_tcxx . . $ tmsize_t#, const char *); |
| 469 |
extern void *_TIFFCheckRealloccxx . . $ _TIFFCheckRealloc(aa977dbb10567056).(TIFFcxx . . $ TIFF# *, void *, tmsize_tcxx . . $ tmsize_t#, tmsize_tcxx . . $ tmsize_t#, |
| 470 |
const char *); |
| 471 |
|
| 472 |
extern float _TIFFClampDoubleToFloatcxx . . $ _TIFFClampDoubleToFloat(2f2c9d02d22c701f).(double); |
| 473 |
extern uint32_tcxx . . $ uint32_t# _TIFFClampDoubleToUInt32cxx . . $ _TIFFClampDoubleToUInt32(91a40ab43b4b81b).(double); |
| 474 |
|
| 475 |
extern void _TIFFCleanupIFDOffsetAndNumberMapscxx . . $ _TIFFCleanupIFDOffsetAndNumberMaps(1330bca35e52c9b0).(TIFFcxx . . $ TIFF# *tif); |
| 476 |
|
| 477 |
extern tmsize_tcxx . . $ tmsize_t# _TIFFReadEncodedStripAndAllocBuffercxx . . $ _TIFFReadEncodedStripAndAllocBuffer(ef9fbfc23278ed17).(TIFFcxx . . $ TIFF# *tif, |
| 478 |
uint32_tcxx . . $ uint32_t# strip, |
| 479 |
void **buf, |
| 480 |
tmsize_tcxx . . $ tmsize_t# bufsizetoalloc, |
| 481 |
tmsize_tcxx . . $ tmsize_t# size_to_read); |
| 482 |
extern tmsize_tcxx . . $ tmsize_t# _TIFFReadEncodedTileAndAllocBuffercxx . . $ _TIFFReadEncodedTileAndAllocBuffer(ef9fbfc23278ed17).(TIFFcxx . . $ TIFF# *tif, uint32_tcxx . . $ uint32_t# tile, |
| 483 |
void **buf, |
| 484 |
tmsize_tcxx . . $ tmsize_t# bufsizetoalloc, |
| 485 |
tmsize_tcxx . . $ tmsize_t# size_to_read); |
| 486 |
extern tmsize_tcxx . . $ tmsize_t# _TIFFReadTileAndAllocBuffercxx . . $ _TIFFReadTileAndAllocBuffer(4bdadb4f32ee6b9e).(TIFFcxx . . $ TIFF# *tif, void **buf, |
| 487 |
tmsize_tcxx . . $ tmsize_t# bufsizetoalloc, |
| 488 |
uint32_tcxx . . $ uint32_t# x, uint32_tcxx . . $ uint32_t# y, |
| 489 |
uint32_tcxx . . $ uint32_t# z, uint16_tcxx . . $ uint16_t# s); |
| 490 |
extern int _TIFFSeekOKcxx . . $ _TIFFSeekOK(ca4587460acd1236).(TIFFcxx . . $ TIFF# *tif, toff_tcxx . . $ toff_t# off); |
| 491 |
|
| 492 |
extern int TIFFInitDumpModecxx . . $ TIFFInitDumpMode(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *, int); |
| 493 |
#ifdef PACKBITS_SUPPORTcxx . . $ `libtiff/tiffconf.h:98:9`! |
| 494 |
extern int TIFFInitPackBitscxx . . $ TIFFInitPackBits(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *, int); |
| 495 |
#endif |
| 496 |
#ifdef CCITT_SUPPORTcxx . . $ `libtiff/tif_config.h:13:9`! |
| 497 |
extern int TIFFInitCCITTRLEcxx . . $ TIFFInitCCITTRLE(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *, int), TIFFInitCCITTRLEWcxx . . $ TIFFInitCCITTRLEW(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *, int); |
| 498 |
extern int TIFFInitCCITTFax3cxx . . $ TIFFInitCCITTFax3(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *, int), TIFFInitCCITTFax4cxx . . $ TIFFInitCCITTFax4(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *, int); |
| 499 |
#endif |
| 500 |
#ifdef THUNDER_SUPPORTcxx . . $ `libtiff/tiffconf.h:104:9`! |
| 501 |
extern int TIFFInitThunderScancxx . . $ TIFFInitThunderScan(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *, int); |
| 502 |
#endif |
| 503 |
#ifdef NEXT_SUPPORTcxx . . $ `libtiff/tiffconf.h:91:9`! |
| 504 |
extern int TIFFInitNeXTcxx . . $ TIFFInitNeXT(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *, int); |
| 505 |
#endif |
| 506 |
#ifdef LZW_SUPPORTcxx . . $ `libtiff/tiffconf.h:88:9`! |
| 507 |
extern int TIFFInitLZWcxx . . $ TIFFInitLZW(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *, int); |
| 508 |
#endif |
| 509 |
#ifdef OJPEG_SUPPORTcxx . . $ `libtiff/tiffconf.h:95:9`! |
| 510 |
extern int TIFFInitOJPEGcxx . . $ TIFFInitOJPEG(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *, int); |
| 511 |
#endif |
| 512 |
#ifdef JPEG_SUPPORTcxx . . $ `libtiff/tiffconf.h:76:9`! |
| 513 |
extern int TIFFInitJPEGcxx . . $ TIFFInitJPEG(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *, int); |
| 514 |
extern int TIFFJPEGIsFullStripRequiredcxx . . $ TIFFJPEGIsFullStripRequired(77ba1bfb1fde79c2).(TIFFcxx . . $ TIFF# *); |
| 515 |
#endif |
| 516 |
#ifdef JBIG_SUPPORTcxx . . $ `libtiff/tiffconf.h:79:9`! |
| 517 |
extern int TIFFInitJBIGcxx . . $ TIFFInitJBIG(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *, int); |
| 518 |
#endif |
| 519 |
#ifdef ZIP_SUPPORTcxx . . $ `libtiff/tiffconf.h:107:9`! |
| 520 |
extern int TIFFInitZIPcxx . . $ TIFFInitZIP(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *, int); |
| 521 |
#endif |
| 522 |
#ifdef PIXARLOG_SUPPORTcxx . . $ `libtiff/tiffconf.h:101:9`! |
| 523 |
extern int TIFFInitPixarLogcxx . . $ TIFFInitPixarLog(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *, int); |
| 524 |
#endif |
| 525 |
#ifdef LOGLUV_SUPPORTcxx . . $ `libtiff/tiffconf.h:85:9`! |
| 526 |
extern int TIFFInitSGILogcxx . . $ TIFFInitSGILog(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *, int); |
| 527 |
#endif |
| 528 |
#ifdef LERC_SUPPORT |
| 529 |
extern int TIFFInitLERC(TIFF *tif, int); |
| 530 |
#endif |
| 531 |
#ifdef LZMA_SUPPORTcxx . . $ `libtiff/tif_config.h:102:9`! |
| 532 |
extern int TIFFInitLZMAcxx . . $ TIFFInitLZMA(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *, int); |
| 533 |
#endif |
| 534 |
#ifdef ZSTD_SUPPORTcxx . . $ `libtiff/tif_config.h:147:9`! |
| 535 |
extern int TIFFInitZSTDcxx . . $ TIFFInitZSTD(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *, int); |
| 536 |
#endif |
| 537 |
#ifdef WEBP_SUPPORTcxx . . $ `libtiff/tif_config.h:132:9`! |
| 538 |
extern int TIFFInitWebPcxx . . $ TIFFInitWebP(c6fad1ac05798173).(TIFFcxx . . $ TIFF# *, int); |
| 539 |
#endif |
| 540 |
extern const TIFFCodeccxx . . $ TIFFCodec# _TIFFBuiltinCODECScxx . . $ _TIFFBuiltinCODECS.[]; |
| 541 |
extern void TIFFCIELab16ToXYZcxx . . $ TIFFCIELab16ToXYZ(21ea074fbfe994c3).(TIFFCIELabToRGBcxx . . $ TIFFCIELabToRGB# *, uint32_tcxx . . $ uint32_t# l, int32_tcxx . . $ int32_t# a, |
| 542 |
int32_tcxx . . $ int32_t# b, float *, float *, float *); |
| 543 |
|
| 544 |
extern void *_TIFFmallocExtcxx . . $ _TIFFmallocExt(edb1fc257967e25d).(TIFFcxx . . $ TIFF# *tif, tmsize_tcxx . . $ tmsize_t# s); |
| 545 |
extern void *_TIFFcallocExtcxx . . $ _TIFFcallocExt(83ea02c517b80d75).(TIFFcxx . . $ TIFF# *tif, tmsize_tcxx . . $ tmsize_t# nmemb, tmsize_tcxx . . $ tmsize_t# siz); |
| 546 |
extern void *_TIFFreallocExtcxx . . $ _TIFFreallocExt(a1cb653b23298549).(TIFFcxx . . $ TIFF# *tif, void *p, tmsize_tcxx . . $ tmsize_t# s); |
| 547 |
extern void _TIFFfreeExtcxx . . $ _TIFFfreeExt(a6a609c8544c914c).(TIFFcxx . . $ TIFF# *tif, void *p); |
| 548 |
|
| 549 |
#if defined(__cpluspluscxx . . $ `<built-in>:472:9`!) |
| 550 |
} |
| 551 |
#endif |
| 552 |
#endif /* _TIFFIOP_ */ |