Blame man/TIFFReadTile.3tiff

Packit Service db44fb
.\" $Id: TIFFReadTile.3tiff,v 1.2 2005/11/02 11:07:18 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 TIFFReadTile 3TIFF "December 16, 1991" "libtiff"
Packit Service db44fb
.SH NAME
Packit Service db44fb
TIFFReadTile \- read and decode a tile of data from an open
Packit Service db44fb
.SM TIFF
Packit Service db44fb
file
Packit Service db44fb
.SH SYNOPSIS
Packit Service db44fb
.B "#include <tiffio.h>"
Packit Service db44fb
.sp
Packit Service db44fb
.BI "tsize_t TIFFReadTile(TIFF *" tif ", tdata_t " buf ", uint32 " x ", uint32 " y ", uint32 " z ", tsample_t " sample ")"
Packit Service db44fb
.SH DESCRIPTION
Packit Service db44fb
Return the data for the tile
Packit Service db44fb
.I containing
Packit Service db44fb
the specified coordinates. The data placed in
Packit Service db44fb
.I buf
Packit Service db44fb
are returned decompressed and, typically, in the native byte- and
Packit Service db44fb
bit-ordering, but are otherwise packed (see further below). The buffer must be
Packit Service db44fb
large enough to hold an entire tile of data. Applications should call the
Packit Service db44fb
routine
Packit Service db44fb
.IR TIFFTileSize
Packit Service db44fb
to find out the size (in bytes) of a tile buffer. The
Packit Service db44fb
.I x
Packit Service db44fb
and
Packit Service db44fb
.I y
Packit Service db44fb
parameters are always used by
Packit Service db44fb
.IR TIFFReadTile .
Packit Service db44fb
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
.SH NOTES
Packit Service db44fb
The library attempts to hide bit- and byte-ordering differences between the
Packit Service db44fb
image and the native machine by converting data to the native machine order.
Packit Service db44fb
Bit reversal is done if the
Packit Service db44fb
.I FillOrder
Packit Service db44fb
tag is opposite to the native machine bit order. 16- and 32-bit samples are
Packit Service db44fb
automatically byte-swapped if the file was written with a byte order opposite
Packit Service db44fb
to the native machine byte order,
Packit Service db44fb
.SH "RETURN VALUES"
Packit Service db44fb
.IR TIFFReadTile
Packit Service db44fb
returns \-1 if it detects an error; otherwise the number of bytes in the
Packit Service db44fb
decoded tile is returned.
Packit Service db44fb
.SH DIAGNOSTICS
Packit Service db44fb
All error messages are directed to the
Packit Service db44fb
.BR TIFFError (3TIFF)
Packit Service db44fb
routine.
Packit Service db44fb
.SH "SEE ALSO"
Packit Service db44fb
.BR TIFFCheckTile (3TIFF),
Packit Service db44fb
.BR TIFFComputeTile (3TIFF),
Packit Service db44fb
.BR TIFFOpen (3TIFF),
Packit Service db44fb
.BR TIFFReadEncodedTile (3TIFF),
Packit Service db44fb
.BR TIFFReadRawTile (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/