|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<meta content="groff -Thtml, see www.gnu.org" name="generator">
|
|
kusano |
7d535a |
<meta content="text/css" name="Content-Style">
|
|
kusano |
7d535a |
<title>TIFFWriteEncodedTile</title>
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
TIFFWriteEncodedTile
|
|
kusano |
7d535a |
NAME
|
|
kusano |
7d535a |
SYNOPSIS
|
|
kusano |
7d535a |
DESCRIPTION
|
|
kusano |
7d535a |
NOTES
|
|
kusano |
7d535a |
RETURN VALUES
|
|
kusano |
7d535a |
DIAGNOSTICS
|
|
kusano |
7d535a |
SEE ALSO
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
NAME
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>TIFFWritedEncodedTile − compress and write a</big>
|
|
kusano |
7d535a |
tile of data to an open TIFF <big>file</big>
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
SYNOPSIS
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>#include <tiffio.h></big>
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>tsize_t TIFFWriteEncodedTile(TIFF</big>
|
|
kusano |
7d535a |
*tif, ttile_t tile, tdata_t
|
|
kusano |
7d535a |
buf, tsize_t size)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
DESCRIPTION
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>Compress size bytes of raw data from</big>
|
|
kusano |
7d535a |
buf and append the result to the end of the
|
|
kusano |
7d535a |
specified tile. Note that the value of tile is a
|
|
kusano |
7d535a |
‘‘raw tile number.’’ That is, the
|
|
kusano |
7d535a |
caller must take into account whether or not the data are
|
|
kusano |
7d535a |
organized in separate places (PlanarConfiguration=2).
|
|
kusano |
7d535a |
TIFFComputeTile automatically does this when
|
|
kusano |
7d535a |
converting an (x,y,z,sample) coordinate quadruple to a tile
|
|
kusano |
7d535a |
number.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
NOTES
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>The library writes encoded data using the native</big>
|
|
kusano |
7d535a |
machine byte order. Correctly implemented TIFF
|
|
kusano |
7d535a |
<big>readers are expected to do any necessary byte-swapping</big>
|
|
kusano |
7d535a |
to correctly process image data with BitsPerSample greater
|
|
kusano |
7d535a |
than 8.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
RETURN VALUES
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>−1 is returned if an error was encountered.</big>
|
|
kusano |
7d535a |
Otherwise, the value of size is returned.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
DIAGNOSTICS
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>All error messages are directed to the</big>
|
|
kusano |
7d535a |
TIFFError(3TIFF) routine.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>%s: File not open for writing. The file was</big>
|
|
kusano |
7d535a |
opened for reading, not writing.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>Can not write tiles to a stripped image. The</big>
|
|
kusano |
7d535a |
image is assumed to be organized in strips because neither
|
|
kusano |
7d535a |
of the TileWidth or TileLength tags have been
|
|
kusano |
7d535a |
set with TIFFSetField(3TIFF).
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>%s: Must set "ImageWidth" before</big>
|
|
kusano |
7d535a |
writing data. The image’s width has not be set
|
|
kusano |
7d535a |
before the first write. See TIFFSetField(3TIFF) for
|
|
kusano |
7d535a |
information on how to do this.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>%s: Must set "PlanarConfiguration"</big>
|
|
kusano |
7d535a |
before writing data. The organization of data has not be
|
|
kusano |
7d535a |
defined before the first write. See
|
|
kusano |
7d535a |
TIFFSetField(3TIFF) for information on how to do
|
|
kusano |
7d535a |
this.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>%s: No space for tile arrays". There was</big>
|
|
kusano |
7d535a |
not enough space for the arrays that hold tile offsets and
|
|
kusano |
7d535a |
byte counts.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
SEE ALSO
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>TIFFOpen(3TIFF), TIFFWriteTile(3TIFF),</big>
|
|
kusano |
7d535a |
TIFFWriteRawTile(3TIFF),
|
|
kusano |
7d535a |
libtiff(3TIFF)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<big>Libtiff library home page:</big>
|
|
kusano |
7d535a |
http://www.remotesensing.org/libtiff/
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|