Blame html/man/TIFFWriteEncodedStrip.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>TIFFWriteEncodedStrip</title>
Packit 7838c8
</head>
Packit 7838c8
<body>
Packit 7838c8
Packit 7838c8

TIFFWriteEncodedStrip

Packit 7838c8
NAME
Packit 7838c8
SYNOPSIS
Packit 7838c8
DESCRIPTION
Packit 7838c8
NOTES
Packit 7838c8
RETURN VALUES
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

<big>TIFFWritedEncodedStrip − compress and write a

Packit 7838c8
strip of data to an open</big> TIFF <big>file</big>

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

<big>#include <tiffio.h></big>

Packit 7838c8
Packit 7838c8

<big>tsize_t TIFFWriteEncodedStrip(TIFF

Packit 7838c8
*tif, tstrip_t strip,
Packit 7838c8
tdata_t buf, tsize_t
Packit 7838c8
size)</big>

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

DESCRIPTION

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

<big>Compress size bytes of raw data from

Packit 7838c8
buf and write the result to the specified strip;
Packit 7838c8
replacing any previously written data. Note that the value
Packit 7838c8
of strip is a ‘‘raw strip
Packit 7838c8
number.’’ That is, the caller must take into
Packit 7838c8
account whether or not the data are organized in separate
Packit 7838c8
planes (PlanarConfiguration=2).</big>

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

NOTES

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

<big>The library writes encoded data using the native

Packit 7838c8
machine byte order. Correctly implemented</big> TIFF
Packit 7838c8
<big>readers are expected to do any necessary byte-swapping
Packit 7838c8
to correctly process image data with BitsPerSample greater
Packit 7838c8
than 8.</big>

Packit 7838c8
Packit 7838c8

<big>The strip number must be valid according to the

Packit 7838c8
current settings of the ImageLength and
Packit 7838c8
RowsPerStrip tags. An image may be dynamically grown
Packit 7838c8
by increasing the value of ImageLength prior to each
Packit 7838c8
call to TIFFWriteEncodedStrip.</big>

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

RETURN VALUES

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

<big>−1 is returned if an error was encountered.

Packit 7838c8
Otherwise, the value of size is returned.</big>

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

<big>All error messages are directed to the

Packit 7838c8
TIFFError(3TIFF) routine.</big>

Packit 7838c8
Packit 7838c8

<big>%s: File not open for writing. The file was

Packit 7838c8
opened for reading, not writing.</big>

Packit 7838c8
Packit 7838c8

<big>Can not write scanlines to a tiled image. The

Packit 7838c8
image is assumed to be organized in tiles because the
Packit 7838c8
TileWidth and TileLength tags have been set
Packit 7838c8
with TIFFSetField(3TIFF).</big>

Packit 7838c8
Packit 7838c8

<big>%s: Must set "ImageWidth" before

Packit 7838c8
writing data. The image’s width has not be set
Packit 7838c8
before the first write. See TIFFSetField(3TIFF) for
Packit 7838c8
information on how to do this.</big>

Packit 7838c8
Packit 7838c8

<big>%s: Must set "PlanarConfiguration"

Packit 7838c8
before writing data. The organization of data has not be
Packit 7838c8
defined before the first write. See
Packit 7838c8
TIFFSetField(3TIFF) for information on how to do
Packit 7838c8
this.</big>

Packit 7838c8
Packit 7838c8

<big>%s: No space for strip arrays". There

Packit 7838c8
was not enough space for the arrays that hold strip offsets
Packit 7838c8
and byte counts.</big>

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

<big>TIFFOpen(3TIFF),

Packit 7838c8
TIFFWriteScanline(3TIFF),
Packit 7838c8
TIFFWriteRawStrip(3TIFF),
Packit 7838c8
libtiff(3TIFF)</big>

Packit 7838c8
Packit 7838c8

<big>Libtiff library home page:

Packit 7838c8
http://www.simplesystems.org/libtiff/</big>

Packit 7838c8
Packit 7838c8
Packit 7838c8

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