Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../usr/include
File: tiff.h
/* $Id: tiff.h,v 1.70 2016-01-23 21:20:34 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 _TIFF_
[26] Fix | Delete
#define _TIFF_
[27] Fix | Delete
[28] Fix | Delete
#include "tiffconf.h"
[29] Fix | Delete
[30] Fix | Delete
/*
[31] Fix | Delete
* Tag Image File Format (TIFF)
[32] Fix | Delete
*
[33] Fix | Delete
* Based on Rev 6.0 from:
[34] Fix | Delete
* Developer's Desk
[35] Fix | Delete
* Aldus Corporation
[36] Fix | Delete
* 411 First Ave. South
[37] Fix | Delete
* Suite 200
[38] Fix | Delete
* Seattle, WA 98104
[39] Fix | Delete
* 206-622-5500
[40] Fix | Delete
*
[41] Fix | Delete
* (http://partners.adobe.com/asn/developer/PDFS/TN/TIFF6.pdf)
[42] Fix | Delete
*
[43] Fix | Delete
* For BigTIFF design notes see the following links
[44] Fix | Delete
* http://www.remotesensing.org/libtiff/bigtiffdesign.html
[45] Fix | Delete
* http://www.awaresystems.be/imaging/tiff/bigtiff.html
[46] Fix | Delete
*/
[47] Fix | Delete
[48] Fix | Delete
#define TIFF_VERSION_CLASSIC 42
[49] Fix | Delete
#define TIFF_VERSION_BIG 43
[50] Fix | Delete
[51] Fix | Delete
#define TIFF_BIGENDIAN 0x4d4d
[52] Fix | Delete
#define TIFF_LITTLEENDIAN 0x4949
[53] Fix | Delete
#define MDI_LITTLEENDIAN 0x5045
[54] Fix | Delete
#define MDI_BIGENDIAN 0x4550
[55] Fix | Delete
[56] Fix | Delete
/*
[57] Fix | Delete
* Intrinsic data types required by the file format:
[58] Fix | Delete
*
[59] Fix | Delete
* 8-bit quantities int8/uint8
[60] Fix | Delete
* 16-bit quantities int16/uint16
[61] Fix | Delete
* 32-bit quantities int32/uint32
[62] Fix | Delete
* 64-bit quantities int64/uint64
[63] Fix | Delete
* strings unsigned char*
[64] Fix | Delete
*/
[65] Fix | Delete
[66] Fix | Delete
typedef TIFF_INT8_T int8;
[67] Fix | Delete
typedef TIFF_UINT8_T uint8;
[68] Fix | Delete
[69] Fix | Delete
typedef TIFF_INT16_T int16;
[70] Fix | Delete
typedef TIFF_UINT16_T uint16;
[71] Fix | Delete
[72] Fix | Delete
typedef TIFF_INT32_T int32;
[73] Fix | Delete
typedef TIFF_UINT32_T uint32;
[74] Fix | Delete
[75] Fix | Delete
typedef TIFF_INT64_T int64;
[76] Fix | Delete
typedef TIFF_UINT64_T uint64;
[77] Fix | Delete
[78] Fix | Delete
/*
[79] Fix | Delete
* Some types as promoted in a variable argument list
[80] Fix | Delete
* We use uint16_vap rather then directly using int, because this way
[81] Fix | Delete
* we document the type we actually want to pass through, conceptually,
[82] Fix | Delete
* rather then confusing the issue by merely stating the type it gets
[83] Fix | Delete
* promoted to
[84] Fix | Delete
*/
[85] Fix | Delete
[86] Fix | Delete
typedef int uint16_vap;
[87] Fix | Delete
[88] Fix | Delete
/*
[89] Fix | Delete
* TIFF header.
[90] Fix | Delete
*/
[91] Fix | Delete
typedef struct {
[92] Fix | Delete
uint16 tiff_magic; /* magic number (defines byte order) */
[93] Fix | Delete
uint16 tiff_version; /* TIFF version number */
[94] Fix | Delete
} TIFFHeaderCommon;
[95] Fix | Delete
typedef struct {
[96] Fix | Delete
uint16 tiff_magic; /* magic number (defines byte order) */
[97] Fix | Delete
uint16 tiff_version; /* TIFF version number */
[98] Fix | Delete
uint32 tiff_diroff; /* byte offset to first directory */
[99] Fix | Delete
} TIFFHeaderClassic;
[100] Fix | Delete
typedef struct {
[101] Fix | Delete
uint16 tiff_magic; /* magic number (defines byte order) */
[102] Fix | Delete
uint16 tiff_version; /* TIFF version number */
[103] Fix | Delete
uint16 tiff_offsetsize; /* size of offsets, should be 8 */
[104] Fix | Delete
uint16 tiff_unused; /* unused word, should be 0 */
[105] Fix | Delete
uint64 tiff_diroff; /* byte offset to first directory */
[106] Fix | Delete
} TIFFHeaderBig;
[107] Fix | Delete
[108] Fix | Delete
[109] Fix | Delete
/*
[110] Fix | Delete
* NB: In the comments below,
[111] Fix | Delete
* - items marked with a + are obsoleted by revision 5.0,
[112] Fix | Delete
* - items marked with a ! are introduced in revision 6.0.
[113] Fix | Delete
* - items marked with a % are introduced post revision 6.0.
[114] Fix | Delete
* - items marked with a $ are obsoleted by revision 6.0.
[115] Fix | Delete
* - items marked with a & are introduced by Adobe DNG specification.
[116] Fix | Delete
*/
[117] Fix | Delete
[118] Fix | Delete
/*
[119] Fix | Delete
* Tag data type information.
[120] Fix | Delete
*
[121] Fix | Delete
* Note: RATIONALs are the ratio of two 32-bit integer values.
[122] Fix | Delete
*/
[123] Fix | Delete
typedef enum {
[124] Fix | Delete
TIFF_NOTYPE = 0, /* placeholder */
[125] Fix | Delete
TIFF_BYTE = 1, /* 8-bit unsigned integer */
[126] Fix | Delete
TIFF_ASCII = 2, /* 8-bit bytes w/ last byte null */
[127] Fix | Delete
TIFF_SHORT = 3, /* 16-bit unsigned integer */
[128] Fix | Delete
TIFF_LONG = 4, /* 32-bit unsigned integer */
[129] Fix | Delete
TIFF_RATIONAL = 5, /* 64-bit unsigned fraction */
[130] Fix | Delete
TIFF_SBYTE = 6, /* !8-bit signed integer */
[131] Fix | Delete
TIFF_UNDEFINED = 7, /* !8-bit untyped data */
[132] Fix | Delete
TIFF_SSHORT = 8, /* !16-bit signed integer */
[133] Fix | Delete
TIFF_SLONG = 9, /* !32-bit signed integer */
[134] Fix | Delete
TIFF_SRATIONAL = 10, /* !64-bit signed fraction */
[135] Fix | Delete
TIFF_FLOAT = 11, /* !32-bit IEEE floating point */
[136] Fix | Delete
TIFF_DOUBLE = 12, /* !64-bit IEEE floating point */
[137] Fix | Delete
TIFF_IFD = 13, /* %32-bit unsigned integer (offset) */
[138] Fix | Delete
TIFF_LONG8 = 16, /* BigTIFF 64-bit unsigned integer */
[139] Fix | Delete
TIFF_SLONG8 = 17, /* BigTIFF 64-bit signed integer */
[140] Fix | Delete
TIFF_IFD8 = 18 /* BigTIFF 64-bit unsigned integer (offset) */
[141] Fix | Delete
} TIFFDataType;
[142] Fix | Delete
[143] Fix | Delete
/*
[144] Fix | Delete
* TIFF Tag Definitions.
[145] Fix | Delete
*/
[146] Fix | Delete
#define TIFFTAG_SUBFILETYPE 254 /* subfile data descriptor */
[147] Fix | Delete
#define FILETYPE_REDUCEDIMAGE 0x1 /* reduced resolution version */
[148] Fix | Delete
#define FILETYPE_PAGE 0x2 /* one page of many */
[149] Fix | Delete
#define FILETYPE_MASK 0x4 /* transparency mask */
[150] Fix | Delete
#define TIFFTAG_OSUBFILETYPE 255 /* +kind of data in subfile */
[151] Fix | Delete
#define OFILETYPE_IMAGE 1 /* full resolution image data */
[152] Fix | Delete
#define OFILETYPE_REDUCEDIMAGE 2 /* reduced size image data */
[153] Fix | Delete
#define OFILETYPE_PAGE 3 /* one page of many */
[154] Fix | Delete
#define TIFFTAG_IMAGEWIDTH 256 /* image width in pixels */
[155] Fix | Delete
#define TIFFTAG_IMAGELENGTH 257 /* image height in pixels */
[156] Fix | Delete
#define TIFFTAG_BITSPERSAMPLE 258 /* bits per channel (sample) */
[157] Fix | Delete
#define TIFFTAG_COMPRESSION 259 /* data compression technique */
[158] Fix | Delete
#define COMPRESSION_NONE 1 /* dump mode */
[159] Fix | Delete
#define COMPRESSION_CCITTRLE 2 /* CCITT modified Huffman RLE */
[160] Fix | Delete
#define COMPRESSION_CCITTFAX3 3 /* CCITT Group 3 fax encoding */
[161] Fix | Delete
#define COMPRESSION_CCITT_T4 3 /* CCITT T.4 (TIFF 6 name) */
[162] Fix | Delete
#define COMPRESSION_CCITTFAX4 4 /* CCITT Group 4 fax encoding */
[163] Fix | Delete
#define COMPRESSION_CCITT_T6 4 /* CCITT T.6 (TIFF 6 name) */
[164] Fix | Delete
#define COMPRESSION_LZW 5 /* Lempel-Ziv & Welch */
[165] Fix | Delete
#define COMPRESSION_OJPEG 6 /* !6.0 JPEG */
[166] Fix | Delete
#define COMPRESSION_JPEG 7 /* %JPEG DCT compression */
[167] Fix | Delete
#define COMPRESSION_T85 9 /* !TIFF/FX T.85 JBIG compression */
[168] Fix | Delete
#define COMPRESSION_T43 10 /* !TIFF/FX T.43 colour by layered JBIG compression */
[169] Fix | Delete
#define COMPRESSION_NEXT 32766 /* NeXT 2-bit RLE */
[170] Fix | Delete
#define COMPRESSION_CCITTRLEW 32771 /* #1 w/ word alignment */
[171] Fix | Delete
#define COMPRESSION_PACKBITS 32773 /* Macintosh RLE */
[172] Fix | Delete
#define COMPRESSION_THUNDERSCAN 32809 /* ThunderScan RLE */
[173] Fix | Delete
/* codes 32895-32898 are reserved for ANSI IT8 TIFF/IT <dkelly@apago.com) */
[174] Fix | Delete
#define COMPRESSION_IT8CTPAD 32895 /* IT8 CT w/padding */
[175] Fix | Delete
#define COMPRESSION_IT8LW 32896 /* IT8 Linework RLE */
[176] Fix | Delete
#define COMPRESSION_IT8MP 32897 /* IT8 Monochrome picture */
[177] Fix | Delete
#define COMPRESSION_IT8BL 32898 /* IT8 Binary line art */
[178] Fix | Delete
/* compression codes 32908-32911 are reserved for Pixar */
[179] Fix | Delete
#define COMPRESSION_PIXARFILM 32908 /* Pixar companded 10bit LZW */
[180] Fix | Delete
#define COMPRESSION_PIXARLOG 32909 /* Pixar companded 11bit ZIP */
[181] Fix | Delete
#define COMPRESSION_DEFLATE 32946 /* Deflate compression */
[182] Fix | Delete
#define COMPRESSION_ADOBE_DEFLATE 8 /* Deflate compression,
[183] Fix | Delete
as recognized by Adobe */
[184] Fix | Delete
/* compression code 32947 is reserved for Oceana Matrix <dev@oceana.com> */
[185] Fix | Delete
#define COMPRESSION_DCS 32947 /* Kodak DCS encoding */
[186] Fix | Delete
#define COMPRESSION_JBIG 34661 /* ISO JBIG */
[187] Fix | Delete
#define COMPRESSION_SGILOG 34676 /* SGI Log Luminance RLE */
[188] Fix | Delete
#define COMPRESSION_SGILOG24 34677 /* SGI Log 24-bit packed */
[189] Fix | Delete
#define COMPRESSION_JP2000 34712 /* Leadtools JPEG2000 */
[190] Fix | Delete
#define COMPRESSION_LZMA 34925 /* LZMA2 */
[191] Fix | Delete
#define TIFFTAG_PHOTOMETRIC 262 /* photometric interpretation */
[192] Fix | Delete
#define PHOTOMETRIC_MINISWHITE 0 /* min value is white */
[193] Fix | Delete
#define PHOTOMETRIC_MINISBLACK 1 /* min value is black */
[194] Fix | Delete
#define PHOTOMETRIC_RGB 2 /* RGB color model */
[195] Fix | Delete
#define PHOTOMETRIC_PALETTE 3 /* color map indexed */
[196] Fix | Delete
#define PHOTOMETRIC_MASK 4 /* $holdout mask */
[197] Fix | Delete
#define PHOTOMETRIC_SEPARATED 5 /* !color separations */
[198] Fix | Delete
#define PHOTOMETRIC_YCBCR 6 /* !CCIR 601 */
[199] Fix | Delete
#define PHOTOMETRIC_CIELAB 8 /* !1976 CIE L*a*b* */
[200] Fix | Delete
#define PHOTOMETRIC_ICCLAB 9 /* ICC L*a*b* [Adobe TIFF Technote 4] */
[201] Fix | Delete
#define PHOTOMETRIC_ITULAB 10 /* ITU L*a*b* */
[202] Fix | Delete
#define PHOTOMETRIC_CFA 32803 /* color filter array */
[203] Fix | Delete
#define PHOTOMETRIC_LOGL 32844 /* CIE Log2(L) */
[204] Fix | Delete
#define PHOTOMETRIC_LOGLUV 32845 /* CIE Log2(L) (u',v') */
[205] Fix | Delete
#define TIFFTAG_THRESHHOLDING 263 /* +thresholding used on data */
[206] Fix | Delete
#define THRESHHOLD_BILEVEL 1 /* b&w art scan */
[207] Fix | Delete
#define THRESHHOLD_HALFTONE 2 /* or dithered scan */
[208] Fix | Delete
#define THRESHHOLD_ERRORDIFFUSE 3 /* usually floyd-steinberg */
[209] Fix | Delete
#define TIFFTAG_CELLWIDTH 264 /* +dithering matrix width */
[210] Fix | Delete
#define TIFFTAG_CELLLENGTH 265 /* +dithering matrix height */
[211] Fix | Delete
#define TIFFTAG_FILLORDER 266 /* data order within a byte */
[212] Fix | Delete
#define FILLORDER_MSB2LSB 1 /* most significant -> least */
[213] Fix | Delete
#define FILLORDER_LSB2MSB 2 /* least significant -> most */
[214] Fix | Delete
#define TIFFTAG_DOCUMENTNAME 269 /* name of doc. image is from */
[215] Fix | Delete
#define TIFFTAG_IMAGEDESCRIPTION 270 /* info about image */
[216] Fix | Delete
#define TIFFTAG_MAKE 271 /* scanner manufacturer name */
[217] Fix | Delete
#define TIFFTAG_MODEL 272 /* scanner model name/number */
[218] Fix | Delete
#define TIFFTAG_STRIPOFFSETS 273 /* offsets to data strips */
[219] Fix | Delete
#define TIFFTAG_ORIENTATION 274 /* +image orientation */
[220] Fix | Delete
#define ORIENTATION_TOPLEFT 1 /* row 0 top, col 0 lhs */
[221] Fix | Delete
#define ORIENTATION_TOPRIGHT 2 /* row 0 top, col 0 rhs */
[222] Fix | Delete
#define ORIENTATION_BOTRIGHT 3 /* row 0 bottom, col 0 rhs */
[223] Fix | Delete
#define ORIENTATION_BOTLEFT 4 /* row 0 bottom, col 0 lhs */
[224] Fix | Delete
#define ORIENTATION_LEFTTOP 5 /* row 0 lhs, col 0 top */
[225] Fix | Delete
#define ORIENTATION_RIGHTTOP 6 /* row 0 rhs, col 0 top */
[226] Fix | Delete
#define ORIENTATION_RIGHTBOT 7 /* row 0 rhs, col 0 bottom */
[227] Fix | Delete
#define ORIENTATION_LEFTBOT 8 /* row 0 lhs, col 0 bottom */
[228] Fix | Delete
#define TIFFTAG_SAMPLESPERPIXEL 277 /* samples per pixel */
[229] Fix | Delete
#define TIFFTAG_ROWSPERSTRIP 278 /* rows per strip of data */
[230] Fix | Delete
#define TIFFTAG_STRIPBYTECOUNTS 279 /* bytes counts for strips */
[231] Fix | Delete
#define TIFFTAG_MINSAMPLEVALUE 280 /* +minimum sample value */
[232] Fix | Delete
#define TIFFTAG_MAXSAMPLEVALUE 281 /* +maximum sample value */
[233] Fix | Delete
#define TIFFTAG_XRESOLUTION 282 /* pixels/resolution in x */
[234] Fix | Delete
#define TIFFTAG_YRESOLUTION 283 /* pixels/resolution in y */
[235] Fix | Delete
#define TIFFTAG_PLANARCONFIG 284 /* storage organization */
[236] Fix | Delete
#define PLANARCONFIG_CONTIG 1 /* single image plane */
[237] Fix | Delete
#define PLANARCONFIG_SEPARATE 2 /* separate planes of data */
[238] Fix | Delete
#define TIFFTAG_PAGENAME 285 /* page name image is from */
[239] Fix | Delete
#define TIFFTAG_XPOSITION 286 /* x page offset of image lhs */
[240] Fix | Delete
#define TIFFTAG_YPOSITION 287 /* y page offset of image lhs */
[241] Fix | Delete
#define TIFFTAG_FREEOFFSETS 288 /* +byte offset to free block */
[242] Fix | Delete
#define TIFFTAG_FREEBYTECOUNTS 289 /* +sizes of free blocks */
[243] Fix | Delete
#define TIFFTAG_GRAYRESPONSEUNIT 290 /* $gray scale curve accuracy */
[244] Fix | Delete
#define GRAYRESPONSEUNIT_10S 1 /* tenths of a unit */
[245] Fix | Delete
#define GRAYRESPONSEUNIT_100S 2 /* hundredths of a unit */
[246] Fix | Delete
#define GRAYRESPONSEUNIT_1000S 3 /* thousandths of a unit */
[247] Fix | Delete
#define GRAYRESPONSEUNIT_10000S 4 /* ten-thousandths of a unit */
[248] Fix | Delete
#define GRAYRESPONSEUNIT_100000S 5 /* hundred-thousandths */
[249] Fix | Delete
#define TIFFTAG_GRAYRESPONSECURVE 291 /* $gray scale response curve */
[250] Fix | Delete
#define TIFFTAG_GROUP3OPTIONS 292 /* 32 flag bits */
[251] Fix | Delete
#define TIFFTAG_T4OPTIONS 292 /* TIFF 6.0 proper name alias */
[252] Fix | Delete
#define GROUP3OPT_2DENCODING 0x1 /* 2-dimensional coding */
[253] Fix | Delete
#define GROUP3OPT_UNCOMPRESSED 0x2 /* data not compressed */
[254] Fix | Delete
#define GROUP3OPT_FILLBITS 0x4 /* fill to byte boundary */
[255] Fix | Delete
#define TIFFTAG_GROUP4OPTIONS 293 /* 32 flag bits */
[256] Fix | Delete
#define TIFFTAG_T6OPTIONS 293 /* TIFF 6.0 proper name */
[257] Fix | Delete
#define GROUP4OPT_UNCOMPRESSED 0x2 /* data not compressed */
[258] Fix | Delete
#define TIFFTAG_RESOLUTIONUNIT 296 /* units of resolutions */
[259] Fix | Delete
#define RESUNIT_NONE 1 /* no meaningful units */
[260] Fix | Delete
#define RESUNIT_INCH 2 /* english */
[261] Fix | Delete
#define RESUNIT_CENTIMETER 3 /* metric */
[262] Fix | Delete
#define TIFFTAG_PAGENUMBER 297 /* page numbers of multi-page */
[263] Fix | Delete
#define TIFFTAG_COLORRESPONSEUNIT 300 /* $color curve accuracy */
[264] Fix | Delete
#define COLORRESPONSEUNIT_10S 1 /* tenths of a unit */
[265] Fix | Delete
#define COLORRESPONSEUNIT_100S 2 /* hundredths of a unit */
[266] Fix | Delete
#define COLORRESPONSEUNIT_1000S 3 /* thousandths of a unit */
[267] Fix | Delete
#define COLORRESPONSEUNIT_10000S 4 /* ten-thousandths of a unit */
[268] Fix | Delete
#define COLORRESPONSEUNIT_100000S 5 /* hundred-thousandths */
[269] Fix | Delete
#define TIFFTAG_TRANSFERFUNCTION 301 /* !colorimetry info */
[270] Fix | Delete
#define TIFFTAG_SOFTWARE 305 /* name & release */
[271] Fix | Delete
#define TIFFTAG_DATETIME 306 /* creation date and time */
[272] Fix | Delete
#define TIFFTAG_ARTIST 315 /* creator of image */
[273] Fix | Delete
#define TIFFTAG_HOSTCOMPUTER 316 /* machine where created */
[274] Fix | Delete
#define TIFFTAG_PREDICTOR 317 /* prediction scheme w/ LZW */
[275] Fix | Delete
#define PREDICTOR_NONE 1 /* no prediction scheme used */
[276] Fix | Delete
#define PREDICTOR_HORIZONTAL 2 /* horizontal differencing */
[277] Fix | Delete
#define PREDICTOR_FLOATINGPOINT 3 /* floating point predictor */
[278] Fix | Delete
#define TIFFTAG_WHITEPOINT 318 /* image white point */
[279] Fix | Delete
#define TIFFTAG_PRIMARYCHROMATICITIES 319 /* !primary chromaticities */
[280] Fix | Delete
#define TIFFTAG_COLORMAP 320 /* RGB map for palette image */
[281] Fix | Delete
#define TIFFTAG_HALFTONEHINTS 321 /* !highlight+shadow info */
[282] Fix | Delete
#define TIFFTAG_TILEWIDTH 322 /* !tile width in pixels */
[283] Fix | Delete
#define TIFFTAG_TILELENGTH 323 /* !tile height in pixels */
[284] Fix | Delete
#define TIFFTAG_TILEOFFSETS 324 /* !offsets to data tiles */
[285] Fix | Delete
#define TIFFTAG_TILEBYTECOUNTS 325 /* !byte counts for tiles */
[286] Fix | Delete
#define TIFFTAG_BADFAXLINES 326 /* lines w/ wrong pixel count */
[287] Fix | Delete
#define TIFFTAG_CLEANFAXDATA 327 /* regenerated line info */
[288] Fix | Delete
#define CLEANFAXDATA_CLEAN 0 /* no errors detected */
[289] Fix | Delete
#define CLEANFAXDATA_REGENERATED 1 /* receiver regenerated lines */
[290] Fix | Delete
#define CLEANFAXDATA_UNCLEAN 2 /* uncorrected errors exist */
[291] Fix | Delete
#define TIFFTAG_CONSECUTIVEBADFAXLINES 328 /* max consecutive bad lines */
[292] Fix | Delete
#define TIFFTAG_SUBIFD 330 /* subimage descriptors */
[293] Fix | Delete
#define TIFFTAG_INKSET 332 /* !inks in separated image */
[294] Fix | Delete
#define INKSET_CMYK 1 /* !cyan-magenta-yellow-black color */
[295] Fix | Delete
#define INKSET_MULTIINK 2 /* !multi-ink or hi-fi color */
[296] Fix | Delete
#define TIFFTAG_INKNAMES 333 /* !ascii names of inks */
[297] Fix | Delete
#define TIFFTAG_NUMBEROFINKS 334 /* !number of inks */
[298] Fix | Delete
#define TIFFTAG_DOTRANGE 336 /* !0% and 100% dot codes */
[299] Fix | Delete
#define TIFFTAG_TARGETPRINTER 337 /* !separation target */
[300] Fix | Delete
#define TIFFTAG_EXTRASAMPLES 338 /* !info about extra samples */
[301] Fix | Delete
#define EXTRASAMPLE_UNSPECIFIED 0 /* !unspecified data */
[302] Fix | Delete
#define EXTRASAMPLE_ASSOCALPHA 1 /* !associated alpha data */
[303] Fix | Delete
#define EXTRASAMPLE_UNASSALPHA 2 /* !unassociated alpha data */
[304] Fix | Delete
#define TIFFTAG_SAMPLEFORMAT 339 /* !data sample format */
[305] Fix | Delete
#define SAMPLEFORMAT_UINT 1 /* !unsigned integer data */
[306] Fix | Delete
#define SAMPLEFORMAT_INT 2 /* !signed integer data */
[307] Fix | Delete
#define SAMPLEFORMAT_IEEEFP 3 /* !IEEE floating point data */
[308] Fix | Delete
#define SAMPLEFORMAT_VOID 4 /* !untyped data */
[309] Fix | Delete
#define SAMPLEFORMAT_COMPLEXINT 5 /* !complex signed int */
[310] Fix | Delete
#define SAMPLEFORMAT_COMPLEXIEEEFP 6 /* !complex ieee floating */
[311] Fix | Delete
#define TIFFTAG_SMINSAMPLEVALUE 340 /* !variable MinSampleValue */
[312] Fix | Delete
#define TIFFTAG_SMAXSAMPLEVALUE 341 /* !variable MaxSampleValue */
[313] Fix | Delete
#define TIFFTAG_CLIPPATH 343 /* %ClipPath
[314] Fix | Delete
[Adobe TIFF technote 2] */
[315] Fix | Delete
#define TIFFTAG_XCLIPPATHUNITS 344 /* %XClipPathUnits
[316] Fix | Delete
[Adobe TIFF technote 2] */
[317] Fix | Delete
#define TIFFTAG_YCLIPPATHUNITS 345 /* %YClipPathUnits
[318] Fix | Delete
[Adobe TIFF technote 2] */
[319] Fix | Delete
#define TIFFTAG_INDEXED 346 /* %Indexed
[320] Fix | Delete
[Adobe TIFF Technote 3] */
[321] Fix | Delete
#define TIFFTAG_JPEGTABLES 347 /* %JPEG table stream */
[322] Fix | Delete
#define TIFFTAG_OPIPROXY 351 /* %OPI Proxy [Adobe TIFF technote] */
[323] Fix | Delete
/* Tags 400-435 are from the TIFF/FX spec */
[324] Fix | Delete
#define TIFFTAG_GLOBALPARAMETERSIFD 400 /* ! */
[325] Fix | Delete
#define TIFFTAG_PROFILETYPE 401 /* ! */
[326] Fix | Delete
#define PROFILETYPE_UNSPECIFIED 0 /* ! */
[327] Fix | Delete
#define PROFILETYPE_G3_FAX 1 /* ! */
[328] Fix | Delete
#define TIFFTAG_FAXPROFILE 402 /* ! */
[329] Fix | Delete
#define FAXPROFILE_S 1 /* !TIFF/FX FAX profile S */
[330] Fix | Delete
#define FAXPROFILE_F 2 /* !TIFF/FX FAX profile F */
[331] Fix | Delete
#define FAXPROFILE_J 3 /* !TIFF/FX FAX profile J */
[332] Fix | Delete
#define FAXPROFILE_C 4 /* !TIFF/FX FAX profile C */
[333] Fix | Delete
#define FAXPROFILE_L 5 /* !TIFF/FX FAX profile L */
[334] Fix | Delete
#define FAXPROFILE_M 6 /* !TIFF/FX FAX profile LM */
[335] Fix | Delete
#define TIFFTAG_CODINGMETHODS 403 /* !TIFF/FX coding methods */
[336] Fix | Delete
#define CODINGMETHODS_T4_1D (1 << 1) /* !T.4 1D */
[337] Fix | Delete
#define CODINGMETHODS_T4_2D (1 << 2) /* !T.4 2D */
[338] Fix | Delete
#define CODINGMETHODS_T6 (1 << 3) /* !T.6 */
[339] Fix | Delete
#define CODINGMETHODS_T85 (1 << 4) /* !T.85 JBIG */
[340] Fix | Delete
#define CODINGMETHODS_T42 (1 << 5) /* !T.42 JPEG */
[341] Fix | Delete
#define CODINGMETHODS_T43 (1 << 6) /* !T.43 colour by layered JBIG */
[342] Fix | Delete
#define TIFFTAG_VERSIONYEAR 404 /* !TIFF/FX version year */
[343] Fix | Delete
#define TIFFTAG_MODENUMBER 405 /* !TIFF/FX mode number */
[344] Fix | Delete
#define TIFFTAG_DECODE 433 /* !TIFF/FX decode */
[345] Fix | Delete
#define TIFFTAG_IMAGEBASECOLOR 434 /* !TIFF/FX image base colour */
[346] Fix | Delete
#define TIFFTAG_T82OPTIONS 435 /* !TIFF/FX T.82 options */
[347] Fix | Delete
/*
[348] Fix | Delete
* Tags 512-521 are obsoleted by Technical Note #2 which specifies a
[349] Fix | Delete
* revised JPEG-in-TIFF scheme.
[350] Fix | Delete
*/
[351] Fix | Delete
#define TIFFTAG_JPEGPROC 512 /* !JPEG processing algorithm */
[352] Fix | Delete
#define JPEGPROC_BASELINE 1 /* !baseline sequential */
[353] Fix | Delete
#define JPEGPROC_LOSSLESS 14 /* !Huffman coded lossless */
[354] Fix | Delete
#define TIFFTAG_JPEGIFOFFSET 513 /* !pointer to SOI marker */
[355] Fix | Delete
#define TIFFTAG_JPEGIFBYTECOUNT 514 /* !JFIF stream length */
[356] Fix | Delete
#define TIFFTAG_JPEGRESTARTINTERVAL 515 /* !restart interval length */
[357] Fix | Delete
#define TIFFTAG_JPEGLOSSLESSPREDICTORS 517 /* !lossless proc predictor */
[358] Fix | Delete
#define TIFFTAG_JPEGPOINTTRANSFORM 518 /* !lossless point transform */
[359] Fix | Delete
#define TIFFTAG_JPEGQTABLES 519 /* !Q matrix offsets */
[360] Fix | Delete
#define TIFFTAG_JPEGDCTABLES 520 /* !DCT table offsets */
[361] Fix | Delete
#define TIFFTAG_JPEGACTABLES 521 /* !AC coefficient offsets */
[362] Fix | Delete
#define TIFFTAG_YCBCRCOEFFICIENTS 529 /* !RGB -> YCbCr transform */
[363] Fix | Delete
#define TIFFTAG_YCBCRSUBSAMPLING 530 /* !YCbCr subsampling factors */
[364] Fix | Delete
#define TIFFTAG_YCBCRPOSITIONING 531 /* !subsample positioning */
[365] Fix | Delete
#define YCBCRPOSITION_CENTERED 1 /* !as in PostScript Level 2 */
[366] Fix | Delete
#define YCBCRPOSITION_COSITED 2 /* !as in CCIR 601-1 */
[367] Fix | Delete
#define TIFFTAG_REFERENCEBLACKWHITE 532 /* !colorimetry info */
[368] Fix | Delete
#define TIFFTAG_STRIPROWCOUNTS 559 /* !TIFF/FX strip row counts */
[369] Fix | Delete
#define TIFFTAG_XMLPACKET 700 /* %XML packet
[370] Fix | Delete
[Adobe XMP Specification,
[371] Fix | Delete
January 2004 */
[372] Fix | Delete
#define TIFFTAG_OPIIMAGEID 32781 /* %OPI ImageID
[373] Fix | Delete
[Adobe TIFF technote] */
[374] Fix | Delete
/* tags 32952-32956 are private tags registered to Island Graphics */
[375] Fix | Delete
#define TIFFTAG_REFPTS 32953 /* image reference points */
[376] Fix | Delete
#define TIFFTAG_REGIONTACKPOINT 32954 /* region-xform tack point */
[377] Fix | Delete
#define TIFFTAG_REGIONWARPCORNERS 32955 /* warp quadrilateral */
[378] Fix | Delete
#define TIFFTAG_REGIONAFFINE 32956 /* affine transformation mat */
[379] Fix | Delete
/* tags 32995-32999 are private tags registered to SGI */
[380] Fix | Delete
#define TIFFTAG_MATTEING 32995 /* $use ExtraSamples */
[381] Fix | Delete
#define TIFFTAG_DATATYPE 32996 /* $use SampleFormat */
[382] Fix | Delete
#define TIFFTAG_IMAGEDEPTH 32997 /* z depth of image */
[383] Fix | Delete
#define TIFFTAG_TILEDEPTH 32998 /* z depth/data tile */
[384] Fix | Delete
/* tags 33300-33309 are private tags registered to Pixar */
[385] Fix | Delete
/*
[386] Fix | Delete
* TIFFTAG_PIXAR_IMAGEFULLWIDTH and TIFFTAG_PIXAR_IMAGEFULLLENGTH
[387] Fix | Delete
* are set when an image has been cropped out of a larger image.
[388] Fix | Delete
* They reflect the size of the original uncropped image.
[389] Fix | Delete
* The TIFFTAG_XPOSITION and TIFFTAG_YPOSITION can be used
[390] Fix | Delete
* to determine the position of the smaller image in the larger one.
[391] Fix | Delete
*/
[392] Fix | Delete
#define TIFFTAG_PIXAR_IMAGEFULLWIDTH 33300 /* full image size in x */
[393] Fix | Delete
#define TIFFTAG_PIXAR_IMAGEFULLLENGTH 33301 /* full image size in y */
[394] Fix | Delete
/* Tags 33302-33306 are used to identify special image modes and data
[395] Fix | Delete
* used by Pixar's texture formats.
[396] Fix | Delete
*/
[397] Fix | Delete
#define TIFFTAG_PIXAR_TEXTUREFORMAT 33302 /* texture map format */
[398] Fix | Delete
#define TIFFTAG_PIXAR_WRAPMODES 33303 /* s & t wrap modes */
[399] Fix | Delete
#define TIFFTAG_PIXAR_FOVCOT 33304 /* cotan(fov) for env. maps */
[400] Fix | Delete
#define TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN 33305
[401] Fix | Delete
#define TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA 33306
[402] Fix | Delete
/* tag 33405 is a private tag registered to Eastman Kodak */
[403] Fix | Delete
#define TIFFTAG_WRITERSERIALNUMBER 33405 /* device serial number */
[404] Fix | Delete
#define TIFFTAG_CFAREPEATPATTERNDIM 33421 /* dimensions of CFA pattern */
[405] Fix | Delete
#define TIFFTAG_CFAPATTERN 33422 /* color filter array pattern */
[406] Fix | Delete
/* tag 33432 is listed in the 6.0 spec w/ unknown ownership */
[407] Fix | Delete
#define TIFFTAG_COPYRIGHT 33432 /* copyright string */
[408] Fix | Delete
/* IPTC TAG from RichTIFF specifications */
[409] Fix | Delete
#define TIFFTAG_RICHTIFFIPTC 33723
[410] Fix | Delete
/* 34016-34029 are reserved for ANSI IT8 TIFF/IT <dkelly@apago.com) */
[411] Fix | Delete
#define TIFFTAG_IT8SITE 34016 /* site name */
[412] Fix | Delete
#define TIFFTAG_IT8COLORSEQUENCE 34017 /* color seq. [RGB,CMYK,etc] */
[413] Fix | Delete
#define TIFFTAG_IT8HEADER 34018 /* DDES Header */
[414] Fix | Delete
#define TIFFTAG_IT8RASTERPADDING 34019 /* raster scanline padding */
[415] Fix | Delete
#define TIFFTAG_IT8BITSPERRUNLENGTH 34020 /* # of bits in short run */
[416] Fix | Delete
#define TIFFTAG_IT8BITSPEREXTENDEDRUNLENGTH 34021/* # of bits in long run */
[417] Fix | Delete
#define TIFFTAG_IT8COLORTABLE 34022 /* LW colortable */
[418] Fix | Delete
#define TIFFTAG_IT8IMAGECOLORINDICATOR 34023 /* BP/BL image color switch */
[419] Fix | Delete
#define TIFFTAG_IT8BKGCOLORINDICATOR 34024 /* BP/BL bg color switch */
[420] Fix | Delete
#define TIFFTAG_IT8IMAGECOLORVALUE 34025 /* BP/BL image color value */
[421] Fix | Delete
#define TIFFTAG_IT8BKGCOLORVALUE 34026 /* BP/BL bg color value */
[422] Fix | Delete
#define TIFFTAG_IT8PIXELINTENSITYRANGE 34027 /* MP pixel intensity value */
[423] Fix | Delete
#define TIFFTAG_IT8TRANSPARENCYINDICATOR 34028 /* HC transparency switch */
[424] Fix | Delete
#define TIFFTAG_IT8COLORCHARACTERIZATION 34029 /* color character. table */
[425] Fix | Delete
#define TIFFTAG_IT8HCUSAGE 34030 /* HC usage indicator */
[426] Fix | Delete
#define TIFFTAG_IT8TRAPINDICATOR 34031 /* Trapping indicator
[427] Fix | Delete
(untrapped=0, trapped=1) */
[428] Fix | Delete
#define TIFFTAG_IT8CMYKEQUIVALENT 34032 /* CMYK color equivalents */
[429] Fix | Delete
/* tags 34232-34236 are private tags registered to Texas Instruments */
[430] Fix | Delete
#define TIFFTAG_FRAMECOUNT 34232 /* Sequence Frame Count */
[431] Fix | Delete
/* tag 34377 is private tag registered to Adobe for PhotoShop */
[432] Fix | Delete
#define TIFFTAG_PHOTOSHOP 34377
[433] Fix | Delete
/* tags 34665, 34853 and 40965 are documented in EXIF specification */
[434] Fix | Delete
#define TIFFTAG_EXIFIFD 34665 /* Pointer to EXIF private directory */
[435] Fix | Delete
/* tag 34750 is a private tag registered to Adobe? */
[436] Fix | Delete
#define TIFFTAG_ICCPROFILE 34675 /* ICC profile data */
[437] Fix | Delete
#define TIFFTAG_IMAGELAYER 34732 /* !TIFF/FX image layer information */
[438] Fix | Delete
/* tag 34750 is a private tag registered to Pixel Magic */
[439] Fix | Delete
#define TIFFTAG_JBIGOPTIONS 34750 /* JBIG options */
[440] Fix | Delete
#define TIFFTAG_GPSIFD 34853 /* Pointer to GPS private directory */
[441] Fix | Delete
/* tags 34908-34914 are private tags registered to SGI */
[442] Fix | Delete
#define TIFFTAG_FAXRECVPARAMS 34908 /* encoded Class 2 ses. parms */
[443] Fix | Delete
#define TIFFTAG_FAXSUBADDRESS 34909 /* received SubAddr string */
[444] Fix | Delete
#define TIFFTAG_FAXRECVTIME 34910 /* receive time (secs) */
[445] Fix | Delete
#define TIFFTAG_FAXDCS 34911 /* encoded fax ses. params, Table 2/T.30 */
[446] Fix | Delete
/* tags 37439-37443 are registered to SGI <gregl@sgi.com> */
[447] Fix | Delete
#define TIFFTAG_STONITS 37439 /* Sample value to Nits */
[448] Fix | Delete
/* tag 34929 is a private tag registered to FedEx */
[449] Fix | Delete
#define TIFFTAG_FEDEX_EDR 34929 /* unknown use */
[450] Fix | Delete
#define TIFFTAG_INTEROPERABILITYIFD 40965 /* Pointer to Interoperability private directory */
[451] Fix | Delete
/* Adobe Digital Negative (DNG) format tags */
[452] Fix | Delete
#define TIFFTAG_DNGVERSION 50706 /* &DNG version number */
[453] Fix | Delete
#define TIFFTAG_DNGBACKWARDVERSION 50707 /* &DNG compatibility version */
[454] Fix | Delete
#define TIFFTAG_UNIQUECAMERAMODEL 50708 /* &name for the camera model */
[455] Fix | Delete
#define TIFFTAG_LOCALIZEDCAMERAMODEL 50709 /* &localized camera model
[456] Fix | Delete
name */
[457] Fix | Delete
#define TIFFTAG_CFAPLANECOLOR 50710 /* &CFAPattern->LinearRaw space
[458] Fix | Delete
mapping */
[459] Fix | Delete
#define TIFFTAG_CFALAYOUT 50711 /* &spatial layout of the CFA */
[460] Fix | Delete
#define TIFFTAG_LINEARIZATIONTABLE 50712 /* &lookup table description */
[461] Fix | Delete
#define TIFFTAG_BLACKLEVELREPEATDIM 50713 /* &repeat pattern size for
[462] Fix | Delete
the BlackLevel tag */
[463] Fix | Delete
#define TIFFTAG_BLACKLEVEL 50714 /* &zero light encoding level */
[464] Fix | Delete
#define TIFFTAG_BLACKLEVELDELTAH 50715 /* &zero light encoding level
[465] Fix | Delete
differences (columns) */
[466] Fix | Delete
#define TIFFTAG_BLACKLEVELDELTAV 50716 /* &zero light encoding level
[467] Fix | Delete
differences (rows) */
[468] Fix | Delete
#define TIFFTAG_WHITELEVEL 50717 /* &fully saturated encoding
[469] Fix | Delete
level */
[470] Fix | Delete
#define TIFFTAG_DEFAULTSCALE 50718 /* &default scale factors */
[471] Fix | Delete
#define TIFFTAG_DEFAULTCROPORIGIN 50719 /* &origin of the final image
[472] Fix | Delete
area */
[473] Fix | Delete
#define TIFFTAG_DEFAULTCROPSIZE 50720 /* &size of the final image
[474] Fix | Delete
area */
[475] Fix | Delete
#define TIFFTAG_COLORMATRIX1 50721 /* &XYZ->reference color space
[476] Fix | Delete
transformation matrix 1 */
[477] Fix | Delete
#define TIFFTAG_COLORMATRIX2 50722 /* &XYZ->reference color space
[478] Fix | Delete
transformation matrix 2 */
[479] Fix | Delete
#define TIFFTAG_CAMERACALIBRATION1 50723 /* &calibration matrix 1 */
[480] Fix | Delete
#define TIFFTAG_CAMERACALIBRATION2 50724 /* &calibration matrix 2 */
[481] Fix | Delete
#define TIFFTAG_REDUCTIONMATRIX1 50725 /* &dimensionality reduction
[482] Fix | Delete
matrix 1 */
[483] Fix | Delete
#define TIFFTAG_REDUCTIONMATRIX2 50726 /* &dimensionality reduction
[484] Fix | Delete
matrix 2 */
[485] Fix | Delete
#define TIFFTAG_ANALOGBALANCE 50727 /* &gain applied the stored raw
[486] Fix | Delete
values*/
[487] Fix | Delete
#define TIFFTAG_ASSHOTNEUTRAL 50728 /* &selected white balance in
[488] Fix | Delete
linear reference space */
[489] Fix | Delete
#define TIFFTAG_ASSHOTWHITEXY 50729 /* &selected white balance in
[490] Fix | Delete
x-y chromaticity
[491] Fix | Delete
coordinates */
[492] Fix | Delete
#define TIFFTAG_BASELINEEXPOSURE 50730 /* &how much to move the zero
[493] Fix | Delete
point */
[494] Fix | Delete
#define TIFFTAG_BASELINENOISE 50731 /* &relative noise level */
[495] Fix | Delete
#define TIFFTAG_BASELINESHARPNESS 50732 /* &relative amount of
[496] Fix | Delete
sharpening */
[497] Fix | Delete
#define TIFFTAG_BAYERGREENSPLIT 50733 /* &how closely the values of
[498] Fix | Delete
the green pixels in the
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function