roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
<meta content="groff -Thtml, see www.gnu.org" name="generator">
roentgen b75cab
<meta content="text/css" name="Content-Style">
roentgen b75cab
<title>TIFFReadEncodedStrip</title>
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

TIFFReadEncodedStrip

roentgen b75cab
NAME
roentgen b75cab
SYNOPSIS
roentgen b75cab
DESCRIPTION
roentgen b75cab
NOTES
roentgen b75cab
RETURN VALUES
roentgen b75cab
DIAGNOSTICS
roentgen b75cab
SEE ALSO
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab

NAME

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

<big>TIFFReadEncodedStrip − read and decode a strip</big>

roentgen b75cab
of data from an open TIFF <big>file</big>

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SYNOPSIS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

<big>#include <tiffio.h></big>

roentgen b75cab
roentgen b75cab

<big>tsize_t TIFFReadEncodedStrip(TIFF</big>

roentgen b75cab
*tif, tstrip_t strip,
roentgen b75cab
tdata_t buf, tsize_t
roentgen b75cab
size)

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

DESCRIPTION

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

<big>Read the specified strip of data and place up to</big>

roentgen b75cab
size bytes of decompressed information in the (user
roentgen b75cab
supplied) data buffer.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

NOTES

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

<big>The value of strip is a ‘‘raw</big>

roentgen b75cab
strip number.’’ That is, the caller must take
roentgen b75cab
into account whether or not the data are organized in
roentgen b75cab
separate planes (PlanarConfiguration=2). To read a
roentgen b75cab
full strip of data the data buffer should typically be at
roentgen b75cab
least as large as the number returned by
roentgen b75cab
TIFFStripSize(3TIFF). If the -1 passed in size
roentgen b75cab
parameter, the whole strip will be read. You should be sure
roentgen b75cab
you have enough space allocated for the buffer.

roentgen b75cab
roentgen b75cab

<big>The library attempts to hide bit- and byte-ordering</big>

roentgen b75cab
differences between the image and the native machine by
roentgen b75cab
converting data to the native machine order. Bit reversal is
roentgen b75cab
done if the FillOrder tag is opposite to the native
roentgen b75cab
machine bit order. 16- and 32-bit samples are automatically
roentgen b75cab
byte-swapped if the file was written with a byte order
roentgen b75cab
opposite to the native machine byte order,

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

RETURN VALUES

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

<big>The actual number of bytes of data that were placed</big>

roentgen b75cab
in buf is returned; TIFFReadEncodedStrip
roentgen b75cab
returns −1 if an error was encountered.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

DIAGNOSTICS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

<big>All error messages are directed to the</big>

roentgen b75cab
TIFFError(3TIFF) routine.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SEE ALSO

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

<big>TIFFOpen(3TIFF),</big>

roentgen b75cab
TIFFReadRawStrip(3TIFF),
roentgen b75cab
TIFFReadScanline(3TIFF),
roentgen b75cab
libtiff(3TIFF)

roentgen b75cab
roentgen b75cab

<big>Libtiff library home page:</big>

roentgen b75cab
http://www.remotesensing.org/libtiff/

roentgen b75cab
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab