Blame html/man/TIFFWriteEncodedTile.3tiff.html

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

TIFFWriteEncodedTile

Packit 85355f
NAME
Packit 85355f
SYNOPSIS
Packit 85355f
DESCRIPTION
Packit 85355f
NOTES
Packit 85355f
RETURN VALUES
Packit 85355f
DIAGNOSTICS
Packit 85355f
SEE ALSO
Packit 85355f
Packit 85355f

Packit 85355f
Packit 85355f

NAME

Packit 85355f
Packit 85355f
Packit 85355f
       cols="2" cellspacing="0" cellpadding="0">
Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

<big>TIFFWritedEncodedTile − compress and write a

Packit 85355f
tile of data to an open</big> TIFF <big>file</big>

Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

SYNOPSIS

Packit 85355f
Packit 85355f
Packit 85355f
       cols="2" cellspacing="0" cellpadding="0">
Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

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

Packit 85355f
Packit 85355f

<big>tsize_t TIFFWriteEncodedTile(TIFF

Packit 85355f
*tif, ttile_t tile, tdata_t
Packit 85355f
buf, tsize_t size)</big>

Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

DESCRIPTION

Packit 85355f
Packit 85355f
Packit 85355f
       cols="2" cellspacing="0" cellpadding="0">
Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

<big>Compress size bytes of raw data from

Packit 85355f
buf and append the result to the end of the
Packit 85355f
specified tile. Note that the value of tile is a
Packit 85355f
‘‘raw tile number.’’ That is, the
Packit 85355f
caller must take into account whether or not the data are
Packit 85355f
organized in separate places (PlanarConfiguration=2).
Packit 85355f
TIFFComputeTile automatically does this when
Packit 85355f
converting an (x,y,z,sample) coordinate quadruple to a tile
Packit 85355f
number.</big>

Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

NOTES

Packit 85355f
Packit 85355f
Packit 85355f
       cols="2" cellspacing="0" cellpadding="0">
Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

<big>The library writes encoded data using the native

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

Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

RETURN VALUES

Packit 85355f
Packit 85355f
Packit 85355f
       cols="2" cellspacing="0" cellpadding="0">
Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

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

Packit 85355f
Otherwise, the value of size is returned.</big>

Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

DIAGNOSTICS

Packit 85355f
Packit 85355f
Packit 85355f
       cols="2" cellspacing="0" cellpadding="0">
Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

<big>All error messages are directed to the

Packit 85355f
TIFFError(3TIFF) routine.</big>

Packit 85355f
Packit 85355f

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

Packit 85355f
opened for reading, not writing.</big>

Packit 85355f
Packit 85355f

<big>Can not write tiles to a stripped image. The

Packit 85355f
image is assumed to be organized in strips because neither
Packit 85355f
of the TileWidth or TileLength tags have been
Packit 85355f
set with TIFFSetField(3TIFF).</big>

Packit 85355f
Packit 85355f

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

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

Packit 85355f
Packit 85355f

<big>%s: Must set "PlanarConfiguration"

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

Packit 85355f
Packit 85355f

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

Packit 85355f
not enough space for the arrays that hold tile offsets and
Packit 85355f
byte counts.</big>

Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

SEE ALSO

Packit 85355f
Packit 85355f
Packit 85355f
       cols="2" cellspacing="0" cellpadding="0">
Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

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

Packit 85355f
TIFFWriteRawTile(3TIFF),
Packit 85355f
libtiff(3TIFF)</big>

Packit 85355f
Packit 85355f

<big>Libtiff library home page:

Packit 85355f
http://www.simplesystems.org/libtiff/</big>

Packit 85355f
Packit 85355f
Packit 85355f

Packit 85355f
</body>
Packit 85355f
</html>