1 <!-- Creator : groff version 1.18.1 -->
2 <!-- CreationDate: Sat Feb 24 18:37:18 2007 -->
5 <meta name=
"generator" content=
"groff -Thtml, see www.gnu.org">
6 <meta name=
"Content-Style" content=
"text/css">
7 <title>TIFFWriteEncodedStrip
</title>
11 <h1 align=center
>TIFFWriteEncodedStrip
</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>TIFFWritedEncodedStrip
− compress and write a
30 strip 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 TIFFWriteEncodedStrip(TIFF
44 *
</b><i>tif
</i><b>, tstrip_t
</b> <i>strip
</i><b>,
45 tdata_t
</b> <i>buf
</i><b>, tsize_t
</b>
46 <i>size
</i><b>)
</b></big></p>
49 <a name=
"DESCRIPTION"></a>
52 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
53 cols=
"2" cellspacing=
"0" cellpadding=
"0">
54 <tr valign=
"top" align=
"left">
57 <p><big>Compress
<i>size
</i> bytes of raw data from
58 <i>buf
</i> and write the result to the specified strip;
59 replacing any previously written data. Note that the value
60 of
<i>strip
</i> is a
‘‘raw strip
61 number.
’’ That is, the caller must take into
62 account whether or not the data are organized in separate
63 planes (
<i>PlanarConfiguration
</i>=
2).
</big></p>
69 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
70 cols=
"2" cellspacing=
"0" cellpadding=
"0">
71 <tr valign=
"top" align=
"left">
74 <p><big>The library writes encoded data using the native
75 machine byte order. Correctly implemented
</big> TIFF
76 <big>readers are expected to do any necessary byte-swapping
77 to correctly process image data with BitsPerSample greater
80 <p><big>The strip number must be valid according to the
81 current settings of the
<i>ImageLength
</i> and
82 <i>RowsPerStrip
</i> tags. An image may be dynamically grown
83 by increasing the value of
<i>ImageLength
</i> prior to each
84 call to
<i>TIFFWriteEncodedStrip
</i>.
</big></p>
87 <a name=
"RETURN VALUES"></a>
88 <h2>RETURN VALUES
</h2>
90 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
91 cols=
"2" cellspacing=
"0" cellpadding=
"0">
92 <tr valign=
"top" align=
"left">
95 <p><big>−1 is returned if an error was encountered.
96 Otherwise, the value of
<i>size
</i> is returned.
</big></p>
99 <a name=
"DIAGNOSTICS"></a>
102 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
103 cols=
"2" cellspacing=
"0" cellpadding=
"0">
104 <tr valign=
"top" align=
"left">
107 <p><big>All error messages are directed to the
108 <i>TIFFError
</i>(
3TIFF) routine.
</big></p>
110 <p><big><b>%s: File not open for writing
</b>. The file was
111 opened for reading, not writing.
</big></p>
113 <p><big><b>Can not write scanlines to a tiled image
</b>. The
114 image is assumed to be organized in tiles because the
115 <i>TileWidth
</i> and
<i>TileLength
</i> tags have been set
116 with
<i>TIFFSetField
</i>(
3TIFF).
</big></p>
118 <p><big><b>%s: Must set
"ImageWidth
" before
119 writing data
</b>. The image
’s width has not be set
120 before the first write. See
<i>TIFFSetField
</i>(
3TIFF) for
121 information on how to do this.
</big></p>
123 <p><big><b>%s: Must set
"PlanarConfiguration
"
124 before writing data
</b>. The organization of data has not be
125 defined before the first write. See
126 <i>TIFFSetField
</i>(
3TIFF) for information on how to do
129 <p><big><b>%s: No space for strip arrays
"</b>. There
130 was not enough space for the arrays that hold strip offsets
131 and byte counts.
</big></p>
134 <a name=
"SEE ALSO"></a>
137 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
138 cols=
"2" cellspacing=
"0" cellpadding=
"0">
139 <tr valign=
"top" align=
"left">
142 <p><big><b>TIFFOpen
</b>(
3TIFF),
143 <b>TIFFWriteScanline
</b>(
3TIFF),
144 <b>TIFFWriteRawStrip
</b>(
3TIFF),
145 <b>libtiff
</b>(
3TIFF)
</big></p>
147 <p><big>Libtiff library home page:
148 <b>http://www.remotesensing.org/libtiff/
</b></big></p>