This package contains the header files and documentation necessary for
developing programs which will manipulate TIFF format image files
using the libtiff library.
If you need to develop programs which will manipulate TIFF format
image files, you should install this package. You'll also need to
install the libtiff package.
libtiff.3tiff libtiff is a library for reading and writing data files encoded with the Tag Image File format, Revision 6.0 (or revision 5.0 or revision 4.0). This file format... TIFFbuffer.3tiff The following routines are provided for client-control of the I/O buffers used by the library. Applications need never use these routines; they are provided... TIFFClose.3tiff TIFFClose closes a file that was previously opened with TIFFOpen(3TIFF). Any buffered data are flushed to the file, including the contents of the current... TIFFcodec.3tiff libtiff supports a variety of compression schemes implemented by software codecs. Each codec adheres to a modular interface that provides for the decoding and... TIFFcolor.3tiff TIFF supports several color spaces for images stored in that format. There is usually a problem of application to handle the data properly and convert between... TIFFDataWidth.3tiff TIFFDataWidth returns a size of type in bytes. Currently following data types are supported: TIFF_BYTE TIFF_ASCII TIFF_SBYTE TIFF_UNDEFINED TIFF_SHORT... TIFFError.3tiff TIFFError invokes the library-wide error handling function to (normally) write an error message to the stderr. The fmt parameter is a printf(3S) format string... TIFFFieldDataType.3tiff TIFFFieldDataType returns the data type stored in a TIFF field. fip is a field information pointer previously returned by TIFFFindField, TIFFFieldWithTag, or... TIFFFieldName.3tiff TIFFFieldName returns the textual name for a TIFF field. fip is a field information pointer previously returned by TIFFFindField, TIFFFieldWithTag, or... TIFFFieldPassCount.3tiff TIFFFieldPassCount returns true (nonzero) if TIFFGetField and TIFFSetField expect a count value to be passed before the actual data pointer. fip is a field... TIFFFieldReadCount.3tiff TIFFFieldReadCount returns the number of values available to be read from the specified TIFF field; that is, the number of arguments that should be supplied to... TIFFFieldTag.3tiff TIFFFieldTag returns the numeric tag value for a TIFF field. This can be compared to various constants exported by the libtiff header files, such as... TIFFFieldWriteCount.3tiff TIFFFieldWriteCount returns the number of values to be written into the specified TIFF field; that is, the number of arguments that should be supplied to... TIFFFlush.3tiff TIFFFlush causes any pending writes for the specified file (including writes for the current directory) to be done. In normal operation this call is never... TIFFGetField.3tiff TIFFGetField returns the value of a tag or pseudo-tag associated with the the current directory of the opened TIFF file tif. (A pseudo-tag is a parameter that... TIFFmemory.3tiff These routines are provided for writing portable software that uses libtiff; they hide any memory-management related issues, such as dealing with segmented... TIFFOpen.3tiff TIFFOpen opens a TIFF file whose name is filename and returns a handle to be used in subsequent calls to routines in libtiff. If the open operation fails, then... TIFFPrintDirectory.3tiff TIFFPrintDirectory prints a description of the current directory in the specified TIFF file to the standard I/O output stream fd. TIFFquery.3tiff The following routines return status information about an open TIFF file. TIFFCurrentDirectory returns the index of the current directory (directories are... TIFFReadDirectory.3tiff Read the next directory in the specified file and make it the current directory. Applications only need to call TIFFReadDirectory to read multiple subfiles in a... TIFFReadEncodedStrip.3tiff Read the specified strip of data and place up to size bytes of decompressed information in the (user supplied) data buffer. TIFFReadEncodedTile.3tiff Read the specified tile of data and place up to size bytes of decompressed information in the (user supplied) data buffer. TIFFReadRawStrip.3tiff Read the contents of the specified strip into the (user supplied) data buffer. Note that the value of strip is a “raw strip number.” That is, the caller must... TIFFReadRawTile.3tiff Read the contents of the specified tile into the (user supplied) data buffer. Note that the value of tile is a “raw tile number.” That is, the caller must take... TIFFReadRGBAImage.3tiff TIFFReadRGBAImage reads a strip- or tile-based image into memory, storing the result in the user supplied raster. The raster is assumed to be an array of width... TIFFReadRGBAStrip.3tiff TIFFReadRGBAStrip reads a single strip of a strip-based image into memory, storing the result in the user supplied RGBA raster. The raster is assumed to be an... TIFFReadRGBATile.3tiff TIFFReadRGBATile reads a single tile of a tile-based image into memory, storing the result in the user supplied RGBA raster. The raster is assumed to be an... TIFFReadScanline.3tiff Read the data for the specified row into the (user supplied) data buffer buf. The data are returned decompressed and, in the native byte- and bit-ordering, but... TIFFReadTile.3tiff Return the data for the tile containing the specified coordinates. The data placed in buf are returned decompressed and, typically, in the native byte- and... TIFFRGBAImage.3tiff The routines described here provide a high-level interface through which TIFF images may be read into memory. Images may be strip- or tile-based and have a... TIFFSetDirectory.3tiff TIFFSetDirectory changes the current directory and reads its contents with TIFFReadDirectory. The parameter dirnum specifies the subfile/directory as an integer... TIFFSetField.3tiff TIFFSetField sets the value of a field or pseudo-tag in the current directory associated with the open TIFF file tif. (A pseudo-tag is a parameter that is used... TIFFsize.3tiff TIFFScanlineSize returns the size in bytes of a row of data as it would be returned in a call to TIFFReadScanline, or as it would be expected in a call to... TIFFstrip.3tiff TIFFDefaultStripSize returns the number of rows for a reasonable-sized strip according to the current settings of the ImageWidth, BitsPerSample... TIFFswab.3tiff The following routines are used by the library to swap 16- and 32-bit data and to reverse the order of bits in bytes. TIFFSwabShort and TIFFSwabLong swap the... TIFFtile.3tiff TIFFDefaultTileSize returns the pixel width and height of a reasonable-sized tile; suitable for setting up the TileWidth and TileLength tags. If the tw and th... TIFFWarning.3tiff TIFFWarning invokes the library-wide warning handler function to (normally) write a warning message to the stderr. The fmt parameter is a printf(3S) format... TIFFWriteDirectory.3tiff TIFFWriteDirectory will write the contents of the current directory to the file and setup to create a new subfile in the same file. Applications only need to... TIFFWriteEncodedStrip.3tiff Compress size bytes of raw data from buf and write the result to the specified strip; replacing any previously written data. Note that the value of strip is a... TIFFWriteEncodedTile.3tiff Compress size bytes of raw data from buf and append the result to the end of the specified tile. Note that the value of tile is a “raw tile number.” That is... TIFFWriteScanline.3tiff Write data to a file at the specified row. The sample parameter is used only if data are organized in separate planes (PlanarConfiguration=2). The data are... TIFFWriteTile.3tiff Write the data for the tile containing the specified coordinates. The data in buf are is (potentially) compressed, and written to the indicated file, normally...