10139N/A<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
10139N/A<!--ArborText, Inc., 1988-1999, v.4002-->
13666N/A<!--ARC : LSARC 2003/085 libtiff, libjpeg, and libpng-->
10139N/A<!ENTITY synp-tt "SYNOPSIS">
10139N/A<!ENTITY cmd "TIFFbuffer">
10139N/A<!ENTITY % commonents SYSTEM "smancommon.ent">
10139N/A%commonents;
10139N/A<!ENTITY % gnomecommonents SYSTEM "gnomecommon.ent">
10139N/A%gnomecommonents;
10139N/A<!ENTITY % booktitles SYSTEM "booktitles.ent">
10139N/A%booktitles;
10139N/A<!ENTITY suncopy "Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.">
10139N/A]>
10139N/A<?Pub UDT _bookmark _target>
10139N/A<?Pub EntList brvbar bull cross dash diam diams frac12 frac13 frac14 hellip
10139N/A laquo lArr loz mdash nabla ndash para pound rArr raquo sect yen percnt>
10139N/A<?Pub Inc>
10139N/A<refentry id="TIFFbuffer-3tiff">
10139N/A<!-- %Z%%M% %I% %E% SMI; -->
10139N/A<refmeta><refentrytitle>TIFFbuffer</refentrytitle><manvolnum>3tiff</manvolnum>
10139N/A<refmiscinfo class="date">01 Apr 2004</refmiscinfo>
10139N/A<refmiscinfo class="sectdesc">&man3;</refmiscinfo>
10139N/A<refmiscinfo class="software">&release;</refmiscinfo>
10139N/A<refmiscinfo class="arch">generic</refmiscinfo>
10139N/A<refmiscinfo class="copyright">&suncopy;</refmiscinfo>
10139N/A</refmeta>
10139N/A<indexterm><primary>TIFFbuffer</primary></indexterm><indexterm><primary>TIFFReadBufferSetup
10139N/A</primary></indexterm><indexterm><primary>TIFFWriteBufferSetup</primary></indexterm>
10139N/A<indexterm><primary>I<?Pub Caret1>/O buffering control routines</primary>
10139N/A</indexterm>
10139N/A<refnamediv id="TIFFbuffer-3tiff-name"><refdescriptor>TIFFbuffer</refdescriptor>
10139N/A<refname>TIFFReadBufferSetup</refname><refname>TIFFWriteBufferSetup</refname>
10139N/A<refpurpose>I/O buffering control routines</refpurpose></refnamediv>
10139N/A<refsect1 id="TIFFbuffer-3tiff-synp"><title>&synp-tt;</title>
10139N/A<programlisting>#include &lt;tiffio.h>
10139N/Aint TIFFReadBufferSetup(TIFF*, tdata_t buffer, tsize_t size);
10139N/Aint TIFFWriteBufferSetup(TIFF*, tdata_t buffer, tsize_t size);
10139N/A
10139N/A</programlisting>
10139N/A</refsect1>
10139N/A<refsect1 id="TIFFbuffer-3tiff-desc"><title>&desc-tt;</title>
10139N/A<para>The following routines are provided for client-control of the I/O buffers
10139N/Aused by the library. Applications need never use these routines. The routines
10139N/Aare provided only for &ldquo;intelligent clients&rdquo; that wish to optimize
10139N/Amemory usage and/or eliminate potential copy operations that can occur when
10139N/Aworking with images that have data stored without compression.</para>
10139N/A</refsect1>
10139N/A<refsect1 id="TIFFbuffer-3tiff-exde"><title>&exde-tt;</title>
10139N/A<para><literal>TIFFReadBufferSetup</literal> sets up the data buffer used
10139N/Ato read raw (encoded) data from a file. If the specified pointer is NULL (zero),
10139N/Athen a buffer of the appropriate size is allocated. Otherwise, the caller
10139N/Amust guarantee that the buffer is large enough to hold any individual strip
10139N/Aof raw data. <literal>TIFFReadBufferSetup</literal> returns a non-zero value
10139N/Aif the setup was successful.</para>
10139N/A<para><literal>TIFFWriteBufferSetup</literal> sets up the data buffer used
10139N/Ato write raw (encoded) data to a file. If the specified size is -1 then the
10139N/Abuffer size is selected to hold a complete tile or strip, or at least 8 kilobytes,
10139N/Awhichever is greater. If the specified buffer is NULL (zero), then a buffer
10139N/Aof the appropriate size is dynamically allocated. <literal>TIFFWriteBufferSetup
10139N/A</literal> returns a non-zero value if the setup was successful.</para>
10139N/A<refsect2 id="TIFFbuffer-3tiff-exde-diags">
10139N/A<title>Diagnostics</title>
10139N/A<variablelist termlength="wholeline">
10139N/A<varlistentry><term>%s: No space for data buffer at scanline %ld.</term><listitem>
10139N/A<para><literal>TIFFReadBufferSetup</literal> was unable to dynamically allocate
10139N/Aspace for a data buffer.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term>%s: No space for output buffer.</term><listitem><para><literal>
10139N/ATIFFWriteBufferSetup</literal> was unable to dynamically allocate space for
10139N/Aa data buffer.</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></refsect2>
10139N/A</refsect1>
10139N/A<refsect1 id="TIFFbuffer-3tiff-attr"><title>&attr-tt;</title>
10139N/A<para>See <olink targetdocent="REFMAN5" localinfo="attributes-5"><citerefentry>
10139N/A<refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry></olink>
10139N/Afor descriptions of the following attributes:</para>
10139N/A<informaltable frame="all">
10139N/A<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="COLSPEC0" colwidth="1*">
10139N/A<colspec colname="COLSPEC1" colwidth="1*">
10139N/A<thead>
10139N/A<row><entry align="center" valign="middle">ATTRIBUTE TYPE</entry><entry align="center"
10139N/Avalign="middle">ATTRIBUTE VALUE</entry></row>
10139N/A</thead>
10139N/A<tbody>
18745N/A<row><entry><para>Availability</para></entry><entry><para>image/library/libtiff</para></entry>
10139N/A</row>
10139N/A<row><entry colname="COLSPEC0"><para>Interface stability</para></entry><entry
13623N/Acolname="COLSPEC1"><para>Uncommitted</para></entry></row>
10139N/A</tbody>
10139N/A</tgroup>
10139N/A</informaltable>
10139N/A</refsect1>
10139N/A<refsect1 id="TIFFbuffer-3tiff-also"><title>&also-tt;</title>
10139N/A<!--Reference to another man page-->
10139N/A<!--Reference to a Help manual-->
10139N/A<!--Reference to a book.-->
10139N/A<para><citerefentry><refentrytitle>libtiff</refentrytitle><manvolnum>3</manvolnum>
10139N/A</citerefentry></para>
10139N/A</refsect1>
10139N/A<refsect1 id="TIFFbuffer-3tiff-note"><title>&note-tt;</title>
10139N/A<para>This man page was originally written by Sam Leffler. Updated by Breda McColgan, Sun Microsystems Inc., 2004.</para>
10139N/A</refsect1>
10139N/A</refentry>
10139N/A<?Pub *0000005045>