10139N/A<!
DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
10139N/A<!--ArborText, Inc., 1988-1999, v.4002-->
<!
ENTITY suncopy "Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.">
<?
Pub UDT _bookmark _target>
<?
Pub EntList brvbar bull cross dash diam diams frac12 frac13 frac14 hellip laquo lArr loz mdash nabla ndash para pound rArr raquo sect yen percnt>
<
refentry id="TIFFcodec-3tiff">
<!-- %Z%%M% %I% %E% SMI; --> <
refmeta><
refentrytitle>TIFFcodec</
refentrytitle><
manvolnum>3tiff</
manvolnum>
<
refmiscinfo class="date">01 Apr 2004</
refmiscinfo>
<
refmiscinfo class="sectdesc">&man3;</
refmiscinfo>
<
refmiscinfo class="software">&release;</
refmiscinfo>
<
refmiscinfo class="arch">generic</
refmiscinfo>
<
refmiscinfo class="copyright">&suncopy;</
refmiscinfo>
<
indexterm><
primary>TIFFFindCODEC</
primary></
indexterm><
indexterm><
primary>
TIFFRegisterCODEC</
primary></
indexterm><
indexterm><
primary>TIFFUnRegisterCODEC
</
primary></
indexterm><
indexterm><
primary>codec-related utility routines</
primary>
<
refnamediv id="TIFFcodec-3tiff-name"><
refdescriptor>TIFFcodec<?
Pub Caret></
refdescriptor>
<
refname>TIFFFindCODEC</
refname><
refname>TIFFRegisterCODEC</
refname><
refname>
TIFFUnRegisterCODEC</
refname><
refpurpose>codec-related utility routines</
refpurpose>
<
refsect1 id="TIFFcodec-3tiff-synp"><
title>&synp-tt;</
title>
const TIFFCodec* TIFFFindCODEC(uint16 scheme);
TIFFCodec* TIFFRegisterCODEC(uint16 scheme, const char*
method, TIFFInitMethod init);
void TIFFUnRegisterCODEC(TIFFCodec* codec);</
programlisting>
<
refsect1 id="TIFFcodec-3tiff-desc"><
title>&desc-tt;</
title>
<
para><
literal>libtiff</
literal> supports a variety of compression schemes
implemented by software codecs. Each codec adheres to a modular interface
that provides for the decoding and encoding of image data, as well as some
other methods for initialization, setup, cleanup, and the control of default
strip and tile sizes. Codecs are identified by the associated value of the
TIFF Compression tag, for example, 5 for LZW compression.</
para>
<
refsect1 id="TIFFcodec-3tiff-exde"><
title>&exde-tt;</
title>
<
para>The <
literal>TIFFRegisterCODEC</
literal> routine can be used to augment
or override the set of codecs available to an application. If the specified
scheme already has a registered codec, the registered codec is overridden
and any images with data encoded with this compression scheme are decoded
using the supplied codec.</
para>
<
refsect2 id="TIFFcodec-3tiff-exde-diags">
<
title>Diagnostics</
title>
<
variablelist termlength="wholeline">
<
varlistentry><
term>No space to register compression scheme %s.</
term><
listitem>
<
para><
literal>TIFFRegisterCODEC</
literal> was unable to allocate memory for
the data structures needed to register a codec.</
para>
</
listitem></
varlistentry>
<
varlistentry><
term>Cannot remove compression scheme %s; not registered.</
term>
<
listitem><
para><
literal>TIFFUnRegisterCODEC</
literal> did not locate the
specified codec in the table of registered compression schemes.</
para>
</
listitem></
varlistentry>
</
variablelist></
refsect2>
<
refsect1 id="TIFFcodec-3tiff-attr"><
title>&attr-tt;</
title>
<
para>See <
olink targetdocent="REFMAN5" localinfo="attributes-5"><
citerefentry>
<
refentrytitle>attributes</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry></
olink>
for descriptions of the following attributes:</
para>
<
informaltable frame="all">
<
tgroup cols="2" colsep="1" rowsep="1"><
colspec colname="COLSPEC0" colwidth="1*">
<
colspec colname="COLSPEC1" colwidth="1*">
<
row><
entry align="center" valign="middle">ATTRIBUTE TYPE</
entry><
entry align="center"valign="middle">ATTRIBUTE VALUE</
entry></
row>
<
row><
entry><
para>Availability</
para></
entry><
entry><
para>SUNWTiff</
para></
entry>
<
row><
entry colname="COLSPEC0"><
para>Interface stability</
para></
entry><
entrycolname="COLSPEC1"><
para>Uncommitted</
para></
entry></
row>
<
refsect1 id="TIFFcodec-3tiff-also"><
title>&also-tt;</
title>
<!--Reference to another man page--> <!--Reference to a Help manual--> <!--Reference to a book.--> <
para><
citerefentry><
refentrytitle>libtiff</
refentrytitle><
manvolnum>3</
manvolnum>
<
refsect1 id="TIFFcodec-3tiff-note"><
title>¬e-tt;</
title>
<
para>This man page was originally written by Sam Leffler. Updated by Breda McColgan, Sun Microsystems Inc., 2004.</
para>