~ubuntu-branches/ubuntu/karmic/tiff/karmic-security

« back to all changes in this revision

Viewing changes to man/TIFFcodec.3t

  • Committer: Bazaar Package Importer
  • Author(s): Fabio M. Di Nitto
  • Date: 2004-10-14 07:57:59 UTC
  • Revision ID: james.westby@ubuntu.com-20041014075759-a77e7zuaetya8cp0
Tags: upstream-3.6.1
ImportĀ upstreamĀ versionĀ 3.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\" $Header: /cvsroot/osrs/libtiff/man/TIFFcodec.3t,v 1.2 2003/11/20 21:53:40 dron Exp $
 
2
.\"
 
3
.\" Copyright (c) 1995 Sam Leffler
 
4
.\" Copyright (c) 1995 Silicon Graphics, Inc.
 
5
.\"
 
6
.\" Permission to use, copy, modify, distribute, and sell this software and 
 
7
.\" its documentation for any purpose is hereby granted without fee, provided
 
8
.\" that (i) the above copyright notices and this permission notice appear in
 
9
.\" all copies of the software and related documentation, and (ii) the names of
 
10
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
 
11
.\" publicity relating to the software without the specific, prior written
 
12
.\" permission of Sam Leffler and Silicon Graphics.
 
13
.\" 
 
14
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
 
15
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
 
16
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
 
17
.\" 
 
18
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
 
19
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
 
20
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 
21
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
 
22
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
 
23
.\" OF THIS SOFTWARE.
 
24
.\"
 
25
.if n .po 0
 
26
.TH CODEC 3T "October 15, 1995"
 
27
.SH NAME
 
28
TIFFFindCODEC, TIFFRegisterCODEC, TIFFUnRegisterCODEC \- codec-related utility routines
 
29
.SH SYNOPSIS
 
30
.B "#include <tiffio.h>"
 
31
.br
 
32
.B "const TIFFCodec* TIFFFindCODEC(uint16 scheme);"
 
33
.br
 
34
.B "TIFFCodec* TIFFRegisterCODEC(uint16 scheme, const char* method, TIFFInitMethod init);"
 
35
.br
 
36
.B "void TIFFUnRegisterCODEC(TIFFCodec* codec);"
 
37
.br
 
38
.B "int TIFFIsCODECConfigured(uint16 scheme);"
 
39
.SH DESCRIPTION
 
40
.I libtiff
 
41
supports a variety of compression schemes implemented by software
 
42
.IR codecs .
 
43
Each codec adheres to a modular interface that provides for
 
44
the decoding and encoding of image data; as well as some other
 
45
methods for initialization, setup, cleanup, and the control
 
46
of default strip and tile sizes.
 
47
Codecs are identified by the associated value of the 
 
48
.SM TIFF
 
49
.I Compression
 
50
tag; e.g. 5 for
 
51
.SM LZW
 
52
compression.
 
53
.PP
 
54
The
 
55
.I TIFFRegisterCODEC
 
56
routine can be used to
 
57
augment or override the set of codecs available to an application.
 
58
If the specified
 
59
.I scheme
 
60
already has a registered codec then it is
 
61
.I overridden
 
62
and any images with data encoded with this
 
63
compression scheme will be decoded using the supplied coded.
 
64
.PP
 
65
.I TIFFIsCODECConfigured
 
66
returns 1 if the codec is configured and working. Otherwise 0 will be returned.
 
67
.SH DIAGNOSTICS
 
68
.BR "No space to register compression scheme %s" .
 
69
.I TIFFRegisterCODEC
 
70
was unable to allocate memory for the data structures needed
 
71
to register a codec.
 
72
.PP
 
73
.BR "Cannot remove compression scheme %s; not registered" .
 
74
.I TIFFUnRegisterCODEC
 
75
did not locate the specified codec in the table of registered 
 
76
compression schemes.
 
77
.SH "SEE ALSO"
 
78
.IR libtiff (3T)