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