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