Blame man/TIFFReadTile.3tiff

Packit Service 2594b8
.\" $Id: TIFFReadTile.3tiff,v 1.3 2016-09-25 20:05:50 bfriesen Exp $
Packit Service 2594b8
.\"
Packit Service 2594b8
.\" Copyright (c) 1988-1997 Sam Leffler
Packit Service 2594b8
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
Packit Service 2594b8
.\"
Packit Service 2594b8
.\" Permission to use, copy, modify, distribute, and sell this software and 
Packit Service 2594b8
.\" its documentation for any purpose is hereby granted without fee, provided
Packit Service 2594b8
.\" that (i) the above copyright notices and this permission notice appear in
Packit Service 2594b8
.\" all copies of the software and related documentation, and (ii) the names of
Packit Service 2594b8
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
Packit Service 2594b8
.\" publicity relating to the software without the specific, prior written
Packit Service 2594b8
.\" permission of Sam Leffler and Silicon Graphics.
Packit Service 2594b8
.\" 
Packit Service 2594b8
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
Packit Service 2594b8
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
Packit Service 2594b8
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
Packit Service 2594b8
.\" 
Packit Service 2594b8
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
Packit Service 2594b8
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
Packit Service 2594b8
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
Packit Service 2594b8
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
Packit Service 2594b8
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
Packit Service 2594b8
.\" OF THIS SOFTWARE.
Packit Service 2594b8
.\"
Packit Service 2594b8
.if n .po 0
Packit Service 2594b8
.TH TIFFReadTile 3TIFF "December 16, 1991" "libtiff"
Packit Service 2594b8
.SH NAME
Packit Service 2594b8
TIFFReadTile \- read and decode a tile of data from an open
Packit Service 2594b8
.SM TIFF
Packit Service 2594b8
file
Packit Service 2594b8
.SH SYNOPSIS
Packit Service 2594b8
.B "#include <tiffio.h>"
Packit Service 2594b8
.sp
Packit Service 2594b8
.BI "tsize_t TIFFReadTile(TIFF *" tif ", tdata_t " buf ", uint32 " x ", uint32 " y ", uint32 " z ", tsample_t " sample ")"
Packit Service 2594b8
.SH DESCRIPTION
Packit Service 2594b8
Return the data for the tile
Packit Service 2594b8
.I containing
Packit Service 2594b8
the specified coordinates. The data placed in
Packit Service 2594b8
.I buf
Packit Service 2594b8
are returned decompressed and, typically, in the native byte- and
Packit Service 2594b8
bit-ordering, but are otherwise packed (see further below). The buffer must be
Packit Service 2594b8
large enough to hold an entire tile of data. Applications should call the
Packit Service 2594b8
routine
Packit Service 2594b8
.IR TIFFTileSize
Packit Service 2594b8
to find out the size (in bytes) of a tile buffer. The
Packit Service 2594b8
.I x
Packit Service 2594b8
and
Packit Service 2594b8
.I y
Packit Service 2594b8
parameters are always used by
Packit Service 2594b8
.IR TIFFReadTile .
Packit Service 2594b8
The
Packit Service 2594b8
.I z
Packit Service 2594b8
parameter is used if the image is deeper than 1 slice (\c
Packit Service 2594b8
.IR ImageDepth >1).
Packit Service 2594b8
The
Packit Service 2594b8
.I sample
Packit Service 2594b8
parameter is used only if data are organized in separate planes (\c
Packit Service 2594b8
.IR PlanarConfiguration =2).
Packit Service 2594b8
.SH NOTES
Packit Service 2594b8
The library attempts to hide bit- and byte-ordering differences between the
Packit Service 2594b8
image and the native machine by converting data to the native machine order.
Packit Service 2594b8
Bit reversal is done if the
Packit Service 2594b8
.I FillOrder
Packit Service 2594b8
tag is opposite to the native machine bit order. 16- and 32-bit samples are
Packit Service 2594b8
automatically byte-swapped if the file was written with a byte order opposite
Packit Service 2594b8
to the native machine byte order,
Packit Service 2594b8
.SH "RETURN VALUES"
Packit Service 2594b8
.IR TIFFReadTile
Packit Service 2594b8
returns \-1 if it detects an error; otherwise the number of bytes in the
Packit Service 2594b8
decoded tile is returned.
Packit Service 2594b8
.SH DIAGNOSTICS
Packit Service 2594b8
All error messages are directed to the
Packit Service 2594b8
.BR TIFFError (3TIFF)
Packit Service 2594b8
routine.
Packit Service 2594b8
.SH "SEE ALSO"
Packit Service 2594b8
.BR TIFFCheckTile (3TIFF),
Packit Service 2594b8
.BR TIFFComputeTile (3TIFF),
Packit Service 2594b8
.BR TIFFOpen (3TIFF),
Packit Service 2594b8
.BR TIFFReadEncodedTile (3TIFF),
Packit Service 2594b8
.BR TIFFReadRawTile (3TIFF),
Packit Service 2594b8
.BR libtiff (3TIFF)
Packit Service 2594b8
.PP
Packit Service 2594b8
Libtiff library home page:
Packit Service 2594b8
.BR http://www.simplesystems.org/libtiff/