Blame man/TIFFWriteEncodedTile.3tiff

Packit Service 2594b8
.\" $Id: TIFFWriteEncodedTile.3tiff,v 1.3 2016-09-25 20:05:50 bfriesen Exp $
Packit Service 2594b8
.\"
Packit Service 2594b8
.\" Copyright (c) 1988-1997 Sam Leffler
Packit Service 2594b8
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
Packit Service 2594b8
.\"
Packit Service 2594b8
.\" Permission to use, copy, modify, distribute, and sell this software and 
Packit Service 2594b8
.\" its documentation for any purpose is hereby granted without fee, provided
Packit Service 2594b8
.\" that (i) the above copyright notices and this permission notice appear in
Packit Service 2594b8
.\" all copies of the software and related documentation, and (ii) the names of
Packit Service 2594b8
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
Packit Service 2594b8
.\" publicity relating to the software without the specific, prior written
Packit Service 2594b8
.\" permission of Sam Leffler and Silicon Graphics.
Packit Service 2594b8
.\" 
Packit Service 2594b8
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
Packit Service 2594b8
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
Packit Service 2594b8
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
Packit Service 2594b8
.\" 
Packit Service 2594b8
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
Packit Service 2594b8
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
Packit Service 2594b8
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
Packit Service 2594b8
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
Packit Service 2594b8
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
Packit Service 2594b8
.\" OF THIS SOFTWARE.
Packit Service 2594b8
.\"
Packit Service 2594b8
.if n .po 0
Packit Service 2594b8
.TH TIFFWriteEncodedTile 3TIFF "December 16, 1991" "libtiff"
Packit Service 2594b8
.SH NAME
Packit Service 2594b8
TIFFWritedEncodedTile \- compress and write a tile of data to an open
Packit Service 2594b8
.SM TIFF
Packit Service 2594b8
file
Packit Service 2594b8
.SH SYNOPSIS
Packit Service 2594b8
.B "#include <tiffio.h>"
Packit Service 2594b8
.sp
Packit Service 2594b8
.BI "tsize_t TIFFWriteEncodedTile(TIFF *" tif ", ttile_t " tile ", tdata_t " buf ", tsize_t " size ")"
Packit Service 2594b8
.SH DESCRIPTION
Packit Service 2594b8
Compress
Packit Service 2594b8
.I size
Packit Service 2594b8
bytes of raw data from
Packit Service 2594b8
.I buf
Packit Service 2594b8
and
Packit Service 2594b8
.B append
Packit Service 2594b8
the result to the end of the specified tile. Note that the value of
Packit Service 2594b8
.I tile
Packit Service 2594b8
is a ``raw tile number.'' That is, the caller must take into account whether
Packit Service 2594b8
or not the data are organized in separate places (\c
Packit Service 2594b8
.IR PlanarConfiguration =2).
Packit Service 2594b8
.IR TIFFComputeTile
Packit Service 2594b8
automatically does this when converting an (x,y,z,sample) coordinate quadruple
Packit Service 2594b8
to a tile number.
Packit Service 2594b8
.SH NOTES
Packit Service 2594b8
The library writes encoded data using the native machine byte order. Correctly
Packit Service 2594b8
implemented
Packit Service 2594b8
.SM TIFF
Packit Service 2594b8
readers are expected to do any necessary byte-swapping to correctly process
Packit Service 2594b8
image data with BitsPerSample greater than 8.
Packit Service 2594b8
.SH "RETURN VALUES"
Packit Service 2594b8
\-1 is returned if an error was encountered. Otherwise, the value of
Packit Service 2594b8
.IR size 
Packit Service 2594b8
is returned.
Packit Service 2594b8
.SH DIAGNOSTICS
Packit Service 2594b8
All error messages are directed to the
Packit Service 2594b8
.BR TIFFError (3TIFF)
Packit Service 2594b8
routine.
Packit Service 2594b8
.PP
Packit Service 2594b8
\fB%s: File not open for writing\fP.
Packit Service 2594b8
The file was opened for reading, not writing.
Packit Service 2594b8
.PP
Packit Service 2594b8
\fBCan not write tiles to a stripped image\fP.
Packit Service 2594b8
The image is assumed to be organized in strips because neither of the
Packit Service 2594b8
.I TileWidth
Packit Service 2594b8
or
Packit Service 2594b8
.I TileLength
Packit Service 2594b8
tags have been set with
Packit Service 2594b8
.BR TIFFSetField (3TIFF).
Packit Service 2594b8
.PP
Packit Service 2594b8
\fB%s: Must set "ImageWidth" before writing data\fP. The image's width has not
Packit Service 2594b8
be set before the first write. See
Packit Service 2594b8
.BR TIFFSetField (3TIFF)
Packit Service 2594b8
for information on how to do this.
Packit Service 2594b8
.PP
Packit Service 2594b8
\fB%s: Must set "PlanarConfiguration" before writing data\fP. The organization
Packit Service 2594b8
of data has not be defined before the first write. See
Packit Service 2594b8
.BR TIFFSetField (3TIFF)
Packit Service 2594b8
for information on how to do this.
Packit Service 2594b8
.PP
Packit Service 2594b8
\fB%s: No space for tile arrays"\fP.
Packit Service 2594b8
There was not enough space for the arrays that hold tile offsets and byte
Packit Service 2594b8
counts.
Packit Service 2594b8
.SH "SEE ALSO"
Packit Service 2594b8
.BR TIFFOpen (3TIFF),
Packit Service 2594b8
.BR TIFFWriteTile (3TIFF),
Packit Service 2594b8
.BR TIFFWriteRawTile (3TIFF),
Packit Service 2594b8
.BR libtiff (3TIFF)
Packit Service 2594b8
.PP
Packit Service 2594b8
Libtiff library home page:
Packit Service 2594b8
.BR http://www.simplesystems.org/libtiff/