37#define DATATYPE_VOID 0
39#define DATATYPE_UINT 2
40#define DATATYPE_IEEEFP 3
70 {
setByteArray((
void**) fpp, (
void*) fp,
n,
sizeof (
float)); }
72 {
setByteArray((
void**) dpp, (
void*) dp,
n,
sizeof (
double)); }
83 ((
double*)*vpp)[nmemb] =
value;
94#define EXTRASAMPLE_COREL_UNASSALPHA 999
99 static const char module[] =
"setExtraSamples";
105 if (*
v > 0 && va ==
NULL)
107 for (
i = 0;
i < *
v;
i++) {
126 "ExtraSamples tag value is changing, "
127 "but TransferFunction was read with a different value. Cancelling it");
137#undef EXTRASAMPLE_COREL_UNASSALPHA
151 const char* ep =
s+slen;
154 for (;
cp < ep && *
cp !=
'\0';
cp++) {}
163 "%s: Invalid InkNames value; expecting %d names, found %d",
173 static const char module[] =
"_TIFFVSetField";
194 switch (standard_tag) {
278 "SamplesPerPixel tag value is changing, "
279 "but SMinSampleValue tag was read with a different value. Cancelling it");
287 "SamplesPerPixel tag value is changing, "
288 "but SMaxSampleValue tag was read with a different value. Cancelling it");
299 "SamplesPerPixel tag value is changing, "
300 "but TransferFunction was read with a different value. Cancelling it");
397 "Nonstandard tile width %d, convert file", v32);
408 "Nonstandard tile length %d, convert file", v32);
457 "%s: Sorry, cannot nest SubIFDs",
471 for (
i = 0;
i <
v;
i++)
498 int tv_size, iCustom;
511 "%s: Invalid %stag \"%s\" (not supported by codec)",
543 if (!new_customValues) {
545 "%s: Failed to allocate space for list of custom values",
566 "%s: Bad field type %d for \"%s\"",
605 if (tv->
count == 0) {
608 "%s: Null count for \"%s\" (type "
609 "%d, writecount %d, passcount %d)",
619 "custom tag binary object");
643 tv->
count * tv_size);
737 "%s: Bad value %u for \"%s\" tag",
747 "%s: Bad value %u for \"%s\" tag",
757 "%s: Bad value %f for \"%s\" tag",
792 "%s: Cannot modify tag \"%s\" while writing",
844 if( i < td->td_customValueCount )
910 "Truncating NumberOfInks from %u to %u",
920 switch (standard_tag) {
1112 "%s: Invalid %stag \"%s\" "
1113 "(not supported by codec)",
1257#define CleanupField(member) { \
1259 _TIFFfree(td->member); \
1390#ifdef STRIPBYTECOUNTSORTED_UNUSED
1391 td->td_stripbytecountsorted = 1;
1421 (*_TIFFextender)(tif);
1446 static const char module[] =
"TIFFAdvanceDirectory";
1456 poffb=poffa+
sizeof(
uint16);
1466 poffc=poffb+dircount*12;
1467 poffd=poffc+
sizeof(
uint32);
1468 if ((poffc<poffb)||(poffc<dircount*12)||(poffd<poffc)||(poffd<(
tmsize_t)
sizeof(
uint32))||(poffd>tif->
tif_size))
1486 poffb=poffa+
sizeof(
uint64);
1495 if (dircount64>0xFFFF)
1500 dircount16=(
uint16)dircount64;
1501 poffc=poffb+dircount16*20;
1502 poffd=poffc+
sizeof(
uint64);
1503 if ((poffc<poffb)||(poffc<dircount16*20)||(poffd<poffc)||(poffd<(
tmsize_t)
sizeof(
uint64))||(poffd>tif->
tif_size))
1522 if (!
SeekOK(tif, *nextdir) ||
1549 if (!
SeekOK(tif, *nextdir) ||
1557 if (dircount64>0xFFFF)
1562 dircount16 = (
uint16)dircount64;
1571 "%s: Error fetching directory link",
1588 static const char module[] =
"TIFFNumberOfDirectories";
1604 "Directory count exceeded 65535 limit,"
1605 " giving up on counting.");
1626 for (
n = dirn;
n > 0 && nextdir != 0;
n--)
1687 static const char module[] =
"TIFFUnlinkDirectory";
1694 "Can not unlink directory in read-only file");
1712 for (
n = dirn-1;
n > 0;
n--) {
1735 nextdir32=(
uint32)nextdir;
int strcmp(const char *String1, const char *String2)
ACPI_SIZE strlen(const char *String)
static unsigned char bytes[4]
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLfloat GLfloat GLfloat v2
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
uint64 * td_stripbytecount_p
uint16 td_samplesperpixel
uint32 td_stripoffsetbyteallocsize
double * td_sminsamplevalue
TIFFDirEntry td_stripoffset_entry
uint16 * td_transferfunction[3]
uint16 td_ycbcrpositioning
TIFFTagValue * td_customValues
double * td_smaxsamplevalue
unsigned long td_fieldsset[FIELD_SETLONGS]
uint64 * td_stripoffset_p
uint16 td_halftonehints[2]
TIFFDirEntry td_stripbytecount_entry
uint16 td_ycbcrsubsampling[2]
unsigned char field_oktochange
unsigned char field_passcount
const TIFFField * tif_foundfield
TIFFHeaderClassic classic
TIFFTagMethods tif_tagmethods
union tiff::@3478 tif_header
tmsize_t tif_rawdataloaded
TIFFPostMethod tif_postdecode
TIFFVoidMethod tif_cleanup
TIFFFieldArray * tif_fieldscompat
void * _TIFFCheckMalloc(TIFF *tif, tmsize_t nmemb, tmsize_t elem_size, const char *what)
float _TIFFClampDoubleToFloat(double val)
tmsize_t _TIFFMultiplySSize(TIFF *tif, tmsize_t first, tmsize_t second, const char *where)
int TIFFSetCompressionScheme(TIFF *tif, int scheme)
static int setExtraSamples(TIFF *tif, va_list ap, uint32 *v)
static void setDoubleArrayOneValue(double **vpp, double value, size_t nmemb)
static void _TIFFsetNString(char **cpp, char *cp, uint32 n)
void TIFFFreeDirectory(TIFF *tif)
static void _TIFFsetLong8Array(uint64 **lpp, uint64 *lp, uint32 n)
int TIFFSetSubDirectory(TIFF *tif, uint64 diroff)
int TIFFLastDirectory(TIFF *tif)
uint64 TIFFCurrentDirOffset(TIFF *tif)
static void setByteArray(void **vpp, void *vp, size_t nmemb, size_t elem_size)
void _TIFFsetDoubleArray(double **dpp, double *dp, uint32 n)
#define CleanupField(member)
int TIFFUnsetField(TIFF *tif, uint32 tag)
int TIFFDefaultDirectory(TIFF *tif)
static int _TIFFVGetField(TIFF *tif, uint32 tag, va_list ap)
int TIFFCreateDirectory(TIFF *tif)
int TIFFSetField(TIFF *tif, uint32 tag,...)
void _TIFFsetLongArray(uint32 **lpp, uint32 *lp, uint32 n)
int TIFFCreateCustomDirectory(TIFF *tif, const TIFFFieldArray *infoarray)
int TIFFCreateEXIFDirectory(TIFF *tif)
void _TIFFsetShortArray(uint16 **wpp, uint16 *wp, uint32 n)
static int TIFFAdvanceDirectory(TIFF *tif, uint64 *nextdir, uint64 *off)
static int OkToChangeTag(TIFF *tif, uint32 tag)
void _TIFFsetByteArray(void **vpp, void *vp, uint32 n)
int TIFFGetField(TIFF *tif, uint32 tag,...)
int TIFFSetDirectory(TIFF *tif, uint16 dirn)
#define EXTRASAMPLE_COREL_UNASSALPHA
TIFFExtendProc TIFFSetTagExtender(TIFFExtendProc extender)
int TIFFVGetField(TIFF *tif, uint32 tag, va_list ap)
static uint32 checkInkNamesString(TIFF *tif, uint32 slen, const char *s)
void _TIFFsetFloatArray(float **fpp, float *fp, uint32 n)
static TIFFExtendProc _TIFFextender
int TIFFUnlinkDirectory(TIFF *tif, uint16 dirn)
void _TIFFsetString(char **cpp, char *cp)
static int _TIFFVSetField(TIFF *tif, uint32 tag, va_list ap)
int TIFFVSetField(TIFF *tif, uint32 tag, va_list ap)
uint16 TIFFNumberOfDirectories(TIFF *tif)
#define FIELD_TRANSFERFUNCTION
#define FIELD_SMAXSAMPLEVALUE
#define FIELD_YCBCRSUBSAMPLING
#define FIELD_SMINSAMPLEVALUE
#define TIFFFieldSet(tif, field)
#define FIELD_TILEDIMENSIONS
#define FIELD_COMPRESSION
#define FIELD_YCBCRPOSITIONING
#define TIFFClrFieldBit(tif, field)
#define TIFFSetFieldBit(tif, field)
static const TIFFFieldArray exifFieldArray
const TIFFFieldArray * _TIFFGetFields(void)
static const TIFFFieldArray tiffFieldArray
const TIFFField * TIFFFindField(TIFF *tif, uint32 tag, TIFFDataType dt)
const TIFFField * TIFFFieldWithTag(TIFF *tif, uint32 tag)
void _TIFFSetupFields(TIFF *tif, const TIFFFieldArray *fieldarray)
int _TIFFDataSize(TIFFDataType type)
const TIFFFieldArray * _TIFFGetExifFields(void)
int _TIFFFillStriles(TIFF *tif)
int TIFFReadDirectory(TIFF *tif)
void TIFFErrorExt(thandle_t fd, const char *module, const char *fmt,...)
void _TIFFNoPostDecode(TIFF *tif, uint8 *buf, tmsize_t cc)
void _TIFFSwab32BitData(TIFF *tif, uint8 *buf, tmsize_t cc)
void _TIFFSwab16BitData(TIFF *tif, uint8 *buf, tmsize_t cc)
void _TIFFSwab64BitData(TIFF *tif, uint8 *buf, tmsize_t cc)
void _TIFFSwab24BitData(TIFF *tif, uint8 *buf, tmsize_t cc)
void TIFFSwabLong(uint32 *lp)
void TIFFSwabShort(uint16 *wp)
void TIFFSwabLong8(uint64 *lp)
void _TIFFmemset(void *p, int v, tmsize_t c)
void * _TIFFmalloc(tmsize_t s)
void _TIFFmemcpy(void *d, const void *s, tmsize_t c)
void * _TIFFrealloc(void *p, tmsize_t s)
void TIFFWarningExt(thandle_t fd, const char *module, const char *fmt,...)
#define TIFFTAG_BITSPERSAMPLE
#define PLANARCONFIG_SEPARATE
#define TIFFTAG_RESOLUTIONUNIT
#define EXTRASAMPLE_UNASSALPHA
#define YCBCRPOSITION_CENTERED
#define RESUNIT_CENTIMETER
#define EXTRASAMPLE_ASSOCALPHA
#define ORIENTATION_TOPLEFT
#define TIFFTAG_FILLORDER
#define TIFFTAG_SAMPLESPERPIXEL
#define TIFFTAG_YPOSITION
#define FILLORDER_LSB2MSB
#define SAMPLEFORMAT_COMPLEXINT
#define SAMPLEFORMAT_UINT
#define TIFFTAG_IMAGEDEPTH
#define TIFFTAG_PHOTOMETRIC
#define TIFFTAG_TILELENGTH
#define TIFFTAG_MAXSAMPLEVALUE
#define TIFFTAG_TILEDEPTH
#define TIFFTAG_EXTRASAMPLES
#define TIFFTAG_IMAGEWIDTH
#define TIFFTAG_XRESOLUTION
#define TIFFTAG_ORIENTATION
#define TIFFTAG_HALFTONEHINTS
#define TIFFTAG_MINSAMPLEVALUE
#define TIFFTAG_NUMBEROFINKS
#define SAMPLEFORMAT_IEEEFP
#define TIFFTAG_TRANSFERFUNCTION
#define TIFFTAG_YRESOLUTION
#define TIFFTAG_TILEBYTECOUNTS
#define TIFFTAG_STRIPBYTECOUNTS
#define TIFFTAG_SMINSAMPLEVALUE
#define TIFFTAG_YCBCRSUBSAMPLING
#define FILLORDER_MSB2LSB
#define TIFFTAG_TILEOFFSETS
#define TIFFTAG_ROWSPERSTRIP
#define ORIENTATION_LEFTBOT
#define TIFFTAG_SMAXSAMPLEVALUE
#define TIFFTAG_SAMPLEFORMAT
#define TIFFTAG_PERSAMPLE
#define SAMPLEFORMAT_COMPLEXIEEEFP
#define TIFFTAG_REFERENCEBLACKWHITE
#define TIFFTAG_TILEWIDTH
#define TIFFTAG_IMAGELENGTH
#define TIFFTAG_PAGENUMBER
#define THRESHHOLD_BILEVEL
#define TIFFTAG_COMPRESSION
#define TIFFTAG_PLANARCONFIG
#define TIFFTAG_STRIPOFFSETS
#define TIFFTAG_SUBFILETYPE
#define TIFFTAG_XPOSITION
#define SAMPLEFORMAT_VOID
#define TIFFTAG_YCBCRPOSITIONING
#define TIFFTAG_THRESHHOLDING
#define PLANARCONFIG_CONTIG
void(* TIFFExtendProc)(TIFF *)
#define WriteOK(tif, buf, size)
#define ReadOK(tif, buf, size)
#define TIFFSeekFile(tif, off, whence)
void int int ULONGLONG int va_list * ap