148 lines
3.6 KiB
HTML
148 lines
3.6 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML><HEAD><TITLE>Manpage of TIFFWriteEncodedStrip</TITLE>
|
|
</HEAD><BODY BGCOLOR=WHITE><FONT FACE="helvetica, sans, arial">
|
|
<H1>TIFFWriteEncodedStrip</H1>
|
|
Section: Misc. Reference Manual Pages (3T)<BR>Updated: October 15, 1995<BR><A HREF="#index">Index</A>
|
|
<BR><A HREF="index.html">Return to Main Contents</A>
|
|
<HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
TIFFWritedEncodedStrip - compress and write a strip of data to an open
|
|
<FONT SIZE="-1">TIFF</FONT>
|
|
file
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>#include <<A HREF="file:/usr/include/tiffio.h">tiffio.h</A>></B>
|
|
|
|
<BR>
|
|
|
|
<B>tsize_t TIFFWriteEncodedStrip(TIFF* tif, tstrip_t strip, tdata_t buf, tsize_t size)</B>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
Compress
|
|
<I>size</I>
|
|
|
|
bytes of raw data from
|
|
<I>buf</I>
|
|
|
|
and write the result to the specified strip; replacing
|
|
any previously written data.
|
|
Note that the value of
|
|
<I>strip</I>
|
|
|
|
is a ``raw strip number.''
|
|
That is, the caller must take into account whether or not the
|
|
data are organized in separate places (<I>PlanarConfiguration</I>=2).
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
The library writes encoded data using the native machine byte order.
|
|
Correctly implemented
|
|
<FONT SIZE="-1">TIFF</FONT>
|
|
readers are expected to do any necessary byte-swapping to
|
|
correctly process image data with BitsPerSample greater than 8.
|
|
<P>
|
|
|
|
The strip number must be valid according to the current settings
|
|
of the
|
|
<I>ImageLength</I>
|
|
|
|
and
|
|
<I>RowsPerStrip</I>
|
|
|
|
tags.
|
|
An image may be dynamically grown by increasing the value of
|
|
<I>ImageLength</I>
|
|
|
|
prior to each call to
|
|
<I>TIFFWriteEncodedStrip</I>.
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H2>RETURN VALUES</H2>
|
|
|
|
-1 is returned if an error was encountered.
|
|
Otherwise, the value of
|
|
<I>size</I>
|
|
|
|
is returned.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>DIAGNOSTICS</H2>
|
|
|
|
All error messages are directed to the
|
|
<I><A HREF="TIFFError.3t.html">TIFFError</A></I>(3T)
|
|
|
|
routine.
|
|
<P>
|
|
|
|
<B>%s: File not open for writing</B>.
|
|
The file was opened for reading, not writing.
|
|
<P>
|
|
|
|
<B>Can not write scanlines to a tiled image</B>.
|
|
The image is assumed to be organized in tiles because the
|
|
<I>TileWidth</I>
|
|
|
|
and
|
|
<I>TileLength</I>
|
|
|
|
tags have been set with
|
|
<I><A HREF="TIFFSetField.3t.html">TIFFSetField</A></I>(3T).
|
|
|
|
<P>
|
|
|
|
<B>%s: Must set "ImageWidth" before writing data</B>.
|
|
The image's width has not be set before the first write.
|
|
See
|
|
<I><A HREF="TIFFSetField.3t.html">TIFFSetField</A></I>(3T)
|
|
|
|
for information on how to do this.
|
|
<P>
|
|
|
|
<B>%s: Must set "PlanarConfiguration" before writing data</B>.
|
|
The organization of data has not be defined before the first write.
|
|
See
|
|
<I><A HREF="TIFFSetField.3t.html">TIFFSetField</A></I>(3T)
|
|
|
|
for information on how to do this.
|
|
<P>
|
|
|
|
<B>%s: No space for strip arrays"</B>.
|
|
There was not enough space for the arrays that hold strip
|
|
offsets and byte counts.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<I><A HREF="libtiff.3t.html">libtiff</A></I>(3T),
|
|
|
|
<I><A HREF="TIFFOpen.3t.html">TIFFOpen</A></I>(3T),
|
|
|
|
<I><A HREF="TIFFWriteScanline.3t.html">TIFFWriteScanline</A></I>(3T),
|
|
|
|
<I><A HREF="TIFFWriteRawStrip.3t.html">TIFFWriteRawStrip</A></I>(3T)
|
|
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT><A HREF="#lbAB">NAME</A><DD>
|
|
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT><A HREF="#lbAE">NOTES</A><DD>
|
|
<DT><A HREF="#lbAF">RETURN VALUES</A><DD>
|
|
<DT><A HREF="#lbAG">DIAGNOSTICS</A><DD>
|
|
<DT><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="index.html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 01:31:38 GMT, November 23, 1999
|
|
</BODY>
|
|
</HTML>
|