37 #define DATATYPE_VOID 0 38 #define DATATYPE_INT 1 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;
static void _TIFFsetNString(char **cpp, char *cp, uint32 n)
#define TIFFTAG_SUBFILETYPE
TIFFTagMethods tif_tagmethods
void _TIFFsetString(char **cpp, char *cp)
void _TIFFsetLongArray(uint32 **lpp, uint32 *lp, uint32 n)
void _TIFFmemset(void *p, int v, tmsize_t c)
uint16 td_ycbcrpositioning
uint64 TIFFCurrentDirOffset(TIFF *tif)
int TIFFReadDirectory(TIFF *tif)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
#define TIFFClrFieldBit(tif, field)
void _TIFFSwab64BitData(TIFF *tif, uint8 *buf, tmsize_t cc)
#define TIFFTAG_BITSPERSAMPLE
void TIFFWarningExt(thandle_t fd, const char *module, const char *fmt,...)
static void setByteArray(void **vpp, void *vp, size_t nmemb, size_t elem_size)
#define TIFFTAG_ROWSPERSTRIP
int TIFFLastDirectory(TIFF *tif)
union tiff::@3406 tif_header
#define TIFFTAG_STRIPBYTECOUNTS
#define THRESHHOLD_BILEVEL
ACPI_SIZE strlen(const char *String)
static int _TIFFVGetField(TIFF *tif, uint32 tag, va_list ap)
#define TIFFTAG_EXTRASAMPLES
#define WriteOK(tif, buf, size)
#define TIFFTAG_ORIENTATION
int TIFFSetSubDirectory(TIFF *tif, uint64 diroff)
#define TIFFSeekFile(tif, off, whence)
#define TIFFTAG_IMAGEWIDTH
#define TIFFTAG_YRESOLUTION
static int OkToChangeTag(TIFF *tif, uint32 tag)
#define TIFFTAG_MINSAMPLEVALUE
#define TIFFTAG_FILLORDER
static const TIFFFieldArray tiffFieldArray
TIFFTagValue * td_customValues
static void setDoubleArrayOneValue(double **vpp, double value, size_t nmemb)
uint16 td_halftonehints[2]
#define FILLORDER_LSB2MSB
uint64 * td_stripbytecount_p
static int _TIFFVSetField(TIFF *tif, uint32 tag, va_list ap)
const TIFFFieldArray * _TIFFGetFields(void)
#define TIFFTAG_STRIPOFFSETS
#define TIFFTAG_THRESHHOLDING
#define TIFFTAG_YCBCRSUBSAMPLING
#define TIFFTAG_YPOSITION
#define TIFFTAG_SMINSAMPLEVALUE
#define TIFFTAG_REFERENCEBLACKWHITE
#define TIFFTAG_PLANARCONFIG
#define ORIENTATION_TOPLEFT
#define FIELD_YCBCRSUBSAMPLING
int TIFFUnsetField(TIFF *tif, uint32 tag)
int TIFFSetDirectory(TIFF *tif, uint16 dirn)
#define FIELD_SMAXSAMPLEVALUE
#define TIFFTAG_PERSAMPLE
#define TIFFTAG_TILEBYTECOUNTS
#define FIELD_TRANSFERFUNCTION
int TIFFGetField(TIFF *tif, uint32 tag,...)
void _TIFFSwab32BitData(TIFF *tif, uint8 *buf, tmsize_t cc)
#define TIFFSetFieldBit(tif, field)
static unsigned char bytes[4]
#define TIFFTAG_YCBCRPOSITIONING
#define TIFFTAG_TILEWIDTH
TIFFDirEntry td_stripbytecount_entry
void * _TIFFCheckMalloc(TIFF *tif, tmsize_t nmemb, tmsize_t elem_size, const char *what)
int TIFFCreateCustomDirectory(TIFF *tif, const TIFFFieldArray *infoarray)
#define YCBCRPOSITION_CENTERED
void _TIFFsetFloatArray(float **fpp, float *fp, uint32 n)
#define TIFFTAG_TILELENGTH
static TIFFExtendProc _TIFFextender
#define TIFFTAG_IMAGELENGTH
#define TIFFTAG_TILEOFFSETS
#define TIFFTAG_SAMPLESPERPIXEL
TIFFFieldArray * tif_fieldscompat
#define SAMPLEFORMAT_VOID
double * td_sminsamplevalue
int TIFFVGetField(TIFF *tif, uint32 tag, va_list ap)
#define EXTRASAMPLE_COREL_UNASSALPHA
void * _TIFFmalloc(tmsize_t s)
#define CleanupField(member)
uint16 TIFFNumberOfDirectories(TIFF *tif)
void TIFFFreeDirectory(TIFF *tif)
unsigned char field_passcount
int TIFFVSetField(TIFF *tif, uint32 tag, va_list ap)
void _TIFFSetupFields(TIFF *tif, const TIFFFieldArray *fieldarray)
#define SAMPLEFORMAT_COMPLEXIEEEFP
#define SAMPLEFORMAT_UINT
void TIFFSwabShort(uint16 *wp)
static uint32 checkInkNamesString(TIFF *tif, uint32 slen, const char *s)
int TIFFUnlinkDirectory(TIFF *tif, uint16 dirn)
#define RESUNIT_CENTIMETER
#define SAMPLEFORMAT_IEEEFP
TIFFPostMethod tif_postdecode
#define TIFFTAG_XPOSITION
#define TIFFTAG_HALFTONEHINTS
void _TIFFSwab24BitData(TIFF *tif, uint8 *buf, tmsize_t cc)
void TIFFErrorExt(thandle_t fd, const char *module, const char *fmt,...)
double * td_smaxsamplevalue
#define TIFFTAG_PHOTOMETRIC
static int TIFFAdvanceDirectory(TIFF *tif, uint64 *nextdir, uint64 *off)
#define EXTRASAMPLE_UNASSALPHA
#define TIFFFieldSet(tif, field)
#define TIFFTAG_PAGENUMBER
static void _TIFFsetLong8Array(uint64 **lpp, uint64 *lp, uint32 n)
void _TIFFsetByteArray(void **vpp, void *vp, uint32 n)
#define FIELD_COMPRESSION
#define FIELD_SMINSAMPLEVALUE
tmsize_t tif_rawdataloaded
void(* TIFFExtendProc)(TIFF *)
void * _TIFFrealloc(void *p, tmsize_t s)
#define TIFFTAG_TRANSFERFUNCTION
#define TIFFTAG_COMPRESSION
#define PLANARCONFIG_SEPARATE
TIFFVoidMethod tif_cleanup
const TIFFFieldArray * _TIFFGetExifFields(void)
void _TIFFNoPostDecode(TIFF *tif, uint8 *buf, tmsize_t cc)
void _TIFFSwab16BitData(TIFF *tif, uint8 *buf, tmsize_t cc)
GLsizei const GLfloat * value
#define TIFFTAG_NUMBEROFINKS
const TIFFField * TIFFFieldWithTag(TIFF *tif, uint32 tag)
unsigned char field_oktochange
#define TIFFTAG_SMAXSAMPLEVALUE
#define FIELD_YCBCRPOSITIONING
GLfloat GLfloat GLfloat v2
float _TIFFClampDoubleToFloat(double val)
int _TIFFDataSize(TIFFDataType type)
#define TIFFTAG_TILEDEPTH
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
#define TIFFTAG_IMAGEDEPTH
#define TIFFTAG_RESOLUTIONUNIT
void TIFFSwabLong(uint32 *lp)
uint16 td_ycbcrsubsampling[2]
#define TIFFTAG_XRESOLUTION
TIFFDirEntry td_stripoffset_entry
#define FIELD_TILEDIMENSIONS
int TIFFSetCompressionScheme(TIFF *tif, int scheme)
tmsize_t _TIFFMultiplySSize(TIFF *tif, tmsize_t first, tmsize_t second, const char *where)
uint16 * td_transferfunction[3]
TIFFExtendProc TIFFSetTagExtender(TIFFExtendProc extender)
#define SAMPLEFORMAT_COMPLEXINT
uint64 * td_stripoffset_p
int TIFFCreateEXIFDirectory(TIFF *tif)
unsigned long td_fieldsset[FIELD_SETLONGS]
uint32 td_stripoffsetbyteallocsize
int TIFFDefaultDirectory(TIFF *tif)
void _TIFFsetShortArray(uint16 **wpp, uint16 *wp, uint32 n)
void int int ULONGLONG int va_list * ap
#define ReadOK(tif, buf, size)
const TIFFField * TIFFFindField(TIFF *tif, uint32 tag, TIFFDataType dt)
int strcmp(const char *String1, const char *String2)
uint16 td_samplesperpixel
TIFFHeaderClassic classic
static int setExtraSamples(TIFF *tif, va_list ap, uint32 *v)
int TIFFCreateDirectory(TIFF *tif)
const TIFFField * tif_foundfield
#define TIFFTAG_SAMPLEFORMAT
#define EXTRASAMPLE_ASSOCALPHA
void _TIFFsetDoubleArray(double **dpp, double *dp, uint32 n)
#define ORIENTATION_LEFTBOT
static SERVICE_STATUS status
int TIFFSetField(TIFF *tif, uint32 tag,...)
void _TIFFmemcpy(void *d, const void *s, tmsize_t c)
static const TIFFFieldArray exifFieldArray
#define FILLORDER_MSB2LSB
#define TIFFTAG_MAXSAMPLEVALUE
void TIFFSwabLong8(uint64 *lp)
#define PLANARCONFIG_CONTIG
int _TIFFFillStriles(TIFF *tif)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *