1 <!-- Creator : groff version 1.18.1 -->
2 <!-- CreationDate: Mon Mar 13 18:03:09 2006 -->
5 <meta name=
"generator" content=
"groff -Thtml, see www.gnu.org">
6 <meta name=
"Content-Style" content=
"text/css">
7 <title>TIFFReadEncodedTile
</title>
11 <h1 align=center
>TIFFReadEncodedTile
</h1>
12 <a href=
"#NAME">NAME
</a><br>
13 <a href=
"#SYNOPSIS">SYNOPSIS
</a><br>
14 <a href=
"#DESCRIPTION">DESCRIPTION
</a><br>
15 <a href=
"#NOTES">NOTES
</a><br>
16 <a href=
"#RETURN VALUES">RETURN VALUES
</a><br>
17 <a href=
"#DIAGNOSTICS">DIAGNOSTICS
</a><br>
18 <a href=
"#SEE ALSO">SEE ALSO
</a><br>
24 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
25 cols=
"2" cellspacing=
"0" cellpadding=
"0">
26 <tr valign=
"top" align=
"left">
29 <p>TIFFReadEncodedTile
− read and decode a tile of
30 data from an open
<small>TIFF
</small> file
</p>
33 <a name=
"SYNOPSIS"></a>
36 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
37 cols=
"2" cellspacing=
"0" cellpadding=
"0">
38 <tr valign=
"top" align=
"left">
41 <p><b>#include
<tiffio.h
></b></p>
43 <p><b>int TIFFReadEncodedTile(TIFF *
</b><i>tif
</i><b>,
44 u_long
</b> <i>tile
</i><b>, u_char *
</b><i>buf
</i><b>,
45 u_long
</b> <i>size
</i><b>)
</b></p>
48 <a name=
"DESCRIPTION"></a>
51 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
52 cols=
"2" cellspacing=
"0" cellpadding=
"0">
53 <tr valign=
"top" align=
"left">
56 <p>Read the specified tile of data and place up to
57 <i>size
</i> bytes of decompressed information in the (user
58 supplied) data buffer.
</p>
64 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
65 cols=
"2" cellspacing=
"0" cellpadding=
"0">
66 <tr valign=
"top" align=
"left">
69 <p>The value of
<i>tile
</i> is a
‘‘raw tile
70 number.
’’ That is, the caller must take into
71 account whether or not the data are organized in separate
72 planes (
<i>PlanarConfiguration
</i>=
2).
73 <i>TIFFComputeTile
</i> automatically does this when
74 converting an (x,y,z,sample) coordinate quadruple to a tile
75 number. To read a full tile of data the data buffer should
76 be at least as large as the value returned by
77 <i>TIFFTileSize
</i>.
</p>
79 <p>The library attempts to hide bit- and byte-ordering
80 differences between the image and the native machine by
81 converting data to the native machine order. Bit reversal is
82 done if the
<i>FillOrder
</i> tag is opposite to the native
83 machine bit order.
16- and
32-bit samples are automatically
84 byte-swapped if the file was written with a byte order
85 opposite to the native machine byte order,
</p>
88 <a name=
"RETURN VALUES"></a>
89 <h2>RETURN VALUES
</h2>
91 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
92 cols=
"2" cellspacing=
"0" cellpadding=
"0">
93 <tr valign=
"top" align=
"left">
96 <p>The actual number of bytes of data that were placed in
97 <i>buf
</i> is returned;
<i>TIFFReadEncodedTile
</i> returns
98 −1 if an error was encountered.
</p>
101 <a name=
"DIAGNOSTICS"></a>
104 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
105 cols=
"2" cellspacing=
"0" cellpadding=
"0">
106 <tr valign=
"top" align=
"left">
109 <p>All error messages are directed to the
110 <b>TIFFError
</b>(
3TIFF) routine.
</p>
113 <a name=
"SEE ALSO"></a>
116 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
117 cols=
"2" cellspacing=
"0" cellpadding=
"0">
118 <tr valign=
"top" align=
"left">
121 <p><b>TIFFOpen
</b>(
3TIFF),
<b>TIFFReadRawTile
</b>(
3TIFF),
122 <b>TIFFReadTile
</b>(
3TIFF),
<b>libtiff
</b>(
3TIFF)
</p>
124 <p>Libtiff library home page:
125 <b>http://www.remotesensing.org/libtiff/
</b></p>