Blame thirdparty/LibTIFF/tiff-4.0.3/html/man/TIFFReadScanline.3tiff.html

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>TIFFReadScanline</title>
kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

TIFFReadScanline

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

TIFFReadScanline − read and decode a scanline of

kusano 7d535a
data from an open <small>TIFF</small> file

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

#include <tiffio.h>

kusano 7d535a
kusano 7d535a

int TIFFReadScanline(TIFF *tif,

kusano 7d535a
tdata_t buf, uint32 row,
kusano 7d535a
tsample_t sample)

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

Read the data for the specified row into the (user

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

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

The library attempts to hide bit- and byte-ordering

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

In C++ the sample parameter defaults to 0.

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

TIFFReadScanline returns −1 if it detects an

kusano 7d535a
error; otherwise 1 is returned.

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

All error messages are directed to the

kusano 7d535a
TIFFError(3TIFF) routine.

kusano 7d535a
kusano 7d535a

Compression algorithm does not support random

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

kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

BUGS

kusano 7d535a
kusano 7d535a
kusano 7d535a
       cols="2" cellspacing="0" cellpadding="0">
kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

Reading subsampled YCbCR data does not work correctly

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

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

TIFFOpen(3TIFF),

kusano 7d535a
TIFFReadEncodedStrip(3TIFF),
kusano 7d535a
TIFFReadRawStrip(3TIFF), libtiff(3TIFF)

kusano 7d535a
kusano 7d535a

Libtiff library home page:

kusano 7d535a
http://www.remotesensing.org/libtiff/

kusano 7d535a
kusano 7d535a
kusano 7d535a

kusano 7d535a
kusano 7d535a