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>TIFFReadScanline</title>
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

TIFFReadScanline

roentgen b75cab
NAME
roentgen b75cab
SYNOPSIS
roentgen b75cab
DESCRIPTION
roentgen b75cab
NOTES
roentgen b75cab
RETURN VALUES
roentgen b75cab
DIAGNOSTICS
roentgen b75cab
BUGS
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

TIFFReadScanline − read and decode a scanline of

roentgen b75cab
data from an open <small>TIFF</small> file

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

#include <tiffio.h>

roentgen b75cab
roentgen b75cab

int TIFFReadScanline(TIFF *tif,

roentgen b75cab
tdata_t buf, uint32 row,
roentgen b75cab
tsample_t sample)

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

Read the data for the specified row into the (user

roentgen b75cab
supplied) data buffer buf. The data are returned
roentgen b75cab
decompressed and, in the native byte- and bit-ordering, but
roentgen b75cab
are otherwise packed (see further below). The buffer must be
roentgen b75cab
large enough to hold an entire scanline of data.
roentgen b75cab
Applications should call the routine TIFFScanlineSize
roentgen b75cab
to find out the size (in bytes) of a scanline buffer. The
roentgen b75cab
row parameter is always used by
roentgen b75cab
TIFFReadScanline; the sample parameter is used
roentgen b75cab
only if data are organized in separate planes
roentgen b75cab
(PlanarConfiguration=2).

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

The library attempts to hide bit- and byte-ordering

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

In C++ the sample parameter defaults to 0.

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

TIFFReadScanline returns −1 if it detects an

roentgen b75cab
error; otherwise 1 is returned.

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

All error messages are directed to the

roentgen b75cab
TIFFError(3TIFF) routine.

roentgen b75cab
roentgen b75cab

Compression algorithm does not support random

roentgen b75cab
access. Data was requested in a non-sequential order
roentgen b75cab
from a file that uses a compression algorithm and that has
roentgen b75cab
RowsPerStrip greater than one. That is, data in the
roentgen b75cab
image is stored in a compressed form, and with multiple rows
roentgen b75cab
packed into a strip. In this case, the library does not
roentgen b75cab
support random access to the data. The data should either be
roentgen b75cab
accessed sequentially, or the file should be converted so
roentgen b75cab
that each strip is made up of one row of data.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

BUGS

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

Reading subsampled YCbCR data does not work correctly

roentgen b75cab
because, for PlanarConfiguration=2 the size of a
roentgen b75cab
scanline is not calculated on a per-sample basis, and for
roentgen b75cab
PlanarConfiguration=1 the library does not unpack the
roentgen b75cab
block-interleaved samples; use the strip- and tile-based
roentgen b75cab
interfaces to read these formats.

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

TIFFOpen(3TIFF),

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

roentgen b75cab
roentgen b75cab

Libtiff library home page:

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

roentgen b75cab
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab