Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/doc/functions/TIFFcodec.rst

raw
1 TIFFcodec
2 =========
3
4 Synopsis
5 --------
6
7 .. highlight:: c
8
9 ::
10
11 #include <tiffio.h>
12
13 .. c:function:: const TIFFCodec* TIFFFindCODEC(uint16_t scheme)
14
15 .. c:function:: TIFFCodec* TIFFRegisterCODEC(uint16_t scheme, const char *method, TIFFInitMethod init)
16
17 .. c:function:: void TIFFUnRegisterCODEC(TIFFCodec * codec)
18
19 .. c:function:: int TIFFIsCODECConfigured(uint16_t scheme)
20
21 .. c:function:: TIFFCodec* TIFFGetConfiguredCODECs(uint16_t scheme)
22
23 .. c:function:: int TIFFSetCompressionScheme(TIFF* tif, int scheme)
24
25
26 Description
27 -----------
28
29 :program:`libtiff` supports a variety of compression schemes implemented
30 by software *codecs*. Each codec adheres to a modular interface that
31 provides for the decoding and encoding of image data; as well as some
32 other methods for initialization, setup, cleanup, and the control of
33 default strip and tile sizes. Codecs are identified by the associated
34 value of the TIFF ``Compression`` tag; e.g. 5 for LZW compression.
35
36 .. ToDo: Describe functionality of next functions
37
38 :c:func:`TIFFFindCODEC` ??????
39
40 :c:func:`TIFFUnRegisterCODEC` ?????
41
42 The :c:func:`TIFFRegisterCODEC` routine can be used to augment or
43 override the set of codecs available to an application. If the
44 specified *scheme* already has a registered codec then it is
45 *overridden* and any images with data encoded with this compression
46 scheme will be decoded using the supplied codec.
47
48 :c:func:`TIFFIsCODECConfigured` returns 1 if the codec is configured
49 and working. Otherwise 0 will be returned.
50
51 :c:func:`TIFFGetConfiguredCODECs` gets list of configured codecs,
52 both built-in and registered by user. Function returns array of
53 :c:type:`TIFFCodec` records (the last record should be NULL) or NULL
54 if function failed. Caller is responsible to free this structure.
55
56 :c:func:`TIFFSetCompressionScheme` ????
57
58
59 Diagnostics
60 -----------
61
62 ``No space to register compression scheme %s``:
63
64 :c:func:`TIFFRegisterCODEC` was unable to allocate memory for the
65 data structures needed to register a codec.
66
67 ``Cannot remove compression scheme %s; not registered``:
68
69 :c:func:`TIFFUnRegisterCODEC` did not locate the specified codec in
70 the table of registered compression schemes.
71
72 See also
73 --------
74
75 :doc:`libtiff` (3tiff),