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

TIFFReadEncodedTile

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

TIFFReadEncodedTile − read and decode a tile 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 TIFFReadEncodedTile(TIFF *tif,

roentgen b75cab
ttile_t tile, tdata_t buf,
roentgen b75cab
tsize_t 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

Read the specified tile of data and place up to

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

The value of tile is a ‘‘raw tile

roentgen b75cab
number.’’ That is, the caller must take into
roentgen b75cab
account whether or not the data are organized in separate
roentgen b75cab
planes (PlanarConfiguration=2).
roentgen b75cab
TIFFComputeTile automatically does this when
roentgen b75cab
converting an (x,y,z,sample) coordinate quadruple to a tile
roentgen b75cab
number. To read a full tile of data the data buffer should
roentgen b75cab
be at least as large as the value returned by
roentgen b75cab
TIFFTileSize.

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
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

The actual number of bytes of data that were placed in

roentgen b75cab
buf is returned; TIFFReadEncodedTile returns
roentgen b75cab
−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

All error messages are directed to the

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

TIFFOpen(3TIFF), TIFFReadRawTile(3TIFF),

roentgen b75cab
TIFFReadTile(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