| 1 |
TIFFFieldReadCount |
| 2 |
================== |
| 3 |
|
| 4 |
Synopsis |
| 5 |
-------- |
| 6 |
|
| 7 |
.. highlight:: c |
| 8 |
|
| 9 |
:: |
| 10 |
|
| 11 |
#include <tiffio.h> |
| 12 |
|
| 13 |
.. c:function:: int TIFFFieldReadCount(const TIFFField* fip) |
| 14 |
|
| 15 |
Description |
| 16 |
----------- |
| 17 |
|
| 18 |
:c:func:`TIFFFieldReadCount` returns the number of values available to be read |
| 19 |
from the specified TIFF field; that is, the number of arguments that should be |
| 20 |
supplied to :c:func:`TIFFGetField`. For most field types this is a small |
| 21 |
positive integer, typically 1 or 2, but there are some special values: |
| 22 |
|
| 23 |
* :c:macro:`TIFF_VARIABLE` ``= -1`` indicates that a variable number of |
| 24 |
values is possible; then, a :c:type:`uint16_t` *count* argument and a |
| 25 |
pointer *data* argument must be supplied to :c:func:`TIFFGetField`. |
| 26 |
* :c:macro:`TIFF_VARIABLE2` ``= -3`` is the same as :c:macro:`TIFF_VARIABLE` |
| 27 |
except that the *count* argument must have type :c:type:`uint32_t`. |
| 28 |
* :c:macro:`TIFF_SPP` ``= -2`` indicates that the number of arguments is |
| 29 |
equal to the image's number of samples per pixel. |
| 30 |
|
| 31 |
*fip* is a field information pointer previously returned by |
| 32 |
:c:func:`TIFFFindField`, :c:func:`TIFFFieldWithTag`, or |
| 33 |
:c:func:`TIFFFieldWithName`. |
| 34 |
|
| 35 |
Return values |
| 36 |
------------- |
| 37 |
|
| 38 |
:c:func:`TIFFFieldReadCount` returns an integer. |
| 39 |
|
| 40 |
See also |
| 41 |
-------- |
| 42 |
|
| 43 |
:doc:`TIFFFieldDataType` (3tiff), |
| 44 |
:doc:`TIFFFieldName` (3tiff), |
| 45 |
:doc:`TIFFFieldPassCount` (3tiff), |
| 46 |
:doc:`TIFFFieldQuery` (3tiff), |
| 47 |
:doc:`TIFFFieldTag` (3tiff), |
| 48 |
:doc:`TIFFFieldWriteCount` (3tiff), |
| 49 |
:doc:`libtiff` (3tiff) |