Blame man/TIFFtile.3tiff

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