1<!-- Creator : groff version 1.19.2 --> 2<!-- CreationDate: Mon Jan 2 17:41:34 2006 --> 3<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 4"http://www.w3.org/TR/html4/loose.dtd"> 5<html> 6<head> 7<meta name="generator" content="groff -Thtml, see www.gnu.org"> 8<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> 9<meta name="Content-Style" content="text/css"> 10<style type="text/css"> 11 p { margin-top: 0; margin-bottom: 0; } 12 pre { margin-top: 0; margin-bottom: 0; } 13 table { margin-top: 0; margin-bottom: 0; } 14</style> 15<title>TIFFBUFFER</title> 16 17</head> 18<body> 19 20<h1 align=center>TIFFBUFFER</h1> 21 22<a href="#NAME">NAME</a><br> 23<a href="#SYNOPSIS">SYNOPSIS</a><br> 24<a href="#DESCRIPTION">DESCRIPTION</a><br> 25<a href="#DIAGNOSTICS">DIAGNOSTICS</a><br> 26<a href="#SEE ALSO">SEE ALSO</a><br> 27 28<hr> 29 30 31<a name="NAME"></a> 32<h2>NAME</h2> 33 34 35 36<p style="margin-left:11%; margin-top: 1em">TIFFReadBufferSetup, 37TIFFWriteBufferSetup − I/O buffering control 38routines</p> 39 40<a name="SYNOPSIS"></a> 41<h2>SYNOPSIS</h2> 42 43 44<p style="margin-left:11%; margin-top: 1em"><b>#include 45<tiffio.h></b></p> 46 47<p style="margin-left:11%; margin-top: 1em"><b>int 48TIFFReadBufferSetup(TIFF *</b><i>tif</i><b>, tdata_t</b> 49<i>buffer</i><b>, tsize_t</b> <i>size</i><b>); <br> 50int TIFFWriteBufferSetup(TIFF *</b><i>tif</i><b>, 51tdata_t</b> <i>buffer</i><b>, tsize_t</b> 52<i>size</i><b>);</b></p> 53 54<a name="DESCRIPTION"></a> 55<h2>DESCRIPTION</h2> 56 57 58<p style="margin-left:11%; margin-top: 1em">The following 59routines are provided for client-control of the I/O buffers 60used by the library. Applications need never use these 61routines; they are provided only for 62‘‘intelligent clients’’ that wish to 63optimize memory usage and/or eliminate potential copy 64operations that can occur when working with images that have 65data stored without compression.</p> 66 67 68<p style="margin-left:11%; margin-top: 1em"><i>TIFFReadBufferSetup</i> 69sets up the data buffer used to read raw (encoded) data from 70a file. If the specified pointer is <small>NULL</small> 71(zero), then a buffer of the appropriate size is allocated. 72Otherwise the caller must guarantee that the buffer is large 73enough to hold any individual strip of raw data. 74<i>TIFFReadBufferSetup</i> returns a non-zero value if the 75setup was successful and zero otherwise.</p> 76 77 78<p style="margin-left:11%; margin-top: 1em"><i>TIFFWriteBufferSetup</i> 79sets up the data buffer used to write raw (encoded) data to 80a file. If the specified <i>size</i> is −1 then the 81buffer size is selected to hold a complete tile or strip, or 82at least 8 kilobytes, whichever is greater. If the specified 83<i>buffer</i> is <small>NULL</small> (zero), then a buffer 84of the appropriate size is dynamically allocated. 85<i>TIFFWriteBufferSetup</i> returns a non-zero value if the 86setup was successful and zero otherwise.</p> 87 88<a name="DIAGNOSTICS"></a> 89<h2>DIAGNOSTICS</h2> 90 91 92<p style="margin-left:11%; margin-top: 1em"><b>%s: No space 93for data buffer at scanline %ld</b>. 94<i>TIFFReadBufferSetup</i> was unable to dynamically 95allocate space for a data buffer.</p> 96 97<p style="margin-left:11%; margin-top: 1em"><b>%s: No space 98for output buffer</b>. <i>TIFFWriteBufferSetup</i> was 99unable to dynamically allocate space for a data buffer.</p> 100 101<a name="SEE ALSO"></a> 102<h2>SEE ALSO</h2> 103 104 105 106<p style="margin-left:11%; margin-top: 1em"><b>libtiff</b>(3TIFF)</p> 107 108<p style="margin-left:11%; margin-top: 1em">Libtiff library 109home page: <b>http://www.remotesensing.org/libtiff/</b></p> 110<hr> 111</body> 112</html> 113