Blame man/TIFFFieldWriteCount.3tiff

Packit 85355f
.\" $Id: TIFFFieldWriteCount.3tiff,v 1.2 2016-09-25 20:05:49 bfriesen Exp $
Packit 85355f
.\"
Packit 85355f
.\" Copyright (c) 2012, Tom Lane <tgl@sss.pgh.pa.us>
Packit 85355f
.\"
Packit 85355f
.\" Permission to use, copy, modify, distribute, and sell this software and 
Packit 85355f
.\" its documentation for any purpose is hereby granted without fee, provided
Packit 85355f
.\" that (i) the above copyright notices and this permission notice appear in
Packit 85355f
.\" all copies of the software and related documentation, and (ii) the names of
Packit 85355f
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
Packit 85355f
.\" publicity relating to the software without the specific, prior written
Packit 85355f
.\" permission of Sam Leffler and Silicon Graphics.
Packit 85355f
.\" 
Packit 85355f
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
Packit 85355f
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
Packit 85355f
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
Packit 85355f
.\" 
Packit 85355f
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
Packit 85355f
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
Packit 85355f
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
Packit 85355f
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
Packit 85355f
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
Packit 85355f
.\" OF THIS SOFTWARE.
Packit 85355f
.\"
Packit 85355f
.if n .po 0
Packit 85355f
.TH TIFFFieldWriteCount 3TIFF "July 26, 2012" "libtiff"
Packit 85355f
.SH NAME
Packit 85355f
TIFFFieldWriteCount \- Get number of values to be written to field
Packit 85355f
.SH SYNOPSIS
Packit 85355f
.B "#include <tiffio.h>"
Packit 85355f
.sp
Packit 85355f
.BI "int TIFFFieldWriteCount(const TIFFField* " fip ")"
Packit 85355f
.SH DESCRIPTION
Packit 85355f
.BR TIFFFieldWriteCount
Packit 85355f
returns the number of values to be written into the specified
Packit 85355f
TIFF field; that is, the number of arguments that should be supplied to
Packit 85355f
.BR TIFFSetField .
Packit 85355f
For most field types this is a small positive integer, typically 1 or 2,
Packit 85355f
but there are some special values:
Packit 85355f
.br
Packit 85355f
.BR TIFF_VARIABLE
Packit 85355f
indicates that a variable number of values is possible; then, a
Packit 85355f
.BR uint16
Packit 85355f
.I count
Packit 85355f
argument and a pointer
Packit 85355f
.I data
Packit 85355f
argument must be supplied to
Packit 85355f
.BR TIFFSetField .
Packit 85355f
.br
Packit 85355f
.BR TIFF_VARIABLE2
Packit 85355f
is the same as
Packit 85355f
.BR TIFF_VARIABLE
Packit 85355f
except that the
Packit 85355f
.I count
Packit 85355f
argument must have type
Packit 85355f
.BR uint32 .
Packit 85355f
(On most modern machines, this makes no practical difference, and the
Packit 85355f
.I count
Packit 85355f
argument can simply be an
Packit 85355f
.BR int
Packit 85355f
in either case.)
Packit 85355f
.br
Packit 85355f
.BR TIFF_SPP
Packit 85355f
indicates that the number of arguments must be equal to the image's
Packit 85355f
number of samples per pixel.
Packit 85355f
.P
Packit 85355f
.I fip
Packit 85355f
is a field information pointer previously returned by
Packit 85355f
.BR TIFFFindField ,
Packit 85355f
.BR TIFFFieldWithTag ,
Packit 85355f
or
Packit 85355f
.BR TIFFFieldWithName .
Packit 85355f
.P
Packit 85355f
For most field types,
Packit 85355f
.BR TIFFFieldWriteCount
Packit 85355f
returns the same value as
Packit 85355f
.BR TIFFFieldReadCount ,
Packit 85355f
but there are some exceptions.
Packit 85355f
.br
Packit 85355f
.SH "RETURN VALUES"
Packit 85355f
.br
Packit 85355f
.BR TIFFFieldWriteCount
Packit 85355f
returns an integer.
Packit 85355f
.br
Packit 85355f
.SH "SEE ALSO"
Packit 85355f
.BR libtiff (3TIFF),
Packit 85355f
.PP
Packit 85355f
Libtiff library home page:
Packit 85355f
.BR http://www.simplesystems.org/libtiff/