Blame man/TIFFcodec.3tiff

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