Blame man/TIFFtile.3tiff

Packit Service db44fb
.\" $Id: TIFFtile.3tiff,v 1.2 2005/11/02 11:07:19 dron Exp $
Packit Service db44fb
.\"
Packit Service db44fb
.\" Copyright (c) 1988-1997 Sam Leffler
Packit Service db44fb
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
Packit Service db44fb
.\"
Packit Service db44fb
.\" Permission to use, copy, modify, distribute, and sell this software and 
Packit Service db44fb
.\" its documentation for any purpose is hereby granted without fee, provided
Packit Service db44fb
.\" that (i) the above copyright notices and this permission notice appear in
Packit Service db44fb
.\" all copies of the software and related documentation, and (ii) the names of
Packit Service db44fb
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
Packit Service db44fb
.\" publicity relating to the software without the specific, prior written
Packit Service db44fb
.\" permission of Sam Leffler and Silicon Graphics.
Packit Service db44fb
.\" 
Packit Service db44fb
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
Packit Service db44fb
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
Packit Service db44fb
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
Packit Service db44fb
.\" 
Packit Service db44fb
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
Packit Service db44fb
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
Packit Service db44fb
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
Packit Service db44fb
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
Packit Service db44fb
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
Packit Service db44fb
.\" OF THIS SOFTWARE.
Packit Service db44fb
.\"
Packit Service db44fb
.if n .po 0
Packit Service db44fb
.TH TIFFTILE 3TIFF "February 14, 1992" "libtiff"
Packit Service db44fb
.SH NAME
Packit Service db44fb
TIFFTileSize, TIFFTileRowSize, TIFFVTileSize, TIFFDefaultTileSize,
Packit Service db44fb
TIFFComputeTile, TIFFCheckTile, TIFFNumberOfTiles \- tile-related utility
Packit Service db44fb
routines
Packit Service db44fb
.SH SYNOPSIS
Packit Service db44fb
.B "#include <tiffio.h>"
Packit Service db44fb
.sp
Packit Service db44fb
.BI "void TIFFDefaultTileSize(TIFF *" tif ", uint32 *" tw ", uint32 *" th ")"
Packit Service db44fb
.br
Packit Service db44fb
.BI "tsize_t TIFFTileSize(TIFF *" tif ")"
Packit Service db44fb
.br
Packit Service db44fb
.BI "tsize_t TIFFTileRowSize(TIFF *" tif ")"
Packit Service db44fb
.br
Packit Service db44fb
.BI "tsize_t TIFFVTileSize(TIFF *" tif ", uint32 " nrows ")"
Packit Service db44fb
.br
Packit Service db44fb
.BI "ttile_t TIFFComputeTile(TIFF *" tif ", uint32 " x ", uint32 " y ", uint32 " z ", tsample_t " sample ")"
Packit Service db44fb
.br
Packit Service db44fb
.BI "int TIFFCheckTile(TIFF *" tif ", uint32 " x ", uint32 " y ", uint32 " z ", tsample_t " sample ")"
Packit Service db44fb
.br
Packit Service db44fb
.BI "ttile_t TIFFNumberOfTiles(TIFF *" tif ")"
Packit Service db44fb
.br
Packit Service db44fb
.SH DESCRIPTION
Packit Service db44fb
.I TIFFDefaultTileSize
Packit Service db44fb
returns the pixel width and height of a reasonable-sized tile; suitable for
Packit Service db44fb
setting up the
Packit Service db44fb
.I TileWidth
Packit Service db44fb
and
Packit Service db44fb
.I TileLength
Packit Service db44fb
tags.
Packit Service db44fb
If the
Packit Service db44fb
.I tw
Packit Service db44fb
and
Packit Service db44fb
.I th
Packit Service db44fb
values passed in are non-zero, then they are adjusted to reflect any
Packit Service db44fb
compression-specific requirements. The returned width and height are
Packit Service db44fb
constrained to be a multiple of 16 pixels to conform with the 
Packit Service db44fb
.SM TIFF
Packit Service db44fb
specification.
Packit Service db44fb
.PP
Packit Service db44fb
.I TIFFTileSize
Packit Service db44fb
returns the equivalent size for a tile of data as it would be returned in a
Packit Service db44fb
call to
Packit Service db44fb
.I TIFFReadTile
Packit Service db44fb
or as it would be expected in a call to
Packit Service db44fb
.IR TIFFWriteTile .
Packit Service db44fb
.PP
Packit Service db44fb
.I TIFFVTileSize
Packit Service db44fb
returns the number of bytes in a row-aligned tile with
Packit Service db44fb
.I nrows
Packit Service db44fb
of data.
Packit Service db44fb
.PP
Packit Service db44fb
.I TIFFTileRowSize
Packit Service db44fb
returns the number of bytes of a row of data in a tile.
Packit Service db44fb
.PP
Packit Service db44fb
.IR TIFFComputeTile
Packit Service db44fb
returns the tile that contains the specified coordinates. A valid tile is
Packit Service db44fb
always returned; out-of-range coordinate values are clamped to the bounds of
Packit Service db44fb
the image. The
Packit Service db44fb
.I x
Packit Service db44fb
and
Packit Service db44fb
.I y
Packit Service db44fb
parameters are always used in calculating a tile. The
Packit Service db44fb
.I z
Packit Service db44fb
parameter is used if the image is deeper than 1 slice (\c
Packit Service db44fb
.IR ImageDepth >1).
Packit Service db44fb
The
Packit Service db44fb
.I sample
Packit Service db44fb
parameter is used only if data are organized in separate planes (\c
Packit Service db44fb
.IR PlanarConfiguration =2).
Packit Service db44fb
.PP
Packit Service db44fb
.IR TIFFCheckTile
Packit Service db44fb
returns a non-zero value if the supplied coordinates are within the bounds of
Packit Service db44fb
the image and zero otherwise. The
Packit Service db44fb
.I x
Packit Service db44fb
parameter is checked against the value of the
Packit Service db44fb
.I ImageWidth
Packit Service db44fb
tag. The
Packit Service db44fb
.I y
Packit Service db44fb
parameter is checked against the value of the
Packit Service db44fb
.I ImageLength
Packit Service db44fb
tag. The
Packit Service db44fb
.I z
Packit Service db44fb
parameter is checked against the value of the
Packit Service db44fb
.I ImageDepth
Packit Service db44fb
tag (if defined). The
Packit Service db44fb
.I sample
Packit Service db44fb
parameter is checked against the value of the
Packit Service db44fb
.I SamplesPerPixel
Packit Service db44fb
parameter if the data are organized in separate planes.
Packit Service db44fb
.PP
Packit Service db44fb
.IR TIFFNumberOfTiles
Packit Service db44fb
returns the number of tiles in the image.
Packit Service db44fb
.SH DIAGNOSTICS
Packit Service db44fb
None.
Packit Service db44fb
.SH "SEE ALSO"
Packit Service db44fb
.BR TIFFReadEncodedTile (3TIFF),
Packit Service db44fb
.BR TIFFReadRawTile (3TIFF),
Packit Service db44fb
.BR TIFFReadTile (3TIFF),
Packit Service db44fb
.BR TIFFWriteEncodedTile (3TIFF),
Packit Service db44fb
.BR TIFFWriteRawTile (3TIFF),
Packit Service db44fb
.BR TIFFWriteTile (3TIFF),
Packit Service db44fb
.BR libtiff (3TIFF)
Packit Service db44fb
.PP
Packit Service db44fb
Libtiff library home page:
Packit Service db44fb
.BR http://www.remotesensing.org/libtiff/