Blame html/man/TIFFbuffer.3tiff.html

Packit 7838c8
Packit 7838c8
Packit 7838c8
<html>
Packit 7838c8
<head>
Packit 7838c8
<meta name="generator" content="groff -Thtml, see www.gnu.org">
Packit 7838c8
<meta name="Content-Style" content="text/css">
Packit 7838c8
<title>TIFFBUFFER</title>
Packit 7838c8
</head>
Packit 7838c8
<body>
Packit 7838c8
Packit 7838c8

TIFFBUFFER

Packit 7838c8
NAME
Packit 7838c8
SYNOPSIS
Packit 7838c8
DESCRIPTION
Packit 7838c8
DIAGNOSTICS
Packit 7838c8
SEE ALSO
Packit 7838c8
Packit 7838c8

Packit 7838c8
Packit 7838c8

NAME

Packit 7838c8
Packit 7838c8
Packit 7838c8
       cols="2" cellspacing="0" cellpadding="0">
Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

TIFFReadBufferSetup, TIFFWriteBufferSetup − I/O

Packit 7838c8
buffering control routines

Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

SYNOPSIS

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

DESCRIPTION

Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8
       cols="2" cellspacing="0" cellpadding="0">
Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

The following routines are provided for client-control of

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

Packit 7838c8
Packit 7838c8

TIFFReadBufferSetup sets up the data buffer used

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

Packit 7838c8
Packit 7838c8

TIFFWriteBufferSetup sets up the data buffer used

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

Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

DIAGNOSTICS

Packit 7838c8
Packit 7838c8
Packit 7838c8
       cols="2" cellspacing="0" cellpadding="0">
Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

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

Packit 7838c8
TIFFReadBufferSetup was unable to dynamically
Packit 7838c8
allocate space for a data buffer.

Packit 7838c8
Packit 7838c8

%s: No space for output buffer.

Packit 7838c8
TIFFWriteBufferSetup was unable to dynamically
Packit 7838c8
allocate space for a data buffer.

Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

SEE ALSO

Packit 7838c8
Packit 7838c8
Packit 7838c8
       cols="2" cellspacing="0" cellpadding="0">
Packit 7838c8
Packit 7838c8
Packit 7838c8
Packit 7838c8

libtiff(3TIFF)

Packit 7838c8
Packit 7838c8

Libtiff library home page:

Packit 7838c8
http://www.simplesystems.org/libtiff/

Packit 7838c8
Packit 7838c8
Packit 7838c8

Packit 7838c8
</body>
Packit 7838c8
</html>