roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
<meta content="groff -Thtml, see www.gnu.org" name="generator">
roentgen b75cab
<meta content="text/css" name="Content-Style">
roentgen b75cab
<title>TIFFBUFFER</title>
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

TIFFBUFFER

roentgen b75cab
NAME
roentgen b75cab
SYNOPSIS
roentgen b75cab
DESCRIPTION
roentgen b75cab
DIAGNOSTICS
roentgen b75cab
SEE ALSO
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab

NAME

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

TIFFReadBufferSetup, TIFFWriteBufferSetup − I/O

roentgen b75cab
buffering control routines

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SYNOPSIS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
#include <tiffio.h>
roentgen b75cab
roentgen b75cab
int TIFFReadBufferSetup(TIFF *tif, tdata_t buffer, tsize_t size);
roentgen b75cab
int TIFFWriteBufferSetup(TIFF *tif, tdata_t buffer, tsize_t size);
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

DESCRIPTION

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

The following routines are provided for client-control of

roentgen b75cab
the I/O buffers used by the library. Applications need never
roentgen b75cab
use these routines; they are provided only for
roentgen b75cab
‘‘intelligent clients’’ that wish to
roentgen b75cab
optimize memory usage and/or eliminate potential copy
roentgen b75cab
operations that can occur when working with images that have
roentgen b75cab
data stored without compression.

roentgen b75cab
roentgen b75cab

TIFFReadBufferSetup sets up the data buffer used

roentgen b75cab
to read raw (encoded) data from a file. If the specified
roentgen b75cab
pointer is <small>NULL</small> (zero), then a buffer of the
roentgen b75cab
appropriate size is allocated. Otherwise the caller must
roentgen b75cab
guarantee that the buffer is large enough to hold any
roentgen b75cab
individual strip of raw data. TIFFReadBufferSetup
roentgen b75cab
returns a non-zero value if the setup was successful and
roentgen b75cab
zero otherwise.

roentgen b75cab
roentgen b75cab

TIFFWriteBufferSetup sets up the data buffer used

roentgen b75cab
to write raw (encoded) data to a file. If the specified
roentgen b75cab
size is −1 then the buffer size is selected to
roentgen b75cab
hold a complete tile or strip, or at least 8 kilobytes,
roentgen b75cab
whichever is greater. If the specified buffer is
roentgen b75cab
<small>NULL</small> (zero), then a buffer of the appropriate
roentgen b75cab
size is dynamically allocated. TIFFWriteBufferSetup
roentgen b75cab
returns a non-zero value if the setup was successful and
roentgen b75cab
zero otherwise.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

DIAGNOSTICS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

%s: No space for data buffer at scanline %ld.

roentgen b75cab
TIFFReadBufferSetup was unable to dynamically
roentgen b75cab
allocate space for a data buffer.

roentgen b75cab
roentgen b75cab

%s: No space for output buffer.

roentgen b75cab
TIFFWriteBufferSetup was unable to dynamically
roentgen b75cab
allocate space for a data buffer.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SEE ALSO

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

libtiff(3TIFF)

roentgen b75cab
roentgen b75cab

Libtiff library home page:

roentgen b75cab
http://www.remotesensing.org/libtiff/

roentgen b75cab
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab