|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<meta content="groff -Thtml, see www.gnu.org" name="generator">
|
|
kusano |
7d535a |
<meta content="text/css" name="Content-Style">
|
|
kusano |
7d535a |
<title>TIFFReadEncodedStrip</title>
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
TIFFReadEncodedStrip
|
|
kusano |
7d535a |
NAME
|
|
kusano |
7d535a |
SYNOPSIS
|
|
kusano |
7d535a |
DESCRIPTION
|
|
kusano |
7d535a |
NOTES
|
|
kusano |
7d535a |
RETURN VALUES
|
|
kusano |
7d535a |
DIAGNOSTICS
|
|
kusano |
7d535a |
SEE ALSO
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
NAME
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>TIFFReadEncodedStrip − read and decode a strip</big>
|
|
kusano |
7d535a |
of data from an open TIFF <big>file</big>
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
SYNOPSIS
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>#include <tiffio.h></big>
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>tsize_t TIFFReadEncodedStrip(TIFF</big>
|
|
kusano |
7d535a |
*tif, tstrip_t strip,
|
|
kusano |
7d535a |
tdata_t buf, tsize_t
|
|
kusano |
7d535a |
size)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
DESCRIPTION
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>Read the specified strip of data and place up to</big>
|
|
kusano |
7d535a |
size bytes of decompressed information in the (user
|
|
kusano |
7d535a |
supplied) data buffer.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
NOTES
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>The value of strip is a ‘‘raw</big>
|
|
kusano |
7d535a |
strip number.’’ That is, the caller must take
|
|
kusano |
7d535a |
into account whether or not the data are organized in
|
|
kusano |
7d535a |
separate planes (PlanarConfiguration=2). To read a
|
|
kusano |
7d535a |
full strip of data the data buffer should typically be at
|
|
kusano |
7d535a |
least as large as the number returned by
|
|
kusano |
7d535a |
TIFFStripSize(3TIFF). If the -1 passed in size
|
|
kusano |
7d535a |
parameter, the whole strip will be read. You should be sure
|
|
kusano |
7d535a |
you have enough space allocated for the buffer.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>The library attempts to hide bit- and byte-ordering</big>
|
|
kusano |
7d535a |
differences between the image and the native machine by
|
|
kusano |
7d535a |
converting data to the native machine order. Bit reversal is
|
|
kusano |
7d535a |
done if the FillOrder tag is opposite to the native
|
|
kusano |
7d535a |
machine bit order. 16- and 32-bit samples are automatically
|
|
kusano |
7d535a |
byte-swapped if the file was written with a byte order
|
|
kusano |
7d535a |
opposite to the native machine byte order,
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
RETURN VALUES
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>The actual number of bytes of data that were placed</big>
|
|
kusano |
7d535a |
in buf is returned; TIFFReadEncodedStrip
|
|
kusano |
7d535a |
returns −1 if an error was encountered.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
DIAGNOSTICS
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>All error messages are directed to the</big>
|
|
kusano |
7d535a |
TIFFError(3TIFF) routine.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
SEE ALSO
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>TIFFOpen(3TIFF),</big>
|
|
kusano |
7d535a |
TIFFReadRawStrip(3TIFF),
|
|
kusano |
7d535a |
TIFFReadScanline(3TIFF),
|
|
kusano |
7d535a |
libtiff(3TIFF)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>Libtiff library home page:</big>
|
|
kusano |
7d535a |
http://www.remotesensing.org/libtiff/
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|