Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/doc/build.rst

raw
1 Building the TIFF Software Distribution
2 =======================================
3
4 .. image:: images/cramps.gif
5 :width: 159
6 :alt: cramps
7
8 This chapter contains step-by-step instructions on how to configure
9 and build the TIFF software distribution. The software is most
10 easily built on a UNIX system, but with a little bit of work it can
11 easily be built and used on other non-UNIX platforms.
12
13
14 Building on all systems with CMake
15 ----------------------------------
16
17 CMake may be used to
18 generate build files for most common build systems and IDEs, and
19 supports all UNIX-like systems as well as Windows. See
20 the `CMake website <http://www.cmake.org/>`_ for further
21 details. To build the software on you need to first run
22 :command:`cmake` to configure the build and generate the system-specific
23 build files. This reads the top-level :file:`CMakeLists.txt` file,
24 which probes the target system for necessary tools and functions,
25 checks any options you specified to configure the build, and then
26 outputs build files configured for your system. If using ``Unix
27 Makefiles``, once configuration is done, you simply
28 run :command:`make` (or :command:`gmake`) to build the software and
29 then :command:`make install` to do the installation. For other build
30 systems, you do the equivalent steps with the tool for that system.
31 For example, on any UNIX system:
32
33 .. code-block:: shell
34
35 $ cd ./tiff-4.0.5
36 $ cmake
37 ...lots of messages...
38 $ make
39 ...lots of messages...
40 $ make test
41 ...lots of messages...
42 # make install
43
44 Building is dependent on a :program:`make` utility and a C
45 (and optionally a C++) compiler, so you will need these tools.
46
47 In general, the software is designed such that the following
48 targets will always be available:
49
50 ::
51
52 make [all] build stuff
53 make test run the test suite
54 make install build and install stuff
55 make clean remove object files, executables and cruft
56
57 Build Trees
58 ^^^^^^^^^^^
59
60 There are two schemes for configuring and building the software. If
61 you intend to build the software for only one target system, you
62 can configure the software so that it is built in the same
63 directories as the source code.
64
65 .. code-block:: shell
66
67 $ gzip -dc tiff-4.0.5.tar.gz | tar -xf -
68 $ cd ./tiff-4.0.5
69 $ cmake
70 $ make
71 $ make test
72 $ make install
73
74 Otherwise, you can configure a build tree that is parallel to
75 the source tree hierarchy (or in some completely different place)
76 but which contains only configured files and files created during
77 the build procedure.
78
79
80 .. code-block:: shell
81
82 $ gzip -dc tiff-4.0.5.tar.gz | tar -xf -
83 $ mkdir tiff-4.0.5-build
84 $ cd ./tiff-4.0.5-build
85 $ cmake ../tiff-4.0.5
86 $ make
87 $ make test
88 $ make install
89
90 This second scheme is useful for:
91
92 * building multiple targets from a single source tree
93 * building from a read-only source tree
94 * sharing the source files via a network, but building on
95 multiple systems
96 * keeping the source tree clean
97 (unlike :program:`autoconf`, :program:`cmake` does not provide
98 a ``distclean`` target, so out of source builds are
99 recommended)
100
101 Generators
102 ^^^^^^^^^^
103
104 The default generator for UNIX is ``Unix Makefiles``, and on Windows is
105 ``NMake Makefiles`` or ``MSBuild`` depending upon the setup.
106 Run :command:`cmake --help` to list all the
107 generators available for your platform. For example, to use the Ninja
108 `build system <https://martine.github.io/ninja/>`_ on UNIX or
109 Windows:
110
111 .. code-block:: shell
112
113 cmake -G Ninja
114 cmake --build .
115 ctest -V
116 cmake --build . --target install
117
118 Note that :command:`cmake --build .` is a build-system-independent way
119 of building a target; you can always use the build system directly.
120
121 Alternatively, using the MSBuild system on Windows (64-bit Release
122 build with VS2013):
123
124 .. code-block:: shell
125
126 cmake -G "Visual Studio 12 2013 Win64"
127 cmake --build . --config Release
128 ctest -V -C Release
129 cmake --build . --config Release --target install
130
131 With the above configuration, it's also possible to open the generated
132 solution file with the Visual Studio IDE as well as building on the
133 command-line.
134
135 Configuration Options
136 ^^^^^^^^^^^^^^^^^^^^^
137
138 The configuration process is critical to the proper compilation,
139 installation, and operation of the
140 software. The :file:`CMakeLists.txt` script runs a series of tests to
141 decide whether or not the target system supports required
142 functionality and, if it does not, whether it can emulate or
143 workaround the missing functions. After running :command:`cmake`, check
144 the :file:`CMakeCache.txt` file; this contains all the results of the
145 checks performed and the options set by the user. If :program:`cmake`
146 failed to run, check :file:`CMakeFiles/CMakeOutput.log`
147 and :file:`CMakeFiles/CMakeError.log`; these should record the error
148 which caused the failure.
149
150 A second function of the configure script is to set the default
151 configuration parameters for the software. Of particular note are the
152 directories where the software is to be installed. By default the
153 software is installed in the :file:`/usr/local` hierarchy. To change
154 this behaviour the appropriate parameters can be specified on the
155 command line. Run :command:`cmake --help` to get a full list of possible
156 options, and :command:`cmake -LH` to list all the configurable options for
157 this software package, or :command:`cmake -LAH` to show all advanced
158 options in addition. Standard installation related options are shown
159 below.
160
161 .. list-table:: Installation options
162 :widths: 10 15
163 :header-rows: 1
164
165 * - Option
166 - Description
167
168 * - ``CMAKE_INSTALL_PREFIX``
169 - Installation root directory. The options below may be used to override
170 individual installation locations.
171 * - ``CMAKE_INSTALL_BINDIR``
172 - user executables [:file:`PREFIX/bin`]
173 * - ``CMAKE_INSTALL_SBINDIR``
174 - system admin executables [:file:`PREFIX/sbin`]
175 * - ``CMAKE_INSTALL_LIBEXECDIR``
176 - program executables [:file:`PREFIX/libexec`]
177 * - ``CMAKE_INSTALL_SYSCONFDIR``
178 - read-only single-machine data [:file:`PREFIX/etc`]
179 * - ``CMAKE_INSTALL_SHAREDSTATEDIR``
180 - modifiable architecture-independent data [:file:`PREFIX/com`]
181 * - ``CMAKE_INSTALL_LOCALSTATEDIR``
182 - modifiable single-machine data [:file:`PREFIX/var`]
183 * - ``CMAKE_INSTALL_LIBDIR``
184 - object code libraries [:file:`PREFIX/lib`]
185 * - ``CMAKE_INSTALL_INCLUDEDIR``
186 - C header files [:file:`PREFIX/include`]
187 * - ``CMAKE_INSTALL_OLDINCLUDEDIR``
188 - C header files for non-gcc [:file:`/usr/include`]
189 * - ``CMAKE_INSTALL_DATAROOTDIR``
190 - read-only architecture-independent data root [:file:`PREFIX/share`]
191 * - ``CMAKE_INSTALL_DATADIR``
192 - read-only architecture-independent data [:file:`DATAROOTDIR`]
193 * - ``CMAKE_INSTALL_LOCALEDIR``
194 - locale-dependent data [:file:`DATAROOTDIR/locale`]
195 * - ``CMAKE_INSTALL_MANDIR``
196 - man documentation [:file:`DATAROOTDIR/man`]
197 * - ``CMAKE_INSTALL_DOCDIR``
198 - documentation root [:file:`DATAROOTDIR/doc/tiff`]
199
200 Also see the
201 CMake `documentation <http://www.cmake.org/cmake/help/latest/>`_
202 for `additional variables <http://www.cmake.org/cmake/help/latest/manual/cmake-variables.7.html>`_
203 which may be set.
204
205 Configuring Optional Packages/Support
206 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
207
208 The TIFF software comes with several packages that are installed
209 only as needed, or only if specifically configured at the time the
210 configure script is run. Packages can be configured via the
211 :program:`cmake` commandline parameters.
212
213 Static/Shared Objects Support
214 .............................
215
216 ``BUILD_SHARED_LIBS[=ON|OFF]``:
217
218 Build shared libraries (default is ``ON``)
219
220 This option controls whether or not to configure the software
221 to build a shared and static binaries for the TIFF library. Use of
222 shared libraries can significantly reduce the disk space needed for
223 users of the TIFF software. If shared libraries are not used then
224 the code is statically linked into each application that uses it.
225
226 ``ld-version-script[=ON|OFF]``
227
228 Enable linker version script (default is ``ON``)
229
230 Add shared library symbol versioning on ELF-based systems (e.g.
231 Linux and FreeBSD) which use the GNU linker. This is needed if
232 several major versions of libtiff might be loaded at once into the
233 same program.
234
235 JPEG Support
236 ............
237
238 ``jpeg[=ON|OFF]``
239
240 Enable IJG JPEG library usage (required for JPEG compression, enabled by default)
241
242 ``JPEG_INCLUDE_DIR=DIR``:
243
244 Location of IJG JPEG library headers
245
246 ``JPEG_LIBRARY=DIR``
247
248 Location of IJG JPEG library binary
249
250 The ``JPEG`` package enables support for the handling of
251 TIFF images with JPEG-encoded data. Support for JPEG-encoded data
252 requires the Independent JPEG Group (IJG) ``libjpeg``
253 distribution; this software is available at `<http://www.ijg.org/>`_.
254 The CMake script automatically tries to search for a working IJG JPEG
255 installation. If it fails to find library, JPEG support will be
256 automatically disabled. If you want specify the exact paths to
257 library binary and headers, use above options for that.
258
259 ZIP Support
260 ...........
261
262 The ``ZIP`` support enables support for the handling of TIFF
263 images with deflate-encoded data (enabled by default if
264 available). Support for deflate-encoded data requires the freely
265 available ``zlib`` distribution written by Jean-loup Gailly and
266 Mark Adler; this software is available at `<http://www.zlib.org/>`_.
267
268
269 Building on a UNIX System with Autoconf
270 ---------------------------------------
271
272 .. program:: configure
273
274 To build the software on a UNIX system you need to first run the
275 :program:`configure` shell script that is located in the top level of the
276 source directory. This script probes the target system for
277 necessary tools and functions and constructs a build environment in
278 which the software may be compiled. Once configuration is done, you
279 simply run :command:`make` (or :command:`gmake`) to build the software
280 and then :command:`make install` to do the installation; for example:
281
282 .. code-block:: shell
283
284 % cd ./tiff-4.0.5
285 % ./configure
286 ...lots of messages...
287 % make
288 ...lots of messages...
289 % make check
290 ...lots of messages...
291 # make install
292
293 Supplied Makefiles are dependent on a :program:`make` utility and a C
294 (and optionally a C++ compiler), so you will need these tools.
295
296 In general, the software is designed such that the following
297 should be "make-able" in each directory:
298
299 .. list-table:: Make targets
300 :widths: 10 15
301 :header-rows: 1
302
303 * - Target
304 - Description
305 * - :command:`make [all]`
306 - build everything
307 * - :command:`make check`
308 - run the test suite
309 * - :command:`make install`
310 - build and install everything
311 * - :command:`make clean`
312 - remove object files, executables and cruft
313 * - :command:`make distclean`
314 - remove everything that can be recreated
315
316 Note that after running :command:`make distclean` the
317 :program:`configure` script must be run again to create the :file:`Makefile`
318 and other make-related files.
319
320 Build Trees
321 ^^^^^^^^^^^
322
323 There are two schemes for configuring and building the software. If
324 you intend to build the software for only one target system, you
325 can configure the software so that it is built in the same
326 directories as the source code.
327
328 .. code-block:: shell
329
330 % gzip -dc tiff-4.0.5.tar.gz | tar -xf -
331 % cd ./tiff-4.0.5
332 % ./configure
333 % make
334 % make check
335 % make install
336
337 Otherwise, you can configure a build tree that is parallel to
338 the source tree hierarchy (or in some completely different place)
339 but which contains only configured files and files created during
340 the build procedure.
341
342 .. code-block:: shell
343
344 % gzip -dc tiff-4.0.5.tar.gz | tar -xf -
345 % mkdir tiff-4.0.5-build
346 % cd ./tiff-4.0.5-build
347 % ../tiff-4.0.5/configure
348 % make
349 % make check
350 % make install
351
352 This second scheme is useful for:
353
354 * building multiple targets from a single source tree
355 * building from a read-only source tree
356 * sharing the source files via a network, but building on
357 multiple systems
358
359 Configuration Options
360 ^^^^^^^^^^^^^^^^^^^^^
361
362 The configuration process is critical to the proper compilation,
363 installation, and operation of the software. The configure script
364 runs a series of tests to decide whether or not the target system
365 supports required functionality and, if it does not, whether it can
366 emulate or workaround the missing functions. This procedure is
367 fairly complicated and, due to the nonstandard nature of most UNIX
368 systems, prone to error. The first time that you configure the
369 software for use you should check the output from the configure
370 script and look for anything that does not make sense for your
371 system.
372
373 A second function of the configure script is to set the default
374 configuration parameters for the software. Of particular note are
375 the directories where the software is to be installed. By default
376 the software is installed in the :file:`/usr/local` hierarchy. To
377 change this behaviour the appropriate parameters can be specified
378 on the command line to configure. Run :command:`./configure --help` to
379 get a full list of possible options. Standard installation related
380 options are shown below.
381
382 Installation directories:
383
384 .. option:: --prefix=PREFIX
385
386 install architecture-independent files in *PREFIX* [:file:`/usr/local`]
387
388 .. option:: --exec-prefix=EPREFIX
389
390 install architecture-dependent files in *EPREFIX* [:file:`PREFIX`]
391
392 By default, :command:`make install` will install all the files in
393 :file:`/usr/local/bin`, :file:`/usr/local/lib` etc. You can specify
394 an installation prefix other than :file:`/usr/local` using :option:`--prefix`,
395 for instance ``--prefix=$HOME``. For better control, use the options below.
396
397 Fine tuning of the installation directories:
398
399 .. option:: --bindir=DIR
400
401 user executables [:file:`EPREFIX/bin`]
402
403 .. option:: --sbindir=DIR
404
405 system admin executables [:file:`EPREFIX/sbin`]
406
407 .. option:: --libexecdir=DIR
408
409 program executables [:file:`EPREFIX/libexec`]
410
411 .. option:: --sysconfdir=DIR
412
413 read-only single-machine data [:file:`PREFIX/etc`]
414
415 .. option:: --sharedstatedir=DIR
416
417 modifiable architecture-independent data [:file:`PREFIX/com`]
418
419 .. option:: --localstatedir=DIR
420
421 modifiable single-machine data [:file:`PREFIX/var`]
422
423 .. option:: --libdir=DIR
424
425 object code libraries [:file:`EPREFIX/lib`]
426
427 .. option:: --includedir=DIR
428
429 C header files [:file:`PREFIX/include`]
430
431 .. option:: --oldincludedir=DIR
432
433 C header files for non-gcc [:file:`/usr/include`]
434
435 .. option:: --datarootdir=DIR
436
437 read-only architecture-independent data root [:file:`PREFIX/share`]
438
439 .. option:: --datadir=DIR
440
441 read-only architecture-independent data [:file:`DATAROOTDIR`]
442
443 .. option:: --localedir=DIR
444
445 locale-dependent data [:file:`DATAROOTDIR/locale`]
446
447 .. option:: --mandir=DIR
448
449 man documentation [:file:`DATAROOTDIR/man`]
450
451 .. option:: --docdir=DIR
452
453 documentation root [:file:`DATAROOTDIR/doc/tiff`]
454
455 .. option:: --htmldir=DIR
456
457 html documentation [:file:`DOCDIR`]
458
459
460 Program names:
461
462 .. option:: --program-prefix=PREFIX
463
464 prepend *PREFIX* to installed program names
465
466 .. option:: --program-suffix=SUFFIX
467
468 append *SUFFIX* to installed program names
469
470 .. option:: --program-transform-name=PROGRAM
471
472 run :command:`sed` *PROGRAM* on installed program names
473
474 Configuring Optional Packages/Support
475 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
476
477 The TIFF software comes with several packages that are installed
478 only as needed, or only if specifically configured at the time the
479 configure script is run. Packages can be configured via the
480 :program:`configure` script commandline parameters.
481
482 Static/Shared Objects Support
483 .............................
484
485 .. option:: --enable-shared[=PKGS]
486
487 Build shared libraries [enabled]
488
489 .. option:: --enable-static[=PKGS]
490
491 Build static libraries [enabled]
492
493 These options control whether or not to configure the software
494 to build a shared and static binaries for the TIFF library. Use of
495 shared libraries can significantly reduce the disk space needed for
496 users of the TIFF software. If shared libraries are not used then
497 the code is statically linked into each application that uses it.
498 By default both types of binaries are configured.
499
500 .. option:: --enable-rpath
501
502 Enable runtime linker paths (``-R`` libtool option)
503
504 Add library directories (see other options below) to the TIFF
505 library run-time linker path.
506
507 .. option:: --enable-ld-version-script
508
509 Enable linker version script [yes]
510
511 Add shared library symbol versioning on ELF-based systems (e.g.
512 Linux and FreeBSD) which use the GNU linker. This is needed if
513 several major versions of libtiff might be loaded at once into the
514 same program.
515
516 JPEG Support
517 ............
518
519 .. option:: --disable-jpeg
520
521 Disable IJG JPEG library usage (required for JPEG compression, enabled by default)
522
523 .. option:: --with-jpeg-include-dir=DIR
524
525 Location of IJG JPEG library headers
526
527 .. option:: --with-jpeg-lib-dir=DIR
528
529 Location of IJG JPEG library binary)
530
531 The ``JPEG`` package enables support for the handling of
532 TIFF images with JPEG-encoded data. Support for JPEG-encoded data
533 requires the Independent JPEG Group (IJG) ``libjpeg``
534 distribution; this software is available at
535 `<http://www.ijg.org/>`_. The :program:`configure`
536 script automatically tries to search for a working IJG JPEG
537 installation. If it fails to find library, JPEG support will be
538 automatically disabled. If you want specify the exact paths to
539 library binary and headers, use above switches for that.
540
541 ZIP Support
542 ...........
543
544 The ``ZIP`` support enables support for the handling of
545 TIFF images with deflate-encoded data. Support for deflate-encoded
546 data requires the freely available ``zlib`` distribution
547 written by Jean-loup Gailly and Mark Adler; this software is
548 available at `<http://www.zlib.org/>`_. Support will be
549 enabled automatically if ``zlib`` is found.
550
551
552 Building the Software on Other Systems
553 --------------------------------------
554
555 This section contains information that might be useful if you are
556 working on a non-UNIX system that is not directly supported. All
557 library-related files described below are located in the
558 :file:`libtiff` directory.
559
560 The library requires two files that are generated
561 *on-the-fly*. The file :file:`tif_fax3sm.c` has the state
562 tables for the Group 3 and Group 4 decoders. This file is generated
563 by the :program:`mkg3states` program on a UNIX system; for
564 example:
565
566 .. code-block:: shell
567
568 cd libtiff
569 cc -o mkg3states mkg3states.c
570 rm -f tif_fax3sm.c
571 ./mkg3states -c const tif_fax3sm.c
572
573 The ``-c`` option can be used to control whether or not the
574 resulting tables are generated with a ``const`` declaration.
575 The ``-s`` option can be used to specify a C storage class for
576 the table declarations. The ``-b`` option can be used to force
577 data values to be explicitly bracketed with ``{}`` (apparently
578 needed for some MS-Windows compilers); otherwise the structures are
579 emitted in as compact a format as possible. Consult the source code
580 for this program if you have questions.
581
582 The second file required to build the library, :file:`version.h`,
583 contains the version information returned by the
584 :c:func:`TIFFGetVersion` routine. This file is built on most systems
585 using the :file:`mkversion` program and the contents of the
586 :file:`VERSION` and :file:`tiff.alpha` files; for example,
587
588 .. code-block:: shell
589
590 cd libtiff
591 cc -o mkversion mkversion.c
592 rm -f version.h
593 ./mkversion -v ../VERSION -a ../dist/tiff.alpha version.h
594
595 Otherwise, when building the library on a non-UNIX system be
596 sure to consult the files :file:`tiffcomp.h` and :file:`tiffconf.h`.
597 The former contains system compatibility definitions while the
598 latter is provided so that the software configuration can be
599 controlled on systems that do not support the make facility for
600 building the software.
601
602 Systems without a 32-bit compiler may not be able to handle some
603 of the codecs in the library; especially the Group 3 and 4 decoder.
604 If you encounter problems try disabling support for a particular
605 codec; consult the :doc:`internals`.
606
607 Programs in the tools directory are written to assume an ANSI C
608 compilation environment. There may be a few POSIX'isms as well. The
609 code in the :file:`port` directory is provided to emulate routines
610 that may be missing on some systems. On UNIX systems the
611 :program:`configure` script automatically figures out which routines
612 are not present on a system and enables the use of the equivalent
613 emulation routines from the :file:`port` directory. It may be
614 necessary to manually do this work on a non-UNIX system.
615
616
617 Testing the software
618 --------------------
619
620 Assuming you have working versions of :doc:`/tools/tiffgt`, you can now use
621 it to view any of the sample images available for testing, or try
622 :doc:`/tools/tiffinfo` to display the file metadata. See the
623 :doc:`images` section on obtaining the test images. Otherwise, you can
624 do a cursory check of the library with the :doc:`/tools/tiffcp` and
625 :doc:`/tools/tiffcmp` programs. For example,
626
627 .. code-block:: shell
628
629 tiffcp -lzw cramps.tif x.tif
630 tiffcmp cramps.tif x.tif
631
632 (:program:`tiffcmp` should be silent if the files compare
633 correctly).
634
635
636 LibTIFF source files
637 --------------------
638
639 The following files make up the core library:
640
641 .. list-table:: Core library source files
642 :widths: 5 15
643 :header-rows: 1
644
645 * - File
646 - Description
647
648 * - :file:`libtiff/tiff.h`
649 - TIFF spec definitions
650 * - :file:`libtiff/tiffconf.h`
651 - non-UNIX configuration definitions
652 * - :file:`libtiff/tiffio.h`
653 - public TIFF library definitions
654 * - :file:`libtiff/tiffiop.h`
655 - private TIFF library definitions
656 * - :file:`libtiff/t4.h`
657 - CCITT Group 3/4 code tables+definitions
658 * - :file:`libtiff/tif_dir.h`
659 - private defs for TIFF directory handling
660 * - :file:`libtiff/tif_fax3.h`
661 - CCITT Group 3/4-related definitions
662 * - :file:`libtiff/tif_predict.h`
663 - private defs for Predictor tag support
664 * - :file:`libtiff/tiffvers.h`
665 - version string
666 * - :file:`libtiff/uvcode.h`
667 - LogL/LogLuv codec-specific definitions
668 * - :file:`libtiff/tif_aux.c`
669 - auxiliary directory-related functions
670 * - :file:`libtiff/tif_close.c`
671 - close an open TIFF file
672 * - :file:`libtiff/tif_codec.c`
673 - configuration table of builtin codecs
674 * - :file:`libtiff/tif_color.c`
675 - colorspace transforms
676 * - :file:`libtiff/tif_compress.c`
677 - compression scheme support
678 * - :file:`libtiff/tif_dir.c`
679 - directory tag interface code
680 * - :file:`libtiff/tif_dirinfo.c`
681 - directory known tag support code
682 * - :file:`libtiff/tif_dirread.c`
683 - directory reading code
684 * - :file:`libtiff/tif_dirwrite.c`
685 - directory writing code
686 * - :file:`libtiff/tif_dumpmode.c`
687 - "no" compression codec
688 * - :file:`libtiff/tif_error.c`
689 - library error handler
690 * - :file:`libtiff/tif_fax3.c`
691 - CCITT Group 3 and 4 codec
692 * - :file:`libtiff/tif_fax3sm.c`
693 - G3/G4 state tables (generated by mkg3states)
694 * - :file:`libtiff/tif_flush.c`
695 - i/o and directory state flushing
696 * - :file:`libtiff/tif_getimage.c`
697 - :doc:`/functions/TIFFRGBAImage` support
698 * - :file:`libtiff/tif_jbig.c`
699 - JBIG codec
700 * - :file:`libtiff/tif_jpeg.c`
701 - JPEG codec (interface to the IJG distribution)
702 * - :file:`libtiff/tif_jpeg_12.c`
703 - 12-bit JPEG codec (interface to the IJG distribution)
704 * - :file:`libtiff/tif_lerc.c`
705 - LERC codec
706 * - :file:`libtiff/tif_luv.c`
707 - SGI LogL/LogLuv codec
708 * - :file:`libtiff/tif_lzma.c`
709 - LZMA codec
710 * - :file:`libtiff/tif_lzw.c`
711 - LZW codec
712 * - :file:`libtiff/tif_next.c`
713 - NeXT 2-bit scheme codec (decoding only)
714 * - :file:`libtiff/tif_ojpeg.c`
715 - Old JPEG codec (obsolete, decoding only)
716 * - :file:`libtiff/tif_open.c`
717 - open and simply query code
718 * - :file:`libtiff/tif_packbits.c`
719 - Packbits codec
720 * - :file:`libtiff/tif_pixarlog.c`
721 - Pixar codec
722 * - :file:`libtiff/tif_predict.c`
723 - Predictor tag support
724 * - :file:`libtiff/tif_print.c`
725 - directory printing support
726 * - :file:`libtiff/tif_read.c`
727 - image data reading support
728 * - :file:`libtiff/tif_strip.c`
729 - some strip-related code
730 * - :file:`libtiff/tif_swab.c`
731 - byte and bit swapping support
732 * - :file:`libtiff/tif_thunder.c`
733 - Thunderscan codec (decoding only)
734 * - :file:`libtiff/tif_tile.c`
735 - some tile-related code
736 * - :file:`libtiff/tif_unix.c`
737 - UNIX-related OS support
738 * - :file:`libtiff/tif_version.c`
739 - library version support
740 * - :file:`libtiff/tif_warning.c`
741 - library warning handler
742 * - :file:`libtiff/tif_win32.c`
743 - Win32 (Windows)-related OS support
744 * - :file:`libtiff/tif_write.c`
745 - image data writing support
746 * - :file:`libtiff/tif_zip.c`
747 - Deflate codec
748 * - :file:`libtiff/tif_zstd.c`
749 - ZSTD codec
750
751 * - :file:`libtiff/mkg3states.c`
752 - program to generate G3/G4 decoder state tables
753 * - :file:`libtiff/mkspans.c`
754 - program to generate black-white span tables