70 #if !defined(__WIN32__) && (defined(_WIN32) || defined(WIN32)) 81 #if defined(_WINDOWS) || defined(__WIN32__) || defined(_Windows) 82 # if !defined(__CYGWIN) && !defined(AVOID_WIN32_FILEIO) && !defined(USE_WIN32_FILEIO) 83 # define AVOID_WIN32_FILEIO 87 #if defined(USE_WIN32_FILEIO) 100 # define NULL (void *)0 109 #define TIFFPRINT_NONE 0x0 110 #define TIFFPRINT_STRIPS 0x1 111 #define TIFFPRINT_CURVES 0x2 112 #define TIFFPRINT_COLORMAP 0x4 113 #define TIFFPRINT_JPEGQTABLES 0x100 114 #define TIFFPRINT_JPEGACTABLES 0x200 115 #define TIFFPRINT_JPEGDCTABLES 0x200 122 #define D65_X0 (95.0470F) 123 #define D65_Y0 (100.0F) 124 #define D65_Z0 (108.8827F) 126 #define D50_X0 (96.4250F) 127 #define D50_Y0 (100.0F) 128 #define D50_Z0 (82.4680F) 161 #define CIELABTORGB_TABLE_RANGE 1500 189 unsigned char*,
unsigned char*,
unsigned char*,
unsigned char*);
229 #define TIFFGetR(abgr) ((abgr) & 0xff) 230 #define TIFFGetG(abgr) (((abgr) >> 8) & 0xff) 231 #define TIFFGetB(abgr) (((abgr) >> 16) & 0xff) 232 #define TIFFGetA(abgr) (((abgr) >> 24) & 0xff) 252 #ifndef LOGLUV_PUBLIC 253 #define LOGLUV_PUBLIC 1 256 #if defined(c_plusplus) || defined(__cplusplus) 294 #define TIFF_ANY TIFF_NOTYPE 295 #define TIFF_VARIABLE -1 297 #define TIFF_VARIABLE2 -3 299 #define FIELD_CUSTOM 65 402 #if defined(c_plusplus) || defined(__cplusplus) 423 extern TIFF*
TIFFOpen(
const char*,
const char*);
425 extern TIFF*
TIFFOpenW(
const wchar_t*,
const char*);
427 extern TIFF*
TIFFFdOpen(
int,
const char*,
const char*);
436 extern void TIFFError(
const char*,
const char*, ...);
437 extern void TIFFErrorExt(thandle_t,
const char*,
const char*, ...);
438 extern void TIFFWarning(
const char*,
const char*, ...);
439 extern void TIFFWarningExt(thandle_t,
const char*,
const char*, ...);
449 tdata_t, uint32, uint32, uint32,
tsample_t);
451 tdata_t, uint32, uint32, uint32,
tsample_t);
475 #define U_NEU 0.210526316 476 #define V_NEU 0.473684211 481 extern int uv_decode(
double*,
double*,
int);
484 #if defined(c_plusplus) || defined(__cplusplus) 493 extern int uv_encode(
double,
double,
int);
501 float *,
float *,
float *);
503 uint32 *, uint32 *, uint32 *);
507 uint32 *, uint32 *, uint32 *);
509 #if defined(c_plusplus) || defined(__cplusplus) int TIFFIsBigEndian(TIFF *)
int _TIFFmemcmp(const tdata_t, const tdata_t, tsize_t)
tsize_t TIFFReadTile(TIFF *, tdata_t, uint32, uint32, uint32, tsample_t)
void TIFFSwabArrayOfTriples(uint8 *, unsigned long)
int TIFFLastDirectory(TIFF *)
tsize_t TIFFWriteRawTile(TIFF *, ttile_t, tdata_t, tsize_t)
void * TIFFGetClientInfo(TIFF *, const char *)
int TIFFRewriteDirectory(TIFF *)
ttag_t TIFFGetTagListEntry(TIFF *, int tag_index)
int TIFFSetSubDirectory(TIFF *, uint32)
int(* TIFFCloseProc)(thandle_t)
tstrip_t TIFFNumberOfStrips(TIFF *)
int TIFFCheckTile(TIFF *, uint32, uint32, uint32, tsample_t)
tsize_t TIFFWriteTile(TIFF *, tdata_t, uint32, uint32, uint32, tsample_t)
int TIFFVSetField(TIFF *, ttag_t, va_list)
int TIFFCreateDirectory(TIFF *)
void TIFFCIELabToXYZ(TIFFCIELabToRGB *, uint32, int32, int32, float *, float *, float *)
tsize_t TIFFReadRawTile(TIFF *, ttile_t, tdata_t, tsize_t)
struct _TIFFTagValue TIFFTagValue
int TIFFGetField(TIFF *, ttag_t,...)
tdata_t _TIFFrealloc(tdata_t, tsize_t)
int TIFFReadCustomDirectory(TIFF *, toff_t, const TIFFFieldInfo[], size_t)
void TIFFPrintDirectory(TIFF *, FILE *, long)
int TIFFSetFileno(TIFF *, int)
tdata_t _TIFFmalloc(tsize_t)
DECLARE_HANDLE(HPBUFFERARB)
TIFFErrorHandler TIFFSetWarningHandler(TIFFErrorHandler)
void TIFFUnRegisterCODEC(TIFFCodec *)
int TIFFSetField(TIFF *, ttag_t,...)
tsize_t TIFFWriteEncodedStrip(TIFF *, tstrip_t, tdata_t, tsize_t)
TIFF * TIFFClientOpen(const char *, const char *, thandle_t, TIFFReadWriteProc, TIFFReadWriteProc, TIFFSeekProc, TIFFCloseProc, TIFFSizeProc, TIFFMapFileProc, TIFFUnmapFileProc)
int TIFFGetFieldDefaulted(TIFF *, ttag_t,...)
void TIFFSetClientInfo(TIFF *, void *, const char *)
tsize_t TIFFVTileSize(TIFF *, uint32)
void TIFFSwabLong(uint32 *)
uint32 TIFFDefaultStripSize(TIFF *, uint32)
tsize_t TIFFStripSize(TIFF *)
TIFFExtendProc TIFFSetTagExtender(TIFFExtendProc)
void(* TIFFErrorHandler)(const char *, const char *, va_list)
int TIFFReadRGBAImage(TIFF *, uint32, uint32, uint32 *, int)
const char * TIFFFileName(TIFF *)
int(* TIFFInitMethod)(TIFF *, int)
int TIFFWriteCheck(TIFF *, int, const char *)
unsigned char TIFFRGBValue
TIFFReadWriteProc TIFFGetReadProc(TIFF *)
tdir_t TIFFNumberOfDirectories(TIFF *)
uint32 TIFFCurrentDirOffset(TIFF *)
int TIFFCheckpointDirectory(TIFF *)
TIFFSizeProc TIFFGetSizeProc(TIFF *)
void TIFFDefaultTileSize(TIFF *, uint32 *, uint32 *)
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
void(* tileContigRoutine)(TIFFRGBAImage *, uint32 *, uint32, uint32, uint32, uint32, int32, int32, unsigned char *)
TIFFMapFileProc TIFFGetMapFileProc(TIFF *)
TIFFReadWriteProc TIFFGetWriteProc(TIFF *)
int TIFFRGBAImageBegin(TIFFRGBAImage *, TIFF *, int, char [1024])
TIFF * TIFFFdOpen(int, const char *, const char *)
int TIFFReassignTagToIgnore(enum TIFFIgnoreSense, int)
void TIFFReverseBits(unsigned char *, unsigned long)
TIFFCodec * TIFFGetConfiguredCODECs(void)
Get list of configured codecs, both built-in and registered by user.
int TIFFReadScanline(TIFF *, tdata_t, uint32, tsample_t)
int TIFFUnlinkDirectory(TIFF *, tdir_t)
int TIFFReadBufferSetup(TIFF *, tdata_t, tsize_t)
const TIFFFieldInfo * info
png_infop png_charp png_int_32 * X0
void TIFFMergeFieldInfo(TIFF *, const TIFFFieldInfo[], int)
int TIFFReadRGBATile(TIFF *, uint32, uint32, uint32 *)
toff_t(* TIFFSeekProc)(thandle_t, toff_t, int)
int TIFFVGetFieldDefaulted(TIFF *, ttag_t, va_list)
void(* TIFFUnmapFileProc)(thandle_t, tdata_t, toff_t)
toff_t(* TIFFSizeProc)(thandle_t)
thandle_t TIFFClientdata(TIFF *)
unsigned char field_passcount
int TIFFWriteDirectory(TIFF *)
int uv_decode(double *, double *, int)
tstrip_t TIFFCurrentStrip(TIFF *)
ttile_t TIFFNumberOfTiles(TIFF *)
#define CIELABTORGB_TABLE_RANGE
void TIFFError(const char *, const char *,...)
TIFFCodec * TIFFRegisterCODEC(uint16, const char *, TIFFInitMethod)
tsize_t TIFFRasterScanlineSize(TIFF *)
TIFFErrorHandlerExt TIFFSetErrorHandlerExt(TIFFErrorHandlerExt)
tsize_t TIFFReadRawStrip(TIFF *, tstrip_t, tdata_t, tsize_t)
void TIFFErrorExt(thandle_t, const char *, const char *,...)
void TIFFSwabArrayOfLong(uint32 *, unsigned long)
TIFF * TIFFOpenW(const wchar_t *name, const char *mode)
int TIFFReadRGBAStrip(TIFF *, tstrip_t, uint32 *)
tsize_t TIFFReadEncodedTile(TIFF *, ttile_t, tdata_t, tsize_t)
int TIFFWriteScanline(TIFF *, tdata_t, uint32, tsample_t)
tsize_t(* TIFFReadWriteProc)(thandle_t, tdata_t, tsize_t)
typedef long(ZCALLBACK *tell_file_func) OF((voidpf opaque
tsize_t TIFFScanlineSize(TIFF *)
tsize_t TIFFVStripSize(TIFF *, uint32)
tsize_t TIFFReadEncodedStrip(TIFF *, tstrip_t, tdata_t, tsize_t)
ttile_t TIFFCurrentTile(TIFF *)
int TIFFSetupStrips(TIFF *)
void TIFFXYZToRGB(TIFFCIELabToRGB *, float, float, float, uint32 *, uint32 *, uint32 *)
int LogL10fromY(double, int)
TIFFUnmapFileProc TIFFGetUnmapFileProc(TIFF *)
void TIFFSwabArrayOfDouble(double *, unsigned long)
const TIFFFieldInfo * TIFFFieldWithName(TIFF *, const char *)
TIFF * TIFFOpen(const char *, const char *)
void TIFFClose(TIFF *)
Close a previously opened TIFF file.
tdir_t TIFFCurrentDirectory(TIFF *)
int(* TIFFMapFileProc)(thandle_t, tdata_t *, toff_t *)
tsize_t TIFFTileRowSize(TIFF *)
uint32 LogLuv32fromXYZ(float *, int)
TIFFCloseProc TIFFGetCloseProc(TIFF *)
void(* TIFFExtendProc)(TIFF *)
void(* TIFFErrorHandlerExt)(thandle_t, const char *, const char *, va_list)
TIFFTagMethods * TIFFAccessTagMethods(TIFF *)
int TIFFWriteBufferSetup(TIFF *, tdata_t, tsize_t)
#define SGILOGENCODE_NODITHER
int TIFFReadEXIFDirectory(TIFF *, toff_t)
tsize_t TIFFWriteRawStrip(TIFF *, tstrip_t, tdata_t, tsize_t)
int TIFFCIELabToRGBInit(TIFFCIELabToRGB *, TIFFDisplay *, float *)
int TIFFGetTagListCount(TIFF *)
void TIFFWarning(const char *, const char *,...)
const char * TIFFGetVersion(void)
const char * TIFFSetFileName(TIFF *, const char *)
void LogLuv32toXYZ(uint32, float *)
void TIFFSetWriteOffset(TIFF *, toff_t)
void(* TIFFPrintMethod)(TIFF *, FILE *, long)
int TIFFIsUpSampled(TIFF *)
void XYZtoRGB24(float *, uint8 *)
int uv_encode(double, double, int)
int TIFFYCbCrToRGBInit(TIFFYCbCrToRGB *, float *, float *)
int TIFFFlushData(TIFF *)
ttile_t TIFFComputeTile(TIFF *, uint32, uint32, uint32, tsample_t)
uint32 LogLuv24fromXYZ(float *, int)
int LogL16fromY(double, int)
void LogLuv24toXYZ(uint32, float *)
int TIFFRGBAImageGet(TIFFRGBAImage *, uint32 *, uint32, uint32)
const TIFFFieldInfo * TIFFFindFieldInfoByName(TIFF *, const char *, TIFFDataType)
tileSeparateRoutine separate
void _TIFFmemset(tdata_t, int, tsize_t)
void TIFFWarningExt(thandle_t, const char *, const char *,...)
int(* TIFFVGetMethod)(TIFF *, ttag_t, va_list)
const TIFFFieldInfo * TIFFFieldWithTag(TIFF *, ttag_t)
void TIFFYCbCrtoRGB(TIFFYCbCrToRGB *, uint32, int32, int32, uint32 *, uint32 *, uint32 *)
TIFFErrorHandlerExt TIFFSetWarningHandlerExt(TIFFErrorHandlerExt)
int TIFFSetDirectory(TIFF *, tdir_t)
int TIFFDataWidth(TIFFDataType)
unsigned char field_oktochange
int TIFFSetMode(TIFF *, int)
tsize_t TIFFRawStripSize(TIFF *, tstrip_t)
int TIFFReadDirectory(TIFF *)
void TIFFCleanup(TIFF *)
Auxiliary function to free the TIFF structure.
thandle_t TIFFSetClientdata(TIFF *, thandle_t)
int TIFFIsCODECConfigured(uint16)
Check whether we have working codec for the specific coding scheme.
void(* tileSeparateRoutine)(TIFFRGBAImage *, uint32 *, uint32, uint32, uint32, uint32, int32, int32, unsigned char *, unsigned char *, unsigned char *, unsigned char *)
void TIFFFreeDirectory(TIFF *)
const TIFFCodec * TIFFFindCODEC(uint16)
int TIFFReadRGBAImageOriented(TIFF *, uint32, uint32, uint32 *, int, int)
int TIFFRGBAImageOK(TIFF *, char [1024])
uint32 TIFFCurrentRow(TIFF *)
int TIFFIsMSB2LSB(TIFF *)
void TIFFSwabArrayOfShort(uint16 *, unsigned long)
int TIFFVGetField(TIFF *, ttag_t, va_list)
TIFFSeekProc TIFFGetSeekProc(TIFF *)
tstrip_t TIFFComputeStrip(TIFF *, uint32, tsample_t)
const TIFFFieldInfo * TIFFFindFieldInfo(TIFF *, ttag_t, TIFFDataType)
int(* TIFFVSetMethod)(TIFF *, ttag_t, va_list)
void TIFFRGBAImageEnd(TIFFRGBAImage *)
tsize_t TIFFTileSize(TIFF *)
void _TIFFmemcpy(tdata_t, const tdata_t, tsize_t)
TIFFErrorHandler TIFFSetErrorHandler(TIFFErrorHandler)
void TIFFSwabDouble(double *)
#define ORIENTATION_BOTLEFT
int TIFFIsByteSwapped(TIFF *)
void TIFFSwabShort(uint16 *)
const unsigned char * TIFFGetBitRevTable(int)
tsize_t TIFFWriteEncodedTile(TIFF *, ttile_t, tdata_t, tsize_t)