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

TIFFWriteEncodedTile

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>TIFFWritedEncodedTile − compress and write a</big>

roentgen b75cab
tile 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 TIFFWriteEncodedTile(TIFF</big>

roentgen b75cab
*tif, ttile_t tile, tdata_t
roentgen b75cab
buf, tsize_t 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 append the result to the end of the
roentgen b75cab
specified tile. Note that the value of tile is a
roentgen b75cab
‘‘raw tile number.’’ That is, the
roentgen b75cab
caller must take into account whether or not the data are
roentgen b75cab
organized in separate places (PlanarConfiguration=2).
roentgen b75cab
TIFFComputeTile automatically does this when
roentgen b75cab
converting an (x,y,z,sample) coordinate quadruple to a tile
roentgen b75cab
number.

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
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 tiles to a stripped image. The</big>

roentgen b75cab
image is assumed to be organized in strips because neither
roentgen b75cab
of the TileWidth or TileLength tags have been
roentgen b75cab
set 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 tile arrays". There was</big>

roentgen b75cab
not enough space for the arrays that hold tile offsets and
roentgen b75cab
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), TIFFWriteTile(3TIFF),</big>

roentgen b75cab
TIFFWriteRawTile(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