1<!-- Creator     : groff version 1.19.2 -->
2<!-- CreationDate: Mon Jan  2 17:41:35 2006 -->
3<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
4"http://www.w3.org/TR/html4/loose.dtd">
5<html>
6<head>
7<meta name="generator" content="groff -Thtml, see www.gnu.org">
8<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
9<meta name="Content-Style" content="text/css">
10<style type="text/css">
11       p     { margin-top: 0; margin-bottom: 0; }
12       pre   { margin-top: 0; margin-bottom: 0; }
13       table { margin-top: 0; margin-bottom: 0; }
14</style>
15<title>CODEC</title>
16
17</head>
18<body>
19
20<h1 align=center>CODEC</h1>
21
22<a href="#NAME">NAME</a><br>
23<a href="#SYNOPSIS">SYNOPSIS</a><br>
24<a href="#DESCRIPTION">DESCRIPTION</a><br>
25<a href="#DIAGNOSTICS">DIAGNOSTICS</a><br>
26<a href="#SEE ALSO">SEE ALSO</a><br>
27
28<hr>
29
30
31<a name="NAME"></a>
32<h2>NAME</h2>
33
34
35<p style="margin-left:11%; margin-top: 1em">TIFFFindCODEC,
36TIFFRegisterCODEC, TIFFUnRegisterCODEC,
37TIFFIsCODECConfigured &minus; codec-related utility
38routines</p>
39
40<a name="SYNOPSIS"></a>
41<h2>SYNOPSIS</h2>
42
43
44<p style="margin-left:11%; margin-top: 1em"><b>#include
45&lt;tiffio.h&gt;</b></p>
46
47<p style="margin-left:11%; margin-top: 1em"><b>const
48TIFFCodec* TIFFFindCODEC(uint16</b> <i>scheme</i><b>); <br>
49TIFFCodec* TIFFRegisterCODEC(uint16</b> <i>scheme</i><b>,
50const char *</b><i>method</i><b>, TIFFInitMethod</b>
51<i>init</i><b>); <br>
52void TIFFUnRegisterCODEC(TIFFCodec *</b><i>codec</i><b>);
53<br>
54int TIFFIsCODECConfigured(uint16</b>
55<i>scheme</i><b>);</b></p>
56
57<a name="DESCRIPTION"></a>
58<h2>DESCRIPTION</h2>
59
60
61<p style="margin-left:11%; margin-top: 1em"><i>libtiff</i>
62supports a variety of compression schemes implemented by
63software <i>codecs</i>. Each codec adheres to a modular
64interface that provides for the decoding and encoding of
65image data; as well as some other methods for
66initialization, setup, cleanup, and the control of default
67strip and tile sizes. Codecs are identified by the
68associated value of the <small>TIFF</small>
69<i>Compression</i> tag; e.g. 5 for <small>LZW</small>
70compression.</p>
71
72<p style="margin-left:11%; margin-top: 1em">The
73<i>TIFFRegisterCODEC</i> routine can be used to augment or
74override the set of codecs available to an application. If
75the specified <i>scheme</i> already has a registered codec
76then it is <i>overridden</i> and any images with data
77encoded with this compression scheme will be decoded using
78the supplied coded.</p>
79
80
81<p style="margin-left:11%; margin-top: 1em"><i>TIFFIsCODECConfigured</i>
82returns 1 if the codec is configured and working. Otherwise
830 will be returned.</p>
84
85<a name="DIAGNOSTICS"></a>
86<h2>DIAGNOSTICS</h2>
87
88
89<p style="margin-left:11%; margin-top: 1em"><b>No space to
90register compression scheme %s</b>. <i>TIFFRegisterCODEC</i>
91was unable to allocate memory for the data structures needed
92to register a codec.</p>
93
94<p style="margin-left:11%; margin-top: 1em"><b>Cannot
95remove compression scheme %s; not registered</b>.
96<i>TIFFUnRegisterCODEC</i> did not locate the specified
97codec in the table of registered compression schemes.</p>
98
99<a name="SEE ALSO"></a>
100<h2>SEE ALSO</h2>
101
102
103
104<p style="margin-left:11%; margin-top: 1em"><b>libtiff</b>(3TIFF)</p>
105
106<p style="margin-left:11%; margin-top: 1em">Libtiff library
107home page: <b>http://www.remotesensing.org/libtiff/</b></p>
108<hr>
109</body>
110</html>
111