Blame html/man/TIFFReadTile.3tiff.html

Packit 7838c8
Packit 7838c8
Packit 7838c8
<html>
Packit 7838c8
<head>
Packit 7838c8
<meta name="generator" content="groff -Thtml, see www.gnu.org">
Packit 7838c8
<meta name="Content-Style" content="text/css">
Packit 7838c8
<title>TIFFReadTile</title>
Packit 7838c8
</head>
Packit 7838c8
<body>
Packit 7838c8
Packit 7838c8

TIFFReadTile

Packit 7838c8
NAME
Packit 7838c8
SYNOPSIS
Packit 7838c8
DESCRIPTION
Packit 7838c8
NOTES
Packit 7838c8
RETURN VALUES
Packit 7838c8
DIAGNOSTICS
Packit 7838c8
SEE ALSO
Packit 7838c8
Packit 7838c8

Packit 7838c8
Packit 7838c8

NAME

Packit 7838c8
Packit 7838c8
Packit 7838c8
       cols="2" cellspacing="0" cellpadding="0">
Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

TIFFReadTile − read and decode a tile of data from

Packit 7838c8
an open <small>TIFF</small> file

Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

SYNOPSIS

Packit 7838c8
Packit 7838c8
Packit 7838c8
       cols="2" cellspacing="0" cellpadding="0">
Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

#include <tiffio.h>

Packit 7838c8
Packit 7838c8

tsize_t TIFFReadTile(TIFF *tif,

Packit 7838c8
tdata_t buf, uint32 x,
Packit 7838c8
uint32 y, uint32 z,
Packit 7838c8
tsample_t sample)

Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

DESCRIPTION

Packit 7838c8
Packit 7838c8
Packit 7838c8
       cols="2" cellspacing="0" cellpadding="0">
Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

Return the data for the tile containing the

Packit 7838c8
specified coordinates. The data placed in buf are
Packit 7838c8
returned decompressed and, typically, in the native byte-
Packit 7838c8
and bit-ordering, but are otherwise packed (see further
Packit 7838c8
below). The buffer must be large enough to hold an entire
Packit 7838c8
tile of data. Applications should call the routine
Packit 7838c8
TIFFTileSize to find out the size (in bytes) of a
Packit 7838c8
tile buffer. The x and y parameters are always
Packit 7838c8
used by TIFFReadTile. The z parameter is used
Packit 7838c8
if the image is deeper than 1 slice
Packit 7838c8
(ImageDepth>1). The sample parameter is
Packit 7838c8
used only if data are organized in separate planes
Packit 7838c8
(PlanarConfiguration=2).

Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

NOTES

Packit 7838c8
Packit 7838c8
Packit 7838c8
       cols="2" cellspacing="0" cellpadding="0">
Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

The library attempts to hide bit- and byte-ordering

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

Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

RETURN VALUES

Packit 7838c8
Packit 7838c8
Packit 7838c8
       cols="2" cellspacing="0" cellpadding="0">
Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

TIFFReadTile returns −1 if it detects an

Packit 7838c8
error; otherwise the number of bytes in the decoded tile is
Packit 7838c8
returned.

Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

DIAGNOSTICS

Packit 7838c8
Packit 7838c8
Packit 7838c8
       cols="2" cellspacing="0" cellpadding="0">
Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

All error messages are directed to the

Packit 7838c8
TIFFError(3TIFF) routine.

Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

SEE ALSO

Packit 7838c8
Packit 7838c8
Packit 7838c8
       cols="2" cellspacing="0" cellpadding="0">
Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

TIFFCheckTile(3TIFF),

Packit 7838c8
TIFFComputeTile(3TIFF), TIFFOpen(3TIFF),
Packit 7838c8
TIFFReadEncodedTile(3TIFF),
Packit 7838c8
TIFFReadRawTile(3TIFF), libtiff(3TIFF)

Packit 7838c8
Packit 7838c8

Libtiff library home page:

Packit 7838c8
http://www.simplesystems.org/libtiff/

Packit 7838c8
Packit 7838c8
Packit 7838c8

Packit 7838c8
</body>
Packit 7838c8
</html>