C Library Functions libtiff(3)
NAME
libtiff - introduction to libtiff, a library for reading and
writing TIFF filesSYNOPSIS
#include
cc [ flag ...] -I/usr/sfw/include file [ library ... ]
-L/usr/sfw/lib -R/usr/sfw/lib -ltiff
DESCRIPTION
libtiff is a library for reading and writing data files
encoded with the Tag Image File format, Revision 4.0 orlater. The TIFF file format is suitable for archiving mul-
ticolor and monochromatic image data.EXTENDED DESCRIPTION
The libtiff library supports several compression algorithms,
as indicated by the Compression field, including: +o No compression (1) +o CCITT 1D Huffman compression (2) +o CCITT Group 3 Facsimile compression (3) +o CCITT Group 4 Facsimile compression (4)+o Lempel-Ziv & Welch compression (5)
+o Baseline JPEG compression (7)+o Word-aligned 1D Huffman compression (32771)
+o PackBits compression (32773) In addition, several nonstandard compression algorithms are supported:+o 4-bit compression algorithm used by the ThunderScan
program (32809) (decompression only)+o NeXT's 2-bit compression algorithm (32766) (decompres-
sion only)+o Experimental LZ-style algorithm known as Deflate
(32946) +o Experimental CIE LogLuv compression scheme designed for images with high dynamic range (32845 for LogL andSunOS 5.11 Last change: 06 Apr 2004 1
C Library Functions libtiff(3)
32845 for LogLuv)Directory information may be in either little- or big-endian
byte order. Byte swapping is automatically done by the library. Data bit ordering may be either Most Significant Bit (MSB) to Least Significant Bit (LSB), or LSB to MSB.The library does not support files in which the BitsPerSam-
ple, Compression, MinSampleValue, or MaxSampleValue fieldsare defined differently on a per-sample basis. In Revision
6.0, the Compression tag is not defined on a per-sample
basis, so this is immaterial. Data TypesThe libtiff library makes extensive use of C typedefs to
promote portability. Two sets of typedefs are used, one forcommunication with clients of the library and one for inter-
nal data structures and parsing of the TIFF format. The fol-
lowing typedefs are exposed to users either through function definitions or through parameters passed through the varargs interfaces.+o typedef unsigned short uint16; - 16-bit unsigned
integer+o typedef unsigned
integeruint32; - 32-bit unsigned +o typedef unsigned int ttag_t; - directory tag
+o typedef uint16 tdir_t; - directory index
+o typedef uint16 tsample_t; - sample number
+o typedef uint32 tstrip_t; - strip number
+o typedef uint32 ttile_t; - tile number
+o typedef int32 tsize_t; - i/o size in bytes
+o typedef void* tdata_t; - image data ref
+o typedef void* thandle_t; - client data handle
+o typedef int32 toff_t; - file offset
tstrip_t, ttile_t, and tsize_t are limited to 32-bit quanti-
ties because they are stored in 32-bit fields in the TIFF
SunOS 5.11 Last change: 06 Apr 2004 2
C Library Functions libtiff(3)
image. Similarly, tsample_t is limited by the 16-bit field
used to store the SamplesPerPixel tag. tdir_t constrains the
maximum number of IFDs that may appear in an image and may be an arbitrary size without penalty.ttag_t must be int, unsigned int, pointer, or double because
the library uses a varargs interface and ANSI C restrictsthe type of the parameter before an ellipsis to be a pro-
moted type.toff_t is defined as int32 because TIFF file offsets are
unsigned 32-bit quantities. A signed value is used because
some interfaces return -1 on error.
User-specified data references are passed as opaque handles
and only cast at the lowest layers where their type is presumed. Library RoutinesThe following routines are part of the libtiff library.
Consult specific reference pages for details on their opera-
tion. The reference page names listed below are for systems where the full function names cannot be encoded in the filesystem. On most systems, the command man function-name will
work._TIFFfree Release allocated
memory. See TIFFmemory(3tiff)._TIFFmalloc Dynamically allocate
memory. See TIFFmemory(3tiff)._TIFFmemcmp Compare allocated
memory. See TIFFmemory(3tiff)._TIFFmemcpy Copy allocated
memory to another memory location. See TIFFmemory(3tiff).SunOS 5.11 Last change: 06 Apr 2004 3
C Library Functions libtiff(3)
_TIFFmemset Set allocated memory
to known value. See TIFFmemory(3tiff)._TIFFrealloc Dynamically reallo-
cate memory. See TIFFmemory(3tiff). TIFFbuffer Specify i/o bufferfor reading or writ-
ing. See TIFFbuffer(3tiff). TIFFCheckTile Every x,y,z,sample is within image. See TIFFtile(3tiff). TIFFClientOpen Open a file for reading or writing. See TIFFOpen(3tiff). TIFFClose Close an open file. See TIFFClose(3tiff). TIFFcodec Work with codecs. See TIFFcodec(3tiff).TIFFComputeStrip Return strip con-
taining x,y,z,sample. See TIFFstrip(3tiff).TIFFComputeTile Return tile contain-
ing y,sample. SeeSunOS 5.11 Last change: 06 Apr 2004 4
C Library Functions libtiff(3)
TIFFtile(3tiff). TIFFCurrentDirectory Return index of current directory. See TIFFquery(3tiff). TIFFCurrentRow Return index of current scanline. See TIFFquery(3tiff). TIFFCurrentStrip Return index of current strip. See TIFFquery(3tiff). TIFFCurrentTile Return index of current tile. See TIFFquery(3tiff). TIFFDefaultStripSize Return size of a strip. See TIFFstrip(3tiff). TIFFDefaultTileSize Return size of a tile. See TIFFtile(3tiff). TIFFError Library error handler. See TIFFError(3tiff). TIFFFdOpen Open a file for reading or writing. See TIFFOpen(3tiff).SunOS 5.11 Last change: 06 Apr 2004 5
C Library Functions libtiff(3)
TIFFFileName Return name of open file. See TIFFquery(3tiff). TIFFFileno Return open file descriptor. See TIFFquery(3tiff). TIFFFindCODEC Find a codec. See TIFFcodec(3tiff). TIFFFlush Flush all pending writes. See TIFFFlush(3tiff). TIFFFlushData Flush pending data writes. See TIFFFlush(3tiff). TIFFGetBitRevTable Return bit reversal table. See TIFFswab(3tiff). TIFFGetField Return tag value in current directory. See TIFFGetField(3tiff). TIFFGetFieldDefaulted Return tag value in current directory. See TIFFGetField(3tiff). TIFFGetMode Return open file mode. See TIFFquery(3tiff).SunOS 5.11 Last change: 06 Apr 2004 6
C Library Functions libtiff(3)
TIFFGetVersion Return library ver-
sion string. See TIFFquery(3tiff). TIFFIsByteSwapped Return true if imagedata is byte-
swapped. See TIFFquery(3tiff). TIFFIsMSB2LSB Return true if image data is returned with bit 0 as the most significant bit. See TIFFquery(3tiff). TIFFIsTiled Return true if image data is tiled. See TIFFquery(3tiff). TIFFIsUpSampled Return true if imagedata is up-sampled.
See TIFFquery(3tiff).TIFFLastDirectory Return a non-zero
value if the current directory is the last directory in the file. See TIFFquery(3tiff). TIFFmemory Manage memory. See TIFFmemory(3tiff). TIFFNumberOfStrips Return number of strips in an image. SeeSunOS 5.11 Last change: 06 Apr 2004 7
C Library Functions libtiff(3)
TIFFstrip(3tiff). TIFFNumberOfTiles Return number of tiles in an image. See TIFFtile(3tiff). TIFFOpen Open a file for reading or writing. See TIFFOpen(3tiff). TIFFPrintDirectory Print description ofthe current direc-
tory. See TIFFPrintDirectory(3tiff). TIFFquery Return information about image. See TIFFquery(3tiff). TIFFRasterScanlineSize Return size of a raster scanline. See TIFFsize(3tiff). TIFFReadBufferSetup Specify i/o buffer for reading. See TIFFbuffer(3tiff).TIFFReadDirectory Read the next direc-
tory. See TIFFReadDirectory(3tiff). TIFFReadEncodedStrip Read and decode a strip of data. See TIFFReadEncodedStrip(3tiff).SunOS 5.11 Last change: 06 Apr 2004 8
C Library Functions libtiff(3)
TIFFReadEncodedTile Read and decode a tile of data. See TIFFReadEncodedTile(3tiff). TIFFReadRawStrip Read a raw strip of data. See TIFFReadRawStrip(3tiff). TIFFReadRawTile Read a raw tile of data. See TIFFReadRawTile(3tiff). TIFFReadRGBAImage Read an image into a fixed format raster. See TIFFReadRGBAImage(3tiff). TIFFReadRGBAStrip Read an image strip into a fixed format raster. See TIFFReadRGBAStrip(3tiff). TIFFReadRGBATile Read an image tile into a fixed format raster. See TIFFReadRGBATile(3tiff). TIFFReadScanline Read and decode a row of data. See TIFFReadScanline(3tiff). TIFFReadTile Read and decode a tile of data. See TIFFReadTile(3tiff).SunOS 5.11 Last change: 06 Apr 2004 9
C Library Functions libtiff(3)
TIFFRegisterCODEC Register a codec. See TIFFcodec(3tiff). TIFFReverseBits Reverse bits in an array of bytes. See TIFFswab(3tiff). TIFFRGBAImage Read and decode an image into a raster. See TIFFRGBAImage(3tiff). TIFFRGBAImageBegin Set up decoder statefor TIF-
FRGBAImageGet. See TIFFRGBAImage(3tiff).TIFFRGBAImageEnd Release TIFFRGBAIm-
age decoder state. See TIFFRGBAImage(3tiff). TIFFRGBAImageGet Read and decode an image. See TIFFRGBAImage(3tiff). TIFFRGBAImageOK Determine whether image is readable by TIFFRGBAImageGet. See TIFFRGBAImage(3tiff). TIFFScanlineSize Return size of a scanline. See TIFFsize(3tiff).SunOS 5.11 Last change: 06 Apr 2004 10
C Library Functions libtiff(3)
TIFFSetDirectory Set the current directory. See TIFFSetDirectory(3tiff). TIFFSetSubDirectory Set the current directory. See TIFFSetDirectory(3tiff). TIFFSetErrorHandler Set error handler function. See TIFFError(3tiff). TIFFSetField Set tag value in the current directory. See TIFFSetField(3tiff). TIFFSetWarningHandler Set warning handler function. See TIFFWarning(3tiff). TIFFsize Return the size. See TIFFsize(3tiff). TIFFstrip Work with strips. See TIFFstrip(3tiff). TIFFStripSize Return size of a strip. See TIFFstrip(3tiff). TIFFswab Swap bytes. See TIFFswab(3tiff).SunOS 5.11 Last change: 06 Apr 2004 11
C Library Functions libtiff(3)
TIFFSwabShort Swap bytes of short. See TIFFswab(3tiff). TIFFSwabLong Swap bytes of long. See TIFFswab(3tiff). TIFFSwabArrayOfShort Swap bytes of an array of shorts. See TIFFswab(3tiff). TIFFSwabArrayOfLong Swap bytes of an array of longs. See TIFFswab(3tiff).TIFFtile Return tile informa-
tion. See TIFFtile(3tiff). TIFFTileRowSize Return size of a row in a tile. See TIFFtile(3tiff). TIFFTileSize Return size of a tile. See TIFFtile(3tiff). TIFFUnregisterCODEC Unregister a codec. See TIFFcodec(3tiff). TIFFVGetField Return tag value in current directory. See TIFFGetField(3tiff).SunOS 5.11 Last change: 06 Apr 2004 12
C Library Functions libtiff(3)
TIFFVGetFieldDefaulted Return tag value in current directory. See TIFFGetField(3tiff). TIFFVSetField Set tag value in current directory. See TIFFSetField(3tiff). TIFFVStripSize Return size of a strip. See TIFFstrip(3tiff). TIFFVTileSize Return size of a tile. See TIFFtile(3tiff). TIFFWarning Library warning handler. See TIFFWarning(3tiff). TIFFWriteBufferSetup Specify i/o buffer for writing. See TIFFbuffer(3tiff). TIFFWriteDirectory Write the current directory. See TIFFWriteDirectory(3tiff). TIFFWriteEncodedStrip Compress and write a strip of data. See TIFFWriteEncodedStrip(3tiff). TIFFWriteEncodedTile Compress and write a tile of data. SeeSunOS 5.11 Last change: 06 Apr 2004 13
C Library Functions libtiff(3)
TIFFWriteEncodedTile(3tiff). TIFFWriteRawStrip Write a raw strip of data. See TIFFWriteRawStrip(3tiff). TIFFWriteRawTile Write a raw tile of data. See TIFFWriteRawTile(3tiff). TIFFWriteScanline Write a scanline of data. See TIFFWriteScanline(3tiff). TIFFWriteTile Compress and write a tile of data. See TIFFWriteTile(3tiff). Tag Usage The table below lists the TIFF tags that are recognized andsupported by the libtiff library. If no use is indicated in
the table, then the library reads and writes the tag, but does not use the tag internally. Note that some tags are meaningful only when a particular compression scheme isused. For example, Group3Options is only useful if Compres-
sion is set to CCITT Group 3 encoding. Tags of this sort areconsidered codec-specific tags and the library does not
recognize them except when the Compression tag has been pre-
viously set to the relevant compression scheme.SunOS 5.11 Last change: 06 Apr 2004 14
C Library Functions libtiff(3)
SunOS 5.11 Last change: 06 Apr 2004 15
C Library Functions libtiff(3)
_______________________________________________________________________________________________
TAG NAME VALUE R/W LIBRARY USE / NOTES
_______________________________________________________________________________________________
Artist 315 R/W
_______________________________________________________________________________________________
BadFaxLines 326 R/W
_______________________________________________________________________________________________
BitsPerSample 258 R/W Lots.
_______________________________________________________________________________________________
CellLength 265 Parsed but ignored._______________________________________________________________________________________________
CellWidth 264 Parsed but ignored._______________________________________________________________________________________________
CleanFaxData 327 R/W
_______________________________________________________________________________________________
ColorMap 320 R/W
_______________________________________________________________________________________________
ColorResponseUnit 300 Parsed but ignored._______________________________________________________________________________________________
Compression 259 R/W Choosing codec.
_______________________________________________________________________________________________
ConsecutiveBadFaxLines 328 R/W
_______________________________________________________________________________________________
DataType 32996 R Obsoleted by SampleFormat tag._______________________________________________________________________________________________
DateTime 306 R/W
_______________________________________________________________________________________________
DocumentName 269 R/W
_______________________________________________________________________________________________
DotRange 336 R/W
_______________________________________________________________________________________________
ExtraSamples 338 R/W Lots.
_______________________________________________________________________________________________
FaxRecvParams 34908 R/W
_______________________________________________________________________________________________
FaxSubAddress 34909 R/W
_______________________________________________________________________________________________
FaxRecvTime 34910 R/W
_______________________________________________________________________________________________
FillOrder 266 R/W Control bit order.
_______________________________________________________________________________________________
FreeByteCounts 289 Parsed but ignored._______________________________________________________________________________________________
FreeOffsets 288 Parsed but ignored._______________________________________________________________________________________________
GrayResponseCurve 291 Parsed but ignored._______________________________________________________________________________________________
GrayResponseUnit 290 Parsed but ignored._______________________________________________________________________________________________
Group3Options 292 R/W Used
_______________________________________________________________________________________________
by Group 3 codec.SunOS 5.11 Last change: 06 Apr 2004 16
C Library Functions libtiff(3)
_______________________________________________________________________________________________
Group4Options 293 R/W
_______________________________________________________________________________________________
HostComputer 316 R/W
_______________________________________________________________________________________________
ImageDepth 32997 R/W Tile/strip
_______________________________________________________________________________________________
calculations._______________________________________________________________________________________________
ImageDescription 270 R/W
_______________________________________________________________________________________________
ImageLength 257 R/W Lots.
_______________________________________________________________________________________________
ImageWidth 256 R/W Lots.
_______________________________________________________________________________________________
InkNames 333 R/W
_______________________________________________________________________________________________
InkSet 332 R/W
_______________________________________________________________________________________________
JPEGTables 347 R/W Used
_______________________________________________________________________________________________
by JPEG codec._______________________________________________________________________________________________
Make 271 R/W
_______________________________________________________________________________________________
Matteing 32995 R Obsoleted_______________________________________________________________________________________________
by ExtraSamples tag._______________________________________________________________________________________________
MaxSampleValue 281 R/W
_______________________________________________________________________________________________
MinSampleValue 280 R/W
_______________________________________________________________________________________________
Model 272 R/W
_______________________________________________________________________________________________
NewSubFileType 254 R/W Called SubFileType in spec.
_______________________________________________________________________________________________
NumberOfInks 334 R/W
_______________________________________________________________________________________________
Orientation 274 R/W
_______________________________________________________________________________________________
PageName 285 R/W
_______________________________________________________________________________________________
PageNumber 297 R/W
_______________________________________________________________________________________________
PhotometricInterpretation 262 R/W Used
_______________________________________________________________________________________________
by Group 3 and JPEG codecs._______________________________________________________________________________________________
PlanarConfiguration 284 R/W Data
_______________________________________________________________________________________________
i/o.SunOS 5.11 Last change: 06 Apr 2004 17
C Library Functions libtiff(3)
_______________________________________________________________________________________________
Predictor 317 R/W Used
_______________________________________________________________________________________________
by LZW and Deflate codecs._______________________________________________________________________________________________
PrimaryChromacities 319 R/W
_______________________________________________________________________________________________
ReferenceBlackWhite 532 R/W
_______________________________________________________________________________________________
ResolutionUnit 296 R/W Used
_______________________________________________________________________________________________
by Group 3 codec._______________________________________________________________________________________________
RowsPerStrip 278 R/W Data
_______________________________________________________________________________________________
i/o._______________________________________________________________________________________________
SampleFormat 339 R/W
_______________________________________________________________________________________________
SamplesPerPixel 277 R/W Lots.
_______________________________________________________________________________________________
SMinSampleValue 340 R/W
_______________________________________________________________________________________________
SMaxSampleValue 341 R/W
_______________________________________________________________________________________________
Software 305 R/W
_______________________________________________________________________________________________
StoNits 37439 R/W
_______________________________________________________________________________________________
StripByteCounts 279 R/W Data
_______________________________________________________________________________________________
i/o._______________________________________________________________________________________________
StripOffsets 273 R/W Data
_______________________________________________________________________________________________
i/o._______________________________________________________________________________________________
SubFileType 255 R/W Called OSubFileType in spec.
_______________________________________________________________________________________________
TargetPrinter 337 R/W
_______________________________________________________________________________________________
Thresholding 263 R/W
_______________________________________________________________________________________________
TileByteCounts 324 R/W Data
_______________________________________________________________________________________________
i/o._______________________________________________________________________________________________
TileDepth 32998 R/W Tile/strip
_______________________________________________________________________________________________
calculations._______________________________________________________________________________________________
TileLength 323 R/W Data
SunOS 5.11 Last change: 06 Apr 2004 18
C Library Functions libtiff(3)
_______________________________________________________________________________________________
| i/o. | | | ||____________________________|________________|________________|_______________________________|
| TileOffsets | 324 | R/W | Data |
|____________________________|________________|________________|_______________________________|
| i/o. | | | ||____________________________|________________|________________|_______________________________|
| TileWidth | 322 | R/W | Data |
|____________________________|________________|________________|_______________________________|
| i/o. | | | ||____________________________|________________|________________|_______________________________|
| TransferFunction | 301 | R/W | |
|____________________________|________________|________________|_______________________________|
| WhitePoint | 318 | R/W | |
|____________________________|________________|________________|_______________________________|
| XPosition | 286 | R/W | |
|____________________________|________________|________________|_______________________________|
| XResolution | 282 | R/W | |
|____________________________|________________|________________|_______________________________|
| YCbCrCoefficients | 529 | R/W | Used |
|____________________________|________________|________________|_______________________________|
| by TIFFRGBAImage support. | | | ||____________________________|________________|________________|_______________________________|
| YCbCrPositioning | 531 | R/W | Tile/strip |
|____________________________|________________|________________|_______________________________|
| size calulcations. | | | ||____________________________|________________|________________|_______________________________|
| YCbCrSubsampling | 530 | R/W | |
|____________________________|________________|________________|_______________________________|
| YPosition | 286 | R/W | |
|____________________________|________________|________________|_______________________________|
| YResolution | 283 | R/W | Used |
|____________________________|________________|________________|_______________________________|
| by Group 3 codec. | | | ||____________________________|________________|________________|_______________________________|
Pseudo TagsIn addition to the normal TIFF tags, the libtiff library
supports a collection of tags whose values lie in a range outside the valid range of TIFF tags. These tags are termedpseudo-tags and are used to control various codec-specific
functions within the library. The table below summarizes thedefined pseudo-tags.
SunOS 5.11 Last change: 06 Apr 2004 19
C Library Functions libtiff(3)
________________________________________________________________________________________________
| TAG NAME | CODEC | R/W | LIBRARY USE / NOTES |
|________________________|________________|________________|____________________________________|
| TIFFTAG_FAXMODE | G3 | R/W | General codec operation. |
|________________________|________________|________________|____________________________________|
| TIFFTAG_FAXFILLFUNC | G3/G4 | R/W | Bitmap fill function. |
|________________________|________________|________________|____________________________________|
| TIFFTAG_JPEGQUALITY | JPEG | R/W | Compression quality control. |
|________________________|________________|________________|____________________________________|
| TIFFTAG_JPEGCOLORMODE | JPEG | R/W | Control colorspace conversions. |
|________________________|________________|________________|____________________________________|
| TIFFTAG_JPEGTABLESMODE | JPEG | R/W | Control contents of JPEGTables tag.|
|________________________|________________|________________|____________________________________|
| TIFFTAG_ZIPQUALITY | Deflate | R/W | Compression quality level. |
|________________________|________________|________________|____________________________________|
| TIFFTAG_PIXARLOGDATAFMT| PixarLog | R/W | User data format. |
|________________________|________________|________________|____________________________________|
| TIFFTAG_PIXARLOGQUALITY| PixarLog | R/W | Compression quality level. |
|________________________|________________|________________|____________________________________|
| TIFFTAG_SGILOGDATAFMT | SGILog | R/W | User data format. |
|________________________|________________|________________|____________________________________|
TIFFTAG_FAXMODE
Controls the operation of the Group 3 codec. Possible values (independent bits that can be combined by or'ing them together) are:FAXMODE_BYTEALIGN Align each encoded row to an 8-bit
boundary.FAXMODE_CLASSIC Enable old-style format in which the
RTC is written at the end of the last strip.FAXMODE_NOEOL Do not write EOL codes at the start
of each row of data.FAXMODE_NORTC, also calleOdppFoAsXiMtOeDEofCLFAASXSMFODE_CLASSIC.
FAXMODE_WORDALIGN Align each encoded row to a 16-bit
boundary.SunOS 5.11 Last change: 06 Apr 2004 20
C Library Functions libtiff(3)
The default value depends on the compression scheme. Thispseudo-tag is used by the various G3 and G4 codecs to share
code.TIFFTAG_FAXFILLFUNC
Controls the function used to convert arrays of black and white runs to packed bit arrays. This hook can be used toimage decoded scanlines in multi-bit depth rasters (for
example, for display in colormap mode) or for other pur-
poses. The default value is a pointer to a builtin function that images packed bilevel data.TIFFTAG_IPTCNEWSPHOTO
Contains image metadata per the IPTC newsphoto specifica-
tion: Headline, captioning, credit, and so on. Used by most wire services.TIFFTAG_PHOTOSHOP
Contains Photoshop captioning information and metadata. Pho-
toshop uses in parallel and redundantly alongside IPTCNEWS-
PHOTO information.TIFFTAG_JPEGQUALITY
Controls the compression quality level used in the baselinealgorithm. Note that quality levels are in the range 0-100
with a default value of 75.TIFFTAG_JPEGCOLORMODE
Controls whether or not conversion is done between RGB andYCbCr colorspaces. Possible values are: JPEGCOLORMODE_RAW
(do not convert), and JPEGCOLORMODE_RGB (convert to/from
RGB). The default value is JPEGCOLORMODE_RAW.
TIFFTAG_JPEGTABLESMODE
Controls the information written in the JPEGTables tag. Pos-
sible values (independent bits that can be combined byor'ing them together) are: JPEGTABLESMODE_QUANT (include
quantization tables), and JPEGTABLESMODE_HUFF (include Huff-
man encoding tables).TIFFTAG_ZIPQUALITY
Controls the compression technique used by the Deflatecodec. Quality levels are in the range 1-9 with larger
numbers yielding better compression at the cost of more com-
putation. The default quality level is 6 which yields a goodtime-space tradeoff.
TIFFTAG_PIXARLOGDATAFMT
Controls the format of user data passed to the PixarLog codec when encoding and passed from the PixarLog codec when decoding. Possible values are:SunOS 5.11 Last change: 06 Apr 2004 21
C Library Functions libtiff(3)
+o PIXARLOGDATAFMT_8BIT for 8-bit unsigned pixels
+o PIXARLOGDATAFMT_8BITABGR for 8-bit unsigned ABGR-
orderedpixels+o PIXARLOGDATAFMT_11BITLOG for 11-bit log-encoded raw
data+o PIXARLOGDATAFMT_12BITPICIO for 12-bit PICIO-compatible
data+o PIXARLOGDATAFMT_16BIT for 16-bit signed samples
+o PIXARLOGDATAFMT_FLOAT for 32-bit IEEE floating point
samplesTIFFTAG_PIXARLOGQUALITY
Controls the compression technique used by the PixarLog codec. This value is treated identically toTIFFTAG_ZIPQUALITY.
TIFFTAG_SGILOGDATAFMT
Controls the format of client data passed to the SGILog codec when encoding and passed from the SGILog codec when decoding. Possible values are:+o SGILOGDATAFMT_FLTXYZ for converting between LogLuv and
32-bit IEEE floating valued XYZ pixels
+o SGILOGDATAFMT_16BITLUV for 16-bit encoded Luv pixels
+o SGILOGDATAFMT_32BITRAW and SGILOGDATAFMT_24BITRAW for
no conversion of data+o SGILOGDATAFMT_8BITRGB for returning 8-bit RGB data
(valid only when decoding LogLuv-encoded data)
+o SGILOGDATAFMT_FLTY for converting between LogL and 32-
bit IEEE floating valued Y pixels+o SGILOGDATAFMT_16BITL for 16-bit encoded L pixels
+o SGILOGDATAFMT_8BITGRY for returning 8-bit greyscale
data (valid only when decoding LogL-encoded data)
DiagnosticsAll error messages are directed through the TIFFError rou-
tine. By default, messages are directed to stderr in the form: module: message\n. Warning messages are likewise directed through the TIFFWarning routine.SunOS 5.11 Last change: 06 Apr 2004 22
C Library Functions libtiff(3)
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | image/library/libtiff |
|_____________________________|_____________________________|
| Interface stability | Uncommitted ||_____________________________|_____________________________|
SEE ALSO
fax2tiff(1), gif2tiff(1), pal2rgb(1), ppm2tiff(1), ras2tiff(1), rgb2ycbcr(1), sgi2tiff(1), tiff2bw(1), tiffcmp(1), tiffcp(1), tiffdither(1), tiffdump(1), tiffgt(1), tiffinfo(1), tiffmedian(1), tiffsplit(1), tiffsv(1), attributes(5) Tag Image File Format Specification Revision 6.0, an Aldus Technical Memorandum. The Spirit of TIFF Class F an appendix to the TIFF 5.0 specification prepared by Cygnet Technologies. NOTESThe libtiff library does not support multisample images
where some samples have different bits/sample. The library does not support random access to compressed data that is organized with more than one row per tile or strip. The library discards unknown tags. The library should do more validity checking of a directory's contents. This man page was originally written by Sam Leffler. Updated by Breda McColgan, Sun Microsystems Inc., 2004.SunOS 5.11 Last change: 06 Apr 2004 23