1TIFFFieldWriteCount(3TIFF) TIFFFieldWriteCount(3TIFF)
2
3
4
6 TIFFFieldWriteCount - Get number of values to be written to field
7
9 #include <tiffio.h>
10
11 int TIFFFieldWriteCount(const TIFFField* fip)
12
14 TIFFFieldWriteCount returns the number of values to be written into the
15 specified TIFF field; that is, the number of arguments that should be
16 supplied to TIFFSetField. For most field types this is a small posi‐
17 tive integer, typically 1 or 2, but there are some special values:
18 TIFF_VARIABLE indicates that a variable number of values is possible;
19 then, a uint16_t count argument and a pointer data argument must be
20 supplied to TIFFSetField.
21 TIFF_VARIABLE2 is the same as TIFF_VARIABLE except that the count argu‐
22 ment must have type uint32_t. (On most modern machines, this makes no
23 practical difference, and the count argument can simply be an int in
24 either case.)
25 TIFF_SPP indicates that the number of arguments must be equal to the
26 image's number of samples per pixel.
27
28 fip is a field information pointer previously returned by TIFFFind‐
29 Field, TIFFFieldWithTag, or TIFFFieldWithName.
30
31 For most field types, TIFFFieldWriteCount returns the same value as
32 TIFFFieldReadCount, but there are some exceptions.
33
35 TIFFFieldWriteCount returns an integer.
36
38 libtiff(3TIFF),
39
40 Libtiff library home page: http://www.simplesystems.org/libtiff/
41
42
43
44libtiff July 26, 2012 TIFFFieldWriteCount(3TIFF)