|
Packit |
994f1a |
.\" $Id: TIFFcodec.3tiff,v 1.2 2005/11/02 11:07:18 dron Exp $
|
|
Packit |
994f1a |
.\"
|
|
Packit |
994f1a |
.\" Copyright (c) 1995 Sam Leffler
|
|
Packit |
994f1a |
.\" Copyright (c) 1995 Silicon Graphics, Inc.
|
|
Packit |
994f1a |
.\"
|
|
Packit |
994f1a |
.\" Permission to use, copy, modify, distribute, and sell this software and
|
|
Packit |
994f1a |
.\" its documentation for any purpose is hereby granted without fee, provided
|
|
Packit |
994f1a |
.\" that (i) the above copyright notices and this permission notice appear in
|
|
Packit |
994f1a |
.\" all copies of the software and related documentation, and (ii) the names of
|
|
Packit |
994f1a |
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
|
|
Packit |
994f1a |
.\" publicity relating to the software without the specific, prior written
|
|
Packit |
994f1a |
.\" permission of Sam Leffler and Silicon Graphics.
|
|
Packit |
994f1a |
.\"
|
|
Packit |
994f1a |
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
|
Packit |
994f1a |
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
|
Packit |
994f1a |
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
Packit |
994f1a |
.\"
|
|
Packit |
994f1a |
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
|
Packit |
994f1a |
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
|
Packit |
994f1a |
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
Packit |
994f1a |
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
|
Packit |
994f1a |
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
|
Packit |
994f1a |
.\" OF THIS SOFTWARE.
|
|
Packit |
994f1a |
.\"
|
|
Packit |
994f1a |
.if n .po 0
|
|
Packit |
994f1a |
.TH CODEC 3TIFF "October 29, 2004" "libtiff"
|
|
Packit |
994f1a |
.SH NAME
|
|
Packit |
994f1a |
TIFFFindCODEC, TIFFRegisterCODEC, TIFFUnRegisterCODEC, TIFFIsCODECConfigured
|
|
Packit |
994f1a |
\- codec-related utility routines
|
|
Packit |
994f1a |
.SH SYNOPSIS
|
|
Packit |
994f1a |
.B "#include <tiffio.h>"
|
|
Packit |
994f1a |
.sp
|
|
Packit |
994f1a |
.BI "const TIFFCodec* TIFFFindCODEC(uint16 " scheme ");"
|
|
Packit |
994f1a |
.br
|
|
Packit |
994f1a |
.BI "TIFFCodec* TIFFRegisterCODEC(uint16 " scheme ", const char *" method ", TIFFInitMethod " init ");"
|
|
Packit |
994f1a |
.br
|
|
Packit |
994f1a |
.BI "void TIFFUnRegisterCODEC(TIFFCodec *" codec ");"
|
|
Packit |
994f1a |
.br
|
|
Packit |
994f1a |
.BI "int TIFFIsCODECConfigured(uint16 " scheme ");"
|
|
Packit |
994f1a |
.SH DESCRIPTION
|
|
Packit |
994f1a |
.I libtiff
|
|
Packit |
994f1a |
supports a variety of compression schemes implemented by software
|
|
Packit |
994f1a |
.IR codecs .
|
|
Packit |
994f1a |
Each codec adheres to a modular interface that provides for
|
|
Packit |
994f1a |
the decoding and encoding of image data; as well as some other
|
|
Packit |
994f1a |
methods for initialization, setup, cleanup, and the control
|
|
Packit |
994f1a |
of default strip and tile sizes.
|
|
Packit |
994f1a |
Codecs are identified by the associated value of the
|
|
Packit |
994f1a |
.SM TIFF
|
|
Packit |
994f1a |
.I Compression
|
|
Packit |
994f1a |
tag; e.g. 5 for
|
|
Packit |
994f1a |
.SM LZW
|
|
Packit |
994f1a |
compression.
|
|
Packit |
994f1a |
.PP
|
|
Packit |
994f1a |
The
|
|
Packit |
994f1a |
.I TIFFRegisterCODEC
|
|
Packit |
994f1a |
routine can be used to
|
|
Packit |
994f1a |
augment or override the set of codecs available to an application.
|
|
Packit |
994f1a |
If the specified
|
|
Packit |
994f1a |
.I scheme
|
|
Packit |
994f1a |
already has a registered codec then it is
|
|
Packit |
994f1a |
.I overridden
|
|
Packit |
994f1a |
and any images with data encoded with this
|
|
Packit |
994f1a |
compression scheme will be decoded using the supplied coded.
|
|
Packit |
994f1a |
.PP
|
|
Packit |
994f1a |
.I TIFFIsCODECConfigured
|
|
Packit |
994f1a |
returns 1 if the codec is configured and working. Otherwise 0 will be returned.
|
|
Packit |
994f1a |
.SH DIAGNOSTICS
|
|
Packit |
994f1a |
.BR "No space to register compression scheme %s" .
|
|
Packit |
994f1a |
.I TIFFRegisterCODEC
|
|
Packit |
994f1a |
was unable to allocate memory for the data structures needed
|
|
Packit |
994f1a |
to register a codec.
|
|
Packit |
994f1a |
.PP
|
|
Packit |
994f1a |
.BR "Cannot remove compression scheme %s; not registered" .
|
|
Packit |
994f1a |
.I TIFFUnRegisterCODEC
|
|
Packit |
994f1a |
did not locate the specified codec in the table of registered
|
|
Packit |
994f1a |
compression schemes.
|
|
Packit |
994f1a |
.SH "SEE ALSO"
|
|
Packit |
994f1a |
.BR libtiff (3TIFF)
|
|
Packit |
994f1a |
.PP
|
|
Packit |
994f1a |
Libtiff library home page:
|
|
Packit |
994f1a |
.BR http://www.remotesensing.org/libtiff/
|