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>TIFFWriteEncodedStrip</title>
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

TIFFWriteEncodedStrip

roentgen b75cab
NAME
roentgen b75cab
SYNOPSIS
roentgen b75cab
DESCRIPTION
roentgen b75cab
NOTES
roentgen b75cab
RETURN VALUES
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

<big>TIFFWritedEncodedStrip − compress and write a</big>

roentgen b75cab
strip of data to an open TIFF <big>file</big>

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

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

roentgen b75cab
roentgen b75cab

<big>tsize_t TIFFWriteEncodedStrip(TIFF</big>

roentgen b75cab
*tif, tstrip_t strip,
roentgen b75cab
tdata_t buf, tsize_t
roentgen b75cab
size)

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

DESCRIPTION

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

<big>Compress size bytes of raw data from</big>

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

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

NOTES

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

<big>The library writes encoded data using the native</big>

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

roentgen b75cab
roentgen b75cab

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

roentgen b75cab
current settings of the ImageLength and
roentgen b75cab
RowsPerStrip tags. An image may be dynamically grown
roentgen b75cab
by increasing the value of ImageLength prior to each
roentgen b75cab
call to TIFFWriteEncodedStrip.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

RETURN VALUES

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

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

roentgen b75cab
Otherwise, the value of size is returned.

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

<big>All error messages are directed to the</big>

roentgen b75cab
TIFFError(3TIFF) routine.

roentgen b75cab
roentgen b75cab

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

roentgen b75cab
opened for reading, not writing.

roentgen b75cab
roentgen b75cab

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

roentgen b75cab
image is assumed to be organized in tiles because the
roentgen b75cab
TileWidth and TileLength tags have been set
roentgen b75cab
with TIFFSetField(3TIFF).

roentgen b75cab
roentgen b75cab

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

roentgen b75cab
writing data. The image’s width has not be set
roentgen b75cab
before the first write. See TIFFSetField(3TIFF) for
roentgen b75cab
information on how to do this.

roentgen b75cab
roentgen b75cab

<big>%s: Must set "PlanarConfiguration"</big>

roentgen b75cab
before writing data. The organization of data has not be
roentgen b75cab
defined before the first write. See
roentgen b75cab
TIFFSetField(3TIFF) for information on how to do
roentgen b75cab
this.

roentgen b75cab
roentgen b75cab

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

roentgen b75cab
was not enough space for the arrays that hold strip offsets
roentgen b75cab
and byte counts.

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

<big>TIFFOpen(3TIFF),</big>

roentgen b75cab
TIFFWriteScanline(3TIFF),
roentgen b75cab
TIFFWriteRawStrip(3TIFF),
roentgen b75cab
libtiff(3TIFF)

roentgen b75cab
roentgen b75cab

<big>Libtiff library home page:</big>

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

roentgen b75cab
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab