1 <!-- Creator : groff version 1.18.1 -->
2 <!-- CreationDate: Mon Mar 13 18:03:11 2006 -->
5 <meta name=
"generator" content=
"groff -Thtml, see www.gnu.org">
6 <meta name=
"Content-Style" content=
"text/css">
7 <title>TIFFWriteEncodedTile
</title>
11 <h1 align=center
>TIFFWriteEncodedTile
</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><big>TIFFWritedEncodedTile
− compress and write a
30 tile of data to an open
</big> TIFF
<big>file
</big></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><big><b>#include
<tiffio.h
></b></big></p>
43 <p><big><b>tsize_t TIFFWriteEncodedTile(TIFF
44 *
</b><i>tif
</i><b>, ttile_t
</b> <i>tile
</i><b>, tdata_t
</b>
45 <i>buf
</i><b>, tsize_t
</b> <i>size
</i><b>)
</b></big></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><big>Compress
<i>size
</i> bytes of raw data from
57 <i>buf
</i> and
<b>append
</b> the result to the end of the
58 specified tile. Note that the value of
<i>tile
</i> is a
59 ‘‘raw tile number.
’’ That is, the
60 caller must take into account whether or not the data are
61 organized in separate places (
<i>PlanarConfiguration
</i>=
2).
62 <i>TIFFComputeTile
</i> automatically does this when
63 converting an (x,y,z,sample) coordinate quadruple to a tile
70 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
71 cols=
"2" cellspacing=
"0" cellpadding=
"0">
72 <tr valign=
"top" align=
"left">
75 <p><big>The library writes encoded data using the native
76 machine byte order. Correctly implemented
</big> TIFF
77 <big>readers are expected to do any necessary byte-swapping
78 to correctly process image data with BitsPerSample greater
82 <a name=
"RETURN VALUES"></a>
83 <h2>RETURN VALUES
</h2>
85 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
86 cols=
"2" cellspacing=
"0" cellpadding=
"0">
87 <tr valign=
"top" align=
"left">
90 <p><big>−1 is returned if an error was encountered.
91 Otherwise, the value of
<i>size
</i> is returned.
</big></p>
94 <a name=
"DIAGNOSTICS"></a>
97 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
98 cols=
"2" cellspacing=
"0" cellpadding=
"0">
99 <tr valign=
"top" align=
"left">
102 <p><big>All error messages are directed to the
103 <b>TIFFError
</b>(
3TIFF) routine.
</big></p>
105 <p><big><b>%s: File not open for writing
</b>. The file was
106 opened for reading, not writing.
</big></p>
108 <p><big><b>Can not write tiles to a stripped image
</b>. The
109 image is assumed to be organized in strips because neither
110 of the
<i>TileWidth
</i> or
<i>TileLength
</i> tags have been
111 set with
<b>TIFFSetField
</b>(
3TIFF).
</big></p>
113 <p><big><b>%s: Must set
"ImageWidth
" before
114 writing data
</b>. The image
’s width has not be set
115 before the first write. See
<b>TIFFSetField
</b>(
3TIFF) for
116 information on how to do this.
</big></p>
118 <p><big><b>%s: Must set
"PlanarConfiguration
"
119 before writing data
</b>. The organization of data has not be
120 defined before the first write. See
121 <b>TIFFSetField
</b>(
3TIFF) for information on how to do
124 <p><big><b>%s: No space for tile arrays
"</b>. There was
125 not enough space for the arrays that hold tile offsets and
126 byte counts.
</big></p>
129 <a name=
"SEE ALSO"></a>
132 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
133 cols=
"2" cellspacing=
"0" cellpadding=
"0">
134 <tr valign=
"top" align=
"left">
137 <p><big><b>TIFFOpen
</b>(
3TIFF),
<b>TIFFWriteTile
</b>(
3TIFF),
138 <b>TIFFWriteRawTile
</b>(
3TIFF),
139 <b>libtiff
</b>(
3TIFF)
</big></p>
141 <p><big>Libtiff library home page:
142 <b>http://www.remotesensing.org/libtiff/
</b></big></p>