Blame man/TIFFFieldWriteCount.3tiff

Packit 7838c8
.\" $Id: TIFFFieldWriteCount.3tiff,v 1.2 2016-09-25 20:05:49 bfriesen Exp $
Packit 7838c8
.\"
Packit 7838c8
.\" Copyright (c) 2012, Tom Lane <tgl@sss.pgh.pa.us>
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 TIFFFieldWriteCount 3TIFF "July 26, 2012" "libtiff"
Packit 7838c8
.SH NAME
Packit 7838c8
TIFFFieldWriteCount \- Get number of values to be written to field
Packit 7838c8
.SH SYNOPSIS
Packit 7838c8
.B "#include <tiffio.h>"
Packit 7838c8
.sp
Packit 7838c8
.BI "int TIFFFieldWriteCount(const TIFFField* " fip ")"
Packit 7838c8
.SH DESCRIPTION
Packit 7838c8
.BR TIFFFieldWriteCount
Packit 7838c8
returns the number of values to be written into the specified
Packit 7838c8
TIFF field; that is, the number of arguments that should be supplied to
Packit 7838c8
.BR TIFFSetField .
Packit 7838c8
For most field types this is a small positive integer, typically 1 or 2,
Packit 7838c8
but there are some special values:
Packit 7838c8
.br
Packit 7838c8
.BR TIFF_VARIABLE
Packit 7838c8
indicates that a variable number of values is possible; then, a
Packit 7838c8
.BR uint16
Packit 7838c8
.I count
Packit 7838c8
argument and a pointer
Packit 7838c8
.I data
Packit 7838c8
argument must be supplied to
Packit 7838c8
.BR TIFFSetField .
Packit 7838c8
.br
Packit 7838c8
.BR TIFF_VARIABLE2
Packit 7838c8
is the same as
Packit 7838c8
.BR TIFF_VARIABLE
Packit 7838c8
except that the
Packit 7838c8
.I count
Packit 7838c8
argument must have type
Packit 7838c8
.BR uint32 .
Packit 7838c8
(On most modern machines, this makes no practical difference, and the
Packit 7838c8
.I count
Packit 7838c8
argument can simply be an
Packit 7838c8
.BR int
Packit 7838c8
in either case.)
Packit 7838c8
.br
Packit 7838c8
.BR TIFF_SPP
Packit 7838c8
indicates that the number of arguments must be equal to the image's
Packit 7838c8
number of samples per pixel.
Packit 7838c8
.P
Packit 7838c8
.I fip
Packit 7838c8
is a field information pointer previously returned by
Packit 7838c8
.BR TIFFFindField ,
Packit 7838c8
.BR TIFFFieldWithTag ,
Packit 7838c8
or
Packit 7838c8
.BR TIFFFieldWithName .
Packit 7838c8
.P
Packit 7838c8
For most field types,
Packit 7838c8
.BR TIFFFieldWriteCount
Packit 7838c8
returns the same value as
Packit 7838c8
.BR TIFFFieldReadCount ,
Packit 7838c8
but there are some exceptions.
Packit 7838c8
.br
Packit 7838c8
.SH "RETURN VALUES"
Packit 7838c8
.br
Packit 7838c8
.BR TIFFFieldWriteCount
Packit 7838c8
returns an integer.
Packit 7838c8
.br
Packit 7838c8
.SH "SEE ALSO"
Packit 7838c8
.BR libtiff (3TIFF),
Packit 7838c8
.PP
Packit 7838c8
Libtiff library home page:
Packit 7838c8
.BR http://www.simplesystems.org/libtiff/