Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include
File: tiffio.h
/* $Id: tiffio.h,v 1.94 2017-01-11 19:02:49 erouault Exp $ */
[0] Fix | Delete
[1] Fix | Delete
/*
[2] Fix | Delete
* Copyright (c) 1988-1997 Sam Leffler
[3] Fix | Delete
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
[4] Fix | Delete
*
[5] Fix | Delete
* Permission to use, copy, modify, distribute, and sell this software and
[6] Fix | Delete
* its documentation for any purpose is hereby granted without fee, provided
[7] Fix | Delete
* that (i) the above copyright notices and this permission notice appear in
[8] Fix | Delete
* all copies of the software and related documentation, and (ii) the names of
[9] Fix | Delete
* Sam Leffler and Silicon Graphics may not be used in any advertising or
[10] Fix | Delete
* publicity relating to the software without the specific, prior written
[11] Fix | Delete
* permission of Sam Leffler and Silicon Graphics.
[12] Fix | Delete
*
[13] Fix | Delete
* THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
[14] Fix | Delete
* EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
[15] Fix | Delete
* WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
[16] Fix | Delete
*
[17] Fix | Delete
* IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
[18] Fix | Delete
* ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
[19] Fix | Delete
* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
[20] Fix | Delete
* WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
[21] Fix | Delete
* LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
[22] Fix | Delete
* OF THIS SOFTWARE.
[23] Fix | Delete
*/
[24] Fix | Delete
[25] Fix | Delete
#ifndef _TIFFIO_
[26] Fix | Delete
#define _TIFFIO_
[27] Fix | Delete
[28] Fix | Delete
/*
[29] Fix | Delete
* TIFF I/O Library Definitions.
[30] Fix | Delete
*/
[31] Fix | Delete
#include "tiff.h"
[32] Fix | Delete
#include "tiffvers.h"
[33] Fix | Delete
[34] Fix | Delete
/*
[35] Fix | Delete
* TIFF is defined as an incomplete type to hide the
[36] Fix | Delete
* library's internal data structures from clients.
[37] Fix | Delete
*/
[38] Fix | Delete
typedef struct tiff TIFF;
[39] Fix | Delete
[40] Fix | Delete
/*
[41] Fix | Delete
* The following typedefs define the intrinsic size of
[42] Fix | Delete
* data types used in the *exported* interfaces. These
[43] Fix | Delete
* definitions depend on the proper definition of types
[44] Fix | Delete
* in tiff.h. Note also that the varargs interface used
[45] Fix | Delete
* to pass tag types and values uses the types defined in
[46] Fix | Delete
* tiff.h directly.
[47] Fix | Delete
*
[48] Fix | Delete
* NB: ttag_t is unsigned int and not unsigned short because
[49] Fix | Delete
* ANSI C requires that the type before the ellipsis be a
[50] Fix | Delete
* promoted type (i.e. one of int, unsigned int, pointer,
[51] Fix | Delete
* or double) and because we defined pseudo-tags that are
[52] Fix | Delete
* outside the range of legal Aldus-assigned tags.
[53] Fix | Delete
* NB: tsize_t is int32 and not uint32 because some functions
[54] Fix | Delete
* return -1.
[55] Fix | Delete
* NB: toff_t is not off_t for many reasons; TIFFs max out at
[56] Fix | Delete
* 32-bit file offsets, and BigTIFF maxes out at 64-bit
[57] Fix | Delete
* offsets being the most important, and to ensure use of
[58] Fix | Delete
* a consistently unsigned type across architectures.
[59] Fix | Delete
* Prior to libtiff 4.0, this was an unsigned 32 bit type.
[60] Fix | Delete
*/
[61] Fix | Delete
/*
[62] Fix | Delete
* this is the machine addressing size type, only it's signed, so make it
[63] Fix | Delete
* int32 on 32bit machines, int64 on 64bit machines
[64] Fix | Delete
*/
[65] Fix | Delete
typedef TIFF_SSIZE_T tmsize_t;
[66] Fix | Delete
typedef uint64 toff_t; /* file offset */
[67] Fix | Delete
/* the following are deprecated and should be replaced by their defining
[68] Fix | Delete
counterparts */
[69] Fix | Delete
typedef uint32 ttag_t; /* directory tag */
[70] Fix | Delete
typedef uint16 tdir_t; /* directory index */
[71] Fix | Delete
typedef uint16 tsample_t; /* sample number */
[72] Fix | Delete
typedef uint32 tstrile_t; /* strip or tile number */
[73] Fix | Delete
typedef tstrile_t tstrip_t; /* strip number */
[74] Fix | Delete
typedef tstrile_t ttile_t; /* tile number */
[75] Fix | Delete
typedef tmsize_t tsize_t; /* i/o size in bytes */
[76] Fix | Delete
typedef void* tdata_t; /* image data ref */
[77] Fix | Delete
[78] Fix | Delete
#if !defined(__WIN32__) && (defined(_WIN32) || defined(WIN32))
[79] Fix | Delete
#define __WIN32__
[80] Fix | Delete
#endif
[81] Fix | Delete
[82] Fix | Delete
/*
[83] Fix | Delete
* On windows you should define USE_WIN32_FILEIO if you are using tif_win32.c
[84] Fix | Delete
* or AVOID_WIN32_FILEIO if you are using something else (like tif_unix.c).
[85] Fix | Delete
*
[86] Fix | Delete
* By default tif_unix.c is assumed.
[87] Fix | Delete
*/
[88] Fix | Delete
[89] Fix | Delete
#if defined(_WINDOWS) || defined(__WIN32__) || defined(_Windows)
[90] Fix | Delete
# if !defined(__CYGWIN) && !defined(AVOID_WIN32_FILEIO) && !defined(USE_WIN32_FILEIO)
[91] Fix | Delete
# define AVOID_WIN32_FILEIO
[92] Fix | Delete
# endif
[93] Fix | Delete
#endif
[94] Fix | Delete
[95] Fix | Delete
#if defined(USE_WIN32_FILEIO)
[96] Fix | Delete
# define VC_EXTRALEAN
[97] Fix | Delete
# include <windows.h>
[98] Fix | Delete
# ifdef __WIN32__
[99] Fix | Delete
DECLARE_HANDLE(thandle_t); /* Win32 file handle */
[100] Fix | Delete
# else
[101] Fix | Delete
typedef HFILE thandle_t; /* client data handle */
[102] Fix | Delete
# endif /* __WIN32__ */
[103] Fix | Delete
#else
[104] Fix | Delete
typedef void* thandle_t; /* client data handle */
[105] Fix | Delete
#endif /* USE_WIN32_FILEIO */
[106] Fix | Delete
[107] Fix | Delete
/*
[108] Fix | Delete
* Flags to pass to TIFFPrintDirectory to control
[109] Fix | Delete
* printing of data structures that are potentially
[110] Fix | Delete
* very large. Bit-or these flags to enable printing
[111] Fix | Delete
* multiple items.
[112] Fix | Delete
*/
[113] Fix | Delete
#define TIFFPRINT_NONE 0x0 /* no extra info */
[114] Fix | Delete
#define TIFFPRINT_STRIPS 0x1 /* strips/tiles info */
[115] Fix | Delete
#define TIFFPRINT_CURVES 0x2 /* color/gray response curves */
[116] Fix | Delete
#define TIFFPRINT_COLORMAP 0x4 /* colormap */
[117] Fix | Delete
#define TIFFPRINT_JPEGQTABLES 0x100 /* JPEG Q matrices */
[118] Fix | Delete
#define TIFFPRINT_JPEGACTABLES 0x200 /* JPEG AC tables */
[119] Fix | Delete
#define TIFFPRINT_JPEGDCTABLES 0x200 /* JPEG DC tables */
[120] Fix | Delete
[121] Fix | Delete
/*
[122] Fix | Delete
* Colour conversion stuff
[123] Fix | Delete
*/
[124] Fix | Delete
[125] Fix | Delete
/* reference white */
[126] Fix | Delete
#define D65_X0 (95.0470F)
[127] Fix | Delete
#define D65_Y0 (100.0F)
[128] Fix | Delete
#define D65_Z0 (108.8827F)
[129] Fix | Delete
[130] Fix | Delete
#define D50_X0 (96.4250F)
[131] Fix | Delete
#define D50_Y0 (100.0F)
[132] Fix | Delete
#define D50_Z0 (82.4680F)
[133] Fix | Delete
[134] Fix | Delete
/* Structure for holding information about a display device. */
[135] Fix | Delete
[136] Fix | Delete
typedef unsigned char TIFFRGBValue; /* 8-bit samples */
[137] Fix | Delete
[138] Fix | Delete
typedef struct {
[139] Fix | Delete
float d_mat[3][3]; /* XYZ -> luminance matrix */
[140] Fix | Delete
float d_YCR; /* Light o/p for reference white */
[141] Fix | Delete
float d_YCG;
[142] Fix | Delete
float d_YCB;
[143] Fix | Delete
uint32 d_Vrwr; /* Pixel values for ref. white */
[144] Fix | Delete
uint32 d_Vrwg;
[145] Fix | Delete
uint32 d_Vrwb;
[146] Fix | Delete
float d_Y0R; /* Residual light for black pixel */
[147] Fix | Delete
float d_Y0G;
[148] Fix | Delete
float d_Y0B;
[149] Fix | Delete
float d_gammaR; /* Gamma values for the three guns */
[150] Fix | Delete
float d_gammaG;
[151] Fix | Delete
float d_gammaB;
[152] Fix | Delete
} TIFFDisplay;
[153] Fix | Delete
[154] Fix | Delete
typedef struct { /* YCbCr->RGB support */
[155] Fix | Delete
TIFFRGBValue* clamptab; /* range clamping table */
[156] Fix | Delete
int* Cr_r_tab;
[157] Fix | Delete
int* Cb_b_tab;
[158] Fix | Delete
int32* Cr_g_tab;
[159] Fix | Delete
int32* Cb_g_tab;
[160] Fix | Delete
int32* Y_tab;
[161] Fix | Delete
} TIFFYCbCrToRGB;
[162] Fix | Delete
[163] Fix | Delete
typedef struct { /* CIE Lab 1976->RGB support */
[164] Fix | Delete
int range; /* Size of conversion table */
[165] Fix | Delete
#define CIELABTORGB_TABLE_RANGE 1500
[166] Fix | Delete
float rstep, gstep, bstep;
[167] Fix | Delete
float X0, Y0, Z0; /* Reference white point */
[168] Fix | Delete
TIFFDisplay display;
[169] Fix | Delete
float Yr2r[CIELABTORGB_TABLE_RANGE + 1]; /* Conversion of Yr to r */
[170] Fix | Delete
float Yg2g[CIELABTORGB_TABLE_RANGE + 1]; /* Conversion of Yg to g */
[171] Fix | Delete
float Yb2b[CIELABTORGB_TABLE_RANGE + 1]; /* Conversion of Yb to b */
[172] Fix | Delete
} TIFFCIELabToRGB;
[173] Fix | Delete
[174] Fix | Delete
/*
[175] Fix | Delete
* RGBA-style image support.
[176] Fix | Delete
*/
[177] Fix | Delete
typedef struct _TIFFRGBAImage TIFFRGBAImage;
[178] Fix | Delete
/*
[179] Fix | Delete
* The image reading and conversion routines invoke
[180] Fix | Delete
* ``put routines'' to copy/image/whatever tiles of
[181] Fix | Delete
* raw image data. A default set of routines are
[182] Fix | Delete
* provided to convert/copy raw image data to 8-bit
[183] Fix | Delete
* packed ABGR format rasters. Applications can supply
[184] Fix | Delete
* alternate routines that unpack the data into a
[185] Fix | Delete
* different format or, for example, unpack the data
[186] Fix | Delete
* and draw the unpacked raster on the display.
[187] Fix | Delete
*/
[188] Fix | Delete
typedef void (*tileContigRoutine)
[189] Fix | Delete
(TIFFRGBAImage*, uint32*, uint32, uint32, uint32, uint32, int32, int32,
[190] Fix | Delete
unsigned char*);
[191] Fix | Delete
typedef void (*tileSeparateRoutine)
[192] Fix | Delete
(TIFFRGBAImage*, uint32*, uint32, uint32, uint32, uint32, int32, int32,
[193] Fix | Delete
unsigned char*, unsigned char*, unsigned char*, unsigned char*);
[194] Fix | Delete
/*
[195] Fix | Delete
* RGBA-reader state.
[196] Fix | Delete
*/
[197] Fix | Delete
struct _TIFFRGBAImage {
[198] Fix | Delete
TIFF* tif; /* image handle */
[199] Fix | Delete
int stoponerr; /* stop on read error */
[200] Fix | Delete
int isContig; /* data is packed/separate */
[201] Fix | Delete
int alpha; /* type of alpha data present */
[202] Fix | Delete
uint32 width; /* image width */
[203] Fix | Delete
uint32 height; /* image height */
[204] Fix | Delete
uint16 bitspersample; /* image bits/sample */
[205] Fix | Delete
uint16 samplesperpixel; /* image samples/pixel */
[206] Fix | Delete
uint16 orientation; /* image orientation */
[207] Fix | Delete
uint16 req_orientation; /* requested orientation */
[208] Fix | Delete
uint16 photometric; /* image photometric interp */
[209] Fix | Delete
uint16* redcmap; /* colormap palette */
[210] Fix | Delete
uint16* greencmap;
[211] Fix | Delete
uint16* bluecmap;
[212] Fix | Delete
/* get image data routine */
[213] Fix | Delete
int (*get)(TIFFRGBAImage*, uint32*, uint32, uint32);
[214] Fix | Delete
/* put decoded strip/tile */
[215] Fix | Delete
union {
[216] Fix | Delete
void (*any)(TIFFRGBAImage*);
[217] Fix | Delete
tileContigRoutine contig;
[218] Fix | Delete
tileSeparateRoutine separate;
[219] Fix | Delete
} put;
[220] Fix | Delete
TIFFRGBValue* Map; /* sample mapping array */
[221] Fix | Delete
uint32** BWmap; /* black&white map */
[222] Fix | Delete
uint32** PALmap; /* palette image map */
[223] Fix | Delete
TIFFYCbCrToRGB* ycbcr; /* YCbCr conversion state */
[224] Fix | Delete
TIFFCIELabToRGB* cielab; /* CIE L*a*b conversion state */
[225] Fix | Delete
[226] Fix | Delete
uint8* UaToAa; /* Unassociated alpha to associated alpha conversion LUT */
[227] Fix | Delete
uint8* Bitdepth16To8; /* LUT for conversion from 16bit to 8bit values */
[228] Fix | Delete
[229] Fix | Delete
int row_offset;
[230] Fix | Delete
int col_offset;
[231] Fix | Delete
};
[232] Fix | Delete
[233] Fix | Delete
/*
[234] Fix | Delete
* Macros for extracting components from the
[235] Fix | Delete
* packed ABGR form returned by TIFFReadRGBAImage.
[236] Fix | Delete
*/
[237] Fix | Delete
#define TIFFGetR(abgr) ((abgr) & 0xff)
[238] Fix | Delete
#define TIFFGetG(abgr) (((abgr) >> 8) & 0xff)
[239] Fix | Delete
#define TIFFGetB(abgr) (((abgr) >> 16) & 0xff)
[240] Fix | Delete
#define TIFFGetA(abgr) (((abgr) >> 24) & 0xff)
[241] Fix | Delete
[242] Fix | Delete
/*
[243] Fix | Delete
* A CODEC is a software package that implements decoding,
[244] Fix | Delete
* encoding, or decoding+encoding of a compression algorithm.
[245] Fix | Delete
* The library provides a collection of builtin codecs.
[246] Fix | Delete
* More codecs may be registered through calls to the library
[247] Fix | Delete
* and/or the builtin implementations may be overridden.
[248] Fix | Delete
*/
[249] Fix | Delete
typedef int (*TIFFInitMethod)(TIFF*, int);
[250] Fix | Delete
typedef struct {
[251] Fix | Delete
char* name;
[252] Fix | Delete
uint16 scheme;
[253] Fix | Delete
TIFFInitMethod init;
[254] Fix | Delete
} TIFFCodec;
[255] Fix | Delete
[256] Fix | Delete
#include <stdio.h>
[257] Fix | Delete
#include <stdarg.h>
[258] Fix | Delete
[259] Fix | Delete
/* share internal LogLuv conversion routines? */
[260] Fix | Delete
#ifndef LOGLUV_PUBLIC
[261] Fix | Delete
#define LOGLUV_PUBLIC 1
[262] Fix | Delete
#endif
[263] Fix | Delete
[264] Fix | Delete
#if !defined(__GNUC__) && !defined(__attribute__)
[265] Fix | Delete
# define __attribute__(x) /*nothing*/
[266] Fix | Delete
#endif
[267] Fix | Delete
[268] Fix | Delete
#if defined(c_plusplus) || defined(__cplusplus)
[269] Fix | Delete
extern "C" {
[270] Fix | Delete
#endif
[271] Fix | Delete
typedef void (*TIFFErrorHandler)(const char*, const char*, va_list);
[272] Fix | Delete
typedef void (*TIFFErrorHandlerExt)(thandle_t, const char*, const char*, va_list);
[273] Fix | Delete
typedef tmsize_t (*TIFFReadWriteProc)(thandle_t, void*, tmsize_t);
[274] Fix | Delete
typedef toff_t (*TIFFSeekProc)(thandle_t, toff_t, int);
[275] Fix | Delete
typedef int (*TIFFCloseProc)(thandle_t);
[276] Fix | Delete
typedef toff_t (*TIFFSizeProc)(thandle_t);
[277] Fix | Delete
typedef int (*TIFFMapFileProc)(thandle_t, void** base, toff_t* size);
[278] Fix | Delete
typedef void (*TIFFUnmapFileProc)(thandle_t, void* base, toff_t size);
[279] Fix | Delete
typedef void (*TIFFExtendProc)(TIFF*);
[280] Fix | Delete
[281] Fix | Delete
extern const char* TIFFGetVersion(void);
[282] Fix | Delete
[283] Fix | Delete
extern const TIFFCodec* TIFFFindCODEC(uint16);
[284] Fix | Delete
extern TIFFCodec* TIFFRegisterCODEC(uint16, const char*, TIFFInitMethod);
[285] Fix | Delete
extern void TIFFUnRegisterCODEC(TIFFCodec*);
[286] Fix | Delete
extern int TIFFIsCODECConfigured(uint16);
[287] Fix | Delete
extern TIFFCodec* TIFFGetConfiguredCODECs(void);
[288] Fix | Delete
[289] Fix | Delete
/*
[290] Fix | Delete
* Auxiliary functions.
[291] Fix | Delete
*/
[292] Fix | Delete
[293] Fix | Delete
extern void* _TIFFmalloc(tmsize_t s);
[294] Fix | Delete
extern void* _TIFFcalloc(tmsize_t nmemb, tmsize_t siz);
[295] Fix | Delete
extern void* _TIFFrealloc(void* p, tmsize_t s);
[296] Fix | Delete
extern void _TIFFmemset(void* p, int v, tmsize_t c);
[297] Fix | Delete
extern void _TIFFmemcpy(void* d, const void* s, tmsize_t c);
[298] Fix | Delete
extern int _TIFFmemcmp(const void* p1, const void* p2, tmsize_t c);
[299] Fix | Delete
extern void _TIFFfree(void* p);
[300] Fix | Delete
[301] Fix | Delete
/*
[302] Fix | Delete
** Stuff, related to tag handling and creating custom tags.
[303] Fix | Delete
*/
[304] Fix | Delete
extern int TIFFGetTagListCount( TIFF * );
[305] Fix | Delete
extern uint32 TIFFGetTagListEntry( TIFF *, int tag_index );
[306] Fix | Delete
[307] Fix | Delete
#define TIFF_ANY TIFF_NOTYPE /* for field descriptor searching */
[308] Fix | Delete
#define TIFF_VARIABLE -1 /* marker for variable length tags */
[309] Fix | Delete
#define TIFF_SPP -2 /* marker for SamplesPerPixel tags */
[310] Fix | Delete
#define TIFF_VARIABLE2 -3 /* marker for uint32 var-length tags */
[311] Fix | Delete
[312] Fix | Delete
#define FIELD_CUSTOM 65
[313] Fix | Delete
[314] Fix | Delete
typedef struct _TIFFField TIFFField;
[315] Fix | Delete
typedef struct _TIFFFieldArray TIFFFieldArray;
[316] Fix | Delete
[317] Fix | Delete
extern const TIFFField* TIFFFindField(TIFF *, uint32, TIFFDataType);
[318] Fix | Delete
extern const TIFFField* TIFFFieldWithTag(TIFF*, uint32);
[319] Fix | Delete
extern const TIFFField* TIFFFieldWithName(TIFF*, const char *);
[320] Fix | Delete
[321] Fix | Delete
extern uint32 TIFFFieldTag(const TIFFField*);
[322] Fix | Delete
extern const char* TIFFFieldName(const TIFFField*);
[323] Fix | Delete
extern TIFFDataType TIFFFieldDataType(const TIFFField*);
[324] Fix | Delete
extern int TIFFFieldPassCount(const TIFFField*);
[325] Fix | Delete
extern int TIFFFieldReadCount(const TIFFField*);
[326] Fix | Delete
extern int TIFFFieldWriteCount(const TIFFField*);
[327] Fix | Delete
[328] Fix | Delete
typedef int (*TIFFVSetMethod)(TIFF*, uint32, va_list);
[329] Fix | Delete
typedef int (*TIFFVGetMethod)(TIFF*, uint32, va_list);
[330] Fix | Delete
typedef void (*TIFFPrintMethod)(TIFF*, FILE*, long);
[331] Fix | Delete
[332] Fix | Delete
typedef struct {
[333] Fix | Delete
TIFFVSetMethod vsetfield; /* tag set routine */
[334] Fix | Delete
TIFFVGetMethod vgetfield; /* tag get routine */
[335] Fix | Delete
TIFFPrintMethod printdir; /* directory print routine */
[336] Fix | Delete
} TIFFTagMethods;
[337] Fix | Delete
[338] Fix | Delete
extern TIFFTagMethods *TIFFAccessTagMethods(TIFF *);
[339] Fix | Delete
extern void *TIFFGetClientInfo(TIFF *, const char *);
[340] Fix | Delete
extern void TIFFSetClientInfo(TIFF *, void *, const char *);
[341] Fix | Delete
[342] Fix | Delete
extern void TIFFCleanup(TIFF* tif);
[343] Fix | Delete
extern void TIFFClose(TIFF* tif);
[344] Fix | Delete
extern int TIFFFlush(TIFF* tif);
[345] Fix | Delete
extern int TIFFFlushData(TIFF* tif);
[346] Fix | Delete
extern int TIFFGetField(TIFF* tif, uint32 tag, ...);
[347] Fix | Delete
extern int TIFFVGetField(TIFF* tif, uint32 tag, va_list ap);
[348] Fix | Delete
extern int TIFFGetFieldDefaulted(TIFF* tif, uint32 tag, ...);
[349] Fix | Delete
extern int TIFFVGetFieldDefaulted(TIFF* tif, uint32 tag, va_list ap);
[350] Fix | Delete
extern int TIFFReadDirectory(TIFF* tif);
[351] Fix | Delete
extern int TIFFReadCustomDirectory(TIFF* tif, toff_t diroff, const TIFFFieldArray* infoarray);
[352] Fix | Delete
extern int TIFFReadEXIFDirectory(TIFF* tif, toff_t diroff);
[353] Fix | Delete
extern uint64 TIFFScanlineSize64(TIFF* tif);
[354] Fix | Delete
extern tmsize_t TIFFScanlineSize(TIFF* tif);
[355] Fix | Delete
extern uint64 TIFFRasterScanlineSize64(TIFF* tif);
[356] Fix | Delete
extern tmsize_t TIFFRasterScanlineSize(TIFF* tif);
[357] Fix | Delete
extern uint64 TIFFStripSize64(TIFF* tif);
[358] Fix | Delete
extern tmsize_t TIFFStripSize(TIFF* tif);
[359] Fix | Delete
extern uint64 TIFFRawStripSize64(TIFF* tif, uint32 strip);
[360] Fix | Delete
extern tmsize_t TIFFRawStripSize(TIFF* tif, uint32 strip);
[361] Fix | Delete
extern uint64 TIFFVStripSize64(TIFF* tif, uint32 nrows);
[362] Fix | Delete
extern tmsize_t TIFFVStripSize(TIFF* tif, uint32 nrows);
[363] Fix | Delete
extern uint64 TIFFTileRowSize64(TIFF* tif);
[364] Fix | Delete
extern tmsize_t TIFFTileRowSize(TIFF* tif);
[365] Fix | Delete
extern uint64 TIFFTileSize64(TIFF* tif);
[366] Fix | Delete
extern tmsize_t TIFFTileSize(TIFF* tif);
[367] Fix | Delete
extern uint64 TIFFVTileSize64(TIFF* tif, uint32 nrows);
[368] Fix | Delete
extern tmsize_t TIFFVTileSize(TIFF* tif, uint32 nrows);
[369] Fix | Delete
extern uint32 TIFFDefaultStripSize(TIFF* tif, uint32 request);
[370] Fix | Delete
extern void TIFFDefaultTileSize(TIFF*, uint32*, uint32*);
[371] Fix | Delete
extern int TIFFFileno(TIFF*);
[372] Fix | Delete
extern int TIFFSetFileno(TIFF*, int);
[373] Fix | Delete
extern thandle_t TIFFClientdata(TIFF*);
[374] Fix | Delete
extern thandle_t TIFFSetClientdata(TIFF*, thandle_t);
[375] Fix | Delete
extern int TIFFGetMode(TIFF*);
[376] Fix | Delete
extern int TIFFSetMode(TIFF*, int);
[377] Fix | Delete
extern int TIFFIsTiled(TIFF*);
[378] Fix | Delete
extern int TIFFIsByteSwapped(TIFF*);
[379] Fix | Delete
extern int TIFFIsUpSampled(TIFF*);
[380] Fix | Delete
extern int TIFFIsMSB2LSB(TIFF*);
[381] Fix | Delete
extern int TIFFIsBigEndian(TIFF*);
[382] Fix | Delete
extern TIFFReadWriteProc TIFFGetReadProc(TIFF*);
[383] Fix | Delete
extern TIFFReadWriteProc TIFFGetWriteProc(TIFF*);
[384] Fix | Delete
extern TIFFSeekProc TIFFGetSeekProc(TIFF*);
[385] Fix | Delete
extern TIFFCloseProc TIFFGetCloseProc(TIFF*);
[386] Fix | Delete
extern TIFFSizeProc TIFFGetSizeProc(TIFF*);
[387] Fix | Delete
extern TIFFMapFileProc TIFFGetMapFileProc(TIFF*);
[388] Fix | Delete
extern TIFFUnmapFileProc TIFFGetUnmapFileProc(TIFF*);
[389] Fix | Delete
extern uint32 TIFFCurrentRow(TIFF*);
[390] Fix | Delete
extern uint16 TIFFCurrentDirectory(TIFF*);
[391] Fix | Delete
extern uint16 TIFFNumberOfDirectories(TIFF*);
[392] Fix | Delete
extern uint64 TIFFCurrentDirOffset(TIFF*);
[393] Fix | Delete
extern uint32 TIFFCurrentStrip(TIFF*);
[394] Fix | Delete
extern uint32 TIFFCurrentTile(TIFF* tif);
[395] Fix | Delete
extern int TIFFReadBufferSetup(TIFF* tif, void* bp, tmsize_t size);
[396] Fix | Delete
extern int TIFFWriteBufferSetup(TIFF* tif, void* bp, tmsize_t size);
[397] Fix | Delete
extern int TIFFSetupStrips(TIFF *);
[398] Fix | Delete
extern int TIFFWriteCheck(TIFF*, int, const char *);
[399] Fix | Delete
extern void TIFFFreeDirectory(TIFF*);
[400] Fix | Delete
extern int TIFFCreateDirectory(TIFF*);
[401] Fix | Delete
extern int TIFFCreateCustomDirectory(TIFF*,const TIFFFieldArray*);
[402] Fix | Delete
extern int TIFFCreateEXIFDirectory(TIFF*);
[403] Fix | Delete
extern int TIFFLastDirectory(TIFF*);
[404] Fix | Delete
extern int TIFFSetDirectory(TIFF*, uint16);
[405] Fix | Delete
extern int TIFFSetSubDirectory(TIFF*, uint64);
[406] Fix | Delete
extern int TIFFUnlinkDirectory(TIFF*, uint16);
[407] Fix | Delete
extern int TIFFSetField(TIFF*, uint32, ...);
[408] Fix | Delete
extern int TIFFVSetField(TIFF*, uint32, va_list);
[409] Fix | Delete
extern int TIFFUnsetField(TIFF*, uint32);
[410] Fix | Delete
extern int TIFFWriteDirectory(TIFF *);
[411] Fix | Delete
extern int TIFFWriteCustomDirectory(TIFF *, uint64 *);
[412] Fix | Delete
extern int TIFFCheckpointDirectory(TIFF *);
[413] Fix | Delete
extern int TIFFRewriteDirectory(TIFF *);
[414] Fix | Delete
[415] Fix | Delete
#if defined(c_plusplus) || defined(__cplusplus)
[416] Fix | Delete
extern void TIFFPrintDirectory(TIFF*, FILE*, long = 0);
[417] Fix | Delete
extern int TIFFReadScanline(TIFF* tif, void* buf, uint32 row, uint16 sample = 0);
[418] Fix | Delete
extern int TIFFWriteScanline(TIFF* tif, void* buf, uint32 row, uint16 sample = 0);
[419] Fix | Delete
extern int TIFFReadRGBAImage(TIFF*, uint32, uint32, uint32*, int = 0);
[420] Fix | Delete
extern int TIFFReadRGBAImageOriented(TIFF*, uint32, uint32, uint32*,
[421] Fix | Delete
int = ORIENTATION_BOTLEFT, int = 0);
[422] Fix | Delete
#else
[423] Fix | Delete
extern void TIFFPrintDirectory(TIFF*, FILE*, long);
[424] Fix | Delete
extern int TIFFReadScanline(TIFF* tif, void* buf, uint32 row, uint16 sample);
[425] Fix | Delete
extern int TIFFWriteScanline(TIFF* tif, void* buf, uint32 row, uint16 sample);
[426] Fix | Delete
extern int TIFFReadRGBAImage(TIFF*, uint32, uint32, uint32*, int);
[427] Fix | Delete
extern int TIFFReadRGBAImageOriented(TIFF*, uint32, uint32, uint32*, int, int);
[428] Fix | Delete
#endif
[429] Fix | Delete
[430] Fix | Delete
extern int TIFFReadRGBAStrip(TIFF*, uint32, uint32 * );
[431] Fix | Delete
extern int TIFFReadRGBATile(TIFF*, uint32, uint32, uint32 * );
[432] Fix | Delete
extern int TIFFReadRGBAStripExt(TIFF*, uint32, uint32 *, int stop_on_error );
[433] Fix | Delete
extern int TIFFReadRGBATileExt(TIFF*, uint32, uint32, uint32 *, int stop_on_error );
[434] Fix | Delete
extern int TIFFRGBAImageOK(TIFF*, char [1024]);
[435] Fix | Delete
extern int TIFFRGBAImageBegin(TIFFRGBAImage*, TIFF*, int, char [1024]);
[436] Fix | Delete
extern int TIFFRGBAImageGet(TIFFRGBAImage*, uint32*, uint32, uint32);
[437] Fix | Delete
extern void TIFFRGBAImageEnd(TIFFRGBAImage*);
[438] Fix | Delete
extern TIFF* TIFFOpen(const char*, const char*);
[439] Fix | Delete
# ifdef __WIN32__
[440] Fix | Delete
extern TIFF* TIFFOpenW(const wchar_t*, const char*);
[441] Fix | Delete
# endif /* __WIN32__ */
[442] Fix | Delete
extern TIFF* TIFFFdOpen(int, const char*, const char*);
[443] Fix | Delete
extern TIFF* TIFFClientOpen(const char*, const char*,
[444] Fix | Delete
thandle_t,
[445] Fix | Delete
TIFFReadWriteProc, TIFFReadWriteProc,
[446] Fix | Delete
TIFFSeekProc, TIFFCloseProc,
[447] Fix | Delete
TIFFSizeProc,
[448] Fix | Delete
TIFFMapFileProc, TIFFUnmapFileProc);
[449] Fix | Delete
extern const char* TIFFFileName(TIFF*);
[450] Fix | Delete
extern const char* TIFFSetFileName(TIFF*, const char *);
[451] Fix | Delete
extern void TIFFError(const char*, const char*, ...) __attribute__((__format__ (__printf__,2,3)));
[452] Fix | Delete
extern void TIFFErrorExt(thandle_t, const char*, const char*, ...) __attribute__((__format__ (__printf__,3,4)));
[453] Fix | Delete
extern void TIFFWarning(const char*, const char*, ...) __attribute__((__format__ (__printf__,2,3)));
[454] Fix | Delete
extern void TIFFWarningExt(thandle_t, const char*, const char*, ...) __attribute__((__format__ (__printf__,3,4)));
[455] Fix | Delete
extern TIFFErrorHandler TIFFSetErrorHandler(TIFFErrorHandler);
[456] Fix | Delete
extern TIFFErrorHandlerExt TIFFSetErrorHandlerExt(TIFFErrorHandlerExt);
[457] Fix | Delete
extern TIFFErrorHandler TIFFSetWarningHandler(TIFFErrorHandler);
[458] Fix | Delete
extern TIFFErrorHandlerExt TIFFSetWarningHandlerExt(TIFFErrorHandlerExt);
[459] Fix | Delete
extern TIFFExtendProc TIFFSetTagExtender(TIFFExtendProc);
[460] Fix | Delete
extern uint32 TIFFComputeTile(TIFF* tif, uint32 x, uint32 y, uint32 z, uint16 s);
[461] Fix | Delete
extern int TIFFCheckTile(TIFF* tif, uint32 x, uint32 y, uint32 z, uint16 s);
[462] Fix | Delete
extern uint32 TIFFNumberOfTiles(TIFF*);
[463] Fix | Delete
extern tmsize_t TIFFReadTile(TIFF* tif, void* buf, uint32 x, uint32 y, uint32 z, uint16 s);
[464] Fix | Delete
extern tmsize_t TIFFWriteTile(TIFF* tif, void* buf, uint32 x, uint32 y, uint32 z, uint16 s);
[465] Fix | Delete
extern uint32 TIFFComputeStrip(TIFF*, uint32, uint16);
[466] Fix | Delete
extern uint32 TIFFNumberOfStrips(TIFF*);
[467] Fix | Delete
extern tmsize_t TIFFReadEncodedStrip(TIFF* tif, uint32 strip, void* buf, tmsize_t size);
[468] Fix | Delete
extern tmsize_t TIFFReadRawStrip(TIFF* tif, uint32 strip, void* buf, tmsize_t size);
[469] Fix | Delete
extern tmsize_t TIFFReadEncodedTile(TIFF* tif, uint32 tile, void* buf, tmsize_t size);
[470] Fix | Delete
extern tmsize_t TIFFReadRawTile(TIFF* tif, uint32 tile, void* buf, tmsize_t size);
[471] Fix | Delete
extern tmsize_t TIFFWriteEncodedStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc);
[472] Fix | Delete
extern tmsize_t TIFFWriteRawStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc);
[473] Fix | Delete
extern tmsize_t TIFFWriteEncodedTile(TIFF* tif, uint32 tile, void* data, tmsize_t cc);
[474] Fix | Delete
extern tmsize_t TIFFWriteRawTile(TIFF* tif, uint32 tile, void* data, tmsize_t cc);
[475] Fix | Delete
extern int TIFFDataWidth(TIFFDataType); /* table of tag datatype widths */
[476] Fix | Delete
extern void TIFFSetWriteOffset(TIFF* tif, toff_t off);
[477] Fix | Delete
extern void TIFFSwabShort(uint16*);
[478] Fix | Delete
extern void TIFFSwabLong(uint32*);
[479] Fix | Delete
extern void TIFFSwabLong8(uint64*);
[480] Fix | Delete
extern void TIFFSwabFloat(float*);
[481] Fix | Delete
extern void TIFFSwabDouble(double*);
[482] Fix | Delete
extern void TIFFSwabArrayOfShort(uint16* wp, tmsize_t n);
[483] Fix | Delete
extern void TIFFSwabArrayOfTriples(uint8* tp, tmsize_t n);
[484] Fix | Delete
extern void TIFFSwabArrayOfLong(uint32* lp, tmsize_t n);
[485] Fix | Delete
extern void TIFFSwabArrayOfLong8(uint64* lp, tmsize_t n);
[486] Fix | Delete
extern void TIFFSwabArrayOfFloat(float* fp, tmsize_t n);
[487] Fix | Delete
extern void TIFFSwabArrayOfDouble(double* dp, tmsize_t n);
[488] Fix | Delete
extern void TIFFReverseBits(uint8* cp, tmsize_t n);
[489] Fix | Delete
extern const unsigned char* TIFFGetBitRevTable(int);
[490] Fix | Delete
[491] Fix | Delete
#ifdef LOGLUV_PUBLIC
[492] Fix | Delete
#define U_NEU 0.210526316
[493] Fix | Delete
#define V_NEU 0.473684211
[494] Fix | Delete
#define UVSCALE 410.
[495] Fix | Delete
extern double LogL16toY(int);
[496] Fix | Delete
extern double LogL10toY(int);
[497] Fix | Delete
extern void XYZtoRGB24(float*, uint8*);
[498] Fix | Delete
extern int uv_decode(double*, double*, int);
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function