Blame man/TIFFstrip.3tiff

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