| 1 |
TIFFDataWidth |
| 2 |
============= |
| 3 |
|
| 4 |
Synopsis |
| 5 |
-------- |
| 6 |
|
| 7 |
.. highlight:: c |
| 8 |
|
| 9 |
:: |
| 10 |
|
| 11 |
#include <tiffio.h> |
| 12 |
|
| 13 |
.. c:function:: int TIFFDataWidth(TIFFDataType type) |
| 14 |
|
| 15 |
Description |
| 16 |
----------- |
| 17 |
|
| 18 |
:c:func:`TIFFDataWidth` returns the size of *type* within TIFF file in bytes. |
| 19 |
Currently following data types are supported: |
| 20 |
|
| 21 |
* :c:macro:`TIFF_BYTE` |
| 22 |
* :c:macro:`TIFF_ASCII` |
| 23 |
* :c:macro:`TIFF_SBYTE` |
| 24 |
* :c:macro:`TIFF_UNDEFINED` |
| 25 |
* :c:macro:`TIFF_SHORT` |
| 26 |
* :c:macro:`TIFF_SSHORT` |
| 27 |
* :c:macro:`TIFF_LONG` |
| 28 |
* :c:macro:`TIFF_SLONG` |
| 29 |
* :c:macro:`TIFF_FLOAT` |
| 30 |
* :c:macro:`TIFF_IFD` |
| 31 |
* :c:macro:`TIFF_RATIONAL` |
| 32 |
* :c:macro:`TIFF_SRATIONAL` |
| 33 |
* :c:macro:`TIFF_DOUBLE` |
| 34 |
* :c:macro:`TIFF_LONG8` |
| 35 |
* :c:macro:`TIFF_SLONG8` |
| 36 |
* :c:macro:`TIFF_IFD8` |
| 37 |
|
| 38 |
Return values |
| 39 |
------------- |
| 40 |
|
| 41 |
:c:func:`TIFFDataWidth` returns a number of bytes occupied by the item |
| 42 |
of given type within the TIFF file. 0 returned when unknown data type supplied. |
| 43 |
|
| 44 |
See also |
| 45 |
-------- |
| 46 |
|
| 47 |
:doc:`libtiff` (3tiff) |