1CODEC(3TIFF)                                                      CODEC(3TIFF)
2
3
4

NAME

6       TIFFFindCODEC,   TIFFRegisterCODEC,  TIFFUnRegisterCODEC,  TIFFIsCODEC‐
7       Configured - codec-related utility routines
8

SYNOPSIS

10       #include <tiffio.h>
11
12       const TIFFCodec* TIFFFindCODEC(uint16 scheme);
13       TIFFCodec*  TIFFRegisterCODEC(uint16  scheme,   const   char   *method,
14       TIFFInitMethod init);
15       void TIFFUnRegisterCODEC(TIFFCodec *codec);
16       int TIFFIsCODECConfigured(uint16 scheme);
17

DESCRIPTION

19       libtiff  supports a variety of compression schemes implemented by soft‐
20       ware codecs.  Each codec adheres to a modular interface  that  provides
21       for  the  decoding  and  encoding  of image data; as well as some other
22       methods for initialization, setup, cleanup, and the control of  default
23       strip and tile sizes.  Codecs are identified by the associated value of
24       the TIFF Compression tag; e.g. 5 for LZW compression.
25
26       The TIFFRegisterCODEC routine can be used to augment  or  override  the
27       set  of  codecs  available  to an application.  If the specified scheme
28       already has a registered codec then it is  overridden  and  any  images
29       with  data  encoded  with this compression scheme will be decoded using
30       the supplied codec.
31
32       TIFFIsCODECConfigured returns 1 if the codec is configured and working.
33       Otherwise 0 will be returned.
34

DIAGNOSTICS

36       No  space  to  register  compression  scheme %s.  TIFFRegisterCODEC was
37       unable to allocate memory for the data structures needed to register  a
38       codec.
39
40       Cannot  remove  compression scheme %s; not registered.  TIFFUnRegister‐
41       CODEC did not locate the specified codec in  the  table  of  registered
42       compression schemes.
43

SEE ALSO

45       libtiff(3TIFF)
46
47       Libtiff library home page: http://www.simplesystems.org/libtiff/
48
49
50
51libtiff                        October 29, 2004                   CODEC(3TIFF)
Impressum