ReactOS 0.4.15-dev-8116-gf69e256
tiffiop.h
Go to the documentation of this file.
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_
27/*
28 * ``Library-private'' definitions.
29 */
30
31#include "tif_config.h"
32
33#ifdef HAVE_FCNTL_H
34# include <fcntl.h>
35#endif
36
37#ifdef HAVE_SYS_TYPES_H
38# include <sys/types.h>
39#endif
40
41#ifdef HAVE_STRING_H
42# include <string.h>
43#endif
44
45#ifdef HAVE_ASSERT_H
46# include <assert.h>
47#else
48# define assert(x)
49#endif
50
51#ifdef HAVE_SEARCH_H
52# include <search.h>
53#else
54extern void *lfind(const void *, const void *, size_t *, size_t,
55 int (*)(const void *, const void *));
56#endif
57
58#if !defined(HAVE_SNPRINTF) && !defined(HAVE__SNPRINTF)
59#undef snprintf
60#define snprintf _TIFF_snprintf_f
61extern int snprintf(char* str, size_t size, const char* format, ...);
62#endif
63
64#include "tiffio.h"
65
66#include "tif_dir.h"
67
68#ifndef STRIP_SIZE_DEFAULT
69# define STRIP_SIZE_DEFAULT 8192
70#endif
71
72#define streq(a,b) (strcmp(a,b) == 0)
73#define strneq(a,b,n) (strncmp(a,b,n) == 0)
74
75#ifndef TRUE
76#define TRUE 1
77#define FALSE 0
78#endif
79
80#define TIFF_SIZE_T_MAX ((size_t) ~ ((size_t)0))
81#define TIFF_TMSIZE_T_MAX (tmsize_t)(TIFF_SIZE_T_MAX >> 1)
82
83/*
84 * Largest 32-bit unsigned integer value.
85 */
86#define TIFF_UINT32_MAX 0xFFFFFFFFU
87
88/*
89 * Largest 64-bit unsigned integer value.
90 */
91#define TIFF_UINT64_MAX (((uint64)(TIFF_UINT32_MAX)) << 32 | TIFF_UINT32_MAX)
92
93typedef struct client_info {
95 void *data;
96 char *name;
98
99/*
100 * Typedefs for ``method pointers'' used internally.
101 * these are deprecated and provided only for backwards compatibility.
102 */
103typedef unsigned char tidataval_t; /* internal image data value type */
104typedef tidataval_t* tidata_t; /* reference to internal image data */
105
109typedef int (*TIFFCodeMethod)(TIFF* tif, uint8* buf, tmsize_t size, uint16 sample);
114
115struct tiff {
116 char* tif_name; /* name of open file */
117 int tif_fd; /* open file descriptor */
118 int tif_mode; /* open mode (O_*) */
120 #define TIFF_FILLORDER 0x00003U /* natural bit fill order for machine */
121 #define TIFF_DIRTYHEADER 0x00004U /* header must be written on close */
122 #define TIFF_DIRTYDIRECT 0x00008U /* current directory must be written */
123 #define TIFF_BUFFERSETUP 0x00010U /* data buffers setup */
124 #define TIFF_CODERSETUP 0x00020U /* encoder/decoder setup done */
125 #define TIFF_BEENWRITING 0x00040U /* written 1+ scanlines to file */
126 #define TIFF_SWAB 0x00080U /* byte swap file information */
127 #define TIFF_NOBITREV 0x00100U /* inhibit bit reversal logic */
128 #define TIFF_MYBUFFER 0x00200U /* my raw data buffer; free on close */
129 #define TIFF_ISTILED 0x00400U /* file is tile, not strip- based */
130 #define TIFF_MAPPED 0x00800U /* file is mapped into memory */
131 #define TIFF_POSTENCODE 0x01000U /* need call to postencode routine */
132 #define TIFF_INSUBIFD 0x02000U /* currently writing a subifd */
133 #define TIFF_UPSAMPLED 0x04000U /* library is doing data up-sampling */
134 #define TIFF_STRIPCHOP 0x08000U /* enable strip chopping support */
135 #define TIFF_HEADERONLY 0x10000U /* read header only, do not process the first directory */
136 #define TIFF_NOREADRAW 0x20000U /* skip reading of raw uncompressed image data */
137 #define TIFF_INCUSTOMIFD 0x40000U /* currently writing a custom IFD */
138 #define TIFF_BIGTIFF 0x80000U /* read/write bigtiff */
139 #define TIFF_BUF4WRITE 0x100000U /* rawcc bytes are for writing */
140 #define TIFF_DIRTYSTRIP 0x200000U /* stripoffsets/stripbytecount dirty*/
141 #define TIFF_PERSAMPLE 0x400000U /* get/set per sample tags as arrays */
142 #define TIFF_BUFFERMMAP 0x800000U /* read buffer (tif_rawdata) points into mmap() memory */
143 #define TIFF_DEFERSTRILELOAD 0x1000000U /* defer strip/tile offset/bytecount array loading. */
144 #define TIFF_LAZYSTRILELOAD 0x2000000U /* lazy/ondemand loading of strip/tile offset/bytecount values. Only used if TIFF_DEFERSTRILELOAD is set and in read-only mode */
145 #define TIFF_CHOPPEDUPARRAYS 0x4000000U /* set when allocChoppedUpStripArrays() has modified strip array */
146 uint64 tif_diroff; /* file offset of current directory */
147 uint64 tif_nextdiroff; /* file offset of following directory */
148 uint64* tif_dirlist; /* list of offsets to already seen directories to prevent IFD looping */
149 uint16 tif_dirlistsize; /* number of entries in offset list */
150 uint16 tif_dirnumber; /* number of already seen directories */
151 TIFFDirectory tif_dir; /* internal rep of current directory */
152 TIFFDirectory tif_customdir; /* custom IFDs are separated from the main ones */
153 union {
158 uint16 tif_header_size; /* file's header block and its length */
159 uint32 tif_row; /* current scanline */
160 uint16 tif_curdir; /* current directory (index) */
161 uint32 tif_curstrip; /* current strip for read/write */
162 uint64 tif_curoff; /* current offset for read/write */
163 uint64 tif_dataoff; /* current offset for writing dir */
164 /* SubIFD support */
165 uint16 tif_nsubifd; /* remaining subifds to write */
166 uint64 tif_subifdoff; /* offset for patching SubIFD link */
167 /* tiling support */
168 uint32 tif_col; /* current column (offset by row too) */
169 uint32 tif_curtile; /* current tile for read/write */
170 tmsize_t tif_tilesize; /* # of bytes in a tile */
171 /* compression scheme hooks */
173 TIFFBoolMethod tif_fixuptags; /* called in TIFFReadDirectory */
174 TIFFBoolMethod tif_setupdecode; /* called once before predecode */
175 TIFFPreMethod tif_predecode; /* pre- row/strip/tile decoding */
176 TIFFBoolMethod tif_setupencode; /* called once before preencode */
178 TIFFPreMethod tif_preencode; /* pre- row/strip/tile encoding */
179 TIFFBoolMethod tif_postencode; /* post- row/strip/tile encoding */
180 TIFFCodeMethod tif_decoderow; /* scanline decoding routine */
181 TIFFCodeMethod tif_encoderow; /* scanline encoding routine */
182 TIFFCodeMethod tif_decodestrip; /* strip decoding routine */
183 TIFFCodeMethod tif_encodestrip; /* strip encoding routine */
184 TIFFCodeMethod tif_decodetile; /* tile decoding routine */
185 TIFFCodeMethod tif_encodetile; /* tile encoding routine */
186 TIFFVoidMethod tif_close; /* cleanup-on-close routine */
187 TIFFSeekMethod tif_seek; /* position within a strip routine */
188 TIFFVoidMethod tif_cleanup; /* cleanup state routine */
189 TIFFStripMethod tif_defstripsize; /* calculate/constrain strip size */
190 TIFFTileMethod tif_deftilesize; /* calculate/constrain tile size */
191 uint8* tif_data; /* compression scheme private data */
192 /* input/output buffering */
193 tmsize_t tif_scanlinesize; /* # of bytes in a scanline */
194 tmsize_t tif_scanlineskew; /* scanline skew for reading strips */
195 uint8* tif_rawdata; /* raw data buffer */
196 tmsize_t tif_rawdatasize; /* # of bytes in raw data buffer */
197 tmsize_t tif_rawdataoff; /* rawdata offset within strip */
198 tmsize_t tif_rawdataloaded;/* amount of data in rawdata */
199 uint8* tif_rawcp; /* current spot in raw buffer */
200 tmsize_t tif_rawcc; /* bytes unread from raw buffer */
201 /* memory-mapped file support */
202 uint8* tif_base; /* base of mapped file */
203 tmsize_t tif_size; /* size of mapped file region (bytes, thus tmsize_t) */
204 TIFFMapFileProc tif_mapproc; /* map file method */
205 TIFFUnmapFileProc tif_unmapproc; /* unmap file method */
206 /* input/output callback methods */
207 thandle_t tif_clientdata; /* callback parameter */
210 TIFFSeekProc tif_seekproc; /* lseek method */
211 TIFFCloseProc tif_closeproc; /* close method */
212 TIFFSizeProc tif_sizeproc; /* filesize method */
213 /* post-decoding support */
214 TIFFPostMethod tif_postdecode; /* post decoding routine */
215 /* tag support */
216 TIFFField** tif_fields; /* sorted table of registered tags */
217 size_t tif_nfields; /* # entries in registered tag table */
218 const TIFFField* tif_foundfield; /* cached pointer to already found tag */
219 TIFFTagMethods tif_tagmethods; /* tag get/set/print routines */
220 TIFFClientInfoLink* tif_clientinfo; /* extra client information. */
221 /* Backward compatibility stuff. We need these two fields for
222 * setting up an old tag extension scheme. */
225};
226
227#define isPseudoTag(t) (t > 0xffff) /* is tag value normal or pseudo */
228
229#define isTiled(tif) (((tif)->tif_flags & TIFF_ISTILED) != 0)
230#define isMapped(tif) (((tif)->tif_flags & TIFF_MAPPED) != 0)
231#define isFillOrder(tif, o) (((tif)->tif_flags & (o)) != 0)
232#define isUpSampled(tif) (((tif)->tif_flags & TIFF_UPSAMPLED) != 0)
233#define TIFFReadFile(tif, buf, size) \
234 ((*(tif)->tif_readproc)((tif)->tif_clientdata,(buf),(size)))
235#define TIFFWriteFile(tif, buf, size) \
236 ((*(tif)->tif_writeproc)((tif)->tif_clientdata,(buf),(size)))
237#define TIFFSeekFile(tif, off, whence) \
238 ((*(tif)->tif_seekproc)((tif)->tif_clientdata,(off),(whence)))
239#define TIFFCloseFile(tif) \
240 ((*(tif)->tif_closeproc)((tif)->tif_clientdata))
241#define TIFFGetFileSize(tif) \
242 ((*(tif)->tif_sizeproc)((tif)->tif_clientdata))
243#define TIFFMapFileContents(tif, paddr, psize) \
244 ((*(tif)->tif_mapproc)((tif)->tif_clientdata,(paddr),(psize)))
245#define TIFFUnmapFileContents(tif, addr, size) \
246 ((*(tif)->tif_unmapproc)((tif)->tif_clientdata,(addr),(size)))
247
248/*
249 * Default Read/Seek/Write definitions.
250 */
251#ifndef ReadOK
252#define ReadOK(tif, buf, size) \
253 (TIFFReadFile((tif),(buf),(size))==(size))
254#endif
255#ifndef SeekOK
256#define SeekOK(tif, off) _TIFFSeekOK(tif, off)
257#endif
258#ifndef WriteOK
259#define WriteOK(tif, buf, size) \
260 (TIFFWriteFile((tif),(buf),(size))==(size))
261#endif
262
263/* NB: the uint32 casts are to silence certain ANSI-C compilers */
264#define TIFFhowmany_32(x, y) (((uint32)x < (0xffffffff - (uint32)(y-1))) ? \
265 ((((uint32)(x))+(((uint32)(y))-1))/((uint32)(y))) : \
266 0U)
267/* Variant of TIFFhowmany_32() that doesn't return 0 if x close to MAXUINT. */
268/* Caution: TIFFhowmany_32_maxuint_compat(x,y)*y might overflow */
269#define TIFFhowmany_32_maxuint_compat(x, y) \
270 (((uint32)(x) / (uint32)(y)) + ((((uint32)(x) % (uint32)(y)) != 0) ? 1 : 0))
271#define TIFFhowmany8_32(x) (((x)&0x07)?((uint32)(x)>>3)+1:(uint32)(x)>>3)
272#define TIFFroundup_32(x, y) (TIFFhowmany_32(x,y)*(y))
273#define TIFFhowmany_64(x, y) ((((uint64)(x))+(((uint64)(y))-1))/((uint64)(y)))
274#define TIFFhowmany8_64(x) (((x)&0x07)?((uint64)(x)>>3)+1:(uint64)(x)>>3)
275#define TIFFroundup_64(x, y) (TIFFhowmany_64(x,y)*(y))
276
277/* Safe multiply which returns zero if there is an *unsigned* integer overflow. This macro is not safe for *signed* integer types */
278#define TIFFSafeMultiply(t,v,m) ((((t)(m) != (t)0) && (((t)(((v)*(m))/(m))) == (t)(v))) ? (t)((v)*(m)) : (t)0)
279
280#define TIFFmax(A,B) ((A)>(B)?(A):(B))
281#define TIFFmin(A,B) ((A)<(B)?(A):(B))
282
283#define TIFFArrayCount(a) (sizeof (a) / sizeof ((a)[0]))
284
285/*
286 Support for large files.
287
288 Windows read/write APIs support only 'unsigned int' rather than 'size_t'.
289 Windows off_t is only 32-bit, even in 64-bit builds.
290*/
291#if defined(HAVE_FSEEKO)
292/*
293 Use fseeko() and ftello() if they are available since they use
294 'off_t' rather than 'long'. It is wrong to use fseeko() and
295 ftello() only on systems with special LFS support since some systems
296 (e.g. FreeBSD) support a 64-bit off_t by default.
297
298 For MinGW, __MSVCRT_VERSION__ must be at least 0x800 to expose these
299 interfaces. The MinGW compiler must support the requested version. MinGW
300 does not distribute the CRT (it is supplied by Microsoft) so the correct CRT
301 must be available on the target computer in order for the program to run.
302*/
303#if defined(HAVE_FSEEKO)
304# define fseek(stream,offset,whence) fseeko(stream,offset,whence)
305# define ftell(stream,offset,whence) ftello(stream,offset,whence)
306#endif
307#endif
308#if defined(__WIN32__) && \
309 !(defined(_MSC_VER) && _MSC_VER < 1400) && \
310 !(defined(__MSVCRT_VERSION__) && __MSVCRT_VERSION__ < 0x800)
311typedef unsigned int TIFFIOSize_t;
312#define _TIFF_lseek_f(fildes,offset,whence) _lseeki64(fildes,/* __int64 */ offset,whence)
313/* #define _TIFF_tell_f(fildes) /\* __int64 *\/ _telli64(fildes) */
314#define _TIFF_fseek_f(stream,offset,whence) _fseeki64(stream,/* __int64 */ offset,whence)
315#define _TIFF_fstat_f(fildes,stat_buff) _fstati64(fildes,/* struct _stati64 */ stat_buff)
316/* #define _TIFF_ftell_f(stream) /\* __int64 *\/ _ftelli64(stream) */
317/* #define _TIFF_stat_f(path,stat_buff) _stati64(path,/\* struct _stati64 *\/ stat_buff) */
318#define _TIFF_stat_s struct _stati64
319#define _TIFF_off_t __int64
320#else
321typedef size_t TIFFIOSize_t;
322#define _TIFF_lseek_f(fildes,offset,whence) lseek(fildes,offset,whence)
323/* #define _TIFF_tell_f(fildes) (_TIFF_lseek_f(fildes,0,SEEK_CUR)) */
324#define _TIFF_fseek_f(stream,offset,whence) fseek(stream,offset,whence)
325#define _TIFF_fstat_f(fildes,stat_buff) fstat(fildes,stat_buff)
326/* #define _TIFF_ftell_f(stream) ftell(stream) */
327/* #define _TIFF_stat_f(path,stat_buff) stat(path,stat_buff) */
328#define _TIFF_stat_s struct stat
329#define _TIFF_off_t off_t
330#endif
331
332#if defined(__has_attribute) && defined(__clang__)
333#if __has_attribute(no_sanitize)
334#define TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW __attribute__((no_sanitize("unsigned-integer-overflow")))
335#else
336#define TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW
337#endif
338#else
339#define TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW
340#endif
341
342
343#if defined(__cplusplus)
344extern "C" {
345#endif
346extern int _TIFFgetMode(const char* mode, const char* module);
347extern int _TIFFNoRowEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s);
348extern int _TIFFNoStripEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s);
349extern int _TIFFNoTileEncode(TIFF*, uint8* pp, tmsize_t cc, uint16 s);
350extern int _TIFFNoRowDecode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s);
351extern int _TIFFNoStripDecode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s);
352extern int _TIFFNoTileDecode(TIFF*, uint8* pp, tmsize_t cc, uint16 s);
353extern void _TIFFNoPostDecode(TIFF* tif, uint8* buf, tmsize_t cc);
354extern int _TIFFNoPreCode(TIFF* tif, uint16 s);
355extern int _TIFFNoSeek(TIFF* tif, uint32 off);
356extern void _TIFFSwab16BitData(TIFF* tif, uint8* buf, tmsize_t cc);
357extern void _TIFFSwab24BitData(TIFF* tif, uint8* buf, tmsize_t cc);
358extern void _TIFFSwab32BitData(TIFF* tif, uint8* buf, tmsize_t cc);
359extern void _TIFFSwab64BitData(TIFF* tif, uint8* buf, tmsize_t cc);
360extern int TIFFFlushData1(TIFF* tif);
361extern int TIFFDefaultDirectory(TIFF* tif);
362extern void _TIFFSetDefaultCompressionState(TIFF* tif);
363extern int _TIFFRewriteField(TIFF *, uint16, TIFFDataType, tmsize_t, void *);
364extern int TIFFSetCompressionScheme(TIFF* tif, int scheme);
367extern void _TIFFDefaultTileSize(TIFF* tif, uint32* tw, uint32* th);
369
370extern void _TIFFsetByteArray(void**, void*, uint32);
371extern void _TIFFsetString(char**, char*);
372extern void _TIFFsetShortArray(uint16**, uint16*, uint32);
373extern void _TIFFsetLongArray(uint32**, uint32*, uint32);
374extern void _TIFFsetFloatArray(float**, float*, uint32);
375extern void _TIFFsetDoubleArray(double**, double*, uint32);
376
377extern void _TIFFprintAscii(FILE*, const char*);
378extern void _TIFFprintAsciiTag(FILE*, const char*, const char*);
379
384
385extern uint32 _TIFFMultiply32(TIFF*, uint32, uint32, const char*);
386extern uint64 _TIFFMultiply64(TIFF*, uint64, uint64, const char*);
387extern tmsize_t _TIFFMultiplySSize(TIFF*, tmsize_t, tmsize_t, const char*);
388extern tmsize_t _TIFFCastUInt64ToSSize(TIFF*, uint64, const char*);
389extern void* _TIFFCheckMalloc(TIFF*, tmsize_t, tmsize_t, const char*);
390extern void* _TIFFCheckRealloc(TIFF*, void*, tmsize_t, tmsize_t, const char*);
391
392extern double _TIFFUInt64ToDouble(uint64);
393extern float _TIFFUInt64ToFloat(uint64);
394
395extern float _TIFFClampDoubleToFloat(double);
396
397extern tmsize_t
399 void **buf, tmsize_t bufsizetoalloc,
400 tmsize_t size_to_read);
401extern tmsize_t
403 void **buf, tmsize_t bufsizetoalloc,
404 tmsize_t size_to_read);
405extern tmsize_t
407 void **buf, tmsize_t bufsizetoalloc,
409extern int _TIFFSeekOK(TIFF* tif, toff_t off);
410
411extern int TIFFInitDumpMode(TIFF*, int);
412#ifdef PACKBITS_SUPPORT
413extern int TIFFInitPackBits(TIFF*, int);
414#endif
415#ifdef CCITT_SUPPORT
416extern int TIFFInitCCITTRLE(TIFF*, int), TIFFInitCCITTRLEW(TIFF*, int);
418#endif
419#ifdef THUNDER_SUPPORT
420extern int TIFFInitThunderScan(TIFF*, int);
421#endif
422#ifdef NEXT_SUPPORT
423extern int TIFFInitNeXT(TIFF*, int);
424#endif
425#ifdef LZW_SUPPORT
426extern int TIFFInitLZW(TIFF*, int);
427#endif
428#ifdef OJPEG_SUPPORT
429extern int TIFFInitOJPEG(TIFF*, int);
430#endif
431#ifdef JPEG_SUPPORT
432extern int TIFFInitJPEG(TIFF*, int);
433extern int TIFFJPEGIsFullStripRequired(TIFF*);
434#endif
435#ifdef JBIG_SUPPORT
436extern int TIFFInitJBIG(TIFF*, int);
437#endif
438#ifdef ZIP_SUPPORT
439extern int TIFFInitZIP(TIFF*, int);
440#endif
441#ifdef PIXARLOG_SUPPORT
442extern int TIFFInitPixarLog(TIFF*, int);
443#endif
444#ifdef LOGLUV_SUPPORT
445extern int TIFFInitSGILog(TIFF*, int);
446#endif
447#ifdef LZMA_SUPPORT
448extern int TIFFInitLZMA(TIFF*, int);
449#endif
450#ifdef ZSTD_SUPPORT
451extern int TIFFInitZSTD(TIFF*, int);
452#endif
453#ifdef WEBP_SUPPORT
454extern int TIFFInitWebP(TIFF*, int);
455#endif
456#ifdef VMS
457extern const TIFFCodec _TIFFBuiltinCODECS[];
458#else
460#endif
461
462#if defined(__cplusplus)
463}
464#endif
465#endif /* _TIFFIOP_ */
466
467/* vim: set ts=8 sts=8 sw=8 noet: */
468/*
469 * Local Variables:
470 * mode: c
471 * c-basic-offset: 8
472 * fill-column: 78
473 * End:
474 */
unsigned short uint16
Definition: types.h:30
unsigned int uint32
Definition: types.h:32
unsigned char uint8
Definition: types.h:28
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
unsigned long long uint64
Definition: platform.h:18
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GLdouble s
Definition: gl.h:2039
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
GLsizeiptr size
Definition: glext.h:5919
GLenum mode
Definition: glext.h:6217
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
GLdouble GLdouble z
Definition: glext.h:5874
uint32_t cc
Definition: isohybrid.c:75
const WCHAR * str
DWORD scheme
void * data
Definition: tiffiop.h:95
struct client_info * next
Definition: tiffiop.h:94
char * name
Definition: tiffiop.h:96
Definition: tiffiop.h:115
uint64 * tif_dirlist
Definition: tiffiop.h:148
TIFFReadWriteProc tif_readproc
Definition: tiffiop.h:208
TIFFReadWriteProc tif_writeproc
Definition: tiffiop.h:209
const TIFFField * tif_foundfield
Definition: tiffiop.h:218
uint64 tif_subifdoff
Definition: tiffiop.h:166
TIFFTileMethod tif_deftilesize
Definition: tiffiop.h:190
uint16 tif_dirnumber
Definition: tiffiop.h:150
TIFFCodeMethod tif_encodestrip
Definition: tiffiop.h:183
TIFFUnmapFileProc tif_unmapproc
Definition: tiffiop.h:205
TIFFHeaderClassic classic
Definition: tiffiop.h:155
TIFFSeekProc tif_seekproc
Definition: tiffiop.h:210
TIFFSeekMethod tif_seek
Definition: tiffiop.h:187
TIFFCodeMethod tif_encodetile
Definition: tiffiop.h:185
TIFFTagMethods tif_tagmethods
Definition: tiffiop.h:219
tmsize_t tif_scanlinesize
Definition: tiffiop.h:193
TIFFPreMethod tif_preencode
Definition: tiffiop.h:178
TIFFBoolMethod tif_fixuptags
Definition: tiffiop.h:173
TIFFHeaderBig big
Definition: tiffiop.h:156
TIFFDirectory tif_customdir
Definition: tiffiop.h:152
tmsize_t tif_rawdataloaded
Definition: tiffiop.h:198
tmsize_t tif_rawcc
Definition: tiffiop.h:200
uint64 tif_dataoff
Definition: tiffiop.h:163
TIFFPreMethod tif_predecode
Definition: tiffiop.h:175
size_t tif_nfields
Definition: tiffiop.h:217
uint16 tif_nsubifd
Definition: tiffiop.h:165
TIFFCodeMethod tif_decodestrip
Definition: tiffiop.h:182
TIFFCloseProc tif_closeproc
Definition: tiffiop.h:211
TIFFClientInfoLink * tif_clientinfo
Definition: tiffiop.h:220
TIFFField ** tif_fields
Definition: tiffiop.h:216
union tiff::@3473 tif_header
TIFFPostMethod tif_postdecode
Definition: tiffiop.h:214
thandle_t tif_clientdata
Definition: tiffiop.h:207
uint8 * tif_base
Definition: tiffiop.h:202
TIFFStripMethod tif_defstripsize
Definition: tiffiop.h:189
char * tif_name
Definition: tiffiop.h:116
uint16 tif_curdir
Definition: tiffiop.h:160
uint32 tif_flags
Definition: tiffiop.h:119
TIFFCodeMethod tif_decoderow
Definition: tiffiop.h:180
TIFFBoolMethod tif_setupencode
Definition: tiffiop.h:176
TIFFDirectory tif_dir
Definition: tiffiop.h:151
TIFFBoolMethod tif_postencode
Definition: tiffiop.h:179
uint8 * tif_data
Definition: tiffiop.h:191
tmsize_t tif_scanlineskew
Definition: tiffiop.h:194
tmsize_t tif_size
Definition: tiffiop.h:203
uint64 tif_nextdiroff
Definition: tiffiop.h:147
TIFFCodeMethod tif_encoderow
Definition: tiffiop.h:181
TIFFVoidMethod tif_close
Definition: tiffiop.h:186
int tif_decodestatus
Definition: tiffiop.h:172
int tif_encodestatus
Definition: tiffiop.h:177
int tif_fd
Definition: tiffiop.h:117
TIFFVoidMethod tif_cleanup
Definition: tiffiop.h:188
uint32 tif_curstrip
Definition: tiffiop.h:161
uint32 tif_row
Definition: tiffiop.h:159
TIFFMapFileProc tif_mapproc
Definition: tiffiop.h:204
TIFFBoolMethod tif_setupdecode
Definition: tiffiop.h:174
uint32 tif_curtile
Definition: tiffiop.h:169
uint64 tif_diroff
Definition: tiffiop.h:146
tmsize_t tif_rawdatasize
Definition: tiffiop.h:196
tmsize_t tif_tilesize
Definition: tiffiop.h:170
tmsize_t tif_rawdataoff
Definition: tiffiop.h:197
size_t tif_nfieldscompat
Definition: tiffiop.h:224
uint8 * tif_rawcp
Definition: tiffiop.h:199
uint32 tif_col
Definition: tiffiop.h:168
TIFFCodeMethod tif_decodetile
Definition: tiffiop.h:184
uint16 tif_header_size
Definition: tiffiop.h:158
int tif_mode
Definition: tiffiop.h:118
uint64 tif_curoff
Definition: tiffiop.h:162
TIFFFieldArray * tif_fieldscompat
Definition: tiffiop.h:223
uint8 * tif_rawdata
Definition: tiffiop.h:195
TIFFSizeProc tif_sizeproc
Definition: tiffiop.h:212
uint16 tif_dirlistsize
Definition: tiffiop.h:149
TIFFHeaderCommon common
Definition: tiffiop.h:154
#define TIFFInitCCITTRLEW
Definition: tif_codec.c:55
#define TIFFInitLZW
Definition: tif_codec.c:36
#define TIFFInitPixarLog
Definition: tif_codec.c:66
#define TIFFInitJPEG
Definition: tif_codec.c:48
#define TIFFInitCCITTFax4
Definition: tif_codec.c:57
#define TIFFInitPackBits
Definition: tif_codec.c:39
#define TIFFInitNeXT
Definition: tif_codec.c:45
#define TIFFInitZSTD
Definition: tif_codec.c:75
#define TIFFInitJBIG
Definition: tif_codec.c:60
#define TIFFInitCCITTFax3
Definition: tif_codec.c:56
#define TIFFInitLZMA
Definition: tif_codec.c:72
#define TIFFInitSGILog
Definition: tif_codec.c:69
#define TIFFInitCCITTRLE
Definition: tif_codec.c:54
#define TIFFInitZIP
Definition: tif_codec.c:63
#define TIFFInitWebP
Definition: tif_codec.c:78
#define TIFFInitThunderScan
Definition: tif_codec.c:42
#define TIFFInitOJPEG
Definition: tif_codec.c:51
#define lfind
Definition: tif_config.h:130
TIFFDataType
Definition: tiff.h:123
uint64 toff_t
Definition: tiffio.h:66
int(* TIFFMapFileProc)(thandle_t, void **base, toff_t *size)
Definition: tiffio.h:277
TIFF_SSIZE_T tmsize_t
Definition: tiffio.h:65
void(* TIFFErrorHandler)(const char *, const char *, va_list)
Definition: tiffio.h:271
void(* TIFFUnmapFileProc)(thandle_t, void *base, toff_t size)
Definition: tiffio.h:278
toff_t(* TIFFSizeProc)(thandle_t)
Definition: tiffio.h:276
void(* TIFFErrorHandlerExt)(thandle_t, const char *, const char *, va_list)
Definition: tiffio.h:272
tmsize_t(* TIFFReadWriteProc)(thandle_t, void *, tmsize_t)
Definition: tiffio.h:273
toff_t(* TIFFSeekProc)(thandle_t, toff_t, int)
Definition: tiffio.h:274
int(* TIFFCloseProc)(thandle_t)
Definition: tiffio.h:275
void _TIFFsetByteArray(void **, void *, uint32)
Definition: tif_dir.c:57
void _TIFFprintAsciiTag(FILE *, const char *, const char *)
Definition: tif_print.c:704
tmsize_t _TIFFReadEncodedStripAndAllocBuffer(TIFF *tif, uint32 strip, void **buf, tmsize_t bufsizetoalloc, tmsize_t size_to_read)
Definition: tif_read.c:572
void _TIFFNoPostDecode(TIFF *tif, uint8 *buf, tmsize_t cc)
Definition: tif_read.c:1603
void _TIFFprintAscii(FILE *, const char *)
Definition: tif_print.c:678
int _TIFFSeekOK(TIFF *tif, toff_t off)
Definition: tif_aux.c:406
int _TIFFNoPreCode(TIFF *tif, uint16 s)
Definition: tif_compress.c:125
void(* TIFFVoidMethod)(TIFF *)
Definition: tiffiop.h:106
int _TIFFNoSeek(TIFF *tif, uint32 off)
Definition: tif_compress.c:116
TIFFErrorHandler _TIFFwarningHandler
Definition: tif_unix.c:364
uint64 _TIFFMultiply64(TIFF *, uint64, uint64, const char *)
Definition: tif_aux.c:48
TIFFErrorHandlerExt _TIFFerrorHandlerExt
Definition: tif_error.c:30
void _TIFFSwab32BitData(TIFF *tif, uint8 *buf, tmsize_t cc)
Definition: tif_read.c:1625
void(* TIFFTileMethod)(TIFF *, uint32 *, uint32 *)
Definition: tiffiop.h:113
void _TIFFsetString(char **, char *)
Definition: tif_dir.c:59
void _TIFFSwab16BitData(TIFF *tif, uint8 *buf, tmsize_t cc)
Definition: tif_read.c:1609
void _TIFFsetShortArray(uint16 **, uint16 *, uint32)
Definition: tif_dir.c:63
TIFFErrorHandlerExt _TIFFwarningHandlerExt
Definition: tif_warning.c:30
int(* TIFFPreMethod)(TIFF *, uint16)
Definition: tiffiop.h:108
int _TIFFNoStripDecode(TIFF *tif, uint8 *pp, tmsize_t cc, uint16 s)
Definition: tif_compress.c:102
void _TIFFSwab64BitData(TIFF *tif, uint8 *buf, tmsize_t cc)
Definition: tif_read.c:1633
uint32 _TIFFMultiply32(TIFF *, uint32, uint32, const char *)
Definition: tif_aux.c:37
int _TIFFgetMode(const char *mode, const char *module)
Definition: tif_open.c:47
int TIFFSetCompressionScheme(TIFF *tif, int scheme)
Definition: tif_compress.c:160
void _TIFFsetDoubleArray(double **, double *, uint32)
Definition: tif_dir.c:71
void(* TIFFPostMethod)(TIFF *tif, uint8 *buf, tmsize_t size)
Definition: tiffiop.h:111
int(* TIFFCodeMethod)(TIFF *tif, uint8 *buf, tmsize_t size, uint16 sample)
Definition: tiffiop.h:109
void _TIFFSwab24BitData(TIFF *tif, uint8 *buf, tmsize_t cc)
Definition: tif_read.c:1617
int TIFFDefaultDirectory(TIFF *tif)
Definition: tif_dir.c:1372
unsigned char tidataval_t
Definition: tiffiop.h:103
size_t TIFFIOSize_t
Definition: tiffiop.h:321
int(* TIFFSeekMethod)(TIFF *, uint32)
Definition: tiffiop.h:110
void _TIFFSetDefaultCompressionState(TIFF *tif)
Definition: tif_compress.c:135
void _TIFFsetLongArray(uint32 **, uint32 *, uint32)
Definition: tif_dir.c:65
int _TIFFRewriteField(TIFF *, uint16, TIFFDataType, tmsize_t, void *)
tmsize_t _TIFFCastUInt64ToSSize(TIFF *, uint64, const char *)
Definition: tif_aux.c:83
uint32(* TIFFStripMethod)(TIFF *, uint32)
Definition: tiffiop.h:112
double _TIFFUInt64ToDouble(uint64)
Definition: tif_aux.c:382
TIFFCodec _TIFFBuiltinCODECS[]
Definition: tif_codec.c:87
int TIFFFlushData1(TIFF *tif)
Definition: tif_write.c:803
tmsize_t _TIFFReadEncodedTileAndAllocBuffer(TIFF *tif, uint32 tile, void **buf, tmsize_t bufsizetoalloc, tmsize_t size_to_read)
Definition: tif_read.c:1048
int(* TIFFBoolMethod)(TIFF *)
Definition: tiffiop.h:107
tmsize_t _TIFFReadTileAndAllocBuffer(TIFF *tif, void **buf, tmsize_t bufsizetoalloc, uint32 x, uint32 y, uint32 z, uint16 s)
Definition: tif_read.c:1029
tidataval_t * tidata_t
Definition: tiffiop.h:104
int _TIFFNoRowEncode(TIFF *tif, uint8 *pp, tmsize_t cc, uint16 s)
Definition: tif_compress.c:51
int _TIFFNoStripEncode(TIFF *tif, uint8 *pp, tmsize_t cc, uint16 s)
Definition: tif_compress.c:58
tmsize_t _TIFFMultiplySSize(TIFF *, tmsize_t, tmsize_t, const char *)
Definition: tif_aux.c:59
int _TIFFDataSize(TIFFDataType type)
Definition: tif_dirinfo.c:476
float _TIFFClampDoubleToFloat(double)
Definition: tif_aux.c:397
int TIFFInitDumpMode(TIFF *, int)
Definition: tif_dumpmode.c:123
struct client_info TIFFClientInfoLink
void _TIFFsetFloatArray(float **, float *, uint32)
Definition: tif_dir.c:69
int _TIFFNoTileEncode(TIFF *, uint8 *pp, tmsize_t cc, uint16 s)
Definition: tif_compress.c:65
TIFFErrorHandler _TIFFerrorHandler
Definition: tif_unix.c:374
int _TIFFNoRowDecode(TIFF *tif, uint8 *pp, tmsize_t cc, uint16 s)
Definition: tif_compress.c:95
void * _TIFFCheckRealloc(TIFF *, void *, tmsize_t, tmsize_t, const char *)
Definition: tif_aux.c:97
int _TIFFNoTileDecode(TIFF *, uint8 *pp, tmsize_t cc, uint16 s)
Definition: tif_compress.c:109
void _TIFFDefaultTileSize(TIFF *tif, uint32 *tw, uint32 *th)
Definition: tif_tile.c:278
void * _TIFFCheckMalloc(TIFF *, tmsize_t, tmsize_t, const char *)
Definition: tif_aux.c:121
float _TIFFUInt64ToFloat(uint64)
Definition: tif_aux.c:366
uint32 _TIFFDefaultStripSize(TIFF *tif, uint32 s)
Definition: tif_strip.c:223
int TIFFSetDefaultCompressionState(TIFF *tif)
#define snprintf
Definition: wintirpc.h:48