| 1 |
TIFFFieldPassCount |
| 2 |
================== |
| 3 |
|
| 4 |
Synopsis |
| 5 |
-------- |
| 6 |
|
| 7 |
.. highlight:: c |
| 8 |
|
| 9 |
:: |
| 10 |
|
| 11 |
#include <tiffio.h> |
| 12 |
|
| 13 |
.. c:function:: int TIFFFieldPassCount(const TIFFField* fip) |
| 14 |
|
| 15 |
Description |
| 16 |
----------- |
| 17 |
|
| 18 |
:c:func:`TIFFFieldPassCount` returns true (nonzero) if |
| 19 |
:c:func:`TIFFGetField` and :c:func:`TIFFSetField` |
| 20 |
expect a :c:var:`count` value to be passed before the actual data pointer. |
| 21 |
|
| 22 |
:c:var:`fip` is a field information pointer previously returned by |
| 23 |
:c:func:`TIFFFindField`, |
| 24 |
:c:func:`TIFFFieldWithTag`, |
| 25 |
:c:func:`TIFFFieldWithName`. |
| 26 |
|
| 27 |
When a :c:var:`count` is required, it will be of type :c:type:`uint32_t` |
| 28 |
if :c:func:`TIFFFieldReadCount` reports :c:macro:`TIFF_VARIABLE2`, |
| 29 |
and of type :c:type:`uint16_t` otherwise. Use :c:func:`TIFFFieldWriteCount` |
| 30 |
for :c:func:`TIFFSetField`, respectively. (This distinction is |
| 31 |
critical for use of :c:func:`TIFFGetField`, but normally not so for |
| 32 |
use of :c:func:`TIFFSetField`.) |
| 33 |
|
| 34 |
An alternative function for the :c:var:`count` value determination |
| 35 |
is :c:func:`TIFFFieldSetGetCountSize`. |
| 36 |
|
| 37 |
Return values |
| 38 |
------------- |
| 39 |
|
| 40 |
:c:func:`TIFFFieldPassCount` returns an integer that is always 1 (true) |
| 41 |
or 0 (false). |
| 42 |
|
| 43 |
See also |
| 44 |
-------- |
| 45 |
|
| 46 |
:doc:`TIFFFieldDataType` (3tiff), |
| 47 |
:doc:`TIFFFieldName` (3tiff), |
| 48 |
:doc:`TIFFFieldQuery` (3tiff), |
| 49 |
:doc:`TIFFFieldReadCount` (3tiff), |
| 50 |
:doc:`TIFFFieldTag` (3tiff), |
| 51 |
:doc:`TIFFFieldWriteCount` (3tiff), |
| 52 |
:doc:`libtiff` |