| Bsoft 1.9 Bernard's software package

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

tiffio.h
Go to the documentation of this file.
1 /* $Id: tiffio.h,v 1.56.2.4 2010-06-08 18:50:43 bfriesen 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 _TIFFIO_
28 #define _TIFFIO_
29
30 /*
31 * TIFF I/O Library Definitions.
32 */
33 #include "tiff.h"
34 #include "tiffvers.h"
35
36 /*
37 * TIFF is defined as an incomplete type to hide the
38 * library's internal data structures from clients.
39 */
40 typedef struct tiff TIFF;
41
42 /*
43 * The following typedefs define the intrinsic size of
44 * data types used in the *exported* interfaces. These
45 * definitions depend on the proper definition of types
46 * in tiff.h. Note also that the varargs interface used
47 * to pass tag types and values uses the types defined in
48 * tiff.h directly.
49 *
50 * NB: ttag_t is unsigned int and not unsigned short because
51 * ANSI C requires that the type before the ellipsis be a
52 * promoted type (i.e. one of int, unsigned int, pointer,
53 * or double) and because we defined pseudo-tags that are
54 * outside the range of legal Aldus-assigned tags.
55 * NB: tsize_t is int32 and not uint32 because some functions
56 * return -1.
57 * NB: toff_t is not off_t for many reasons; TIFFs max out at
58 * 32-bit file offsets being the most important, and to ensure
59 * that it is unsigned, rather than signed.
60 */
61 typedef uint32 ttag_t; /* directory tag */
62 typedef uint16 tdir_t; /* directory index */
63 typedef uint16 tsample_t; /* sample number */
64 typedef uint32 tstrile_t; /* strip or tile number */
65 typedef tstrile_t tstrip_t; /* strip number */
66 typedef tstrile_t ttile_t; /* tile number */
67 typedef int32 tsize_t; /* i/o size in bytes */
68 typedef void* tdata_t; /* image data ref */
69 typedef uint32 toff_t; /* file offset */
70
71 #if !defined(__WIN32__) && (defined(_WIN32) || defined(WIN32))
72 #define __WIN32__
73 #endif
74
75 /*
76 * On windows you should define USE_WIN32_FILEIO if you are using tif_win32.c
77 * or AVOID_WIN32_FILEIO if you are using something else (like tif_unix.c).
78 *
79 * By default tif_unix.c is assumed.
80 */
81
82 #if defined(_WINDOWS) || defined(__WIN32__) || defined(_Windows)
83 # if !defined(__CYGWIN) && !defined(AVOID_WIN32_FILEIO) && !defined(USE_WIN32_FILEIO)
84 # define AVOID_WIN32_FILEIO
85 # endif
86 #endif
87
88 #if defined(USE_WIN32_FILEIO)
89 # define VC_EXTRALEAN
90 # include <windows.h>
91 # ifdef __WIN32__
92 DECLARE_HANDLE(thandle_t); /* Win32 file handle */
93 # else
94 typedef HFILE thandle_t; /* client data handle */
95 # endif /* __WIN32__ */
96 #else
97 typedef void* thandle_t; /* client data handle */
98 #endif /* USE_WIN32_FILEIO */
99
100 /*
101 * Flags to pass to TIFFPrintDirectory to control
102 * printing of data structures that are potentially
103 * very large. Bit-or these flags to enable printing
104 * multiple items.
105 */
106 #define TIFFPRINT_NONE 0x0 /* no extra info */
107 #define TIFFPRINT_STRIPS 0x1 /* strips/tiles info */
108 #define TIFFPRINT_CURVES 0x2 /* color/gray response curves */
109 #define TIFFPRINT_COLORMAP 0x4 /* colormap */
110 #define TIFFPRINT_JPEGQTABLES 0x100 /* JPEG Q matrices */
111 #define TIFFPRINT_JPEGACTABLES 0x200 /* JPEG AC tables */
112 #define TIFFPRINT_JPEGDCTABLES 0x200 /* JPEG DC tables */
113
114 /*
115 * Colour conversion stuff
116 */
117
118 /* reference white */
119 #define D65_X0 (95.0470F)
120 #define D65_Y0 (100.0F)
121 #define D65_Z0 (108.8827F)
122
123 #define D50_X0 (96.4250F)
124 #define D50_Y0 (100.0F)
125 #define D50_Z0 (82.4680F)
126
127 /* Structure for holding information about a display device. */
128
129 typedef unsigned char TIFFRGBValue; /* 8-bit samples */
130
131 typedef struct {
132 float d_mat[3][3]; /* XYZ -> luminance matrix */
133 float d_YCR; /* Light o/p for reference white */
134 float d_YCG;
135 float d_YCB;
136 uint32 d_Vrwr; /* Pixel values for ref. white */
137 uint32 d_Vrwg;
138 uint32 d_Vrwb;
139 float d_Y0R; /* Residual light for black pixel */
140 float d_Y0G;
141 float d_Y0B;
142 float d_gammaR; /* Gamma values for the three guns */
143 float d_gammaG;
144 float d_gammaB;
145 } TIFFDisplay;
146
147 typedef struct { /* YCbCr->RGB support */
148 TIFFRGBValue* clamptab; /* range clamping table */
149 int* Cr_r_tab;
150 int* Cb_b_tab;
151 int32* Cr_g_tab;
152 int32* Cb_g_tab;
153 int32* Y_tab;
154 } TIFFYCbCrToRGB;
155
156 typedef struct { /* CIE Lab 1976->RGB support */
157 int range; /* Size of conversion table */
158 #define CIELABTORGB_TABLE_RANGE 1500
159 float rstep, gstep, bstep;
160 float X0, Y0, Z0; /* Reference white point */
161 TIFFDisplay display;
162 float Yr2r[CIELABTORGB_TABLE_RANGE + 1]; /* Conversion of Yr to r */
163 float Yg2g[CIELABTORGB_TABLE_RANGE + 1]; /* Conversion of Yg to g */
164 float Yb2b[CIELABTORGB_TABLE_RANGE + 1]; /* Conversion of Yb to b */
165 } TIFFCIELabToRGB;
166
167 /*
168 * RGBA-style image support.
169 */
170 typedef struct _TIFFRGBAImage TIFFRGBAImage;
171 /*
172 * The image reading and conversion routines invoke
173 * ``put routines'' to copy/image/whatever tiles of
174 * raw image data. A default set of routines are
175 * provided to convert/copy raw image data to 8-bit
176 * packed ABGR format rasters. Applications can supply
177 * alternate routines that unpack the data into a
178 * different format or, for example, unpack the data
179 * and draw the unpacked raster on the display.
180 */
181 typedef void (*tileContigRoutine)
182 (TIFFRGBAImage*, uint32*, uint32, uint32, uint32, uint32, int32, int32,
183 unsigned char*);
184 typedef void (*tileSeparateRoutine)
185 (TIFFRGBAImage*, uint32*, uint32, uint32, uint32, uint32, int32, int32,
186 unsigned char*, unsigned char*, unsigned char*, unsigned char*);
187 /*
188 * RGBA-reader state.
189 */
190 struct _TIFFRGBAImage {
191 TIFF* tif; /* image handle */
192 int stoponerr; /* stop on read error */
193 int isContig; /* data is packed/separate */
194 int alpha; /* type of alpha data present */
195 uint32 width; /* image width */
196 uint32 height; /* image height */
197 uint16 bitspersample; /* image bits/sample */
198 uint16 samplesperpixel; /* image samples/pixel */
199 uint16 orientation; /* image orientation */
200 uint16 req_orientation; /* requested orientation */
201 uint16 photometric; /* image photometric interp */
202 uint16* redcmap; /* colormap pallete */
203 uint16* greencmap;
204 uint16* bluecmap;
205 /* get image data routine */
206 int (*get)(TIFFRGBAImage*, uint32*, uint32, uint32);
207 /* put decoded strip/tile */
208 union {
209 void (*any)(TIFFRGBAImage*);
210 tileContigRoutine contig;
211 tileSeparateRoutine separate;
212 } put;
213 TIFFRGBValue* Map; /* sample mapping array */
214 uint32** BWmap; /* black&white map */
215 uint32** PALmap; /* palette image map */
216 TIFFYCbCrToRGB* ycbcr; /* YCbCr conversion state */
217 TIFFCIELabToRGB* cielab; /* CIE L*a*b conversion state */
218
219 int row_offset;
220 int col_offset;
221 };
222
223 /*
224 * Macros for extracting components from the
225 * packed ABGR form returned by TIFFReadRGBAImage.
226 */
227 #define TIFFGetR(abgr) ((abgr) & 0xff)
228 #define TIFFGetG(abgr) (((abgr) >> 8) & 0xff)
229 #define TIFFGetB(abgr) (((abgr) >> 16) & 0xff)
230 #define TIFFGetA(abgr) (((abgr) >> 24) & 0xff)
231
232 /*
233 * A CODEC is a software package that implements decoding,
234 * encoding, or decoding+encoding of a compression algorithm.
235 * The library provides a collection of builtin codecs.
236 * More codecs may be registered through calls to the library
237 * and/or the builtin implementations may be overridden.
238 */
239 typedef int (*TIFFInitMethod)(TIFF*, int);
240 typedef struct {
241 char* name;
242 uint16 scheme;
243 TIFFInitMethod init;
244 } TIFFCodec;
245
246 #include <stdio.h>
247 #include <stdarg.h>
248
249 /* share internal LogLuv conversion routines? */
250 #ifndef LOGLUV_PUBLIC
251 #define LOGLUV_PUBLIC 1
252 #endif
253
254 #if !defined(__GNUC__) && !defined(__attribute__)
255 # define __attribute__(x) /*nothing*/
256 #endif
257
258 #if defined(c_plusplus) || defined(__cplusplus)
259 extern "C" {
260 #endif
261 typedef void (*TIFFErrorHandler)(const char*, const char*, va_list);
262 typedef void (*TIFFErrorHandlerExt)(thandle_t, const char*, const char*, va_list);
263 typedef tsize_t (*TIFFReadWriteProc)(thandle_t, tdata_t, tsize_t);
264 typedef toff_t (*TIFFSeekProc)(thandle_t, toff_t, int);
265 typedef int (*TIFFCloseProc)(thandle_t);
266 typedef toff_t (*TIFFSizeProc)(thandle_t);
267 typedef int (*TIFFMapFileProc)(thandle_t, tdata_t*, toff_t*);
268 typedef void (*TIFFUnmapFileProc)(thandle_t, tdata_t, toff_t);
269 typedef void (*TIFFExtendProc)(TIFF*);
270
271 extern const char* TIFFGetVersion(void);
272
273 extern const TIFFCodec* TIFFFindCODEC(uint16);
274 extern TIFFCodec* TIFFRegisterCODEC(uint16, const char*, TIFFInitMethod);
275 extern void TIFFUnRegisterCODEC(TIFFCodec*);
276 extern int TIFFIsCODECConfigured(uint16);
277 extern TIFFCodec* TIFFGetConfiguredCODECs(void);
278
279 /*
280 * Auxiliary functions.
281 */
282
283 extern tdata_t _TIFFmalloc(tsize_t);
284 extern tdata_t _TIFFrealloc(tdata_t, tsize_t);
285 extern void _TIFFmemset(tdata_t, int, tsize_t);
286 extern void _TIFFmemcpy(tdata_t, const tdata_t, tsize_t);
287 extern int _TIFFmemcmp(const tdata_t, const tdata_t, tsize_t);
288 extern void _TIFFfree(tdata_t);
289
290 /*
291 ** Stuff, related to tag handling and creating custom tags.
292 */
293 extern int TIFFGetTagListCount( TIFF * );
294 extern ttag_t TIFFGetTagListEntry( TIFF *, int tag_index );
295
296 #define TIFF_ANY TIFF_NOTYPE /* for field descriptor searching */
297 #define TIFF_VARIABLE -1 /* marker for variable length tags */
298 #define TIFF_SPP -2 /* marker for SamplesPerPixel tags */
299 #define TIFF_VARIABLE2 -3 /* marker for uint32 var-length tags */
300
301 #define FIELD_CUSTOM 65
302
303 typedef struct {
304 ttag_t field_tag; /* field's tag */
305 short field_readcount; /* read count/TIFF_VARIABLE/TIFF_SPP */
306 short field_writecount; /* write count/TIFF_VARIABLE */
307 TIFFDataType field_type; /* type of associated data */
308 unsigned short field_bit; /* bit in fieldsset bit vector */
309 unsigned char field_oktochange; /* if true, can change while writing */
310 unsigned char field_passcount; /* if true, pass dir count on set */
311 char *field_name; /* ASCII name */
312 } TIFFFieldInfo;
313
314 typedef struct _TIFFTagValue {
315 const TIFFFieldInfo *info;
316 int count;
317 void *value;
318 } TIFFTagValue;
319
320 extern void TIFFMergeFieldInfo(TIFF*, const TIFFFieldInfo[], int);
321 extern const TIFFFieldInfo* TIFFFindFieldInfo(TIFF*, ttag_t, TIFFDataType);
322 extern const TIFFFieldInfo* TIFFFindFieldInfoByName(TIFF* , const char *,
323 TIFFDataType);
324 extern const TIFFFieldInfo* TIFFFieldWithTag(TIFF*, ttag_t);
325 extern const TIFFFieldInfo* TIFFFieldWithName(TIFF*, const char *);
326
327 typedef int (*TIFFVSetMethod)(TIFF*, ttag_t, va_list);
328 typedef int (*TIFFVGetMethod)(TIFF*, ttag_t, va_list);
329 typedef void (*TIFFPrintMethod)(TIFF*, FILE*, long);
330
331 typedef struct {
332 TIFFVSetMethod vsetfield; /* tag set routine */
333 TIFFVGetMethod vgetfield; /* tag get routine */
334 TIFFPrintMethod printdir; /* directory print routine */
335 } TIFFTagMethods;
336
337 extern TIFFTagMethods *TIFFAccessTagMethods( TIFF * );
338 extern void *TIFFGetClientInfo( TIFF *, const char * );
339 extern void TIFFSetClientInfo( TIFF *, void *, const char * );
340
341 extern void TIFFCleanup(TIFF*);
342 extern void TIFFClose(TIFF*);
343 extern int TIFFFlush(TIFF*);
344 extern int TIFFFlushData(TIFF*);
345 extern int TIFFGetField(TIFF*, ttag_t, ...);
346 extern int TIFFVGetField(TIFF*, ttag_t, va_list);
347 extern int TIFFGetFieldDefaulted(TIFF*, ttag_t, ...);
348 extern int TIFFVGetFieldDefaulted(TIFF*, ttag_t, va_list);
349 extern int TIFFReadDirectory(TIFF*);
350 extern int TIFFReadCustomDirectory(TIFF*, toff_t, const TIFFFieldInfo[],
351 size_t);
352 extern int TIFFReadEXIFDirectory(TIFF*, toff_t);
353 extern tsize_t TIFFScanlineSize(TIFF*);
354 extern tsize_t TIFFOldScanlineSize(TIFF*);
355 extern tsize_t TIFFNewScanlineSize(TIFF*);
356 extern tsize_t TIFFRasterScanlineSize(TIFF*);
357 extern tsize_t TIFFStripSize(TIFF*);
358 extern tsize_t TIFFRawStripSize(TIFF*, tstrip_t);
359 extern tsize_t TIFFVStripSize(TIFF*, uint32);
360 extern tsize_t TIFFTileRowSize(TIFF*);
361 extern tsize_t TIFFTileSize(TIFF*);
362 extern tsize_t TIFFVTileSize(TIFF*, uint32);
363 extern uint32 TIFFDefaultStripSize(TIFF*, uint32);
364 extern void TIFFDefaultTileSize(TIFF*, uint32*, uint32*);
365 extern int TIFFFileno(TIFF*);
366 extern int TIFFSetFileno(TIFF*, int);
367 extern thandle_t TIFFClientdata(TIFF*);
368 extern thandle_t TIFFSetClientdata(TIFF*, thandle_t);
369 extern int TIFFGetMode(TIFF*);
370 extern int TIFFSetMode(TIFF*, int);
371 extern int TIFFIsTiled(TIFF*);
372 extern int TIFFIsByteSwapped(TIFF*);
373 extern int TIFFIsUpSampled(TIFF*);
374 extern int TIFFIsMSB2LSB(TIFF*);
375 extern int TIFFIsBigEndian(TIFF*);
376 extern TIFFReadWriteProc TIFFGetReadProc(TIFF*);
377 extern TIFFReadWriteProc TIFFGetWriteProc(TIFF*);
378 extern TIFFSeekProc TIFFGetSeekProc(TIFF*);
379 extern TIFFCloseProc TIFFGetCloseProc(TIFF*);
380 extern TIFFSizeProc TIFFGetSizeProc(TIFF*);
381 extern TIFFMapFileProc TIFFGetMapFileProc(TIFF*);
382 extern TIFFUnmapFileProc TIFFGetUnmapFileProc(TIFF*);
383 extern uint32 TIFFCurrentRow(TIFF*);
384 extern tdir_t TIFFCurrentDirectory(TIFF*);
385 extern tdir_t TIFFNumberOfDirectories(TIFF*);
386 extern uint32 TIFFCurrentDirOffset(TIFF*);
387 extern tstrip_t TIFFCurrentStrip(TIFF*);
388 extern ttile_t TIFFCurrentTile(TIFF*);
389 extern int TIFFReadBufferSetup(TIFF*, tdata_t, tsize_t);
390 extern int TIFFWriteBufferSetup(TIFF*, tdata_t, tsize_t);
391 extern int TIFFSetupStrips(TIFF *);
392 extern int TIFFWriteCheck(TIFF*, int, const char *);
393 extern void TIFFFreeDirectory(TIFF*);
394 extern int TIFFCreateDirectory(TIFF*);
395 extern int TIFFLastDirectory(TIFF*);
396 extern int TIFFSetDirectory(TIFF*, tdir_t);
397 extern int TIFFSetSubDirectory(TIFF*, uint32);
398 extern int TIFFUnlinkDirectory(TIFF*, tdir_t);
399 extern int TIFFSetField(TIFF*, ttag_t, ...);
400 extern int TIFFVSetField(TIFF*, ttag_t, va_list);
401 extern int TIFFWriteDirectory(TIFF *);
402 extern int TIFFCheckpointDirectory(TIFF *);
403 extern int TIFFRewriteDirectory(TIFF *);
404 extern int TIFFReassignTagToIgnore(enum TIFFIgnoreSense, int);
405
406 #if defined(c_plusplus) || defined(__cplusplus)
407 extern void TIFFPrintDirectory(TIFF*, FILE*, long = 0);
408 extern int TIFFReadScanline(TIFF*, tdata_t, uint32, tsample_t = 0);
409 extern int TIFFWriteScanline(TIFF*, tdata_t, uint32, tsample_t = 0);
410 extern int TIFFReadRGBAImage(TIFF*, uint32, uint32, uint32*, int = 0);
411 extern int TIFFReadRGBAImageOriented(TIFF*, uint32, uint32, uint32*,
412 int = ORIENTATION_BOTLEFT, int = 0);
413 #else
414 extern void TIFFPrintDirectory(TIFF*, FILE*, long);
415 extern int TIFFReadScanline(TIFF*, tdata_t, uint32, tsample_t);
416 extern int TIFFWriteScanline(TIFF*, tdata_t, uint32, tsample_t);
417 extern int TIFFReadRGBAImage(TIFF*, uint32, uint32, uint32*, int);
418 extern int TIFFReadRGBAImageOriented(TIFF*, uint32, uint32, uint32*, int, int);
419 #endif
420
421 extern int TIFFReadRGBAStrip(TIFF*, tstrip_t, uint32 * );
422 extern int TIFFReadRGBATile(TIFF*, uint32, uint32, uint32 * );
423 extern int TIFFRGBAImageOK(TIFF*, char [1024]);
424 extern int TIFFRGBAImageBegin(TIFFRGBAImage*, TIFF*, int, char [1024]);
425 extern int TIFFRGBAImageGet(TIFFRGBAImage*, uint32*, uint32, uint32);
426 extern void TIFFRGBAImageEnd(TIFFRGBAImage*);
427 extern TIFF* TIFFOpen(const char*, const char*);
428 # ifdef __WIN32__
429 extern TIFF* TIFFOpenW(const wchar_t*, const char*);
430 # endif /* __WIN32__ */
431 extern TIFF* TIFFFdOpen(int, const char*, const char*);
432 extern TIFF* TIFFClientOpen(const char*, const char*,
433 thandle_t,
434 TIFFReadWriteProc, TIFFReadWriteProc,
435 TIFFSeekProc, TIFFCloseProc,
436 TIFFSizeProc,
437 TIFFMapFileProc, TIFFUnmapFileProc);
438 extern const char* TIFFFileName(TIFF*);
439 extern const char* TIFFSetFileName(TIFF*, const char *);
440 extern void TIFFError(const char*, const char*, ...) __attribute__((format (printf,2,3)));
441 extern void TIFFErrorExt(thandle_t, const char*, const char*, ...) __attribute__((format (printf,3,4)));
442 extern void TIFFWarning(const char*, const char*, ...) __attribute__((format (printf,2,3)));
443 extern void TIFFWarningExt(thandle_t, const char*, const char*, ...) __attribute__((format (printf,3,4)));
444 extern TIFFErrorHandler TIFFSetErrorHandler(TIFFErrorHandler);
445 extern TIFFErrorHandlerExt TIFFSetErrorHandlerExt(TIFFErrorHandlerExt);
446 extern TIFFErrorHandler TIFFSetWarningHandler(TIFFErrorHandler);
447 extern TIFFErrorHandlerExt TIFFSetWarningHandlerExt(TIFFErrorHandlerExt);
448 extern TIFFExtendProc TIFFSetTagExtender(TIFFExtendProc);
449 extern ttile_t TIFFComputeTile(TIFF*, uint32, uint32, uint32, tsample_t);
450 extern int TIFFCheckTile(TIFF*, uint32, uint32, uint32, tsample_t);
451 extern ttile_t TIFFNumberOfTiles(TIFF*);
452 extern tsize_t TIFFReadTile(TIFF*,
453 tdata_t, uint32, uint32, uint32, tsample_t);
454 extern tsize_t TIFFWriteTile(TIFF*,
455 tdata_t, uint32, uint32, uint32, tsample_t);
456 extern tstrip_t TIFFComputeStrip(TIFF*, uint32, tsample_t);
457 extern tstrip_t TIFFNumberOfStrips(TIFF*);
458 extern tsize_t TIFFReadEncodedStrip(TIFF*, tstrip_t, tdata_t, tsize_t);
459 extern tsize_t TIFFReadRawStrip(TIFF*, tstrip_t, tdata_t, tsize_t);
460 extern tsize_t TIFFReadEncodedTile(TIFF*, ttile_t, tdata_t, tsize_t);
461 extern tsize_t TIFFReadRawTile(TIFF*, ttile_t, tdata_t, tsize_t);
462 extern tsize_t TIFFWriteEncodedStrip(TIFF*, tstrip_t, tdata_t, tsize_t);
463 extern tsize_t TIFFWriteRawStrip(TIFF*, tstrip_t, tdata_t, tsize_t);
464 extern tsize_t TIFFWriteEncodedTile(TIFF*, ttile_t, tdata_t, tsize_t);
465 extern tsize_t TIFFWriteRawTile(TIFF*, ttile_t, tdata_t, tsize_t);
466 extern int TIFFDataWidth(TIFFDataType); /* table of tag datatype widths */
467 extern void TIFFSetWriteOffset(TIFF*, toff_t);
468 extern void TIFFSwabShort(uint16*);
469 extern void TIFFSwabLong(uint32*);
470 extern void TIFFSwabDouble(double*);
471 extern void TIFFSwabArrayOfShort(uint16*, unsigned long);
472 extern void TIFFSwabArrayOfTriples(uint8*, unsigned long);
473 extern void TIFFSwabArrayOfLong(uint32*, unsigned long);
474 extern void TIFFSwabArrayOfDouble(double*, unsigned long);
475 extern void TIFFReverseBits(unsigned char *, unsigned long);
476 extern const unsigned char* TIFFGetBitRevTable(int);
477
478 #ifdef LOGLUV_PUBLIC
479 #define U_NEU 0.210526316
480 #define V_NEU 0.473684211
481 #define UVSCALE 410.
482 extern double LogL16toY(int);
483 extern double LogL10toY(int);
484 extern void XYZtoRGB24(float*, uint8*);
485 extern int uv_decode(double*, double*, int);
486 extern void LogLuv24toXYZ(uint32, float*);
487 extern void LogLuv32toXYZ(uint32, float*);
488 #if defined(c_plusplus) || defined(__cplusplus)
489 extern int LogL16fromY(double, int = SGILOGENCODE_NODITHER);
490 extern int LogL10fromY(double, int = SGILOGENCODE_NODITHER);
491 extern int uv_encode(double, double, int = SGILOGENCODE_NODITHER);
492 extern uint32 LogLuv24fromXYZ(float*, int = SGILOGENCODE_NODITHER);
493 extern uint32 LogLuv32fromXYZ(float*, int = SGILOGENCODE_NODITHER);
494 #else
495 extern int LogL16fromY(double, int);
496 extern int LogL10fromY(double, int);
497 extern int uv_encode(double, double, int);
498 extern uint32 LogLuv24fromXYZ(float*, int);
499 extern uint32 LogLuv32fromXYZ(float*, int);
500 #endif
501 #endif /* LOGLUV_PUBLIC */
502
503 extern int TIFFCIELabToRGBInit(TIFFCIELabToRGB*, TIFFDisplay *, float*);
504 extern void TIFFCIELabToXYZ(TIFFCIELabToRGB *, uint32, int32, int32,
505 float *, float *, float *);
506 extern void TIFFXYZToRGB(TIFFCIELabToRGB *, float, float, float,
507 uint32 *, uint32 *, uint32 *);
508
509 extern int TIFFYCbCrToRGBInit(TIFFYCbCrToRGB*, float*, float*);
510 extern void TIFFYCbCrtoRGB(TIFFYCbCrToRGB *, uint32, int32, int32,
511 uint32 *, uint32 *, uint32 *);
512
513 #if defined(c_plusplus) || defined(__cplusplus)
514 }
515 #endif
516
517 #endif /* _TIFFIO_ */
518
519 /* vim: set ts=8 sts=8 sw=8 noet: */
520 /*
521 * Local Variables:
522 * mode: c
523 * c-basic-offset: 8
524 * fill-column: 78
525 * End:
526 */
TIFFIsBigEndian
int TIFFIsBigEndian(TIFF *)
Definition: tif_open.c:611
_TIFFmemcmp
int _TIFFmemcmp(const tdata_t, const tdata_t, tsize_t)
Definition: tif_acorn.c:491
tsize_t
int32 tsize_t
Definition: tiffio.h:67
TIFFCodec::scheme
uint16 scheme
Definition: tiffio.h:242
tsample_t
uint16 tsample_t
Definition: tiffio.h:63
TIFFReadTile
tsize_t TIFFReadTile(TIFF *, tdata_t, uint32, uint32, uint32, tsample_t)
Definition: tif_read.c:370
ttag_t
uint32 ttag_t
Definition: tiffio.h:61
TIFFSwabArrayOfTriples
void TIFFSwabArrayOfTriples(uint8 *, unsigned long)
Definition: tif_swab.c:75
TIFFLastDirectory
int TIFFLastDirectory(TIFF *)
Definition: tif_dir.c:1252
TIFFWriteRawTile
tsize_t TIFFWriteRawTile(TIFF *, ttile_t, tdata_t, tsize_t)
Definition: tif_write.c:423
TIFFGetClientInfo
void * TIFFGetClientInfo(TIFF *, const char *)
Definition: tif_extension.c:66
tdata_t
void * tdata_t
Definition: tiffio.h:68
TIFFRewriteDirectory
int TIFFRewriteDirectory(TIFF *)
Definition: tif_dirwrite.c:1246
TIFFGetTagListEntry
ttag_t TIFFGetTagListEntry(TIFF *, int tag_index)
Definition: tif_extension.c:44
_TIFFRGBAImage::PALmap
uint32 ** PALmap
Definition: tiffio.h:215
TIFFSetSubDirectory
int TIFFSetSubDirectory(TIFF *, uint32)
Definition: tif_dir.c:1227
TIFFCloseProc
int(* TIFFCloseProc)(thandle_t)
Definition: tiffio.h:265
TIFFNumberOfStrips
tstrip_t TIFFNumberOfStrips(TIFF *)
Definition: tif_strip.c:90
TIFFCheckTile
int TIFFCheckTile(TIFF *, uint32, uint32, uint32, tsample_t)
Definition: tif_tile.c:105
TIFFWriteTile
tsize_t TIFFWriteTile(TIFF *, tdata_t, uint32, uint32, uint32, tsample_t)
Definition: tif_write.c:308
TIFFVSetField
int TIFFVSetField(TIFF *, ttag_t, va_list)
Definition: tif_dir.c:667
TIFFYCbCrToRGB::Y_tab
int32 * Y_tab
Definition: tiffio.h:153
TIFFOldScanlineSize
tsize_t TIFFOldScanlineSize(TIFF *)
Definition: tif_strip.c:275
TIFFCreateDirectory
int TIFFCreateDirectory(TIFF *)
Definition: tif_dir.c:1040
TIFFCIELabToXYZ
void TIFFCIELabToXYZ(TIFFCIELabToRGB *, uint32, int32, int32, float *, float *, float *)
Definition: tif_color.c:46
TIFFReadRawTile
tsize_t TIFFReadRawTile(TIFF *, ttile_t, tdata_t, tsize_t)
Definition: tif_read.c:460
TIFFCodec
Definition: tiffio.h:240
TIFFTagValue
struct _TIFFTagValue TIFFTagValue
TIFFGetField
int TIFFGetField(TIFF *, ttag_t,...)
Definition: tif_dir.c:951
_TIFFrealloc
tdata_t _TIFFrealloc(tdata_t, tsize_t)
Definition: tif_acorn.c:473
tiff.h
TIFFReadCustomDirectory
int TIFFReadCustomDirectory(TIFF *, toff_t, const TIFFFieldInfo[], size_t)
Definition: tif_dirread.c:813
TIFFYCbCrToRGB::Cb_g_tab
int32 * Cb_g_tab
Definition: tiffio.h:152
TIFFCodec::init
TIFFInitMethod init
Definition: tiffio.h:243
TIFFPrintDirectory
void TIFFPrintDirectory(TIFF *, FILE *, long)
Definition: tif_print.c:195
TIFFSetFileno
int TIFFSetFileno(TIFF *, int)
Definition: tif_open.c:487
_TIFFmalloc
tdata_t _TIFFmalloc(tsize_t)
Definition: tif_acorn.c:461
TIFFSetWarningHandler
TIFFErrorHandler TIFFSetWarningHandler(TIFFErrorHandler)
Definition: tif_warning.c:35
TIFFUnRegisterCODEC
void TIFFUnRegisterCODEC(TIFFCodec *)
Definition: tif_compress.c:217
TIFFSetField
int TIFFSetField(TIFF *, ttag_t,...)
Definition: tif_dir.c:649
TIFFWriteEncodedStrip
tsize_t TIFFWriteEncodedStrip(TIFF *, tstrip_t, tdata_t, tsize_t)
Definition: tif_write.c:182
TIFFClientOpen
TIFF * TIFFClientOpen(const char *, const char *, thandle_t, TIFFReadWriteProc, TIFFReadWriteProc, TIFFSeekProc, TIFFCloseProc, TIFFSizeProc, TIFFMapFileProc, TIFFUnmapFileProc)
Definition: tif_open.c:139
TIFFGetFieldDefaulted
int TIFFGetFieldDefaulted(TIFF *, ttag_t,...)
Definition: tif_aux.c:272
TIFFSetClientInfo
void TIFFSetClientInfo(TIFF *, void *, const char *)
Definition: tif_extension.c:80
TIFFVTileSize
tsize_t TIFFVTileSize(TIFF *, uint32)
Definition: tif_tile.c:193
TIFFSwabLong
void TIFFSwabLong(uint32 *)
Definition: tif_swab.c:47
TIFFIsTiled
int TIFFIsTiled(TIFF *)
Definition: tif_open.c:539
TIFFDefaultStripSize
uint32 TIFFDefaultStripSize(TIFF *, uint32)
Definition: tif_strip.c:198
uint8
unsigned char uint8
Definition: tiff.h:67
TIFFStripSize
tsize_t TIFFStripSize(TIFF *)
Definition: tif_strip.c:182
_TIFFRGBAImage::greencmap
uint16 * greencmap
Definition: tiffio.h:203
TIFFSetTagExtender
TIFFExtendProc TIFFSetTagExtender(TIFFExtendProc)
Definition: tif_dir.c:1025
LogL16toY
double LogL16toY(int)
Definition: tif_luv.c:650
TIFFErrorHandler
void(* TIFFErrorHandler)(const char *, const char *, va_list)
Definition: tiffio.h:261
TIFFWarningExt
void void void void TIFFWarningExt(thandle_t, const char *, const char *,...) __attribute__((format(printf
TIFFReadRGBAImage
int TIFFReadRGBAImage(TIFF *, uint32, uint32, uint32 *, int)
Definition: tif_getimage.c:495
TIFFCIELabToRGB::display
TIFFDisplay display
Definition: tiffio.h:161
TIFFFileName
const char * TIFFFileName(TIFF *)
Definition: tif_open.c:458
TIFFInitMethod
int(* TIFFInitMethod)(TIFF *, int)
Definition: tiffio.h:239
tstrip_t
tstrile_t tstrip_t
Definition: tiffio.h:65
_TIFFTagValue::count
int count
Definition: tiffio.h:316
TIFFWriteCheck
int TIFFWriteCheck(TIFF *, int, const char *)
Definition: tif_write.c:483
TIFFDisplay::d_gammaB
float d_gammaB
Definition: tiffio.h:144
TIFFDisplay::d_Vrwr
uint32 d_Vrwr
Definition: tiffio.h:136
TIFFRGBValue
unsigned char TIFFRGBValue
Definition: tiffio.h:129
TIFFGetReadProc
TIFFReadWriteProc TIFFGetReadProc(TIFF *)
Definition: tif_open.c:620
TIFFNumberOfDirectories
tdir_t TIFFNumberOfDirectories(TIFF *)
Definition: tif_dir.c:1181
TIFFCurrentDirOffset
uint32 TIFFCurrentDirOffset(TIFF *)
Definition: tif_dir.c:1242
TIFFCheckpointDirectory
int TIFFCheckpointDirectory(TIFF *)
Definition: tif_dirwrite.c:426
TIFFGetSizeProc
TIFFSizeProc TIFFGetSizeProc(TIFF *)
Definition: tif_open.c:656
TIFFDefaultTileSize
void TIFFDefaultTileSize(TIFF *, uint32 *, uint32 *)
Definition: tif_tile.c:253
_TIFFTagValue
Definition: tiffio.h:314
tileContigRoutine
void(* tileContigRoutine)(TIFFRGBAImage *, uint32 *, uint32, uint32, uint32, uint32, int32, int32, unsigned char *)
Definition: tiffio.h:182
TIFFGetMapFileProc
TIFFMapFileProc TIFFGetMapFileProc(TIFF *)
Definition: tif_open.c:665
TIFFYCbCrToRGB::Cr_g_tab
int32 * Cr_g_tab
Definition: tiffio.h:151
TIFFGetWriteProc
TIFFReadWriteProc TIFFGetWriteProc(TIFF *)
Definition: tif_open.c:629
tiff
Definition: tiffiop.h:102
TIFFRGBAImageOK
int TIFFRGBAImageOK(TIFF *, char[1024])
Definition: tif_getimage.c:72
TIFFGetMode
int TIFFGetMode(TIFF *)
Definition: tif_open.c:518
TIFFCodec::name
char * name
Definition: tiffio.h:241
TIFFTagMethods::printdir
TIFFPrintMethod printdir
Definition: tiffio.h:334
TIFFFdOpen
TIFF * TIFFFdOpen(int, const char *, const char *)
Definition: tif_acorn.c:418
TIFFReassignTagToIgnore
int TIFFReassignTagToIgnore(enum TIFFIgnoreSense, int)
Definition: tif_dir.c:1341
TIFFReverseBits
void TIFFReverseBits(unsigned char *, unsigned long)
TIFFGetConfiguredCODECs
TIFFCodec * TIFFGetConfiguredCODECs(void)
Definition: tif_compress.c:245
TIFFReadScanline
int TIFFReadScanline(TIFF *, tdata_t, uint32, tsample_t)
Definition: tif_read.c:96
TIFFUnlinkDirectory
int TIFFUnlinkDirectory(TIFF *, tdir_t)
Definition: tif_dir.c:1261
TIFFReadBufferSetup
int TIFFReadBufferSetup(TIFF *, tdata_t, tsize_t)
Definition: tif_read.c:593
_TIFFTagValue::info
const TIFFFieldInfo * info
Definition: tiffio.h:315
TIFFTagMethods
Definition: tiffio.h:331
TIFFMergeFieldInfo
void TIFFMergeFieldInfo(TIFF *, const TIFFFieldInfo[], int)
Definition: tif_dirinfo.c:583
TIFFReadRGBATile
int TIFFReadRGBATile(TIFF *, uint32, uint32, uint32 *)
Definition: tif_getimage.c:2572
TIFFSeekProc
toff_t(* TIFFSeekProc)(thandle_t, toff_t, int)
Definition: tiffio.h:264
TIFFVGetFieldDefaulted
int TIFFVGetFieldDefaulted(TIFF *, ttag_t, va_list)
Definition: tif_aux.c:143
TIFFUnmapFileProc
void(* TIFFUnmapFileProc)(thandle_t, tdata_t, toff_t)
Definition: tiffio.h:268
TIFFDisplay::d_YCB
float d_YCB
Definition: tiffio.h:135
TIFFSizeProc
toff_t(* TIFFSizeProc)(thandle_t)
Definition: tiffio.h:266
TIFFClientdata
thandle_t TIFFClientdata(TIFF *)
Definition: tif_open.c:498
TIFFFileno
int TIFFFileno(TIFF *)
Definition: tif_open.c:478
TIFFFieldInfo::field_passcount
unsigned char field_passcount
Definition: tiffio.h:310
TIFFWriteDirectory
int TIFFWriteDirectory(TIFF *)
Definition: tif_dirwrite.c:414
_TIFFRGBAImage::redcmap
uint16 * redcmap
Definition: tiffio.h:202
uv_decode
int uv_decode(double *, double *, int)
Definition: tif_luv.c:836
TIFFCurrentStrip
tstrip_t TIFFCurrentStrip(TIFF *)
Definition: tif_open.c:566
TIFFNumberOfTiles
ttile_t TIFFNumberOfTiles(TIFF *)
Definition: tif_tile.c:145
CIELABTORGB_TABLE_RANGE
#define CIELABTORGB_TABLE_RANGE
Definition: tiffio.h:158
_TIFFRGBAImage::Map
TIFFRGBValue * Map
Definition: tiffio.h:213
TIFFFlush
int TIFFFlush(TIFF *)
Definition: tif_flush.c:33
TIFFRegisterCODEC
TIFFCodec * TIFFRegisterCODEC(uint16, const char *, TIFFInitMethod)
Definition: tif_compress.c:194
TIFFDisplay::d_YCG
float d_YCG
Definition: tiffio.h:134
_TIFFRGBAImage
Definition: tiffio.h:190
TIFFError
void TIFFError(const char *, const char *,...) __attribute__((format(printf
TIFFRasterScanlineSize
tsize_t TIFFRasterScanlineSize(TIFF *)
Definition: tif_strip.c:346
TIFFSetErrorHandlerExt
TIFFErrorHandlerExt TIFFSetErrorHandlerExt(TIFFErrorHandlerExt)
Definition: tif_error.c:43
TIFFReadRawStrip
tsize_t TIFFReadRawStrip(TIFF *, tstrip_t, tdata_t, tsize_t)
Definition: tif_read.c:218
ttile_t
tstrile_t ttile_t
Definition: tiffio.h:66
TIFFSwabArrayOfLong
void TIFFSwabArrayOfLong(uint32 *, unsigned long)
TIFFOpenW
TIFF * TIFFOpenW(const wchar_t *name, const char *mode)
Definition: tif_win32.c:222
TIFFRGBAImageBegin
int TIFFRGBAImageBegin(TIFFRGBAImage *, TIFF *, int, char[1024])
Definition: tif_getimage.c:224
uint16
unsigned short uint16
Definition: tiff.h:71
TIFFReadRGBAStrip
int TIFFReadRGBAStrip(TIFF *, tstrip_t, uint32 *)
Definition: tif_getimage.c:2521
TIFFReadEncodedTile
tsize_t TIFFReadEncodedTile(TIFF *, ttile_t, tdata_t, tsize_t)
Definition: tif_read.c:384
TIFFFieldInfo
Definition: tiffio.h:303
TIFFWriteScanline
int TIFFWriteScanline(TIFF *, tdata_t, uint32, tsample_t)
Definition: tif_write.c:49
TIFFDisplay
Definition: tiffio.h:131
TIFFDisplay::d_Vrwb
uint32 d_Vrwb
Definition: tiffio.h:138
_TIFFRGBAImage::cielab
TIFFCIELabToRGB * cielab
Definition: tiffio.h:217
_TIFFRGBAImage::samplesperpixel
uint16 samplesperpixel
Definition: tiffio.h:198
TIFFTagMethods::vsetfield
TIFFVSetMethod vsetfield
Definition: tiffio.h:332
TIFFReadWriteProc
tsize_t(* TIFFReadWriteProc)(thandle_t, tdata_t, tsize_t)
Definition: tiffio.h:263
TIFFYCbCrToRGB::clamptab
TIFFRGBValue * clamptab
Definition: tiffio.h:148
TIFFNewScanlineSize
tsize_t TIFFNewScanlineSize(TIFF *)
Definition: tif_strip.c:301
LogL10toY
double LogL10toY(int)
Definition: tif_luv.c:732
TIFFIgnoreSense
TIFFIgnoreSense
Definition: tiff.h:85
TIFFScanlineSize
tsize_t TIFFScanlineSize(TIFF *)
Definition: tif_strip.c:227
TIFFVStripSize
tsize_t TIFFVStripSize(TIFF *, uint32)
Definition: tif_strip.c:107
TIFFReadEncodedStrip
tsize_t TIFFReadEncodedStrip(TIFF *, tstrip_t, tdata_t, tsize_t)
Definition: tif_read.c:124
TIFFWarning
void void void TIFFWarning(const char *, const char *,...) __attribute__((format(printf
tstrile_t
uint32 tstrile_t
Definition: tiffio.h:64
TIFFCurrentTile
ttile_t TIFFCurrentTile(TIFF *)
Definition: tif_open.c:575
_TIFFRGBAImage::BWmap
uint32 ** BWmap
Definition: tiffio.h:214
TIFFSetupStrips
int TIFFSetupStrips(TIFF *)
Definition: tif_write.c:443
TIFFXYZToRGB
void TIFFXYZToRGB(TIFFCIELabToRGB *, float, float, float, uint32 *, uint32 *, uint32 *)
Definition: tif_color.c:78
LogL10fromY
int LogL10fromY(double, int)
Definition: tif_luv.c:743
_TIFFRGBAImage::contig
tileContigRoutine contig
Definition: tiffio.h:210
TIFFDisplay::d_Y0B
float d_Y0B
Definition: tiffio.h:141
TIFFGetUnmapFileProc
TIFFUnmapFileProc TIFFGetUnmapFileProc(TIFF *)
Definition: tif_open.c:674
TIFFSwabArrayOfDouble
void TIFFSwabArrayOfDouble(double *, unsigned long)
TIFFFieldInfo::field_readcount
short field_readcount
Definition: tiffio.h:305
TIFFFieldWithName
const TIFFFieldInfo * TIFFFieldWithName(TIFF *, const char *)
TIFFOpen
TIFF * TIFFOpen(const char *, const char *)
Definition: tif_acorn.c:438
TIFFClose
void TIFFClose(TIFF *)
Definition: tif_close.c:111
TIFFCurrentDirectory
tdir_t TIFFCurrentDirectory(TIFF *)
Definition: tif_open.c:557
_TIFFRGBAImage::alpha
int alpha
Definition: tiffio.h:194
TIFFMapFileProc
int(* TIFFMapFileProc)(thandle_t, tdata_t *, toff_t *)
Definition: tiffio.h:267
TIFFTileRowSize
tsize_t TIFFTileRowSize(TIFF *)
Definition: tif_tile.c:174
TIFFSetErrorHandler
void void void void TIFFErrorHandler TIFFSetErrorHandler(TIFFErrorHandler)
Definition: tif_error.c:35
LogLuv32fromXYZ
uint32 LogLuv32fromXYZ(float *, int)
TIFFGetCloseProc
TIFFCloseProc TIFFGetCloseProc(TIFF *)
Definition: tif_open.c:647
TIFFYCbCrToRGB::Cr_r_tab
int * Cr_r_tab
Definition: tiffio.h:149
TIFFExtendProc
void(* TIFFExtendProc)(TIFF *)
Definition: tiffio.h:269
TIFFErrorHandlerExt
void(* TIFFErrorHandlerExt)(thandle_t, const char *, const char *, va_list)
Definition: tiffio.h:262
TIFFAccessTagMethods
TIFFTagMethods * TIFFAccessTagMethods(TIFF *)
Definition: tif_extension.c:60
TIFFWriteBufferSetup
int TIFFWriteBufferSetup(TIFF *, tdata_t, tsize_t)
Definition: tif_write.c:546
TIFFYCbCrToRGB
Definition: tiffio.h:147
SGILOGENCODE_NODITHER
#define SGILOGENCODE_NODITHER
Definition: tiff.h:577
TIFFReadEXIFDirectory
int TIFFReadEXIFDirectory(TIFF *, toff_t)
Definition: tif_dirread.c:935
TIFFWriteRawStrip
tsize_t TIFFWriteRawStrip(TIFF *, tstrip_t, tdata_t, tsize_t)
Definition: tif_write.c:264
_TIFFRGBAImage::height
uint32 height
Definition: tiffio.h:196
TIFFCIELabToRGBInit
int TIFFCIELabToRGBInit(TIFFCIELabToRGB *, TIFFDisplay *, float *)
Definition: tif_color.c:125
_TIFFRGBAImage::bitspersample
uint16 bitspersample
Definition: tiffio.h:197
_TIFFRGBAImage::col_offset
int col_offset
Definition: tiffio.h:220
_TIFFRGBAImage::row_offset
int row_offset
Definition: tiffio.h:219
TIFFGetTagListCount
int TIFFGetTagListCount(TIFF *)
Definition: tif_extension.c:36
TIFFGetVersion
const char * TIFFGetVersion(void)
Definition: tif_version.c:30
TIFFDisplay::d_gammaG
float d_gammaG
Definition: tiffio.h:143
TIFFSetFileName
const char * TIFFSetFileName(TIFF *, const char *)
Definition: tif_open.c:467
LogLuv32toXYZ
void LogLuv32toXYZ(uint32, float *)
TIFFSetWriteOffset
void TIFFSetWriteOffset(TIFF *, toff_t)
Definition: tif_write.c:706
TIFFPrintMethod
void(* TIFFPrintMethod)(TIFF *, FILE *, long)
Definition: tiffio.h:329
TIFFIsUpSampled
int TIFFIsUpSampled(TIFF *)
Definition: tif_open.c:593
XYZtoRGB24
void XYZtoRGB24(float *, uint8 *)
uv_encode
int uv_encode(double, double, int)
Definition: tif_luv.c:814
TIFFYCbCrToRGBInit
int TIFFYCbCrToRGBInit(TIFFYCbCrToRGB *, float *, float *)
Definition: tif_color.c:212
TIFFYCbCrToRGB::Cb_b_tab
int * Cb_b_tab
Definition: tiffio.h:150
TIFFFlushData
int TIFFFlushData(TIFF *)
Definition: tif_flush.c:56
TIFFComputeTile
ttile_t TIFFComputeTile(TIFF *, uint32, uint32, uint32, tsample_t)
Definition: tif_tile.c:68
_TIFFRGBAImage::orientation
uint16 orientation
Definition: tiffio.h:199
LogLuv24fromXYZ
uint32 LogLuv24fromXYZ(float *, int)
LogL16fromY
int LogL16fromY(double, int)
Definition: tif_luv.c:665
LogLuv24toXYZ
void LogLuv24toXYZ(uint32, float *)
TIFFRGBAImageGet
int TIFFRGBAImageGet(TIFFRGBAImage *, uint32 *, uint32, uint32)
Definition: tif_getimage.c:450
TIFFFindFieldInfoByName
const TIFFFieldInfo * TIFFFindFieldInfoByName(TIFF *, const char *, TIFFDataType)
_TIFFRGBAImage::separate
tileSeparateRoutine separate
Definition: tiffio.h:211
_TIFFmemset
void _TIFFmemset(tdata_t, int, tsize_t)
Definition: tif_acorn.c:479
toff_t
uint32 toff_t
Definition: tiffio.h:69
_TIFFRGBAImage::stoponerr
int stoponerr
Definition: tiffio.h:192
TIFFVGetMethod
int(* TIFFVGetMethod)(TIFF *, ttag_t, va_list)
Definition: tiffio.h:328
TIFFFieldWithTag
const TIFFFieldInfo * TIFFFieldWithTag(TIFF *, ttag_t)
TIFFCIELabToRGB::Z0
float Z0
Definition: tiffio.h:160
TIFFYCbCrtoRGB
void TIFFYCbCrtoRGB(TIFFYCbCrToRGB *, uint32, int32, int32, uint32 *, uint32 *, uint32 *)
Definition: tif_color.c:183
TIFFSetWarningHandlerExt
TIFFErrorHandlerExt TIFFSetWarningHandlerExt(TIFFErrorHandlerExt)
Definition: tif_warning.c:43
TIFFSetDirectory
int TIFFSetDirectory(TIFF *, tdir_t)
Definition: tif_dir.c:1196
TIFFFieldInfo::field_tag
ttag_t field_tag
Definition: tiffio.h:304
tdir_t
uint16 tdir_t
Definition: tiffio.h:62
TIFFDataWidth
int TIFFDataWidth(TIFFDataType)
Definition: tif_dirinfo.c:662
TIFFFieldInfo::field_oktochange
unsigned char field_oktochange
Definition: tiffio.h:309
_TIFFfree
void _TIFFfree(tdata_t)
Definition: tif_acorn.c:467
TIFFSetMode
int TIFFSetMode(TIFF *, int)
Definition: tif_open.c:527
TIFFRawStripSize
tsize_t TIFFRawStripSize(TIFF *, tstrip_t)
Definition: tif_strip.c:158
TIFFDisplay::d_Y0G
float d_Y0G
Definition: tiffio.h:140
TIFFErrorExt
void void TIFFErrorExt(thandle_t, const char *, const char *,...) __attribute__((format(printf
TIFFReadDirectory
int TIFFReadDirectory(TIFF *)
Definition: tif_dirread.c:74
TIFFCleanup
void TIFFCleanup(TIFF *)
Definition: tif_close.c:46
TIFFDisplay::d_Y0R
float d_Y0R
Definition: tiffio.h:139
TIFFSetClientdata
thandle_t TIFFSetClientdata(TIFF *, thandle_t)
Definition: tif_open.c:507
TIFFIsCODECConfigured
int TIFFIsCODECConfigured(uint16)
Definition: tif_codec.c:138
_TIFFRGBAImage::req_orientation
uint16 req_orientation
Definition: tiffio.h:200
TIFFCIELabToRGB::range
int range
Definition: tiffio.h:157
TIFFFieldInfo::field_name
char * field_name
Definition: tiffio.h:311
tileSeparateRoutine
void(* tileSeparateRoutine)(TIFFRGBAImage *, uint32 *, uint32, uint32, uint32, uint32, int32, int32, unsigned char *, unsigned char *, unsigned char *, unsigned char *)
Definition: tiffio.h:185
TIFFFreeDirectory
void TIFFFreeDirectory(TIFF *)
Definition: tif_dir.c:987
TIFFFindCODEC
const TIFFCodec * TIFFFindCODEC(uint16)
Definition: tif_compress.c:179
TIFFFieldInfo::field_type
TIFFDataType field_type
Definition: tiffio.h:307
TIFFReadRGBAImageOriented
int TIFFReadRGBAImageOriented(TIFF *, uint32, uint32, uint32 *, int, int)
Definition: tif_getimage.c:469
const
#define const
Definition: zconf.h:196
_TIFFRGBAImage::tif
TIFF * tif
Definition: tiffio.h:191
TIFFCurrentRow
uint32 TIFFCurrentRow(TIFF *)
Definition: tif_open.c:548
TIFFIsMSB2LSB
int TIFFIsMSB2LSB(TIFF *)
Definition: tif_open.c:602
TIFFDisplay::d_YCR
float d_YCR
Definition: tiffio.h:133
_TIFFRGBAImage::ycbcr
TIFFYCbCrToRGB * ycbcr
Definition: tiffio.h:216
_TIFFRGBAImage::photometric
uint16 photometric
Definition: tiffio.h:201
TIFFSwabArrayOfShort
void TIFFSwabArrayOfShort(uint16 *, unsigned long)
TIFFVGetField
int TIFFVGetField(TIFF *, ttag_t, va_list)
Definition: tif_dir.c:969
TIFFGetSeekProc
TIFFSeekProc TIFFGetSeekProc(TIFF *)
Definition: tif_open.c:638
TIFFCIELabToRGB
Definition: tiffio.h:156
TIFFComputeStrip
tstrip_t TIFFComputeStrip(TIFF *, uint32, tsample_t)
Definition: tif_strip.c:68
TIFFFindFieldInfo
const TIFFFieldInfo * TIFFFindFieldInfo(TIFF *, ttag_t, TIFFDataType)
_TIFFRGBAImage::width
uint32 width
Definition: tiffio.h:195
_TIFFRGBAImage::bluecmap
uint16 * bluecmap
Definition: tiffio.h:204
TIFFVSetMethod
int(* TIFFVSetMethod)(TIFF *, ttag_t, va_list)
Definition: tiffio.h:327
tiffvers.h
TIFFRGBAImageEnd
void TIFFRGBAImageEnd(TIFFRGBAImage *)
Definition: tif_getimage.c:193
TIFFTileSize
tsize_t TIFFTileSize(TIFF *)
Definition: tif_tile.c:241
_TIFFmemcpy
void _TIFFmemcpy(tdata_t, const tdata_t, tsize_t)
Definition: tif_acorn.c:485
TIFFTagMethods::vgetfield
TIFFVGetMethod vgetfield
Definition: tiffio.h:333
TIFFSwabDouble
void TIFFSwabDouble(double *)
Definition: tif_swab.c:108
ORIENTATION_BOTLEFT
#define ORIENTATION_BOTLEFT
Definition: tiff.h:230
TIFFIsByteSwapped
int TIFFIsByteSwapped(TIFF *)
Definition: tif_open.c:584
TIFFFieldInfo::field_bit
unsigned short field_bit
Definition: tiffio.h:308
TIFFDisplay::d_gammaR
float d_gammaR
Definition: tiffio.h:142
_TIFFRGBAImage::isContig
int isContig
Definition: tiffio.h:193
TIFFSwabShort
void TIFFSwabShort(uint16 *)
Definition: tif_swab.c:36
TIFFGetBitRevTable
const unsigned char * TIFFGetBitRevTable(int)
Definition: tif_swab.c:212
thandle_t
void * thandle_t
Definition: tiffio.h:97
TIFFFieldInfo::field_writecount
short field_writecount
Definition: tiffio.h:306
TIFFWriteEncodedTile
tsize_t TIFFWriteEncodedTile(TIFF *, ttile_t, tdata_t, tsize_t)
Definition: tif_write.c:336
TIFFDataType
TIFFDataType
Definition: tiff.h:137
_TIFFTagValue::value
void * value
Definition: tiffio.h:317
TIFFCIELabToRGB::rstep
float rstep
Definition: tiffio.h:159
__attribute__
#define __attribute__(x)
Definition: tiffio.h:255
TIFFDisplay::d_Vrwg
uint32 d_Vrwg
Definition: tiffio.h:137