|
roentgen |
b75cab |
.\" $Id: TIFFstrip.3tiff,v 1.2 2005-11-02 11:07:18 dron Exp $
|
|
roentgen |
b75cab |
.\"
|
|
roentgen |
b75cab |
.\" Copyright (c) 1992-1997 Sam Leffler
|
|
roentgen |
b75cab |
.\" Copyright (c) 1992-1997 Silicon Graphics, Inc.
|
|
roentgen |
b75cab |
.\"
|
|
roentgen |
b75cab |
.\" Permission to use, copy, modify, distribute, and sell this software and
|
|
roentgen |
b75cab |
.\" its documentation for any purpose is hereby granted without fee, provided
|
|
roentgen |
b75cab |
.\" that (i) the above copyright notices and this permission notice appear in
|
|
roentgen |
b75cab |
.\" all copies of the software and related documentation, and (ii) the names of
|
|
roentgen |
b75cab |
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
|
|
roentgen |
b75cab |
.\" publicity relating to the software without the specific, prior written
|
|
roentgen |
b75cab |
.\" permission of Sam Leffler and Silicon Graphics.
|
|
roentgen |
b75cab |
.\"
|
|
roentgen |
b75cab |
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
|
roentgen |
b75cab |
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
|
roentgen |
b75cab |
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
roentgen |
b75cab |
.\"
|
|
roentgen |
b75cab |
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
|
roentgen |
b75cab |
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
|
roentgen |
b75cab |
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
roentgen |
b75cab |
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
|
roentgen |
b75cab |
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
|
roentgen |
b75cab |
.\" OF THIS SOFTWARE.
|
|
roentgen |
b75cab |
.\"
|
|
roentgen |
b75cab |
.if n .po 0
|
|
roentgen |
b75cab |
.TH TIFFSTRIP 3TIFF "October 15, 1995" "libtiff"
|
|
roentgen |
b75cab |
.SH NAME
|
|
roentgen |
b75cab |
TIFFDefaultStripSize, TIFFStripSize, TIFFVStripSize, TIFFRawStripSize,
|
|
roentgen |
b75cab |
TIFFComputeStrip, TIFFNumberOfStrips \- strip-related utility routines
|
|
roentgen |
b75cab |
.SH SYNOPSIS
|
|
roentgen |
b75cab |
.B "#include <tiffio.h>"</tiffio.h>
|
|
roentgen |
b75cab |
.sp
|
|
roentgen |
b75cab |
.BI "uint32 TIFFDefaultStripSize(TIFF *" tif ", uint32 " estimate ")"
|
|
roentgen |
b75cab |
.br
|
|
roentgen |
b75cab |
.BI "tsize_t TIFFStripSize(TIFF *" tif ")"
|
|
roentgen |
b75cab |
.br
|
|
roentgen |
b75cab |
.BI "tsize_t TIFFVStripSize(TIFF *" tif ", uint32 " nrows ")"
|
|
roentgen |
b75cab |
.br
|
|
roentgen |
b75cab |
.BI "tsize_t TIFFRawStripSize(TIFF *" tif ", tstrip_t " strip ")"
|
|
roentgen |
b75cab |
.br
|
|
roentgen |
b75cab |
.BI "tstrip_t TIFFComputeStrip(TIFF *" tif ", uint32 " row ", tsample_t " sample ")"
|
|
roentgen |
b75cab |
.br
|
|
roentgen |
b75cab |
.BI "tstrip_t TIFFNumberOfStrips(TIFF *" tif ")"
|
|
roentgen |
b75cab |
.SH DESCRIPTION
|
|
roentgen |
b75cab |
.I TIFFDefaultStripSize
|
|
roentgen |
b75cab |
returns the number of rows for a reasonable-sized strip according to the
|
|
roentgen |
b75cab |
current settings of the
|
|
roentgen |
b75cab |
.IR ImageWidth ,
|
|
roentgen |
b75cab |
.IR BitsPerSample ,
|
|
roentgen |
b75cab |
.IR SamplesPerPixel ,
|
|
roentgen |
b75cab |
tags and any compression-specific requirements. If the
|
|
roentgen |
b75cab |
.I estimate
|
|
roentgen |
b75cab |
parameter, if non-zero, then it is taken as an estimate of the desired strip
|
|
roentgen |
b75cab |
size and adjusted according to any compression-specific requirements. The
|
|
roentgen |
b75cab |
value returned by this function is typically used to define the
|
|
roentgen |
b75cab |
.I RowsPerStrip
|
|
roentgen |
b75cab |
tag. In lieu of any unusual requirements
|
|
roentgen |
b75cab |
.I TIFFDefaultStripSize
|
|
roentgen |
b75cab |
tries to create strips that have approximately
|
|
roentgen |
b75cab |
8 kilobytes of uncompressed data.
|
|
roentgen |
b75cab |
.PP
|
|
roentgen |
b75cab |
.IR TIFFStripSize
|
|
roentgen |
b75cab |
returns the equivalent size for a strip of data as it would be returned in a
|
|
roentgen |
b75cab |
call to
|
|
roentgen |
b75cab |
.IR TIFFReadEncodedStrip
|
|
roentgen |
b75cab |
or as it would be expected in a call to
|
|
roentgen |
b75cab |
.IR TIFFWriteEncodedStrip .
|
|
roentgen |
b75cab |
.PP
|
|
roentgen |
b75cab |
.I TIFFVStripSize
|
|
roentgen |
b75cab |
returns the number of bytes in a strip with
|
|
roentgen |
b75cab |
.I nrows
|
|
roentgen |
b75cab |
rows of data.
|
|
roentgen |
b75cab |
.PP
|
|
roentgen |
b75cab |
.I TIFFRawStripSize
|
|
roentgen |
b75cab |
returns the number of bytes in a raw strip (i.e. not decoded).
|
|
roentgen |
b75cab |
.PP
|
|
roentgen |
b75cab |
.IR TIFFComputeStrip
|
|
roentgen |
b75cab |
returns the strip that contains the specified coordinates. A valid strip is
|
|
roentgen |
b75cab |
always returned; out-of-range coordinate values are clamped to the bounds of
|
|
roentgen |
b75cab |
the image. The
|
|
roentgen |
b75cab |
.I row
|
|
roentgen |
b75cab |
parameter is always used in calculating a strip. The
|
|
roentgen |
b75cab |
.I sample
|
|
roentgen |
b75cab |
parameter is used only if data are organized in separate planes (\c
|
|
roentgen |
b75cab |
.IR PlanarConfiguration =2).
|
|
roentgen |
b75cab |
.PP
|
|
roentgen |
b75cab |
.IR TIFFNumberOfStrips
|
|
roentgen |
b75cab |
returns the number of strips in the image.
|
|
roentgen |
b75cab |
.SH DIAGNOSTICS
|
|
roentgen |
b75cab |
None.
|
|
roentgen |
b75cab |
.SH "SEE ALSO"
|
|
roentgen |
b75cab |
.BR TIFFReadEncodedStrip (3TIFF),
|
|
roentgen |
b75cab |
.BR TIFFReadRawStrip (3TIFF),
|
|
roentgen |
b75cab |
.BR TIFFWriteEncodedStrip (3TIFF),
|
|
roentgen |
b75cab |
.BR TIFFWriteRawStrip (3TIFF),
|
|
roentgen |
b75cab |
.BR libtiff (3TIFF),
|
|
roentgen |
b75cab |
.PP
|
|
roentgen |
b75cab |
Libtiff library home page:
|
|
roentgen |
b75cab |
.BR http://www.remotesensing.org/libtiff/
|