ReactOS  0.4.14-dev-293-g2b39b42
tiffio.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 _TIFFIO_
26 #define _TIFFIO_
27 
28 /*
29  * TIFF I/O Library Definitions.
30  */
31 #include "tiff.h"
32 #include "tiffvers.h"
33 
34 /*
35  * TIFF is defined as an incomplete type to hide the
36  * library's internal data structures from clients.
37  */
38 typedef struct tiff TIFF;
39 
40 /*
41  * The following typedefs define the intrinsic size of
42  * data types used in the *exported* interfaces. These
43  * definitions depend on the proper definition of types
44  * in tiff.h. Note also that the varargs interface used
45  * to pass tag types and values uses the types defined in
46  * tiff.h directly.
47  *
48  * NB: ttag_t is unsigned int and not unsigned short because
49  * ANSI C requires that the type before the ellipsis be a
50  * promoted type (i.e. one of int, unsigned int, pointer,
51  * or double) and because we defined pseudo-tags that are
52  * outside the range of legal Aldus-assigned tags.
53  * NB: tsize_t is signed and not unsigned because some functions
54  * return -1.
55  * NB: toff_t is not off_t for many reasons; TIFFs max out at
56  * 32-bit file offsets, and BigTIFF maxes out at 64-bit
57  * offsets being the most important, and to ensure use of
58  * a consistently unsigned type across architectures.
59  * Prior to libtiff 4.0, this was an unsigned 32 bit type.
60  */
61 /*
62  * this is the machine addressing size type, only it's signed, so make it
63  * int32 on 32bit machines, int64 on 64bit machines
64  */
66 typedef uint64 toff_t; /* file offset */
67 /* the following are deprecated and should be replaced by their defining
68  counterparts */
69 typedef uint32 ttag_t; /* directory tag */
70 typedef uint16 tdir_t; /* directory index */
71 typedef uint16 tsample_t; /* sample number */
72 typedef uint32 tstrile_t; /* strip or tile number */
73 typedef tstrile_t tstrip_t; /* strip number */
74 typedef tstrile_t ttile_t; /* tile number */
75 typedef tmsize_t tsize_t; /* i/o size in bytes */
76 typedef void* tdata_t; /* image data ref */
77 
78 #if !defined(__WIN32__) && (defined(_WIN32) || defined(WIN32))
79 #define __WIN32__
80 #endif
81 
82 /*
83  * On windows you should define USE_WIN32_FILEIO if you are using tif_win32.c
84  * or AVOID_WIN32_FILEIO if you are using something else (like tif_unix.c).
85  *
86  * By default tif_unix.c is assumed.
87  */
88 
89 #if defined(_WINDOWS) || defined(__WIN32__) || defined(_Windows)
90 # if !defined(__CYGWIN) && !defined(AVOID_WIN32_FILEIO) && !defined(USE_WIN32_FILEIO)
91 # define AVOID_WIN32_FILEIO
92 # endif
93 #endif
94 
95 #if defined(USE_WIN32_FILEIO)
96 # define VC_EXTRALEAN
97 #ifdef __REACTOS__
98 # define WIN32_NO_STATUS
99 # include <windef.h>
100 #else /* __REACTOS__ */
101 # include <windows.h>
102 #endif /* __REACTOS__ */
103 # ifdef __WIN32__
104 DECLARE_HANDLE(thandle_t); /* Win32 file handle */
105 # else
106 typedef HFILE thandle_t; /* client data handle */
107 # endif /* __WIN32__ */
108 #else
109 typedef void* thandle_t; /* client data handle */
110 #endif /* USE_WIN32_FILEIO */
111 
112 /*
113  * Flags to pass to TIFFPrintDirectory to control
114  * printing of data structures that are potentially
115  * very large. Bit-or these flags to enable printing
116  * multiple items.
117  */
118 #define TIFFPRINT_NONE 0x0 /* no extra info */
119 #define TIFFPRINT_STRIPS 0x1 /* strips/tiles info */
120 #define TIFFPRINT_CURVES 0x2 /* color/gray response curves */
121 #define TIFFPRINT_COLORMAP 0x4 /* colormap */
122 #define TIFFPRINT_JPEGQTABLES 0x100 /* JPEG Q matrices */
123 #define TIFFPRINT_JPEGACTABLES 0x200 /* JPEG AC tables */
124 #define TIFFPRINT_JPEGDCTABLES 0x200 /* JPEG DC tables */
125 
126 /*
127  * Colour conversion stuff
128  */
129 
130 /* reference white */
131 #define D65_X0 (95.0470F)
132 #define D65_Y0 (100.0F)
133 #define D65_Z0 (108.8827F)
134 
135 #define D50_X0 (96.4250F)
136 #define D50_Y0 (100.0F)
137 #define D50_Z0 (82.4680F)
138 
139 /* Structure for holding information about a display device. */
140 
141 typedef unsigned char TIFFRGBValue; /* 8-bit samples */
142 
143 typedef struct {
144  float d_mat[3][3]; /* XYZ -> luminance matrix */
145  float d_YCR; /* Light o/p for reference white */
146  float d_YCG;
147  float d_YCB;
148  uint32 d_Vrwr; /* Pixel values for ref. white */
151  float d_Y0R; /* Residual light for black pixel */
152  float d_Y0G;
153  float d_Y0B;
154  float d_gammaR; /* Gamma values for the three guns */
155  float d_gammaG;
156  float d_gammaB;
157 } TIFFDisplay;
158 
159 typedef struct { /* YCbCr->RGB support */
160  TIFFRGBValue* clamptab; /* range clamping table */
161  int* Cr_r_tab;
162  int* Cb_b_tab;
167 
168 typedef struct { /* CIE Lab 1976->RGB support */
169  int range; /* Size of conversion table */
170 #define CIELABTORGB_TABLE_RANGE 1500
171  float rstep, gstep, bstep;
172  float X0, Y0, Z0; /* Reference white point */
174  float Yr2r[CIELABTORGB_TABLE_RANGE + 1]; /* Conversion of Yr to r */
175  float Yg2g[CIELABTORGB_TABLE_RANGE + 1]; /* Conversion of Yg to g */
176  float Yb2b[CIELABTORGB_TABLE_RANGE + 1]; /* Conversion of Yb to b */
178 
179 /*
180  * RGBA-style image support.
181  */
183 /*
184  * The image reading and conversion routines invoke
185  * ``put routines'' to copy/image/whatever tiles of
186  * raw image data. A default set of routines are
187  * provided to convert/copy raw image data to 8-bit
188  * packed ABGR format rasters. Applications can supply
189  * alternate routines that unpack the data into a
190  * different format or, for example, unpack the data
191  * and draw the unpacked raster on the display.
192  */
193 typedef void (*tileContigRoutine)
195  unsigned char*);
196 typedef void (*tileSeparateRoutine)
198  unsigned char*, unsigned char*, unsigned char*, unsigned char*);
199 /*
200  * RGBA-reader state.
201  */
203  TIFF* tif; /* image handle */
204  int stoponerr; /* stop on read error */
205  int isContig; /* data is packed/separate */
206  int alpha; /* type of alpha data present */
207  uint32 width; /* image width */
208  uint32 height; /* image height */
209  uint16 bitspersample; /* image bits/sample */
210  uint16 samplesperpixel; /* image samples/pixel */
211  uint16 orientation; /* image orientation */
212  uint16 req_orientation; /* requested orientation */
213  uint16 photometric; /* image photometric interp */
214  uint16* redcmap; /* colormap palette */
217  /* get image data routine */
219  /* put decoded strip/tile */
220  union {
224  } put;
225  TIFFRGBValue* Map; /* sample mapping array */
226  uint32** BWmap; /* black&white map */
227  uint32** PALmap; /* palette image map */
228  TIFFYCbCrToRGB* ycbcr; /* YCbCr conversion state */
229  TIFFCIELabToRGB* cielab; /* CIE L*a*b conversion state */
230 
231  uint8* UaToAa; /* Unassociated alpha to associated alpha conversion LUT */
232  uint8* Bitdepth16To8; /* LUT for conversion from 16bit to 8bit values */
233 
236 };
237 
238 /*
239  * Macros for extracting components from the
240  * packed ABGR form returned by TIFFReadRGBAImage.
241  */
242 #define TIFFGetR(abgr) ((abgr) & 0xff)
243 #define TIFFGetG(abgr) (((abgr) >> 8) & 0xff)
244 #define TIFFGetB(abgr) (((abgr) >> 16) & 0xff)
245 #define TIFFGetA(abgr) (((abgr) >> 24) & 0xff)
246 
247 /*
248  * A CODEC is a software package that implements decoding,
249  * encoding, or decoding+encoding of a compression algorithm.
250  * The library provides a collection of builtin codecs.
251  * More codecs may be registered through calls to the library
252  * and/or the builtin implementations may be overridden.
253  */
254 typedef int (*TIFFInitMethod)(TIFF*, int);
255 typedef struct {
256  char* name;
259 } TIFFCodec;
260 
261 #include <stdio.h>
262 #include <stdarg.h>
263 
264 /* share internal LogLuv conversion routines? */
265 #ifndef LOGLUV_PUBLIC
266 #define LOGLUV_PUBLIC 1
267 #endif
268 
269 #if !defined(__GNUC__) && !defined(__attribute__)
270 # define __attribute__(x) /*nothing*/
271 #endif
272 
273 #if defined(c_plusplus) || defined(__cplusplus)
274 extern "C" {
275 #endif
276 typedef void (*TIFFErrorHandler)(const char*, const char*, va_list);
277 typedef void (*TIFFErrorHandlerExt)(thandle_t, const char*, const char*, va_list);
282 typedef int (*TIFFMapFileProc)(thandle_t, void** base, toff_t* size);
284 typedef void (*TIFFExtendProc)(TIFF*);
285 
286 extern const char* TIFFGetVersion(void);
287 
288 extern const TIFFCodec* TIFFFindCODEC(uint16);
289 extern TIFFCodec* TIFFRegisterCODEC(uint16, const char*, TIFFInitMethod);
290 extern void TIFFUnRegisterCODEC(TIFFCodec*);
291 extern int TIFFIsCODECConfigured(uint16);
292 extern TIFFCodec* TIFFGetConfiguredCODECs(void);
293 
294 /*
295  * Auxiliary functions.
296  */
297 
298 extern void* _TIFFmalloc(tmsize_t s);
299 extern void* _TIFFcalloc(tmsize_t nmemb, tmsize_t siz);
300 extern void* _TIFFrealloc(void* p, tmsize_t s);
301 extern void _TIFFmemset(void* p, int v, tmsize_t c);
302 extern void _TIFFmemcpy(void* d, const void* s, tmsize_t c);
303 extern int _TIFFmemcmp(const void* p1, const void* p2, tmsize_t c);
304 extern void _TIFFfree(void* p);
305 
306 /*
307 ** Stuff, related to tag handling and creating custom tags.
308 */
309 extern int TIFFGetTagListCount( TIFF * );
310 extern uint32 TIFFGetTagListEntry( TIFF *, int tag_index );
311 
312 #define TIFF_ANY TIFF_NOTYPE /* for field descriptor searching */
313 #define TIFF_VARIABLE -1 /* marker for variable length tags */
314 #define TIFF_SPP -2 /* marker for SamplesPerPixel tags */
315 #define TIFF_VARIABLE2 -3 /* marker for uint32 var-length tags */
316 
317 #define FIELD_CUSTOM 65
318 
319 typedef struct _TIFFField TIFFField;
321 
322 extern const TIFFField* TIFFFindField(TIFF *, uint32, TIFFDataType);
323 extern const TIFFField* TIFFFieldWithTag(TIFF*, uint32);
324 extern const TIFFField* TIFFFieldWithName(TIFF*, const char *);
325 
326 extern uint32 TIFFFieldTag(const TIFFField*);
327 extern const char* TIFFFieldName(const TIFFField*);
329 extern int TIFFFieldPassCount(const TIFFField*);
330 extern int TIFFFieldReadCount(const TIFFField*);
331 extern int TIFFFieldWriteCount(const TIFFField*);
332 
336 
337 typedef struct {
338  TIFFVSetMethod vsetfield; /* tag set routine */
339  TIFFVGetMethod vgetfield; /* tag get routine */
340  TIFFPrintMethod printdir; /* directory print routine */
342 
344 extern void *TIFFGetClientInfo(TIFF *, const char *);
345 extern void TIFFSetClientInfo(TIFF *, void *, const char *);
346 
347 extern void TIFFCleanup(TIFF* tif);
348 extern void TIFFClose(TIFF* tif);
349 extern int TIFFFlush(TIFF* tif);
350 extern int TIFFFlushData(TIFF* tif);
351 extern int TIFFGetField(TIFF* tif, uint32 tag, ...);
352 extern int TIFFVGetField(TIFF* tif, uint32 tag, va_list ap);
353 extern int TIFFGetFieldDefaulted(TIFF* tif, uint32 tag, ...);
354 extern int TIFFVGetFieldDefaulted(TIFF* tif, uint32 tag, va_list ap);
355 extern int TIFFReadDirectory(TIFF* tif);
356 extern int TIFFReadCustomDirectory(TIFF* tif, toff_t diroff, const TIFFFieldArray* infoarray);
357 extern int TIFFReadEXIFDirectory(TIFF* tif, toff_t diroff);
358 extern uint64 TIFFScanlineSize64(TIFF* tif);
359 extern tmsize_t TIFFScanlineSize(TIFF* tif);
362 extern uint64 TIFFStripSize64(TIFF* tif);
363 extern tmsize_t TIFFStripSize(TIFF* tif);
364 extern uint64 TIFFRawStripSize64(TIFF* tif, uint32 strip);
365 extern tmsize_t TIFFRawStripSize(TIFF* tif, uint32 strip);
366 extern uint64 TIFFVStripSize64(TIFF* tif, uint32 nrows);
367 extern tmsize_t TIFFVStripSize(TIFF* tif, uint32 nrows);
368 extern uint64 TIFFTileRowSize64(TIFF* tif);
369 extern tmsize_t TIFFTileRowSize(TIFF* tif);
370 extern uint64 TIFFTileSize64(TIFF* tif);
371 extern tmsize_t TIFFTileSize(TIFF* tif);
372 extern uint64 TIFFVTileSize64(TIFF* tif, uint32 nrows);
373 extern tmsize_t TIFFVTileSize(TIFF* tif, uint32 nrows);
375 extern void TIFFDefaultTileSize(TIFF*, uint32*, uint32*);
376 extern int TIFFFileno(TIFF*);
377 extern int TIFFSetFileno(TIFF*, int);
378 extern thandle_t TIFFClientdata(TIFF*);
380 extern int TIFFGetMode(TIFF*);
381 extern int TIFFSetMode(TIFF*, int);
382 extern int TIFFIsTiled(TIFF*);
383 extern int TIFFIsByteSwapped(TIFF*);
384 extern int TIFFIsUpSampled(TIFF*);
385 extern int TIFFIsMSB2LSB(TIFF*);
386 extern int TIFFIsBigEndian(TIFF*);
394 extern uint32 TIFFCurrentRow(TIFF*);
398 extern uint32 TIFFCurrentStrip(TIFF*);
399 extern uint32 TIFFCurrentTile(TIFF* tif);
400 extern int TIFFReadBufferSetup(TIFF* tif, void* bp, tmsize_t size);
401 extern int TIFFWriteBufferSetup(TIFF* tif, void* bp, tmsize_t size);
402 extern int TIFFSetupStrips(TIFF *);
403 extern int TIFFWriteCheck(TIFF*, int, const char *);
404 extern void TIFFFreeDirectory(TIFF*);
405 extern int TIFFCreateDirectory(TIFF*);
406 extern int TIFFCreateCustomDirectory(TIFF*,const TIFFFieldArray*);
407 extern int TIFFCreateEXIFDirectory(TIFF*);
408 extern int TIFFLastDirectory(TIFF*);
409 extern int TIFFSetDirectory(TIFF*, uint16);
410 extern int TIFFSetSubDirectory(TIFF*, uint64);
411 extern int TIFFUnlinkDirectory(TIFF*, uint16);
412 extern int TIFFSetField(TIFF*, uint32, ...);
413 extern int TIFFVSetField(TIFF*, uint32, va_list);
414 extern int TIFFUnsetField(TIFF*, uint32);
415 extern int TIFFWriteDirectory(TIFF *);
416 extern int TIFFWriteCustomDirectory(TIFF *, uint64 *);
417 extern int TIFFCheckpointDirectory(TIFF *);
418 extern int TIFFRewriteDirectory(TIFF *);
419 
420 #if defined(c_plusplus) || defined(__cplusplus)
421 extern void TIFFPrintDirectory(TIFF*, FILE*, long = 0);
422 extern int TIFFReadScanline(TIFF* tif, void* buf, uint32 row, uint16 sample = 0);
423 extern int TIFFWriteScanline(TIFF* tif, void* buf, uint32 row, uint16 sample = 0);
424 extern int TIFFReadRGBAImage(TIFF*, uint32, uint32, uint32*, int = 0);
426  int = ORIENTATION_BOTLEFT, int = 0);
427 #else
428 extern void TIFFPrintDirectory(TIFF*, FILE*, long);
429 extern int TIFFReadScanline(TIFF* tif, void* buf, uint32 row, uint16 sample);
430 extern int TIFFWriteScanline(TIFF* tif, void* buf, uint32 row, uint16 sample);
431 extern int TIFFReadRGBAImage(TIFF*, uint32, uint32, uint32*, int);
432 extern int TIFFReadRGBAImageOriented(TIFF*, uint32, uint32, uint32*, int, int);
433 #endif
434 
435 extern int TIFFReadRGBAStrip(TIFF*, uint32, uint32 * );
436 extern int TIFFReadRGBATile(TIFF*, uint32, uint32, uint32 * );
437 extern int TIFFReadRGBAStripExt(TIFF*, uint32, uint32 *, int stop_on_error );
438 extern int TIFFReadRGBATileExt(TIFF*, uint32, uint32, uint32 *, int stop_on_error );
439 extern int TIFFRGBAImageOK(TIFF*, char [1024]);
440 extern int TIFFRGBAImageBegin(TIFFRGBAImage*, TIFF*, int, char [1024]);
442 extern void TIFFRGBAImageEnd(TIFFRGBAImage*);
443 extern TIFF* TIFFOpen(const char*, const char*);
444 # ifdef __WIN32__
445 extern TIFF* TIFFOpenW(const wchar_t*, const char*);
446 # endif /* __WIN32__ */
447 extern TIFF* TIFFFdOpen(int, const char*, const char*);
448 extern TIFF* TIFFClientOpen(const char*, const char*,
449  thandle_t,
452  TIFFSizeProc,
454 extern const char* TIFFFileName(TIFF*);
455 extern const char* TIFFSetFileName(TIFF*, const char *);
456 extern void TIFFError(const char*, const char*, ...) __attribute__((__format__ (__printf__,2,3)));
457 extern void TIFFErrorExt(thandle_t, const char*, const char*, ...) __attribute__((__format__ (__printf__,3,4)));
458 extern void TIFFWarning(const char*, const char*, ...) __attribute__((__format__ (__printf__,2,3)));
459 extern void TIFFWarningExt(thandle_t, const char*, const char*, ...) __attribute__((__format__ (__printf__,3,4)));
466 extern int TIFFCheckTile(TIFF* tif, uint32 x, uint32 y, uint32 z, uint16 s);
467 extern uint32 TIFFNumberOfTiles(TIFF*);
468 extern tmsize_t TIFFReadTile(TIFF* tif, void* buf, uint32 x, uint32 y, uint32 z, uint16 s);
469 extern tmsize_t TIFFWriteTile(TIFF* tif, void* buf, uint32 x, uint32 y, uint32 z, uint16 s);
472 extern tmsize_t TIFFReadEncodedStrip(TIFF* tif, uint32 strip, void* buf, tmsize_t size);
473 extern tmsize_t TIFFReadRawStrip(TIFF* tif, uint32 strip, void* buf, tmsize_t size);
474 extern tmsize_t TIFFReadEncodedTile(TIFF* tif, uint32 tile, void* buf, tmsize_t size);
475 extern tmsize_t TIFFReadRawTile(TIFF* tif, uint32 tile, void* buf, tmsize_t size);
476 extern tmsize_t TIFFWriteEncodedStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc);
477 extern tmsize_t TIFFWriteRawStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc);
478 extern tmsize_t TIFFWriteEncodedTile(TIFF* tif, uint32 tile, void* data, tmsize_t cc);
479 extern tmsize_t TIFFWriteRawTile(TIFF* tif, uint32 tile, void* data, tmsize_t cc);
480 extern int TIFFDataWidth(TIFFDataType); /* table of tag datatype widths */
481 extern void TIFFSetWriteOffset(TIFF* tif, toff_t off);
482 extern void TIFFSwabShort(uint16*);
483 extern void TIFFSwabLong(uint32*);
484 extern void TIFFSwabLong8(uint64*);
485 extern void TIFFSwabFloat(float*);
486 extern void TIFFSwabDouble(double*);
487 extern void TIFFSwabArrayOfShort(uint16* wp, tmsize_t n);
488 extern void TIFFSwabArrayOfTriples(uint8* tp, tmsize_t n);
489 extern void TIFFSwabArrayOfLong(uint32* lp, tmsize_t n);
490 extern void TIFFSwabArrayOfLong8(uint64* lp, tmsize_t n);
491 extern void TIFFSwabArrayOfFloat(float* fp, tmsize_t n);
492 extern void TIFFSwabArrayOfDouble(double* dp, tmsize_t n);
493 extern void TIFFReverseBits(uint8* cp, tmsize_t n);
494 extern const unsigned char* TIFFGetBitRevTable(int);
495 
496 #ifdef LOGLUV_PUBLIC
497 #define U_NEU 0.210526316
498 #define V_NEU 0.473684211
499 #define UVSCALE 410.
500 extern double LogL16toY(int);
501 extern double LogL10toY(int);
502 extern void XYZtoRGB24(float*, uint8*);
503 extern int uv_decode(double*, double*, int);
504 extern void LogLuv24toXYZ(uint32, float*);
505 extern void LogLuv32toXYZ(uint32, float*);
506 #if defined(c_plusplus) || defined(__cplusplus)
507 extern int LogL16fromY(double, int = SGILOGENCODE_NODITHER);
508 extern int LogL10fromY(double, int = SGILOGENCODE_NODITHER);
509 extern int uv_encode(double, double, int = SGILOGENCODE_NODITHER);
510 extern uint32 LogLuv24fromXYZ(float*, int = SGILOGENCODE_NODITHER);
511 extern uint32 LogLuv32fromXYZ(float*, int = SGILOGENCODE_NODITHER);
512 #else
513 extern int LogL16fromY(double, int);
514 extern int LogL10fromY(double, int);
515 extern int uv_encode(double, double, int);
516 extern uint32 LogLuv24fromXYZ(float*, int);
517 extern uint32 LogLuv32fromXYZ(float*, int);
518 #endif
519 #endif /* LOGLUV_PUBLIC */
520 
521 extern int TIFFCIELabToRGBInit(TIFFCIELabToRGB*, const TIFFDisplay *, float*);
523  float *, float *, float *);
524 extern void TIFFXYZToRGB(TIFFCIELabToRGB *, float, float, float,
525  uint32 *, uint32 *, uint32 *);
526 
527 extern int TIFFYCbCrToRGBInit(TIFFYCbCrToRGB*, float*, float*);
529  uint32 *, uint32 *, uint32 *);
530 
531 /****************************************************************************
532  * O B S O L E T E D I N T E R F A C E S
533  *
534  * Don't use this stuff in your applications, it may be removed in the future
535  * libtiff versions.
536  ****************************************************************************/
537 typedef struct {
538  ttag_t field_tag; /* field's tag */
539  short field_readcount; /* read count/TIFF_VARIABLE/TIFF_SPP */
540  short field_writecount; /* write count/TIFF_VARIABLE */
541  TIFFDataType field_type; /* type of associated data */
542  unsigned short field_bit; /* bit in fieldsset bit vector */
543  unsigned char field_oktochange; /* if true, can change while writing */
544  unsigned char field_passcount; /* if true, pass dir count on set */
545  char *field_name; /* ASCII name */
546 } TIFFFieldInfo;
547 
548 extern int TIFFMergeFieldInfo(TIFF*, const TIFFFieldInfo[], uint32);
549 
550 #if defined(c_plusplus) || defined(__cplusplus)
551 }
552 #endif
553 
554 #endif /* _TIFFIO_ */
555 
556 /* vim: set ts=8 sts=8 sw=8 noet: */
557 /*
558  * Local Variables:
559  * mode: c
560  * c-basic-offset: 8
561  * fill-column: 78
562  * End:
563  */
int TIFFIsBigEndian(TIFF *)
Definition: tif_open.c:649
unsigned long long uint64
Definition: platform.h:18
uint8 * UaToAa
Definition: tiffio.h:231
void _TIFFmemset(void *p, int v, tmsize_t c)
Definition: tif_unix.c:338
int TIFFCreateEXIFDirectory(TIFF *)
Definition: tif_dir.c:1345
uint16 tsample_t
Definition: tiffio.h:71
ttag_t field_tag
Definition: tiffio.h:538
int TIFFSetSubDirectory(TIFF *, uint64)
Definition: tif_dir.c:1633
TIFFDataType field_type
Definition: tiffio.h:541
uint32 ttag_t
Definition: tiffio.h:69
int TIFFLastDirectory(TIFF *)
Definition: tif_dir.c:1658
void * TIFFGetClientInfo(TIFF *, const char *)
Definition: tif_extension.c:64
void * tdata_t
Definition: tiffio.h:76
int TIFFRewriteDirectory(TIFF *)
Definition: tif_dirwrite.c:216
uint32 TIFFNumberOfTiles(TIFF *)
Definition: tif_tile.c:114
tmsize_t(* TIFFReadWriteProc)(thandle_t, void *, tmsize_t)
Definition: tiffio.h:278
int TIFFFlushData(TIFF *tif)
Definition: tif_flush.c:98
int TIFFVSetField(TIFF *, uint32, va_list)
Definition: tif_dir.c:849
int TIFFUnsetField(TIFF *, uint32)
Definition: tif_dir.c:805
int TIFFCIELabToRGBInit(TIFFCIELabToRGB *, const TIFFDisplay *, float *)
Definition: tif_color.c:123
uint16 * greencmap
Definition: tiffio.h:215
int TIFFVGetField(TIFF *tif, uint32 tag, va_list ap)
Definition: tif_dir.c:1233
tmsize_t TIFFRawStripSize(TIFF *tif, uint32 strip)
Definition: tif_strip.c:173
TIFF * tif
Definition: tiffio.h:203
int(* TIFFCloseProc)(thandle_t)
Definition: tiffio.h:280
int _TIFFmemcmp(const void *p1, const void *p2, tmsize_t c)
Definition: tif_unix.c:350
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
unsigned char field_oktochange
Definition: tiffio.h:543
int TIFFCreateDirectory(TIFF *)
Definition: tif_dir.c:1311
void TIFFCIELabToXYZ(TIFFCIELabToRGB *, uint32, int32, int32, float *, float *, float *)
Definition: tif_color.c:44
uint8 * Bitdepth16To8
Definition: tiffio.h:232
void TIFFSwabArrayOfDouble(double *dp, tmsize_t n)
Definition: tif_swab.c:182
uint32 TIFFFieldTag(const TIFFField *)
Definition: tif_dirinfo.c:582
uint32 ** PALmap
Definition: tiffio.h:227
void(* TIFFUnmapFileProc)(thandle_t, void *base, toff_t size)
Definition: tiffio.h:283
int TIFFReadBufferSetup(TIFF *tif, void *bp, tmsize_t size)
Definition: tif_read.c:1389
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
void void void TIFFWarning(const char *, const char *,...) __attribute__((__format__(__printf__
#define TIFF_SSIZE_T
Definition: tif_config.h:108
uint16 scheme
Definition: tiffio.h:257
const char * TIFFFieldName(const TIFFField *)
Definition: tif_dirinfo.c:588
void TIFFPrintDirectory(TIFF *, FILE *, long)
Definition: tif_print.c:235
void TIFFSwabArrayOfShort(uint16 *wp, tmsize_t n)
int TIFFSetFileno(TIFF *, int)
Definition: tif_open.c:525
int TIFFFieldReadCount(const TIFFField *)
Definition: tif_dirinfo.c:606
unsigned int uint32
Definition: types.h:32
TIFFErrorHandler TIFFSetWarningHandler(TIFFErrorHandler)
Definition: tif_warning.c:33
void TIFFUnRegisterCODEC(TIFFCodec *)
Definition: tif_compress.c:224
uint32 TIFFCurrentStrip(TIFF *)
Definition: tif_open.c:604
int(* TIFFVSetMethod)(TIFF *, uint32, va_list)
Definition: tiffio.h:333
int TIFFCreateCustomDirectory(TIFF *, const TIFFFieldArray *)
Definition: tif_dir.c:1324
int TIFFCheckTile(TIFF *tif, uint32 x, uint32 y, uint32 z, uint16 s)
Definition: tif_tile.c:74
TIFF * TIFFClientOpen(const char *, const char *, thandle_t, TIFFReadWriteProc, TIFFReadWriteProc, TIFFSeekProc, TIFFCloseProc, TIFFSizeProc, TIFFMapFileProc, TIFFUnmapFileProc)
Definition: tif_open.c:72
void TIFFSwabArrayOfLong8(uint64 *lp, tmsize_t n)
void TIFFSwabArrayOfTriples(uint8 *tp, tmsize_t n)
uint64 toff_t
Definition: tiffio.h:66
void TIFFSetClientInfo(TIFF *, void *, const char *)
Definition: tif_extension.c:78
void TIFFSwabLong8(uint64 *)
Definition: tif_swab.c:57
void TIFFSwabLong(uint32 *)
Definition: tif_swab.c:45
TIFFRGBValue * clamptab
Definition: tiffio.h:160
float rstep
Definition: tiffio.h:171
int TIFFIsTiled(TIFF *)
Definition: tif_open.c:577
GLdouble n
Definition: glext.h:7729
int TIFFReadCustomDirectory(TIFF *tif, toff_t diroff, const TIFFFieldArray *infoarray)
Definition: tif_dirread.c:4363
Definition: ecma_167.h:138
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
TIFFExtendProc TIFFSetTagExtender(TIFFExtendProc)
Definition: tif_dir.c:1296
tmsize_t TIFFWriteEncodedStrip(TIFF *tif, uint32 strip, void *data, tmsize_t cc)
Definition: tif_write.c:187
double LogL16toY(int)
void(* TIFFErrorHandler)(const char *, const char *, va_list)
Definition: tiffio.h:276
int TIFFReadRGBAImage(TIFF *, uint32, uint32, uint32 *, int)
Definition: tif_getimage.c:545
const char * TIFFFileName(TIFF *)
Definition: tif_open.c:496
int(* TIFFInitMethod)(TIFF *, int)
Definition: tiffio.h:254
tstrile_t tstrip_t
Definition: tiffio.h:73
int TIFFWriteCheck(TIFF *, int, const char *)
Definition: tif_write.c:568
unsigned char TIFFRGBValue
Definition: tiffio.h:141
TIFFReadWriteProc TIFFGetReadProc(TIFF *)
Definition: tif_open.c:658
int TIFFCheckpointDirectory(TIFF *)
Definition: tif_dirwrite.c:192
float d_YCR
Definition: tiffio.h:145
TIFFSizeProc TIFFGetSizeProc(TIFF *)
Definition: tif_open.c:694
void TIFFDefaultTileSize(TIFF *, uint32 *, uint32 *)
Definition: tif_tile.c:294
int TIFFFieldPassCount(const TIFFField *)
Definition: tif_dirinfo.c:600
void TIFFSetWriteOffset(TIFF *tif, toff_t off)
Definition: tif_write.c:823
void(* tileContigRoutine)(TIFFRGBAImage *, uint32 *, uint32, uint32, uint32, uint32, int32, int32, unsigned char *)
Definition: tiffio.h:194
int TIFFGetField(TIFF *tif, uint32 tag,...)
Definition: tif_dir.c:1215
TIFFMapFileProc TIFFGetMapFileProc(TIFF *)
Definition: tif_open.c:703
uint64 TIFFScanlineSize64(TIFF *tif)
Definition: tif_strip.c:273
TIFFReadWriteProc TIFFGetWriteProc(TIFF *)
Definition: tif_open.c:667
float d_YCG
Definition: tiffio.h:146
Definition: tiffiop.h:102
tmsize_t TIFFVStripSize(TIFF *tif, uint32 nrows)
Definition: tif_strip.c:129
int TIFFRGBAImageBegin(TIFFRGBAImage *, TIFF *, int, char [1024])
Definition: tif_getimage.c:265
uint64 TIFFVTileSize64(TIFF *tif, uint32 nrows)
Definition: tif_tile.c:200
void TIFFSwabArrayOfFloat(float *fp, tmsize_t n)
tmsize_t TIFFReadEncodedTile(TIFF *tif, uint32 tile, void *buf, tmsize_t size)
Definition: tif_read.c:981
void _TIFFfree(void *p)
Definition: tif_unix.c:326
char * field_name
Definition: tiffio.h:545
int TIFFGetMode(TIFF *)
Definition: tif_open.c:556
TIFFDisplay display
Definition: tiffio.h:173
TIFF * TIFFFdOpen(int, const char *, const char *)
Definition: tif_unix.c:203
TIFFCodec * TIFFGetConfiguredCODECs(void)
Definition: tif_compress.c:252
int TIFFUnlinkDirectory(TIFF *, uint16)
Definition: tif_dir.c:1667
TIFFPrintMethod printdir
Definition: tiffio.h:340
void TIFFClose(TIFF *tif)
Definition: tif_close.c:122
GLuint base
Definition: 3dtext.c:35
TIFFRGBValue * Map
Definition: tiffio.h:225
int TIFFReadRGBATile(TIFF *, uint32, uint32, uint32 *)
uint32 TIFFNumberOfStrips(TIFF *)
Definition: tif_strip.c:60
TIFF_SSIZE_T tmsize_t
Definition: tiffio.h:65
toff_t(* TIFFSeekProc)(thandle_t, toff_t, int)
Definition: tiffio.h:279
toff_t(* TIFFSizeProc)(thandle_t)
Definition: tiffio.h:281
uint32 ** BWmap
Definition: tiffio.h:226
tmsize_t TIFFReadEncodedStrip(TIFF *tif, uint32 strip, void *buf, tmsize_t size)
Definition: tif_read.c:512
thandle_t TIFFClientdata(TIFF *)
Definition: tif_open.c:536
void TIFFSwabArrayOfLong(uint32 *lp, tmsize_t n)
union _TIFFRGBAImage::@3327 put
int TIFFFileno(TIFF *)
Definition: tif_open.c:516
GLdouble GLdouble z
Definition: glext.h:5874
int TIFFWriteDirectory(TIFF *)
Definition: tif_dirwrite.c:180
float d_gammaG
Definition: tiffio.h:155
uint16 req_orientation
Definition: tiffio.h:212
int TIFFSetDirectory(TIFF *, uint16)
Definition: tif_dir.c:1599
int uv_decode(double *, double *, int)
uint16 * redcmap
Definition: tiffio.h:214
#define CIELABTORGB_TABLE_RANGE
Definition: tiffio.h:170
char * va_list
Definition: acmsvcex.h:78
uint64 TIFFCurrentDirOffset(TIFF *)
Definition: tif_dir.c:1648
void TIFFSwabFloat(float *)
Definition: tif_swab.c:139
tmsize_t TIFFRasterScanlineSize(TIFF *tif)
Definition: tif_strip.c:366
int(* TIFFVGetMethod)(TIFF *, uint32, va_list)
Definition: tiffio.h:334
void * _TIFFmalloc(tmsize_t s)
Definition: tif_unix.c:309
TIFFCodec * TIFFRegisterCODEC(uint16, const char *, TIFFInitMethod)
Definition: tif_compress.c:201
short field_writecount
Definition: tiffio.h:540
tmsize_t TIFFWriteEncodedTile(TIFF *tif, uint32 tile, void *data, tmsize_t cc)
Definition: tif_write.c:380
int TIFFReadEXIFDirectory(TIFF *tif, toff_t diroff)
Definition: tif_dirread.c:4470
const TIFFField * TIFFFieldWithName(TIFF *, const char *)
Definition: tif_dirinfo.c:570
_In_ uint64_t _In_ uint64_t _In_ uint64_t _In_opt_ traverse_ptr * tp
Definition: btrfs.c:2883
void void TIFFErrorExt(thandle_t, const char *, const char *,...) __attribute__((__format__(__printf__
tmsize_t TIFFScanlineSize(TIFF *tif)
Definition: tif_strip.c:330
TIFFDataType TIFFFieldDataType(const TIFFField *)
Definition: tif_dirinfo.c:594
TIFFErrorHandlerExt TIFFSetErrorHandlerExt(TIFFErrorHandlerExt)
Definition: tif_error.c:41
float d_Y0B
Definition: tiffio.h:153
void * _TIFFcalloc(tmsize_t nmemb, tmsize_t siz)
Definition: tif_unix.c:317
int * Cr_r_tab
Definition: tiffio.h:161
uint32 d_Vrwg
Definition: tiffio.h:149
tstrile_t ttile_t
Definition: tiffio.h:74
TIFF * TIFFOpenW(const wchar_t *name, const char *mode)
Definition: tif_win32.c:299
int TIFFSetField(TIFF *, uint32,...)
Definition: tif_dir.c:790
uint32 TIFFDefaultStripSize(TIFF *tif, uint32 request)
Definition: tif_strip.c:233
int * Cb_b_tab
Definition: tiffio.h:162
void TIFFCleanup(TIFF *tif)
Definition: tif_close.c:46
int32 * Cb_g_tab
Definition: tiffio.h:164
GLsizeiptr size
Definition: glext.h:5919
tileContigRoutine contig
Definition: tiffio.h:222
int TIFFGetFieldDefaulted(TIFF *tif, uint32 tag,...)
Definition: tif_aux.c:309
#define d
Definition: ke_i.h:81
float d_Y0G
Definition: tiffio.h:152
uint64 TIFFVStripSize64(TIFF *tif, uint32 nrows)
Definition: tif_strip.c:77
int TIFFReadRGBATileExt(TIFF *, uint32, uint32, uint32 *, int stop_on_error)
uint32 d_Vrwb
Definition: tiffio.h:150
double LogL10toY(int)
uint64 TIFFRasterScanlineSize64(TIFF *tif)
Definition: tif_strip.c:351
tmsize_t TIFFReadTile(TIFF *tif, void *buf, uint32 x, uint32 y, uint32 z, uint16 s)
Definition: tif_read.c:968
const GLubyte * c
Definition: glext.h:8905
uint16 bitspersample
Definition: tiffio.h:209
uint32 tstrile_t
Definition: tiffio.h:72
int TIFFSetupStrips(TIFF *)
Definition: tif_write.c:526
unsigned char uint8
Definition: types.h:28
void TIFFXYZToRGB(TIFFCIELabToRGB *, float, float, float, uint32 *, uint32 *, uint32 *)
Definition: tif_color.c:76
int LogL10fromY(double, int)
float d_gammaR
Definition: tiffio.h:154
TIFFUnmapFileProc TIFFGetUnmapFileProc(TIFF *)
Definition: tif_open.c:712
tmsize_t TIFFStripSize(TIFF *tif)
Definition: tif_strip.c:211
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
TIFF * TIFFOpen(const char *, const char *)
Definition: tif_unix.c:223
tmsize_t TIFFVTileSize(TIFF *tif, uint32 nrows)
Definition: tif_tile.c:248
int32 * Y_tab
Definition: tiffio.h:165
void void void void TIFFErrorHandler TIFFSetErrorHandler(TIFFErrorHandler)
Definition: tif_error.c:33
uint32 LogLuv32fromXYZ(float *, int)
TIFFCloseProc TIFFGetCloseProc(TIFF *)
Definition: tif_open.c:685
void(* TIFFExtendProc)(TIFF *)
Definition: tiffio.h:284
void(* TIFFErrorHandlerExt)(thandle_t, const char *, const char *, va_list)
Definition: tiffio.h:277
TIFFTagMethods * TIFFAccessTagMethods(TIFF *)
Definition: tif_extension.c:58
uint32 height
Definition: tiffio.h:208
int TIFFWriteCustomDirectory(TIFF *, uint64 *)
Definition: tif_dirwrite.c:204
void(* any)(TIFFRGBAImage *)
Definition: tiffio.h:221
uint16 samplesperpixel
Definition: tiffio.h:210
TIFFInitMethod init
Definition: tiffio.h:258
#define SGILOGENCODE_NODITHER
Definition: tiff.h:604
int(* get)(TIFFRGBAImage *, uint32 *, uint32, uint32)
Definition: tiffio.h:218
GLdouble s
Definition: gl.h:2039
int row_offset
Definition: tiffio.h:234
uint32 width
Definition: tiffio.h:207
int TIFFWriteBufferSetup(TIFF *tif, void *bp, tmsize_t size)
Definition: tif_write.c:639
int TIFFReadDirectory(TIFF *tif)
Definition: tif_dirread.c:3542
uint16 TIFFCurrentDirectory(TIFF *)
Definition: tif_open.c:595
int TIFFGetTagListCount(TIFF *)
Definition: tif_extension.c:34
uint64 TIFFTileRowSize64(TIFF *tif)
Definition: tif_tile.c:143
const char * TIFFGetVersion(void)
Definition: tif_version.c:30
tmsize_t tsize_t
Definition: tiffio.h:75
void _TIFFmemcpy(void *d, const void *s, tmsize_t c)
Definition: tif_unix.c:344
const char * TIFFSetFileName(TIFF *, const char *)
Definition: tif_open.c:505
void LogLuv32toXYZ(uint32, float *)
tmsize_t TIFFWriteTile(TIFF *tif, void *buf, uint32 x, uint32 y, uint32 z, uint16 s)
Definition: tif_write.c:353
unsigned short field_bit
Definition: tiffio.h:542
void(* TIFFPrintMethod)(TIFF *, FILE *, long)
Definition: tiffio.h:335
int TIFFIsUpSampled(TIFF *)
Definition: tif_open.c:631
void XYZtoRGB24(float *, uint8 *)
uint32_t cc
Definition: isohybrid.c:75
int uv_encode(double, double, int)
int TIFFYCbCrToRGBInit(TIFFYCbCrToRGB *, float *, float *)
Definition: tif_color.c:234
int TIFFReadScanline(TIFF *tif, void *buf, uint32 row, uint16 sample)
Definition: tif_read.c:445
void void void void TIFFWarningExt(thandle_t, const char *, const char *,...) __attribute__((__format__(__printf__
int isContig
Definition: tiffio.h:205
uint32 LogLuv24fromXYZ(float *, int)
uint32 TIFFComputeStrip(TIFF *, uint32, uint16)
Definition: tif_strip.c:37
int LogL16fromY(double, int)
uint32 d_Vrwr
Definition: tiffio.h:148
const GLdouble * v
Definition: gl.h:2040
TIFFVGetMethod vgetfield
Definition: tiffio.h:339
void LogLuv24toXYZ(uint32, float *)
int TIFFRGBAImageGet(TIFFRGBAImage *, uint32 *, uint32, uint32)
Definition: tif_getimage.c:500
uint16 TIFFNumberOfDirectories(TIFF *)
Definition: tif_dir.c:1568
int stoponerr
Definition: tiffio.h:204
int TIFFMergeFieldInfo(TIFF *, const TIFFFieldInfo[], uint32)
Definition: tif_dirinfo.c:888
uint64 TIFFRawStripSize64(TIFF *tif, uint32 strip)
Definition: tif_strip.c:148
float d_YCB
Definition: tiffio.h:147
unsigned short uint16
Definition: types.h:30
#define long
Definition: qsort.c:33
tmsize_t TIFFWriteRawStrip(TIFF *tif, uint32 strip, void *data, tmsize_t cc)
Definition: tif_write.c:305
tileSeparateRoutine separate
Definition: tiffio.h:223
void TIFFReverseBits(uint8 *cp, tmsize_t n)
Definition: tif_swab.c:284
void TIFFYCbCrtoRGB(TIFFYCbCrToRGB *, uint32, int32, int32, uint32 *, uint32 *, uint32 *)
Definition: tif_color.c:181
TIFFErrorHandlerExt TIFFSetWarningHandlerExt(TIFFErrorHandlerExt)
Definition: tif_warning.c:41
uint16 tdir_t
Definition: tiffio.h:70
int TIFFDataWidth(TIFFDataType)
Definition: tif_dirinfo.c:438
float d_gammaB
Definition: tiffio.h:156
int TIFFSetMode(TIFF *, int)
Definition: tif_open.c:565
int TIFFReadRGBAStripExt(TIFF *, uint32, uint32 *, int stop_on_error)
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
tmsize_t TIFFReadRawStrip(TIFF *tif, uint32 strip, void *buf, tmsize_t size)
Definition: tif_read.c:714
float d_Y0R
Definition: tiffio.h:151
Definition: tftpd.h:85
int32 * Cr_g_tab
Definition: tiffio.h:163
TIFFCIELabToRGB * cielab
Definition: tiffio.h:229
thandle_t TIFFSetClientdata(TIFF *, thandle_t)
Definition: tif_open.c:545
int TIFFIsCODECConfigured(uint16)
Definition: tif_codec.c:150
uint32 TIFFCurrentTile(TIFF *tif)
Definition: tif_open.c:613
int TIFFWriteScanline(TIFF *tif, void *buf, uint32 row, uint16 sample)
Definition: tif_write.c:48
uint16 orientation
Definition: tiffio.h:211
POINT cp
Definition: magnifier.c:59
#define DECLARE_HANDLE(name)
Definition: mimeole.idl:23
long int32
Definition: platform.h:12
void int int ULONGLONG int va_list * ap
Definition: winesup.h:32
TIFFVSetMethod vsetfield
Definition: tiffio.h:338
void(* tileSeparateRoutine)(TIFFRGBAImage *, uint32 *, uint32, uint32, uint32, uint32, int32, int32, unsigned char *, unsigned char *, unsigned char *, unsigned char *)
Definition: tiffio.h:197
void TIFFFreeDirectory(TIFF *)
Definition: tif_dir.c:1251
const TIFFCodec * TIFFFindCODEC(uint16)
Definition: tif_compress.c:186
uint32 TIFFGetTagListEntry(TIFF *, int tag_index)
Definition: tif_extension.c:42
TIFFYCbCrToRGB * ycbcr
Definition: tiffio.h:228
char * name
Definition: tiffio.h:256
int TIFFReadRGBAImageOriented(TIFF *, uint32, uint32, uint32 *, int, int)
Definition: tif_getimage.c:519
#define const
Definition: zconf.h:230
int TIFFRGBAImageOK(TIFF *, char [1024])
Definition: tif_getimage.c:74
int TIFFFieldWriteCount(const TIFFField *)
Definition: tif_dirinfo.c:612
uint32 TIFFCurrentRow(TIFF *)
Definition: tif_open.c:586
void * _TIFFrealloc(void *p, tmsize_t s)
Definition: tif_unix.c:332
int TIFFVGetFieldDefaulted(TIFF *tif, uint32 tag, va_list ap)
Definition: tif_aux.c:173
int TIFFIsMSB2LSB(TIFF *)
Definition: tif_open.c:640
tmsize_t TIFFTileRowSize(TIFF *tif)
Definition: tif_tile.c:181
TIFFSeekProc TIFFGetSeekProc(TIFF *)
Definition: tif_open.c:676
uint64 TIFFStripSize64(TIFF *tif)
Definition: tif_strip.c:202
tmsize_t TIFFTileSize(TIFF *tif)
Definition: tif_tile.c:272
tmsize_t TIFFWriteRawTile(TIFF *tif, uint32 tile, void *data, tmsize_t cc)
Definition: tif_write.c:506
tmsize_t TIFFReadRawTile(TIFF *tif, uint32 tile, void *buf, tmsize_t size)
Definition: tif_read.c:1175
GLfloat GLfloat p
Definition: glext.h:8902
void TIFFRGBAImageEnd(TIFFRGBAImage *)
Definition: tif_getimage.c:214
const TIFFField * TIFFFindField(TIFF *, uint32, TIFFDataType)
Definition: tif_dirinfo.c:506
void TIFFError(const char *, const char *,...) __attribute__((__format__(__printf__
int(* TIFFMapFileProc)(thandle_t, void **base, toff_t *size)
Definition: tiffio.h:282
int col_offset
Definition: tiffio.h:235
uint16 photometric
Definition: tiffio.h:213
uint64 TIFFTileSize64(TIFF *tif)
Definition: tif_tile.c:267
void TIFFSwabDouble(double *)
Definition: tif_swab.c:168
#define ORIENTATION_BOTLEFT
Definition: tiff.h:227
int TIFFIsByteSwapped(TIFF *)
Definition: tif_open.c:622
int HFILE
Definition: windef.h:283
uint32 TIFFComputeTile(TIFF *tif, uint32 x, uint32 y, uint32 z, uint16 s)
Definition: tif_tile.c:37
short field_readcount
Definition: tiffio.h:539
void TIFFSwabShort(uint16 *)
Definition: tif_swab.c:34
const unsigned char * TIFFGetBitRevTable(int)
Definition: tif_swab.c:278
void * thandle_t
Definition: tiffio.h:109
uint16 * bluecmap
Definition: tiffio.h:216
TIFFDataType
Definition: tiff.h:123
int TIFFFlush(TIFF *tif)
Definition: tif_flush.c:32
struct png_info_def *typedef unsigned char **typedef struct png_info_def *typedef struct png_info_def *typedef struct png_info_def *typedef unsigned char ** row
Definition: typeof.h:78
unsigned char field_passcount
Definition: tiffio.h:544
const TIFFField * TIFFFieldWithTag(TIFF *, uint32)
Definition: tif_dirinfo.c:558
int TIFFReadRGBAStrip(TIFF *, uint32, uint32 *)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
off
Definition: i386-dis.c:3909