78#if !defined(__WIN32__) && (defined(_WIN32) || defined(WIN32))
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
95#if defined(USE_WIN32_FILEIO)
113#define TIFFPRINT_NONE 0x0
114#define TIFFPRINT_STRIPS 0x1
115#define TIFFPRINT_CURVES 0x2
116#define TIFFPRINT_COLORMAP 0x4
117#define TIFFPRINT_JPEGQTABLES 0x100
118#define TIFFPRINT_JPEGACTABLES 0x200
119#define TIFFPRINT_JPEGDCTABLES 0x200
126#define D65_X0 (95.0470F)
127#define D65_Y0 (100.0F)
128#define D65_Z0 (108.8827F)
130#define D50_X0 (96.4250F)
131#define D50_Y0 (100.0F)
132#define D50_Z0 (82.4680F)
165#define CIELABTORGB_TABLE_RANGE 1500
193 unsigned char*,
unsigned char*,
unsigned char*,
unsigned char*);
237#define TIFFGetR(abgr) ((abgr) & 0xff)
238#define TIFFGetG(abgr) (((abgr) >> 8) & 0xff)
239#define TIFFGetB(abgr) (((abgr) >> 16) & 0xff)
240#define TIFFGetA(abgr) (((abgr) >> 24) & 0xff)
261#define LOGLUV_PUBLIC 1
264#if !defined(__GNUC__) && !defined(__attribute__)
265# define __attribute__(x)
268#if defined(c_plusplus) || defined(__cplusplus)
307#define TIFF_ANY TIFF_NOTYPE
308#define TIFF_VARIABLE -1
310#define TIFF_VARIABLE2 -3
312#define FIELD_CUSTOM 65
417#if defined(c_plusplus) || defined(__cplusplus)
502#define U_NEU 0.210526316
503#define V_NEU 0.473684211
511#if defined(c_plusplus) || defined(__cplusplus)
528 float *,
float *,
float *);
555#if defined(c_plusplus) || defined(__cplusplus)
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
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
_In_ uint64_t _In_ uint64_t _In_ uint64_t _In_opt_ traverse_ptr * tp
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum GLuint GLenum GLsizei const GLchar * buf
const unsigned char size_t insize
unsigned char size_t * outsize
#define DECLARE_HANDLE(name)
unsigned char field_passcount
unsigned char field_oktochange
union _TIFFRGBAImage::@3464 put
void(* any)(TIFFRGBAImage *)
int(* get)(TIFFRGBAImage *, uint32 *, uint32, uint32)
tileSeparateRoutine separate
TIFF * TIFFOpenW(const wchar_t *name, const char *mode)
#define ORIENTATION_BOTLEFT
#define SGILOGENCODE_NODITHER
int TIFFRewriteDirectory(TIFF *)
tmsize_t TIFFTileSize(TIFF *tif)
int TIFFCreateDirectory(TIFF *)
tmsize_t TIFFWriteRawTile(TIFF *tif, uint32 tile, void *data, tmsize_t cc)
tmsize_t TIFFReadTile(TIFF *tif, void *buf, uint32 x, uint32 y, uint32 z, uint16 s)
TIFFSizeProc TIFFGetSizeProc(TIFF *)
tmsize_t TIFFStripSize(TIFF *tif)
tmsize_t TIFFVTileSize(TIFF *tif, uint32 nrows)
uint32 TIFFCurrentRow(TIFF *)
uint64 TIFFGetStrileOffsetWithErr(TIFF *tif, uint32 strile, int *pbErr)
void LogLuv32toXYZ(uint32, float *)
int TIFFCreateEXIFDirectory(TIFF *)
tmsize_t TIFFScanlineSize(TIFF *tif)
int TIFFReadBufferSetup(TIFF *tif, void *bp, tmsize_t size)
uint64 TIFFTileRowSize64(TIFF *tif)
void(* tileSeparateRoutine)(TIFFRGBAImage *, uint32 *, uint32, uint32, uint32, uint32, int32, int32, unsigned char *, unsigned char *, unsigned char *, unsigned char *)
void TIFFSwabArrayOfShort(uint16 *wp, tmsize_t n)
int TIFFReadFromUserBuffer(TIFF *tif, uint32 strile, void *inbuf, tmsize_t insize, void *outbuf, tmsize_t outsize)
int(* TIFFMapFileProc)(thandle_t, void **base, toff_t *size)
void TIFFSwabArrayOfDouble(double *dp, tmsize_t n)
int TIFFYCbCrToRGBInit(TIFFYCbCrToRGB *, float *, float *)
uint32 TIFFCurrentTile(TIFF *tif)
void TIFFSwabShort(uint16 *)
void void void void TIFFErrorHandler TIFFSetErrorHandler(TIFFErrorHandler)
int TIFFReadRGBAImage(TIFF *, uint32, uint32, uint32 *, int)
void(* TIFFPrintMethod)(TIFF *, FILE *, long)
uint64 TIFFGetStrileOffset(TIFF *tif, uint32 strile)
uint16 TIFFNumberOfDirectories(TIFF *)
void TIFFRGBAImageEnd(TIFFRGBAImage *)
tmsize_t TIFFTileRowSize(TIFF *tif)
tmsize_t TIFFRawStripSize(TIFF *tif, uint32 strip)
TIFF * TIFFClientOpen(const char *, const char *, thandle_t, TIFFReadWriteProc, TIFFReadWriteProc, TIFFSeekProc, TIFFCloseProc, TIFFSizeProc, TIFFMapFileProc, TIFFUnmapFileProc)
uint64 TIFFScanlineSize64(TIFF *tif)
tmsize_t TIFFWriteEncodedTile(TIFF *tif, uint32 tile, void *data, tmsize_t cc)
int TIFFReadRGBAImageOriented(TIFF *, uint32, uint32, uint32 *, int, int)
void(* TIFFErrorHandler)(const char *, const char *, va_list)
TIFFTagMethods * TIFFAccessTagMethods(TIFF *)
const TIFFCodec * TIFFFindCODEC(uint16)
int TIFFWriteScanline(TIFF *tif, void *buf, uint32 row, uint16 sample)
TIFFReadWriteProc TIFFGetWriteProc(TIFF *)
uint64 TIFFRawStripSize64(TIFF *tif, uint32 strip)
int LogL16fromY(double, int)
uint32 TIFFNumberOfStrips(TIFF *)
unsigned char TIFFRGBValue
void LogLuv24toXYZ(uint32, float *)
int TIFFSetFileno(TIFF *, int)
void TIFFYCbCrtoRGB(TIFFYCbCrToRGB *, uint32, int32, int32, uint32 *, uint32 *, uint32 *)
void void void void TIFFWarningExt(thandle_t, const char *, const char *,...) __attribute__((__format__(__printf__
TIFFCodec * TIFFRegisterCODEC(uint16, const char *, TIFFInitMethod)
int TIFFGetTagListCount(TIFF *)
void(* TIFFUnmapFileProc)(thandle_t, void *base, toff_t size)
int TIFFFlushData(TIFF *tif)
void void TIFFErrorExt(thandle_t, const char *, const char *,...) __attribute__((__format__(__printf__
tmsize_t TIFFReadRawTile(TIFF *tif, uint32 tile, void *buf, tmsize_t size)
const char * TIFFGetVersion(void)
int TIFFGetFieldDefaulted(TIFF *tif, uint32 tag,...)
const TIFFField * TIFFFieldWithName(TIFF *, const char *)
void TIFFSwabFloat(float *)
uint64 TIFFGetStrileByteCountWithErr(TIFF *tif, uint32 strile, int *pbErr)
uint32 LogLuv24fromXYZ(float *, int)
TIFFMapFileProc TIFFGetMapFileProc(TIFF *)
int TIFFIsUpSampled(TIFF *)
int TIFFDataWidth(TIFFDataType)
const TIFFField * TIFFFindField(TIFF *, uint32, TIFFDataType)
int TIFFRGBAImageOK(TIFF *, char[1024])
void TIFFSwabArrayOfTriples(uint8 *tp, tmsize_t n)
int TIFFReadRGBAStripExt(TIFF *, uint32, uint32 *, int stop_on_error)
int TIFFForceStrileArrayWriting(TIFF *)
int TIFFSetField(TIFF *, uint32,...)
void void void TIFFWarning(const char *, const char *,...) __attribute__((__format__(__printf__
void TIFFReverseBits(uint8 *cp, tmsize_t n)
void * TIFFGetClientInfo(TIFF *, const char *)
void TIFFClose(TIFF *tif)
int TIFFReadCustomDirectory(TIFF *tif, toff_t diroff, const TIFFFieldArray *infoarray)
uint64 TIFFRasterScanlineSize64(TIFF *tif)
int TIFFIsCODECConfigured(uint16)
tmsize_t TIFFReadEncodedStrip(TIFF *tif, uint32 strip, void *buf, tmsize_t size)
int TIFFSetupStrips(TIFF *)
TIFFErrorHandlerExt TIFFSetErrorHandlerExt(TIFFErrorHandlerExt)
int TIFFSetDirectory(TIFF *, uint16)
int TIFFVGetFieldDefaulted(TIFF *tif, uint32 tag, va_list ap)
int TIFFVSetField(TIFF *, uint32, va_list)
tmsize_t TIFFWriteTile(TIFF *tif, void *buf, uint32 x, uint32 y, uint32 z, uint16 s)
const char * TIFFFieldName(const TIFFField *)
void TIFFSetWriteOffset(TIFF *tif, toff_t off)
uint32 TIFFDefaultStripSize(TIFF *tif, uint32 request)
void * _TIFFcalloc(tmsize_t nmemb, tmsize_t siz)
TIFF * TIFFFdOpen(int, const char *, const char *)
int TIFFCheckTile(TIFF *tif, uint32 x, uint32 y, uint32 z, uint16 s)
int TIFFLastDirectory(TIFF *)
uint64 TIFFVTileSize64(TIFF *tif, uint32 nrows)
thandle_t TIFFSetClientdata(TIFF *, thandle_t)
TIFFCloseProc TIFFGetCloseProc(TIFF *)
uint64 TIFFCurrentDirOffset(TIFF *)
int TIFFWriteDirectory(TIFF *)
tmsize_t TIFFWriteRawStrip(TIFF *tif, uint32 strip, void *data, tmsize_t cc)
uint32 TIFFNumberOfTiles(TIFF *)
void _TIFFmemset(void *p, int v, tmsize_t c)
void * _TIFFmalloc(tmsize_t s)
int TIFFFieldReadCount(const TIFFField *)
tmsize_t TIFFReadEncodedTile(TIFF *tif, uint32 tile, void *buf, tmsize_t size)
void TIFFPrintDirectory(TIFF *, FILE *, long)
tmsize_t TIFFReadRawStrip(TIFF *tif, uint32 strip, void *buf, tmsize_t size)
void TIFFSwabDouble(double *)
toff_t(* TIFFSizeProc)(thandle_t)
uint32 LogLuv32fromXYZ(float *, int)
int TIFFWriteCheck(TIFF *, int, const char *)
int uv_decode(double *, double *, int)
int uv_encode(double, double, int)
uint64 TIFFGetStrileByteCount(TIFF *tif, uint32 strile)
TIFFDataType TIFFFieldDataType(const TIFFField *)
int TIFFReadRGBAStrip(TIFF *, uint32, uint32 *)
TIFFExtendProc TIFFSetTagExtender(TIFFExtendProc)
int TIFFReadRGBATile(TIFF *, uint32, uint32, uint32 *)
void TIFFCleanup(TIFF *tif)
int TIFFFieldWriteCount(const TIFFField *)
const TIFFField * TIFFFieldWithTag(TIFF *, uint32)
int TIFFWriteCustomDirectory(TIFF *, uint64 *)
void TIFFFreeDirectory(TIFF *)
int TIFFIsByteSwapped(TIFF *)
int TIFFRGBAImageGet(TIFFRGBAImage *, uint32 *, uint32, uint32)
TIFFReadWriteProc TIFFGetReadProc(TIFF *)
TIFF * TIFFOpen(const char *, const char *)
int TIFFUnsetField(TIFF *, uint32)
int TIFFSetSubDirectory(TIFF *, uint64)
int TIFFSetMode(TIFF *, int)
uint32 TIFFCurrentStrip(TIFF *)
int TIFFReadRGBATileExt(TIFF *, uint32, uint32, uint32 *, int stop_on_error)
TIFFSeekProc TIFFGetSeekProc(TIFF *)
void TIFFSwabArrayOfLong(uint32 *lp, tmsize_t n)
void(* TIFFExtendProc)(TIFF *)
void TIFFSetClientInfo(TIFF *, void *, const char *)
void(* tileContigRoutine)(TIFFRGBAImage *, uint32 *, uint32, uint32, uint32, uint32, int32, int32, unsigned char *)
int TIFFCheckpointDirectory(TIFF *)
int TIFFCreateCustomDirectory(TIFF *, const TIFFFieldArray *)
uint64 TIFFVStripSize64(TIFF *tif, uint32 nrows)
int TIFFDeferStrileArrayWriting(TIFF *)
int _TIFFmemcmp(const void *p1, const void *p2, tmsize_t c)
TIFFErrorHandlerExt TIFFSetWarningHandlerExt(TIFFErrorHandlerExt)
int TIFFGetField(TIFF *tif, uint32 tag,...)
const char * TIFFFileName(TIFF *)
uint32 TIFFComputeTile(TIFF *tif, uint32 x, uint32 y, uint32 z, uint16 s)
#define CIELABTORGB_TABLE_RANGE
int TIFFFieldPassCount(const TIFFField *)
thandle_t TIFFClientdata(TIFF *)
int TIFFWriteBufferSetup(TIFF *tif, void *bp, tmsize_t size)
int TIFFRGBAImageBegin(TIFFRGBAImage *, TIFF *, int, char[1024])
tmsize_t TIFFVStripSize(TIFF *tif, uint32 nrows)
int TIFFIsBigEndian(TIFF *)
void TIFFUnRegisterCODEC(TIFFCodec *)
void XYZtoRGB24(float *, uint8 *)
int TIFFMergeFieldInfo(TIFF *, const TIFFFieldInfo[], uint32)
int(* TIFFInitMethod)(TIFF *, int)
const unsigned char * TIFFGetBitRevTable(int)
int(* TIFFVGetMethod)(TIFF *, uint32, va_list)
TIFFUnmapFileProc TIFFGetUnmapFileProc(TIFF *)
int TIFFCIELabToRGBInit(TIFFCIELabToRGB *, const TIFFDisplay *, float *)
void(* TIFFErrorHandlerExt)(thandle_t, const char *, const char *, va_list)
void TIFFCIELabToXYZ(TIFFCIELabToRGB *, uint32, int32, int32, float *, float *, float *)
int TIFFVGetField(TIFF *tif, uint32 tag, va_list ap)
void TIFFXYZToRGB(TIFFCIELabToRGB *, float, float, float, uint32 *, uint32 *, uint32 *)
TIFFCodec * TIFFGetConfiguredCODECs(void)
int LogL10fromY(double, int)
int TIFFIsMSB2LSB(TIFF *)
int TIFFReadEXIFDirectory(TIFF *tif, toff_t diroff)
int TIFFUnlinkDirectory(TIFF *, uint16)
tmsize_t TIFFWriteEncodedStrip(TIFF *tif, uint32 strip, void *data, tmsize_t cc)
int TIFFReadDirectory(TIFF *tif)
uint16 TIFFCurrentDirectory(TIFF *)
uint32 TIFFGetTagListEntry(TIFF *, int tag_index)
void TIFFError(const char *, const char *,...) __attribute__((__format__(__printf__
tmsize_t TIFFRasterScanlineSize(TIFF *tif)
uint32 TIFFFieldTag(const TIFFField *)
void TIFFSwabLong8(uint64 *)
void TIFFDefaultTileSize(TIFF *, uint32 *, uint32 *)
tmsize_t(* TIFFReadWriteProc)(thandle_t, void *, tmsize_t)
void _TIFFmemcpy(void *d, const void *s, tmsize_t c)
TIFFErrorHandler TIFFSetWarningHandler(TIFFErrorHandler)
uint32 TIFFComputeStrip(TIFF *, uint32, uint16)
void TIFFSwabLong(uint32 *)
toff_t(* TIFFSeekProc)(thandle_t, toff_t, int)
void TIFFSwabArrayOfFloat(float *fp, tmsize_t n)
void TIFFSwabArrayOfLong8(uint64 *lp, tmsize_t n)
int TIFFReadScanline(TIFF *tif, void *buf, uint32 row, uint16 sample)
uint64 TIFFTileSize64(TIFF *tif)
const char * TIFFSetFileName(TIFF *, const char *)
uint64 TIFFStripSize64(TIFF *tif)
int(* TIFFVSetMethod)(TIFF *, uint32, va_list)
int(* TIFFCloseProc)(thandle_t)
void * _TIFFrealloc(void *p, tmsize_t s)
void int int ULONGLONG int va_list * ap