1TIFFReadEncodedStrip(3TIFF) TIFFReadEncodedStrip(3TIFF)
2
3
4
6 TIFFReadEncodedStrip - read and decode a strip of data from an open
7 TIFF file
8
10 #include <tiffio.h>
11
12 tsize_t TIFFReadEncodedStrip(TIFF *tif, tstrip_t strip, tdata_t buf,
13 tsize_t size)
14
16 Read the specified strip of data and place up to size bytes of decom‐
17 pressed information in the (user supplied) data buffer.
18
20 The value of strip is a ``raw strip number.'' That is, the caller must
21 take into account whether or not the data are organized in separate
22 planes (PlanarConfiguration=2). To read a full strip of data the data
23 buffer should typically be at least as large as the number returned by
24 TIFFStripSize(3TIFF). If the -1 passed in size parameter, the whole
25 strip will be read. You should be sure you have enough space allocated
26 for the buffer.
27
28 The library attempts to hide bit- and byte-ordering differences between
29 the image and the native machine by converting data to the native
30 machine order. Bit reversal is done if the FillOrder tag is opposite
31 to the native machine bit order. 16- and 32-bit samples are automati‐
32 cally byte-swapped if the file was written with a byte order opposite
33 to the native machine byte order,
34
36 The actual number of bytes of data that were placed in buf is returned;
37 TIFFReadEncodedStrip returns -1 if an error was encountered.
38
40 All error messages are directed to the TIFFError(3TIFF) routine.
41
43 TIFFOpen(3TIFF), TIFFReadRawStrip(3TIFF), TIFFReadScanline(3TIFF),
44 libtiff(3TIFF)
45
46 Libtiff library home page: http://www.simplesystems.org/libtiff/
47
48
49
50libtiff October 15, 1995 TIFFReadEncodedStrip(3TIFF)