| 1 |
TIFFReadRawStrip |
| 2 |
================ |
| 3 |
|
| 4 |
Synopsis |
| 5 |
-------- |
| 6 |
|
| 7 |
.. highlight:: c |
| 8 |
|
| 9 |
:: |
| 10 |
|
| 11 |
#include <tiffio.h> |
| 12 |
|
| 13 |
.. c:function:: tsize_t TIFFReadRawStrip(TIFF* tif, tstrip_t strip, tdata_t buf, tsize_t size) |
| 14 |
|
| 15 |
Description |
| 16 |
----------- |
| 17 |
|
| 18 |
Read the contents of the specified strip into the (user supplied) data buffer. |
| 19 |
Note that the value of *strip* is a "raw strip number". That is, the caller |
| 20 |
must take into account whether or not the data is organized in separate planes |
| 21 |
(``PlanarConfiguration`` = 2). |
| 22 |
To read a full strip of data the data buffer should typically be at least as |
| 23 |
large as the number returned by :c:func:`TIFFStripSize`. |
| 24 |
|
| 25 |
Return values |
| 26 |
------------- |
| 27 |
|
| 28 |
The actual number of bytes of data that were placed in *buf* is returned; |
| 29 |
:c:func:`TIFFReadRawStrip` returns -1 if an error was encountered. |
| 30 |
|
| 31 |
Diagnostics |
| 32 |
----------- |
| 33 |
|
| 34 |
All error messages are directed to the :c:func:`TIFFErrorExtR` routine. |
| 35 |
|
| 36 |
See also |
| 37 |
-------- |
| 38 |
|
| 39 |
:doc:`TIFFOpen` (3tiff), |
| 40 |
:doc:`TIFFReadEncodedStrip` (3tiff), |
| 41 |
:doc:`TIFFReadScanline` (3tiff), |
| 42 |
:doc:`TIFFstrip` (3tiff), |
| 43 |
:doc:`libtiff` (3tiff) |