Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/doc/functions/TIFFReadRawTile.rst

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