Blame man/TIFFtile.3tiff

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