Blame man/TIFFstrip.3tiff

Packit 994f1a
.\" $Id: TIFFstrip.3tiff,v 1.2 2005/11/02 11:07:18 dron Exp $
Packit 994f1a
.\"
Packit 994f1a
.\" Copyright (c) 1992-1997 Sam Leffler
Packit 994f1a
.\" Copyright (c) 1992-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 TIFFSTRIP 3TIFF "October 15, 1995" "libtiff"
Packit 994f1a
.SH NAME
Packit 994f1a
TIFFDefaultStripSize, TIFFStripSize, TIFFVStripSize, TIFFRawStripSize,
Packit 994f1a
TIFFComputeStrip, TIFFNumberOfStrips \- strip-related utility routines
Packit 994f1a
.SH SYNOPSIS
Packit 994f1a
.B "#include <tiffio.h>"
Packit 994f1a
.sp
Packit 994f1a
.BI "uint32 TIFFDefaultStripSize(TIFF *" tif ", uint32 " estimate ")"
Packit 994f1a
.br
Packit 994f1a
.BI "tsize_t TIFFStripSize(TIFF *" tif ")"
Packit 994f1a
.br
Packit 994f1a
.BI "tsize_t TIFFVStripSize(TIFF *" tif ", uint32 " nrows ")"
Packit 994f1a
.br
Packit 994f1a
.BI "tsize_t TIFFRawStripSize(TIFF *" tif ", tstrip_t " strip ")"
Packit 994f1a
.br
Packit 994f1a
.BI "tstrip_t TIFFComputeStrip(TIFF *" tif ", uint32 " row ", tsample_t " sample ")"
Packit 994f1a
.br
Packit 994f1a
.BI "tstrip_t TIFFNumberOfStrips(TIFF *" tif ")"
Packit 994f1a
.SH DESCRIPTION
Packit 994f1a
.I TIFFDefaultStripSize
Packit 994f1a
returns the number of rows for a reasonable-sized strip according to the
Packit 994f1a
current settings of the
Packit 994f1a
.IR ImageWidth ,
Packit 994f1a
.IR BitsPerSample ,
Packit 994f1a
.IR SamplesPerPixel ,
Packit 994f1a
tags and any compression-specific requirements. If the
Packit 994f1a
.I estimate
Packit 994f1a
parameter, if non-zero, then it is taken as an estimate of the desired strip
Packit 994f1a
size and adjusted according to any compression-specific requirements. The
Packit 994f1a
value returned by this function is typically used to define the
Packit 994f1a
.I RowsPerStrip
Packit 994f1a
tag. In lieu of any unusual requirements
Packit 994f1a
.I TIFFDefaultStripSize
Packit 994f1a
tries to create strips that have approximately
Packit 994f1a
8 kilobytes of uncompressed data.
Packit 994f1a
.PP
Packit 994f1a
.IR TIFFStripSize
Packit 994f1a
returns the equivalent size for a strip of data as it would be returned in a
Packit 994f1a
call to
Packit 994f1a
.IR TIFFReadEncodedStrip
Packit 994f1a
or as it would be expected in a call to
Packit 994f1a
.IR TIFFWriteEncodedStrip .
Packit 994f1a
.PP
Packit 994f1a
.I TIFFVStripSize
Packit 994f1a
returns the number of bytes in a strip with
Packit 994f1a
.I nrows
Packit 994f1a
rows of data.
Packit 994f1a
.PP
Packit 994f1a
.I TIFFRawStripSize
Packit 994f1a
returns the number of bytes in a raw strip (i.e. not decoded).
Packit 994f1a
.PP
Packit 994f1a
.IR TIFFComputeStrip
Packit 994f1a
returns the strip that contains the specified coordinates. A valid strip is
Packit 994f1a
always returned; out-of-range coordinate values are clamped to the bounds of
Packit 994f1a
the image. The
Packit 994f1a
.I row
Packit 994f1a
parameter is always used in calculating a strip. 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 TIFFNumberOfStrips
Packit 994f1a
returns the number of strips in the image.
Packit 994f1a
.SH DIAGNOSTICS
Packit 994f1a
None.
Packit 994f1a
.SH "SEE ALSO"
Packit 994f1a
.BR TIFFReadEncodedStrip (3TIFF),
Packit 994f1a
.BR TIFFReadRawStrip (3TIFF),
Packit 994f1a
.BR TIFFWriteEncodedStrip (3TIFF),
Packit 994f1a
.BR TIFFWriteRawStrip (3TIFF),
Packit 994f1a
.BR libtiff (3TIFF),
Packit 994f1a
.PP
Packit 994f1a
Libtiff library home page:
Packit 994f1a
.BR http://www.remotesensing.org/libtiff/