Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
tiffiop.h
Go to the documentation of this file.
1 /* $Id: tiffiop.h,v 1.46 2006/03/16 12:22:27 dron Exp $ */
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_
29 /*
30  * ``Library-private'' definitions.
31  */
32 
33 #include "tif_config.h"
34 
35 #ifdef HAVE_FCNTL_H
36 # include <fcntl.h>
37 #endif
38 
39 #ifdef HAVE_SYS_TYPES_H
40 # include <sys/types.h>
41 #endif
42 
43 #ifdef HAVE_STRING_H
44 # include <string.h>
45 #endif
46 
47 #ifdef HAVE_ASSERT_H
48 # include <assert.h>
49 #else
50 # define assert(x)
51 #endif
52 
53 #ifdef HAVE_SEARCH_H
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"
61 #include "tif_dir.h"
62 
63 #ifndef STRIP_SIZE_DEFAULT
64 # define STRIP_SIZE_DEFAULT 8192
65 #endif
66 
67 #define streq(a,b) (strcmp(a,b) == 0)
68 
69 #ifndef TRUE
70 #define TRUE 1
71 #define FALSE 0
72 #endif
73 
74 typedef struct client_info {
75  struct client_info *next;
76  void *data;
77  char *name;
79 
80 /*
81  * Typedefs for ``method pointers'' used internally.
82  */
83 typedef unsigned char tidataval_t; /* internal image data value type */
84 typedef tidataval_t* tidata_t; /* reference to internal image data */
85 
86 typedef void (*TIFFVoidMethod)(TIFF*);
87 typedef int (*TIFFBoolMethod)(TIFF*);
90 typedef int (*TIFFSeekMethod)(TIFF*, uint32);
91 typedef void (*TIFFPostMethod)(TIFF*, tidata_t, tsize_t);
92 typedef uint32 (*TIFFStripMethod)(TIFF*, uint32);
93 typedef void (*TIFFTileMethod)(TIFF*, uint32*, uint32*);
94 
95 struct tiff {
96  char* tif_name; /* name of open file */
97  int tif_fd; /* open file descriptor */
98  int tif_mode; /* open mode (O_*) */
99  uint32 tif_flags;
100 #define TIFF_FILLORDER 0x0003 /* natural bit fill order for machine */
101 #define TIFF_DIRTYHEADER 0x0004 /* header must be written on close */
102 #define TIFF_DIRTYDIRECT 0x0008 /* current directory must be written */
103 #define TIFF_BUFFERSETUP 0x0010 /* data buffers setup */
104 #define TIFF_CODERSETUP 0x0020 /* encoder/decoder setup done */
105 #define TIFF_BEENWRITING 0x0040 /* written 1+ scanlines to file */
106 #define TIFF_SWAB 0x0080 /* byte swap file information */
107 #define TIFF_NOBITREV 0x0100 /* inhibit bit reversal logic */
108 #define TIFF_MYBUFFER 0x0200 /* my raw data buffer; free on close */
109 #define TIFF_ISTILED 0x0400 /* file is tile, not strip- based */
110 #define TIFF_MAPPED 0x0800 /* file is mapped into memory */
111 #define TIFF_POSTENCODE 0x1000 /* need call to postencode routine */
112 #define TIFF_INSUBIFD 0x2000 /* currently writing a subifd */
113 #define TIFF_UPSAMPLED 0x4000 /* library is doing data up-sampling */
114 #define TIFF_STRIPCHOP 0x8000 /* enable strip chopping support */
115 #define TIFF_HEADERONLY 0x10000 /* read header only, do not process */
116  /* the first directory */
117  toff_t tif_diroff; /* file offset of current directory */
118  toff_t tif_nextdiroff; /* file offset of following directory */
119  toff_t* tif_dirlist; /* list of offsets to already seen */
120  /* directories to prevent IFD looping */
121  uint16 tif_dirnumber; /* number of already seen directories */
122  TIFFDirectory tif_dir; /* internal rep of current directory */
123  TIFFHeader tif_header; /* file's header block */
124  const int* tif_typeshift; /* data type shift counts */
125  const long* tif_typemask; /* data type masks */
126  uint32 tif_row; /* current scanline */
127  tdir_t tif_curdir; /* current directory (index) */
128  tstrip_t tif_curstrip; /* current strip for read/write */
129  toff_t tif_curoff; /* current offset for read/write */
130  toff_t tif_dataoff; /* current offset for writing dir */
131 /* SubIFD support */
132  uint16 tif_nsubifd; /* remaining subifds to write */
133  toff_t tif_subifdoff; /* offset for patching SubIFD link */
134 /* tiling support */
135  uint32 tif_col; /* current column (offset by row too) */
136  ttile_t tif_curtile; /* current tile for read/write */
137  tsize_t tif_tilesize; /* # of bytes in a tile */
138 /* compression scheme hooks */
140  TIFFBoolMethod tif_setupdecode;/* called once before predecode */
141  TIFFPreMethod tif_predecode; /* pre- row/strip/tile decoding */
142  TIFFBoolMethod tif_setupencode;/* called once before preencode */
144  TIFFPreMethod tif_preencode; /* pre- row/strip/tile encoding */
145  TIFFBoolMethod tif_postencode; /* post- row/strip/tile encoding */
146  TIFFCodeMethod tif_decoderow; /* scanline decoding routine */
147  TIFFCodeMethod tif_encoderow; /* scanline encoding routine */
148  TIFFCodeMethod tif_decodestrip;/* strip decoding routine */
149  TIFFCodeMethod tif_encodestrip;/* strip encoding routine */
150  TIFFCodeMethod tif_decodetile; /* tile decoding routine */
151  TIFFCodeMethod tif_encodetile; /* tile encoding routine */
152  TIFFVoidMethod tif_close; /* cleanup-on-close routine */
153  TIFFSeekMethod tif_seek; /* position within a strip routine */
154  TIFFVoidMethod tif_cleanup; /* cleanup state routine */
155  TIFFStripMethod tif_defstripsize;/* calculate/constrain strip size */
156  TIFFTileMethod tif_deftilesize;/* calculate/constrain tile size */
157  tidata_t tif_data; /* compression scheme private data */
158 /* input/output buffering */
159  tsize_t tif_scanlinesize;/* # of bytes in a scanline */
160  tsize_t tif_scanlineskew;/* scanline skew for reading strips */
161  tidata_t tif_rawdata; /* raw data buffer */
162  tsize_t tif_rawdatasize;/* # of bytes in raw data buffer */
163  tidata_t tif_rawcp; /* current spot in raw buffer */
164  tsize_t tif_rawcc; /* bytes unread from raw buffer */
165 /* memory-mapped file support */
166  tidata_t tif_base; /* base of mapped file */
167  toff_t tif_size; /* size of mapped file region (bytes) */
168  TIFFMapFileProc tif_mapproc; /* map file method */
169  TIFFUnmapFileProc tif_unmapproc;/* unmap file method */
170 /* input/output callback methods */
171  thandle_t tif_clientdata; /* callback parameter */
172  TIFFReadWriteProc tif_readproc; /* read method */
173  TIFFReadWriteProc tif_writeproc;/* write method */
174  TIFFSeekProc tif_seekproc; /* lseek method */
175  TIFFCloseProc tif_closeproc; /* close method */
176  TIFFSizeProc tif_sizeproc; /* filesize method */
177 /* post-decoding support */
178  TIFFPostMethod tif_postdecode; /* post decoding routine */
179 /* tag support */
180  TIFFFieldInfo** tif_fieldinfo; /* sorted table of registered tags */
181  size_t tif_nfields; /* # entries in registered tag table */
182  const TIFFFieldInfo *tif_foundfield;/* cached pointer to already found tag */
183  TIFFTagMethods tif_tagmethods; /* tag get/set/print routines */
184  TIFFClientInfoLink *tif_clientinfo; /* extra client information. */
185 };
186 
187 #define isPseudoTag(t) (t > 0xffff) /* is tag value normal or pseudo */
188 
189 #define isTiled(tif) (((tif)->tif_flags & TIFF_ISTILED) != 0)
190 #define isMapped(tif) (((tif)->tif_flags & TIFF_MAPPED) != 0)
191 #define isFillOrder(tif, o) (((tif)->tif_flags & (o)) != 0)
192 #define isUpSampled(tif) (((tif)->tif_flags & TIFF_UPSAMPLED) != 0)
193 #define TIFFReadFile(tif, buf, size) \
194  ((*(tif)->tif_readproc)((tif)->tif_clientdata,buf,size))
195 #define TIFFWriteFile(tif, buf, size) \
196  ((*(tif)->tif_writeproc)((tif)->tif_clientdata,buf,size))
197 #define TIFFSeekFile(tif, off, whence) \
198  ((*(tif)->tif_seekproc)((tif)->tif_clientdata,(toff_t)(off),whence))
199 #define TIFFCloseFile(tif) \
200  ((*(tif)->tif_closeproc)((tif)->tif_clientdata))
201 #define TIFFGetFileSize(tif) \
202  ((*(tif)->tif_sizeproc)((tif)->tif_clientdata))
203 #define TIFFMapFileContents(tif, paddr, psize) \
204  ((*(tif)->tif_mapproc)((tif)->tif_clientdata,paddr,psize))
205 #define TIFFUnmapFileContents(tif, addr, size) \
206  ((*(tif)->tif_unmapproc)((tif)->tif_clientdata,addr,size))
207 
208 /*
209  * Default Read/Seek/Write definitions.
210  */
211 #ifndef ReadOK
212 #define ReadOK(tif, buf, size) \
213  (TIFFReadFile(tif, (tdata_t) buf, (tsize_t)(size)) == (tsize_t)(size))
214 #endif
215 #ifndef SeekOK
216 #define SeekOK(tif, off) \
217  (TIFFSeekFile(tif, (toff_t) off, SEEK_SET) == (toff_t) off)
218 #endif
219 #ifndef WriteOK
220 #define WriteOK(tif, buf, size) \
221  (TIFFWriteFile(tif, (tdata_t) buf, (tsize_t) size) == (tsize_t) size)
222 #endif
223 
224 /* NB: the uint32 casts are to silence certain ANSI-C compilers */
225 #define TIFFhowmany(x, y) ((((uint32)(x))+(((uint32)(y))-1))/((uint32)(y)))
226 #define TIFFhowmany8(x) (((x)&0x07)?((uint32)(x)>>3)+1:(uint32)(x)>>3)
227 #define TIFFroundup(x, y) (TIFFhowmany(x,y)*(y))
228 
229 #define TIFFmax(A,B) ((A)>(B)?(A):(B))
230 #define TIFFmin(A,B) ((A)<(B)?(A):(B))
231 
232 #define TIFFArrayCount(a) (sizeof (a) / sizeof ((a)[0]))
233 
234 #if defined(__cplusplus)
235 extern "C" {
236 #endif
237 extern int _TIFFgetMode(const char*, const char*);
238 extern int _TIFFNoRowEncode(TIFF*, tidata_t, tsize_t, tsample_t);
239 extern int _TIFFNoStripEncode(TIFF*, tidata_t, tsize_t, tsample_t);
240 extern int _TIFFNoTileEncode(TIFF*, tidata_t, tsize_t, tsample_t);
241 extern int _TIFFNoRowDecode(TIFF*, tidata_t, tsize_t, tsample_t);
242 extern int _TIFFNoStripDecode(TIFF*, tidata_t, tsize_t, tsample_t);
243 extern int _TIFFNoTileDecode(TIFF*, tidata_t, tsize_t, tsample_t);
244 extern void _TIFFNoPostDecode(TIFF*, tidata_t, tsize_t);
245 extern int _TIFFNoPreCode (TIFF*, tsample_t);
246 extern int _TIFFNoSeek(TIFF*, uint32);
247 extern void _TIFFSwab16BitData(TIFF*, tidata_t, tsize_t);
248 extern void _TIFFSwab24BitData(TIFF*, tidata_t, tsize_t);
249 extern void _TIFFSwab32BitData(TIFF*, tidata_t, tsize_t);
250 extern void _TIFFSwab64BitData(TIFF*, tidata_t, tsize_t);
251 extern int TIFFFlushData1(TIFF*);
252 extern int TIFFDefaultDirectory(TIFF*);
253 extern void _TIFFSetDefaultCompressionState(TIFF*);
254 extern int TIFFSetCompressionScheme(TIFF*, int);
255 extern int TIFFSetDefaultCompressionState(TIFF*);
256 extern uint32 _TIFFDefaultStripSize(TIFF*, uint32);
257 extern void _TIFFDefaultTileSize(TIFF*, uint32*, uint32*);
258 extern int _TIFFDataSize(TIFFDataType);
259 
260 extern void _TIFFsetByteArray(void**, void*, uint32);
261 extern void _TIFFsetString(char**, char*);
262 extern void _TIFFsetShortArray(uint16**, uint16*, uint32);
263 extern void _TIFFsetLongArray(uint32**, uint32*, uint32);
264 extern void _TIFFsetFloatArray(float**, float*, uint32);
265 extern void _TIFFsetDoubleArray(double**, double*, uint32);
266 
267 extern void _TIFFprintAscii(FILE*, const char*);
268 extern void _TIFFprintAsciiTag(FILE*, const char*, const char*);
269 
274 
275 extern tdata_t _TIFFCheckMalloc(TIFF*, size_t, size_t, const char*);
276 
277 extern int TIFFInitDumpMode(TIFF*, int);
278 #ifdef PACKBITS_SUPPORT
279 extern int TIFFInitPackBits(TIFF*, int);
280 #endif
281 #ifdef CCITT_SUPPORT
282 extern int TIFFInitCCITTRLE(TIFF*, int), TIFFInitCCITTRLEW(TIFF*, int);
283 extern int TIFFInitCCITTFax3(TIFF*, int), TIFFInitCCITTFax4(TIFF*, int);
284 #endif
285 #ifdef THUNDER_SUPPORT
286 extern int TIFFInitThunderScan(TIFF*, int);
287 #endif
288 #ifdef NEXT_SUPPORT
289 extern int TIFFInitNeXT(TIFF*, int);
290 #endif
291 #ifdef LZW_SUPPORT
292 extern int TIFFInitLZW(TIFF*, int);
293 #endif
294 #ifdef OJPEG_SUPPORT
295 extern int TIFFInitOJPEG(TIFF*, int);
296 #endif
297 #ifdef JPEG_SUPPORT
298 extern int TIFFInitJPEG(TIFF*, int);
299 #endif
300 #ifdef JBIG_SUPPORT
301 extern int TIFFInitJBIG(TIFF*, int);
302 #endif
303 #ifdef ZIP_SUPPORT
304 extern int TIFFInitZIP(TIFF*, int);
305 #endif
306 #ifdef PIXARLOG_SUPPORT
307 extern int TIFFInitPixarLog(TIFF*, int);
308 #endif
309 #ifdef LOGLUV_SUPPORT
310 extern int TIFFInitSGILog(TIFF*, int);
311 #endif
312 #ifdef VMS
313 extern const TIFFCodec _TIFFBuiltinCODECS[];
314 #else
315 extern TIFFCodec _TIFFBuiltinCODECS[];
316 #endif
317 
318 #if defined(__cplusplus)
319 }
320 #endif
321 #endif /* _TIFFIOP_ */
322 
323 /* vim: set ts=8 sts=8 sw=8 noet: */
int32 tsize_t
Definition: tiffio.h:66
TIFFSeekProc tif_seekproc
Definition: tiffiop.h:174
uint16 tsample_t
Definition: tiffio.h:63
TIFFCodeMethod tif_decoderow
Definition: tiffiop.h:146
TIFFTagMethods tif_tagmethods
Definition: tiffiop.h:183
int TIFFInitZIP(TIFF *, int)
Definition: tif_zip.c:318
void * tdata_t
Definition: tiffio.h:67
void * data
Definition: tiffiop.h:76
uint32 ttile_t
Definition: tiffio.h:65
TIFFErrorHandlerExt _TIFFwarningHandlerExt
Definition: tif_warning.c:32
int(* TIFFCloseProc)(thandle_t)
Definition: tiffio.h:263
TIFFPreMethod tif_predecode
Definition: tiffiop.h:141
int _TIFFDataSize(TIFFDataType)
Definition: tif_dirinfo.c:655
void(* TIFFVoidMethod)(TIFF *)
Definition: tiffiop.h:86
struct client_info TIFFClientInfoLink
tdata_t _TIFFCheckMalloc(TIFF *, size_t, size_t, const char *)
Definition: tif_aux.c:37
int TIFFFlushData1(TIFF *)
Definition: tif_write.c:696
tstrip_t tif_curstrip
Definition: tiffiop.h:128
void _TIFFNoPostDecode(TIFF *, tidata_t, tsize_t)
Definition: tif_read.c:613
int _TIFFNoTileDecode(TIFF *, tidata_t, tsize_t, tsample_t)
Definition: tif_compress.c:101
int TIFFInitCCITTFax4(TIFF *, int)
Definition: tif_fax3.c:1456
TIFFCodeMethod tif_encodestrip
Definition: tiffiop.h:149
uint32(* TIFFStripMethod)(TIFF *, uint32)
Definition: tiffiop.h:92
int _TIFFNoPreCode(TIFF *, tsample_t)
Definition: tif_compress.c:117
TIFFUnmapFileProc tif_unmapproc
Definition: tiffiop.h:169
void _TIFFSwab24BitData(TIFF *, tidata_t, tsize_t)
Definition: tif_read.c:627
int _TIFFNoStripEncode(TIFF *, tidata_t, tsize_t, tsample_t)
Definition: tif_compress.c:58
void _TIFFDefaultTileSize(TIFF *, uint32 *, uint32 *)
Definition: tif_tile.c:259
int TIFFInitCCITTRLEW(TIFF *, int)
Definition: tif_fax3.c:1549
TIFFClientInfoLink * tif_clientinfo
Definition: tiffiop.h:184
TIFFCodeMethod tif_encoderow
Definition: tiffiop.h:147
int TIFFSetDefaultCompressionState(TIFF *)
int TIFFDefaultDirectory(TIFF *)
Definition: tif_dir.c:1029
int TIFFInitCCITTFax3(TIFF *, int)
TIFFVoidMethod tif_close
Definition: tiffiop.h:152
int(* TIFFPreMethod)(TIFF *, tsample_t)
Definition: tiffiop.h:88
tidata_t tif_rawdata
Definition: tiffiop.h:161
void(* TIFFErrorHandler)(const char *, const char *, va_list)
Definition: tiffio.h:259
toff_t tif_curoff
Definition: tiffiop.h:129
thandle_t tif_clientdata
Definition: tiffiop.h:171
int _TIFFNoStripDecode(TIFF *, tidata_t, tsize_t, tsample_t)
Definition: tif_compress.c:94
void _TIFFprintAscii(FILE *, const char *)
Definition: tif_print.c:612
int TIFFInitDumpMode(TIFF *, int)
Definition: tif_dumpmode.c:106
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
char * tif_name
Definition: tiffiop.h:96
int TIFFSetCompressionScheme(TIFF *, int)
Definition: tif_compress.c:151
Definition: tiffiop.h:95
#define TIFFInitOJPEG
Definition: tif_codec.c:52
int tif_fd
Definition: tiffiop.h:97
int TIFFInitCCITTRLE(TIFF *, int)
char * name
Definition: tiffiop.h:77
void _TIFFsetByteArray(void **, void *, uint32)
Definition: tif_dir.c:56
toff_t tif_size
Definition: tiffiop.h:167
uint16 tif_nsubifd
Definition: tiffiop.h:132
uint32 tstrip_t
Definition: tiffio.h:64
toff_t(* TIFFSeekProc)(thandle_t, toff_t, int)
Definition: tiffio.h:262
int TIFFInitSGILog(TIFF *, int)
Definition: tif_luv.c:1556
void(* TIFFUnmapFileProc)(thandle_t, tdata_t, toff_t)
Definition: tiffio.h:266
toff_t(* TIFFSizeProc)(thandle_t)
Definition: tiffio.h:264
TIFFErrorHandler _TIFFerrorHandler
Definition: tif_acorn.c:519
tidata_t tif_rawcp
Definition: tiffiop.h:163
int tif_mode
Definition: tiffiop.h:98
uint32 tif_flags
Definition: tiffiop.h:99
int tif_encodestatus
Definition: tiffiop.h:143
TIFFCodeMethod tif_decodestrip
Definition: tiffiop.h:148
size_t tif_nfields
Definition: tiffiop.h:181
tidata_t tif_base
Definition: tiffiop.h:166
tsize_t tif_tilesize
Definition: tiffiop.h:137
TIFFCodeMethod tif_encodetile
Definition: tiffiop.h:151
int(* TIFFBoolMethod)(TIFF *)
Definition: tiffiop.h:87
TIFFCodec _TIFFBuiltinCODECS[]
Definition: tif_codec.c:79
TIFFMapFileProc tif_mapproc
Definition: tiffiop.h:168
#define TIFFInitJBIG
Definition: tif_codec.c:61
TIFFSeekMethod tif_seek
Definition: tiffiop.h:153
int TIFFInitThunderScan(TIFF *, int)
Definition: tif_thunder.c:149
TIFFTileMethod tif_deftilesize
Definition: tiffiop.h:156
TIFFPreMethod tif_preencode
Definition: tiffiop.h:144
void _TIFFSwab32BitData(TIFF *, tidata_t, tsize_t)
Definition: tif_read.c:635
tdir_t tif_curdir
Definition: tiffiop.h:127
unsigned short uint16
Definition: tiff.h:71
TIFFBoolMethod tif_postencode
Definition: tiffiop.h:145
tsize_t(* TIFFReadWriteProc)(thandle_t, tdata_t, tsize_t)
Definition: tiffio.h:261
TIFFPostMethod tif_postdecode
Definition: tiffiop.h:178
struct client_info * next
Definition: tiffiop.h:75
int TIFFInitNeXT(TIFF *, int)
Definition: tif_next.c:134
tsize_t tif_rawdatasize
Definition: tiffiop.h:162
int TIFFInitLZW(TIFF *, int)
Definition: tif_lzw.c:1022
TIFFErrorHandler _TIFFwarningHandler
Definition: tif_acorn.c:507
int(* TIFFMapFileProc)(thandle_t, tdata_t *, toff_t *)
Definition: tiffio.h:265
tsize_t tif_rawcc
Definition: tiffiop.h:164
TIFFCodeMethod tif_decodetile
Definition: tiffiop.h:150
uint16 tif_dirnumber
Definition: tiffiop.h:121
void(* TIFFErrorHandlerExt)(thandle_t, const char *, const char *, va_list)
Definition: tiffio.h:260
int(* TIFFSeekMethod)(TIFF *, uint32)
Definition: tiffiop.h:90
uint32 _TIFFDefaultStripSize(TIFF *, uint32)
Definition: tif_strip.c:204
TIFFFieldInfo ** tif_fieldinfo
Definition: tiffiop.h:180
TIFFHeader tif_header
Definition: tiffiop.h:123
toff_t * tif_dirlist
Definition: tiffiop.h:119
TIFFReadWriteProc tif_readproc
Definition: tiffiop.h:172
void(* TIFFPostMethod)(TIFF *, tidata_t, tsize_t)
Definition: tiffiop.h:91
void _TIFFSetDefaultCompressionState(TIFF *)
Definition: tif_compress.c:127
TIFFVoidMethod tif_cleanup
Definition: tiffiop.h:154
TIFFSizeProc tif_sizeproc
Definition: tiffiop.h:176
TIFFCloseProc tif_closeproc
Definition: tiffiop.h:175
void _TIFFsetShortArray(uint16 **, uint16 *, uint32)
Definition: tif_dir.c:62
unsigned long uint32
Definition: md5.h:41
void _TIFFsetLongArray(uint32 **, uint32 *, uint32)
Definition: tif_dir.c:64
int(* TIFFCodeMethod)(TIFF *, tidata_t, tsize_t, tsample_t)
Definition: tiffiop.h:89
tidataval_t * tidata_t
Definition: tiffiop.h:84
typedef int
Definition: png.h:978
int tif_decodestatus
Definition: tiffiop.h:139
unsigned char tidataval_t
Definition: tiffiop.h:83
void _TIFFprintAsciiTag(FILE *, const char *, const char *)
Definition: tif_print.c:632
TIFFReadWriteProc tif_writeproc
Definition: tiffiop.h:173
int TIFFInitPackBits(TIFF *, int)
Definition: tif_packbits.c:278
uint32 tif_row
Definition: tiffiop.h:126
int _TIFFNoSeek(TIFF *, uint32)
Definition: tif_compress.c:108
int _TIFFNoRowDecode(TIFF *, tidata_t, tsize_t, tsample_t)
Definition: tif_compress.c:87
void(* TIFFTileMethod)(TIFF *, uint32 *, uint32 *)
Definition: tiffiop.h:93
ttile_t tif_curtile
Definition: tiffiop.h:136
uint32 toff_t
Definition: tiffio.h:68
TIFFDirectory tif_dir
Definition: tiffiop.h:122
void _TIFFSwab16BitData(TIFF *, tidata_t, tsize_t)
Definition: tif_read.c:619
tsize_t tif_scanlinesize
Definition: tiffiop.h:159
const TIFFFieldInfo * tif_foundfield
Definition: tiffiop.h:182
uint16 tdir_t
Definition: tiffio.h:62
const long * tif_typemask
Definition: tiffiop.h:125
void _TIFFsetString(char **, char *)
Definition: tif_dir.c:58
toff_t tif_nextdiroff
Definition: tiffiop.h:118
int TIFFInitPixarLog(TIFF *, int)
int TIFFInitJPEG(TIFF *, int)
Definition: tif_jpeg.c:1849
void _TIFFsetFloatArray(float **, float *, uint32)
Definition: tif_dir.c:66
uint32 tif_col
Definition: tiffiop.h:135
toff_t tif_subifdoff
Definition: tiffiop.h:133
int _TIFFNoTileEncode(TIFF *, tidata_t, tsize_t, tsample_t)
Definition: tif_compress.c:65
toff_t tif_dataoff
Definition: tiffiop.h:130
void _TIFFsetDoubleArray(double **, double *, uint32)
Definition: tif_dir.c:68
const int * tif_typeshift
Definition: tiffiop.h:124
TIFFBoolMethod tif_setupencode
Definition: tiffiop.h:142
tidata_t tif_data
Definition: tiffiop.h:157
TIFFStripMethod tif_defstripsize
Definition: tiffiop.h:155
void _TIFFSwab64BitData(TIFF *, tidata_t, tsize_t)
Definition: tif_read.c:643
void * thandle_t
Definition: tiffio.h:96
int _TIFFgetMode(const char *, const char *)
Definition: tif_open.c:117
TIFFErrorHandlerExt _TIFFerrorHandlerExt
Definition: tif_error.c:32
TIFFDataType
Definition: tiff.h:137
int _TIFFNoRowEncode(TIFF *, tidata_t, tsize_t, tsample_t)
Definition: tif_compress.c:51
toff_t tif_diroff
Definition: tiffiop.h:117
tsize_t tif_scanlineskew
Definition: tiffiop.h:160
TIFFBoolMethod tif_setupdecode
Definition: tiffiop.h:140