7 |
8 |
9 | Bugs, Bugzilla, and the TIFF Mailing List
10 |
11 |
12 |
13 | This software is free. Please let us know when you find a problem or
14 | fix a bug.
15 |
16 |
17 | Thanks to MapTools.org, libtiff now uses
18 | bugzilla to track bugs. All bugs filed in the older bugzilla at
19 | bugzilla.remotesensing.org (pre April 2008) have unfortunately been lost.
20 |
21 | If you think you've discovered a bug, please first check to see if it is
22 | already known by looking at the list of already reported bugs. You can do so
23 | by visiting the buglist at
24 | http://bugzilla.maptools.org/buglist.cgi?product=libtiff. Also verify that
25 | the problem is still reproducable with the current development software
26 | from CVS.
27 |
28 | If you'd like to enter a new bug, you can do so at
29 | http://bugzilla.maptools.org/enter_bug.cgi?product=libtiff.
30 |
31 | If you'd like to inform us about some kind of security issue that should not
32 | be disclosed for a period of time, then you can contact maintainers directly.
33 | Send a copies of your report to the following people: Frank Warmerdam
34 | <warmerdam@pobox.com>,
35 | Andrey Kiselev
36 | <dron@ak4719.spb.edu>.
37 |
38 |
39 | Of course, reporting bugs is no substitute for discussion. The
40 | tiff@lists.maptools.org mailing
41 | list is for users of this software, and discussion TIFF issues in general.
42 | It is managed with the Mailman software, and the web interface for subscribing
43 | and managing your access to the list is at:
44 |
45 | http://lists.maptools.org/mailman/listinfo/tiff
46 |
47 | Posts to the list are only accepted from members of the list in order
48 | to limit the amount of spam propagated. Also, to be approved as a member
49 | you will need to email the list administrator with a brief description of
50 | why you are interested in TIFF so we can weed out spammers.
51 |
52 | A Long Term
53 | Archive including recent messages, and most messages back to 1993,
54 | with search capabilities is available, and
55 | has been prepared and hosted by AWare
56 | Systems.
57 |
58 |
59 |
60 |
61 | Last updated: $Date: 2008/09/03 08:04:26 $
62 |
63 |
64 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/document.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | TIFF Documentation
5 |
6 |
7 |
8 |
9 |
10 |
11 | TIFF Documentation
12 |
13 |
14 |
15 | A copy of the 6.0 specification is available from Adobe at
16 | http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf, or from the libtiff
17 | ftp site at
18 | ftp://ftp.remotesensing.org/pub/libtiff/doc/TIFF6.pdf.
19 |
20 |
21 | Draft TIFF Technical Note #2 covers problems
22 | with the TIFF 6.0 design for embedding JPEG-compressed data in TIFF, and
23 | describes an alternative.
24 |
25 | Other Adobe information on TIFF can be retrieved from:
26 |
27 |
28 | http://partners.adobe.com/public/developer/tiff/index.html
29 |
30 |
31 | Joris Van Damme maintains a list of known tags and their descriptions and
32 | definitions. It is available online at
33 |
34 | http://www.awaresystems.be/imaging/tiff/tifftags.html
35 |
36 |
37 | There is a FAQ, related both to TIFF format and libtiff library:
38 |
39 | http://www.awaresystems.be/imaging/tiff/faq.html
40 |
41 |
42 |
43 |
44 | Last updated: $Date: 2009-08-20 22:31:00 $
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/images.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | TIFF Test Images
5 |
6 |
7 |
8 |
9 |
10 |
11 | TIFF Test Images
12 |
13 |
14 |
15 | Test images are available for most formats supported by the library.
16 | Most of the images included in the test kit are also part of this
17 | documentation (albeit in TIFF rather than GIF or JFIF).
18 | The images are kept in a separate archive that should be located in
19 | the same directory as this software.
20 |
21 |
22 |
23 |
24 | The latest archive of test images is located at
25 |
26 | ftp://ftp.remotesensing.org/pub/libtiff/pics-3.8.0.tar.gz
27 |
28 |
29 | There are two other good sources for TIFF test images:
30 | the contributed software contrib/dbs includes several
31 | programs that generate test images suitable for debugging, and
32 | the tiffcp program can be used to generate a variety
33 | of images with different storage characteristics.
34 |
35 |
36 |
37 |
38 | Last updated: $Date: 2006/01/02 23:50:44 $
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/images/Makefile.am:
--------------------------------------------------------------------------------
1 | # Tag Image File Format (TIFF) Software
2 | #
3 | # Copyright (C) 2004, Andrey Kiselev
4 | #
5 | # Permission to use, copy, modify, distribute, and sell this software and
6 | # its documentation for any purpose is hereby granted without fee, provided
7 | # that (i) the above copyright notices and this permission notice appear in
8 | # all copies of the software and related documentation, and (ii) the names of
9 | # Sam Leffler and Silicon Graphics may not be used in any advertising or
10 | # publicity relating to the software without the specific, prior written
11 | # permission of Sam Leffler and Silicon Graphics.
12 | #
13 | # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
14 | # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
15 | # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
16 | #
17 | # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
18 | # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19 | # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20 | # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
21 | # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
22 | # OF THIS SOFTWARE.
23 |
24 | # Process this file with automake to produce Makefile.in.
25 |
26 | docdir = $(LIBTIFF_DOCDIR)/html/images
27 |
28 | docfiles = \
29 | back.gif \
30 | bali.jpg \
31 | cat.gif \
32 | cover.jpg \
33 | cramps.gif \
34 | dave.gif \
35 | info.gif \
36 | jello.jpg \
37 | jim.gif \
38 | note.gif \
39 | oxford.gif \
40 | quad.jpg \
41 | ring.gif \
42 | smallliz.jpg \
43 | strike.gif \
44 | warning.gif
45 |
46 | dist_doc_DATA = $(docfiles)
47 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/images/back.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Beyka/Android-TiffBitmapFactory/aca0b69befb13a72dae848e110b2bd1cc9007516/src/main/jni/tiff/html/images/back.gif
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/images/bali.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Beyka/Android-TiffBitmapFactory/aca0b69befb13a72dae848e110b2bd1cc9007516/src/main/jni/tiff/html/images/bali.jpg
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/images/cat.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Beyka/Android-TiffBitmapFactory/aca0b69befb13a72dae848e110b2bd1cc9007516/src/main/jni/tiff/html/images/cat.gif
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/images/cover.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Beyka/Android-TiffBitmapFactory/aca0b69befb13a72dae848e110b2bd1cc9007516/src/main/jni/tiff/html/images/cover.jpg
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/images/cramps.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Beyka/Android-TiffBitmapFactory/aca0b69befb13a72dae848e110b2bd1cc9007516/src/main/jni/tiff/html/images/cramps.gif
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/images/dave.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Beyka/Android-TiffBitmapFactory/aca0b69befb13a72dae848e110b2bd1cc9007516/src/main/jni/tiff/html/images/dave.gif
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/images/info.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Beyka/Android-TiffBitmapFactory/aca0b69befb13a72dae848e110b2bd1cc9007516/src/main/jni/tiff/html/images/info.gif
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/images/jello.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Beyka/Android-TiffBitmapFactory/aca0b69befb13a72dae848e110b2bd1cc9007516/src/main/jni/tiff/html/images/jello.jpg
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/images/jim.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Beyka/Android-TiffBitmapFactory/aca0b69befb13a72dae848e110b2bd1cc9007516/src/main/jni/tiff/html/images/jim.gif
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/images/note.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Beyka/Android-TiffBitmapFactory/aca0b69befb13a72dae848e110b2bd1cc9007516/src/main/jni/tiff/html/images/note.gif
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/images/oxford.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Beyka/Android-TiffBitmapFactory/aca0b69befb13a72dae848e110b2bd1cc9007516/src/main/jni/tiff/html/images/oxford.gif
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/images/quad.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Beyka/Android-TiffBitmapFactory/aca0b69befb13a72dae848e110b2bd1cc9007516/src/main/jni/tiff/html/images/quad.jpg
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/images/ring.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Beyka/Android-TiffBitmapFactory/aca0b69befb13a72dae848e110b2bd1cc9007516/src/main/jni/tiff/html/images/ring.gif
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/images/smallliz.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Beyka/Android-TiffBitmapFactory/aca0b69befb13a72dae848e110b2bd1cc9007516/src/main/jni/tiff/html/images/smallliz.jpg
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/images/strike.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Beyka/Android-TiffBitmapFactory/aca0b69befb13a72dae848e110b2bd1cc9007516/src/main/jni/tiff/html/images/strike.gif
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/images/warning.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Beyka/Android-TiffBitmapFactory/aca0b69befb13a72dae848e110b2bd1cc9007516/src/main/jni/tiff/html/images/warning.gif
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/intro.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Introduction to the TIFF Documentation
5 |
6 |
7 |
8 |
9 |
10 |
11 | Introduction to the TIFF Documentation
12 |
13 |
14 |
15 |
16 | The following definitions are used throughout this documentation.
17 | They are consistent with the terminology used in the TIFF 6.0 specification.
18 |
19 |
20 | - Sample
21 |
- The unit of information stored in an image; often called a
22 | channel elsewhere. Sample values are numbers, usually unsigned
23 | integers, but possibly in some other format if the SampleFormat
24 | tag is specified in a TIFF
25 |
- Pixel
26 |
- A collection of one or more samples that go together.
27 |
- Row
28 |
- An Nx1 rectangular collection of pixels.
29 |
- Tile
30 |
- An NxM rectangular organization of data (or pixels).
31 |
- Strip
32 |
- A tile whose width is the full image width.
33 |
- Compression
34 |
- A scheme by which pixel or sample data are stored in
35 | an encoded form, specifically with the intent of reducing the
36 | storage cost.
37 |
- Codec
38 |
- Software that implements the decoding and encoding algorithms
39 | of a compression scheme.
40 |
41 |
42 |
43 | In order to better understand how TIFF works (and consequently this
44 | software) it is important to recognize the distinction between the
45 | physical organization of image data as it is stored in a TIFF and how
46 | the data is interpreted and manipulated as pixels in an image. TIFF
47 | supports a wide variety of storage and data compression schemes that
48 | can be used to optimize retrieval time and/or minimize storage space.
49 | These on-disk formats are independent of the image characteristics; it
50 | is the responsibility of the TIFF reader to process the on-disk storage
51 | into an in-memory format suitable for an application. Furthermore, it
52 | is the responsibility of the application to properly interpret the
53 | visual characteristics of the image data. TIFF defines a framework for
54 | specifying the on-disk storage format and image characteristics with
55 | few restrictions. This permits significant complexity that can be
56 | daunting. Good applications that handle TIFF work by handling as wide
57 | a range of storage formats as possible, while constraining the
58 | acceptable image characteristics to those that make sense for the
59 | application.
60 |
61 |
62 |
63 |
64 |
65 | Last updated: $Date: 1999/08/09 20:21:21 $
66 |
67 |
68 |
69 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/man/TIFFClose.3tiff.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | TIFFClose
8 |
9 |
10 |
11 | TIFFClose
12 | NAME
13 | SYNOPSIS
14 | DESCRIPTION
15 | DIAGNOSTICS
16 | SEE ALSO
17 |
18 |
19 |
20 | NAME
21 |
22 |
24 |
25 | |
26 |
27 | TIFFClose − close a previously opened
28 | TIFF file
29 | |
30 |
31 |
32 | SYNOPSIS
33 |
34 |
36 |
37 | |
38 |
39 | #include <tiffio.h>
40 |
41 | void TIFFClose(TIFF *tif)
42 | |
43 |
44 |
45 | DESCRIPTION
46 |
47 |
49 |
50 | |
51 |
52 | TIFFClose closes a file that was previously opened
53 | with TIFFOpen(3TIFF). Any buffered data are flushed
54 | to the file, including the contents of the current directory
55 | (if modified); and all resources are reclaimed.
56 | |
57 |
58 |
59 | DIAGNOSTICS
60 |
61 |
63 |
64 | |
65 |
66 | All error messages are directed to the routine. Likewise,
67 | warning messages are directed to the
68 | TIFFWarning(3TIFF) routine.
69 | |
70 |
71 |
72 | SEE ALSO
73 |
74 |
76 |
77 | |
78 |
79 | libtiff(3TIFF), TIFFOpen(3TIFF)
80 |
81 | Libtiff library home page:
82 | http://www.remotesensing.org/libtiff/
83 | |
84 |
85 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/v3.4beta033.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Changes in TIFF v3.4beta033
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | TIFF CHANGE INFORMATION
13 |
14 |
15 |
22 |
23 |
24 | This document describes the changes made to the software between the
25 | previous and current versions (see above).
26 | If you don't find something listed here, then it was not done in this
27 | timeframe, or it was not considered important enough to be mentioned.
28 | The following information is located here:
29 |
35 |
36 |
37 |
38 | CHANGES IN THE SOFTWARE CONFIGURATION:
39 |
40 |
41 | - support was added for building the library as a DSO under OSF/1
42 |
43 |
44 |
45 |
46 | CHANGES IN LIBTIFF:
47 |
48 |
49 | - fixes to the Pixar codec
50 |
- portability mods for VMS
51 |
52 |
53 |
54 |
55 | CHANGES IN THE TOOLS:
56 |
57 |
58 | - fixes to gif2tiff and ppm2tiff for building under MS/DOS
59 |
- portability mods to fax2ps and ycbcr for VMS
60 |
61 |
62 |
63 |
64 | CHANGES IN THE CONTRIBUTED SOFTWARE:
65 |
66 |
67 | - a new package from Alexander Lehmann
68 | for building the library and tools under MS/DOS with DJGPP v2
69 |
- updated VMS support from Karsten Spang
70 |
71 |
72 |
TIFF home page.
73 |
74 |
75 |
76 |
77 | Sam Leffler / sam@engr.sgi.com
78 | Last updated $Date: 1999/08/09 20:21:21 $.
79 |
80 |
81 |
82 |
83 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/v3.4beta034.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Changes in TIFF v3.4beta034
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | TIFF CHANGE INFORMATION
13 |
14 |
15 |
22 |
23 |
24 | This document describes the changes made to the software between the
25 | previous and current versions (see above).
26 | If you don't find something listed here, then it was not done in this
27 | timeframe, or it was not considered important enough to be mentioned.
28 | The following information is located here:
29 |
33 |
34 |
35 |
36 | CHANGES IN THE SOFTWARE CONFIGURATION:
37 |
38 |
39 | - support was added for building the library as a DSO under NetBSD
40 |
- a bug was fixed in the DSO support for Linux
41 |
- the handling of version strings has changed slightly to simplify parsing
42 |
- a new parameter, TIFFLIBREF, was added to control how the
43 | library is referenced when linking programs in the tools directory
44 |
45 |
46 |
47 |
48 | CHANGES IN LIBTIFF:
49 |
50 |
51 | - DSO creation under Solaris now forces the DSO name with a -h option
52 |
- the interface to the mkversion program was changed
53 | to eliminate the need to parse files
54 |
- a bug was fixed in the EOL-detection logic of the T.4/T.6 decoder
55 |
- ANSI IT8 TIFF/IT tag definitions were added to tiff.h
56 |
57 |
58 |
TIFF home page.
59 |
60 |
61 |
62 |
63 | Sam Leffler / sam@engr.sgi.com
64 | Last updated $Date: 1999/08/09 20:21:21 $.
65 |
66 |
67 |
68 |
69 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/v3.4beta035.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Changes in TIFF v3.4beta035
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | TIFF CHANGE INFORMATION
13 |
14 |
15 |
22 |
23 |
24 | This document describes the changes made to the software between the
25 | previous and current versions (see above).
26 | If you don't find something listed here, then it was not done in this
27 | timeframe, or it was not considered important enough to be mentioned.
28 | The following information is located here:
29 |
33 |
34 |
35 |
36 | CHANGES IN THE SOFTWARE CONFIGURATION:
37 |
38 |
39 | - support was added installing the HTML documentation
40 |
- support was added for building the library as a DSO under FreeBSD
41 |
42 |
43 |
44 |
45 | CHANGES IN LIBTIFF:
46 |
47 |
48 | - the interface to the mkversion program was restored to
49 | the form used prior to v3.4beta034
50 |
- several portability problems for 16-bit systems were fixed
51 |
52 |
53 |
TIFF home page.
54 |
55 |
56 |
57 |
58 | Sam Leffler / sam@engr.sgi.com
59 | Last updated $Date: 1999/08/09 20:21:21 $.
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/v3.5.1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Changes in TIFF v3.5.1
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | TIFF CHANGE INFORMATION
14 |
15 |
16 |
36 |
37 |
38 |
39 | CHANGES IN THE SOFTWARE CONFIGURATION:
40 |
41 |
42 | - None of consequence
43 |
44 |
45 |
46 |
47 | CHANGES IN LIBTIFF:
48 |
49 |
50 |
51 | - Support was added for IPTC Newsphoto metadata (TIFFTAGE_IPTCNEWSPHOTO)
52 |
- Support was added for photoshop caption handling (TIFFTAG_PHOTOSHOP)
53 |
54 |
55 |
56 |
57 | CHANGES IN THE TOOLS:
58 |
59 |
60 | - Bill Radcliffe's iptcutil was
61 | added to the "contrib" subdirectory . It can convert an IPTC binary
62 | blob to ASCII text and vice-versa. The blob itself can be extracted
63 | from or added to an image with the ImageMagick convert(1)
65 | utility.
66 |
67 |
68 |
TIFF home page.
69 |
70 |
71 |
72 | Last updated $Date: 2006/01/03 01:42:30 $.
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/html/v3.5.4.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Changes in TIFF v3.5.4
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | TIFF CHANGE INFORMATION
14 |
15 |
16 |
24 |
25 |
26 | This document describes the changes made to the software between the
27 | previous and current versions (see above).
28 | If you don't find something listed here, then it was not done in this
29 | timeframe, or it was not considered important enough to be mentioned.
30 | The following information is located here:
31 |
36 |
37 |
38 |
39 | CHANGES IN THE SOFTWARE CONFIGURATION:
40 |
41 |
46 |
47 |
48 |
49 | CHANGES IN LIBTIFF:
50 |
51 |
52 |
53 |
54 | - Added Pixar tag support. Contributed by Phil Beffery
55 |
56 |
- Made one more change to tif_dir.c for removal of LZW compression. Also added notice
57 | when LZW compression invoked.
58 |
59 |
- Fixed bug that caused LZW (non) compression to segfault. Added
60 | warning about LZW compression removed being removed, and why.
61 |
62 |
63 |
64 |
65 |
66 | CHANGES IN THE TOOLS:
67 |
68 |
69 | - Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions
70 | in tools to reflect removal of LZW compression
71 |
72 |
- Added nostrip to install in tools/Makefile.in so that debugging
73 | symbols are kept.
74 |
75 |
- Made Packbits the default compression in tools/tiff2rgba.c instead
76 | of LZW.
77 |
78 |
79 |
80 |
81 |
TIFF home page.
82 |
83 |
84 |
85 | Last updated $Date: 2006/01/03 01:45:41 $.
86 |
87 |
88 |
89 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/libtiff/SConstruct:
--------------------------------------------------------------------------------
1 | # $Id: SConstruct,v 1.4 2007/02/24 15:03:50 dron Exp $
2 |
3 | # Tag Image File Format (TIFF) Software
4 | #
5 | # Copyright (C) 2005, Andrey Kiselev
6 | #
7 | # Permission to use, copy, modify, distribute, and sell this software and
8 | # its documentation for any purpose is hereby granted without fee, provided
9 | # that (i) the above copyright notices and this permission notice appear in
10 | # all copies of the software and related documentation, and (ii) the names of
11 | # Sam Leffler and Silicon Graphics may not be used in any advertising or
12 | # publicity relating to the software without the specific, prior written
13 | # permission of Sam Leffler and Silicon Graphics.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
16 | # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
17 | # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
18 | #
19 | # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
20 | # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
21 | # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
22 | # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
23 | # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
24 | # OF THIS SOFTWARE.
25 |
26 | # This file contains rules to build software with the SCons tool
27 | # (see the http://www.scons.org/ for details on SCons).
28 |
29 | # Import globally defined options
30 | Import([ 'env', 'idir_lib' ])
31 |
32 | SRCS = [ \
33 | 'tif_aux.c', \
34 | 'tif_close.c', \
35 | 'tif_codec.c', \
36 | 'tif_color.c', \
37 | 'tif_compress.c', \
38 | 'tif_dir.c', \
39 | 'tif_dirinfo.c', \
40 | 'tif_dirread.c', \
41 | 'tif_dirwrite.c', \
42 | 'tif_dumpmode.c', \
43 | 'tif_error.c', \
44 | 'tif_extension.c', \
45 | 'tif_fax3.c', \
46 | 'tif_fax3sm.c', \
47 | 'tif_flush.c', \
48 | 'tif_getimage.c', \
49 | 'tif_jbig.c', \
50 | 'tif_jpeg.c', \
51 | 'tif_luv.c', \
52 | 'tif_lzw.c', \
53 | 'tif_next.c', \
54 | 'tif_ojpeg.c', \
55 | 'tif_open.c', \
56 | 'tif_packbits.c', \
57 | 'tif_pixarlog.c', \
58 | 'tif_predict.c', \
59 | 'tif_print.c', \
60 | 'tif_read.c', \
61 | 'tif_strip.c', \
62 | 'tif_swab.c', \
63 | 'tif_thunder.c', \
64 | 'tif_tile.c', \
65 | 'tif_unix.c', \
66 | 'tif_version.c', \
67 | 'tif_warning.c', \
68 | 'tif_write.c', \
69 | 'tif_zip.c' ]
70 |
71 | StaticLibrary('tiff', SRCS)
72 | SharedLibrary('tiff', SRCS)
73 |
74 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/libtiff/tif_config.h-vms:
--------------------------------------------------------------------------------
1 | /* Define to 1 if you have the header file. */
2 | #define HAVE_ASSERT_H 1
3 |
4 | /* Define to 1 if you have the header file. */
5 | #define HAVE_FCNTL_H 1
6 |
7 | /* Define as 0 or 1 according to the floating point format suported by the
8 | machine */
9 | #define HAVE_IEEEFP 1
10 |
11 | #define HAVE_UNISTD_H 1
12 |
13 | #define HAVE_STRING_H 1
14 | /* Define to 1 if you have the header file. */
15 | #define HAVE_SYS_TYPES_H 1
16 |
17 | /* Define to 1 if you have the header file. */
18 | //#define HAVE_IO_H 1
19 |
20 | /* Define to 1 if you have the header file. */
21 | //#define HAVE_SEARCH_H 1
22 |
23 | /* The size of a `int', as computed by sizeof. */
24 | #define SIZEOF_INT 4
25 |
26 | /* The size of a `long', as computed by sizeof. */
27 | #define SIZEOF_LONG 4
28 |
29 | /* Set the native cpu bit order */
30 | #define HOST_FILLORDER FILLORDER_LSB2MSB
31 |
32 | /* Define to 1 if your processor stores words with the most significant byte
33 | first (like Motorola and SPARC, unlike Intel and VAX). */
34 | /* #undef WORDS_BIGENDIAN */
35 |
36 | /* Define to `__inline__' or `__inline' if that's what the C compiler
37 | calls it, or to nothing if 'inline' is not supported under any name. */
38 | /*
39 | #ifndef __cplusplus
40 | # ifndef inline
41 | # define inline __inline
42 | # endif
43 | #endif
44 | */
45 |
46 | // #define lfind _lfind
47 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/libtiff/tif_config.vc.h:
--------------------------------------------------------------------------------
1 | /* Define to 1 if you have the header file. */
2 | #define HAVE_ASSERT_H 1
3 |
4 | /* Define to 1 if you have the header file. */
5 | #define HAVE_FCNTL_H 1
6 |
7 | /* Define as 0 or 1 according to the floating point format suported by the
8 | machine */
9 | #define HAVE_IEEEFP 1
10 |
11 | /* Define to 1 if you have the `jbg_newlen' function. */
12 | #define HAVE_JBG_NEWLEN 1
13 |
14 | /* Define to 1 if you have the header file. */
15 | #define HAVE_STRING_H 1
16 |
17 | /* Define to 1 if you have the header file. */
18 | #define HAVE_SYS_TYPES_H 1
19 |
20 | /* Define to 1 if you have the header file. */
21 | #define HAVE_IO_H 1
22 |
23 | /* Define to 1 if you have the header file. */
24 | #define HAVE_SEARCH_H 1
25 |
26 | /* Define to 1 if you have the `setmode' function. */
27 | #define HAVE_SETMODE 1
28 |
29 | /* The size of a `int', as computed by sizeof. */
30 | #define SIZEOF_INT 4
31 |
32 | /* The size of a `long', as computed by sizeof. */
33 | #define SIZEOF_LONG 4
34 |
35 | /* Signed 64-bit type */
36 | #define TIFF_INT64_T signed __int64
37 |
38 | /* Unsigned 64-bit type */
39 | #define TIFF_UINT64_T unsigned __int64
40 |
41 | /* Set the native cpu bit order */
42 | #define HOST_FILLORDER FILLORDER_LSB2MSB
43 |
44 | /* Define to 1 if your processor stores words with the most significant byte
45 | first (like Motorola and SPARC, unlike Intel and VAX). */
46 | /* #undef WORDS_BIGENDIAN */
47 |
48 | /* Define to `__inline__' or `__inline' if that's what the C compiler
49 | calls it, or to nothing if 'inline' is not supported under any name. */
50 | #ifndef __cplusplus
51 | # ifndef inline
52 | # define inline __inline
53 | # endif
54 | #endif
55 |
56 | #define lfind _lfind
57 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/libtiff/tif_config.wince.h:
--------------------------------------------------------------------------------
1 | /* $Id: tif_config.wince.h,v 1.1 2007/01/15 18:40:39 mloskot Exp $ */
2 |
3 | /*
4 | * TIFF library configuration header for Windows CE platform.
5 | */
6 | #ifndef _WIN32_WCE
7 | # error This version of tif_config.h header is dedicated for Windows CE platform!
8 | #endif
9 |
10 | /* Define to 1 if you have the header file. */
11 | #define HAVE_ASSERT_H 1
12 |
13 | /* Define to 1 if you have the header file. */
14 | #define HAVE_FCNTL_H 1
15 |
16 | /* Define as 0 or 1 according to the floating point format suported by the
17 | machine */
18 | #define HAVE_IEEEFP 1
19 |
20 | /* Define to 1 if you have the `jbg_newlen' function. */
21 | #define HAVE_JBG_NEWLEN 1
22 |
23 | /* Define to 1 if you have the header file. */
24 | #define HAVE_STRING_H 1
25 |
26 | /* Define to 1 if you have the header file. */
27 | #undef HAVE_SYS_TYPES_H
28 |
29 | /* Define to 1 if you have the header file. */
30 | #define HAVE_IO_H 1
31 |
32 | /* Define to 1 if you have the header file. */
33 | #define HAVE_SEARCH_H 1
34 |
35 | /* Define to 1 if you have the `setmode' function. */
36 | #define HAVE_SETMODE 1
37 |
38 | /* Define to 1 if you have the `bsearch' function. */
39 | #define HAVE_BSEARCH 1
40 | #define bsearch wceex_bsearch
41 |
42 | /* Define to 1 if you have the `lfind' function. */
43 | #define HAVE_LFIND 1
44 | #define lfind wceex_lfind
45 |
46 | /* The size of a `int', as computed by sizeof. */
47 | #define SIZEOF_INT 4
48 |
49 | /* The size of a `long', as computed by sizeof. */
50 | #define SIZEOF_LONG 4
51 |
52 | /* Set the native cpu bit order */
53 | #define HOST_FILLORDER FILLORDER_LSB2MSB
54 |
55 | /* Define to 1 if your processor stores words with the most significant byte
56 | first (like Motorola and SPARC, unlike Intel and VAX). */
57 | /* #undef WORDS_BIGENDIAN */
58 |
59 | /* Define to `__inline__' or `__inline' if that's what the C compiler
60 | calls it, or to nothing if 'inline' is not supported under any name. */
61 | #ifndef __cplusplus
62 | # ifndef inline
63 | # define inline __inline
64 | # endif
65 | #endif
66 |
67 |
68 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/libtiff/tif_error.c:
--------------------------------------------------------------------------------
1 | /* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_error.c,v 1.4 2005/12/23 01:18:59 joris Exp $ */
2 |
3 | /*
4 | * Copyright (c) 1988-1997 Sam Leffler
5 | * Copyright (c) 1991-1997 Silicon Graphics, Inc.
6 | *
7 | * Permission to use, copy, modify, distribute, and sell this software and
8 | * its documentation for any purpose is hereby granted without fee, provided
9 | * that (i) the above copyright notices and this permission notice appear in
10 | * all copies of the software and related documentation, and (ii) the names of
11 | * Sam Leffler and Silicon Graphics may not be used in any advertising or
12 | * publicity relating to the software without the specific, prior written
13 | * permission of Sam Leffler and Silicon Graphics.
14 | *
15 | * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
16 | * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
17 | * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
18 | *
19 | * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
20 | * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
21 | * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
22 | * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
23 | * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
24 | * OF THIS SOFTWARE.
25 | */
26 |
27 | /*
28 | * TIFF Library.
29 | */
30 | #include "tiffiop.h"
31 |
32 | TIFFErrorHandlerExt _TIFFerrorHandlerExt = NULL;
33 |
34 | TIFFErrorHandler
35 | TIFFSetErrorHandler(TIFFErrorHandler handler)
36 | {
37 | TIFFErrorHandler prev = _TIFFerrorHandler;
38 | _TIFFerrorHandler = handler;
39 | return (prev);
40 | }
41 |
42 | TIFFErrorHandlerExt
43 | TIFFSetErrorHandlerExt(TIFFErrorHandlerExt handler)
44 | {
45 | TIFFErrorHandlerExt prev = _TIFFerrorHandlerExt;
46 | _TIFFerrorHandlerExt = handler;
47 | return (prev);
48 | }
49 |
50 | void
51 | TIFFError(const char* module, const char* fmt, ...)
52 | {
53 | va_list ap;
54 | va_start(ap, fmt);
55 | if (_TIFFerrorHandler)
56 | (*_TIFFerrorHandler)(module, fmt, ap);
57 | if (_TIFFerrorHandlerExt)
58 | (*_TIFFerrorHandlerExt)(0, module, fmt, ap);
59 | va_end(ap);
60 | }
61 |
62 | void
63 | TIFFErrorExt(thandle_t fd, const char* module, const char* fmt, ...)
64 | {
65 | va_list ap;
66 | va_start(ap, fmt);
67 | if (_TIFFerrorHandler)
68 | (*_TIFFerrorHandler)(module, fmt, ap);
69 | if (_TIFFerrorHandlerExt)
70 | (*_TIFFerrorHandlerExt)(fd, module, fmt, ap);
71 | va_end(ap);
72 | }
73 |
74 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/libtiff/tif_flush.c:
--------------------------------------------------------------------------------
1 | /* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_flush.c,v 1.3 2000/09/15 20:52:42 warmerda Exp $ */
2 |
3 | /*
4 | * Copyright (c) 1988-1997 Sam Leffler
5 | * Copyright (c) 1991-1997 Silicon Graphics, Inc.
6 | *
7 | * Permission to use, copy, modify, distribute, and sell this software and
8 | * its documentation for any purpose is hereby granted without fee, provided
9 | * that (i) the above copyright notices and this permission notice appear in
10 | * all copies of the software and related documentation, and (ii) the names of
11 | * Sam Leffler and Silicon Graphics may not be used in any advertising or
12 | * publicity relating to the software without the specific, prior written
13 | * permission of Sam Leffler and Silicon Graphics.
14 | *
15 | * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
16 | * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
17 | * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
18 | *
19 | * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
20 | * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
21 | * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
22 | * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
23 | * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
24 | * OF THIS SOFTWARE.
25 | */
26 |
27 | /*
28 | * TIFF Library.
29 | */
30 | #include "tiffiop.h"
31 |
32 | int
33 | TIFFFlush(TIFF* tif)
34 | {
35 |
36 | if (tif->tif_mode != O_RDONLY) {
37 | if (!TIFFFlushData(tif))
38 | return (0);
39 | if ((tif->tif_flags & TIFF_DIRTYDIRECT) &&
40 | !TIFFWriteDirectory(tif))
41 | return (0);
42 | }
43 | return (1);
44 | }
45 |
46 | /*
47 | * Flush buffered data to the file.
48 | *
49 | * Frank Warmerdam'2000: I modified this to return 1 if TIFF_BEENWRITING
50 | * is not set, so that TIFFFlush() will proceed to write out the directory.
51 | * The documentation says returning 1 is an error indicator, but not having
52 | * been writing isn't exactly a an error. Hopefully this doesn't cause
53 | * problems for other people.
54 | */
55 | int
56 | TIFFFlushData(TIFF* tif)
57 | {
58 | if ((tif->tif_flags & TIFF_BEENWRITING) == 0)
59 | return (0);
60 | if (tif->tif_flags & TIFF_POSTENCODE) {
61 | tif->tif_flags &= ~TIFF_POSTENCODE;
62 | if (!(*tif->tif_postencode)(tif))
63 | return (0);
64 | }
65 | return (TIFFFlushData1(tif));
66 | }
67 |
68 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/libtiff/tif_version.c:
--------------------------------------------------------------------------------
1 | /* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_version.c,v 1.2 2000/11/13 14:42:38 warmerda Exp $ */
2 | /*
3 | * Copyright (c) 1992-1997 Sam Leffler
4 | * Copyright (c) 1992-1997 Silicon Graphics, Inc.
5 | *
6 | * Permission to use, copy, modify, distribute, and sell this software and
7 | * its documentation for any purpose is hereby granted without fee, provided
8 | * that (i) the above copyright notices and this permission notice appear in
9 | * all copies of the software and related documentation, and (ii) the names of
10 | * Sam Leffler and Silicon Graphics may not be used in any advertising or
11 | * publicity relating to the software without the specific, prior written
12 | * permission of Sam Leffler and Silicon Graphics.
13 | *
14 | * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
15 | * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
16 | * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
17 | *
18 | * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
19 | * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
20 | * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21 | * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
22 | * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
23 | * OF THIS SOFTWARE.
24 | */
25 | #include "tiffiop.h"
26 |
27 | static const char TIFFVersion[] = TIFFLIB_VERSION_STR;
28 |
29 | const char*
30 | TIFFGetVersion(void)
31 | {
32 | return (TIFFVersion);
33 | }
34 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/libtiff/tif_warning.c:
--------------------------------------------------------------------------------
1 | /* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_warning.c,v 1.2 2005/12/23 01:18:59 joris Exp $ */
2 |
3 | /*
4 | * Copyright (c) 1988-1997 Sam Leffler
5 | * Copyright (c) 1991-1997 Silicon Graphics, Inc.
6 | *
7 | * Permission to use, copy, modify, distribute, and sell this software and
8 | * its documentation for any purpose is hereby granted without fee, provided
9 | * that (i) the above copyright notices and this permission notice appear in
10 | * all copies of the software and related documentation, and (ii) the names of
11 | * Sam Leffler and Silicon Graphics may not be used in any advertising or
12 | * publicity relating to the software without the specific, prior written
13 | * permission of Sam Leffler and Silicon Graphics.
14 | *
15 | * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
16 | * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
17 | * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
18 | *
19 | * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
20 | * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
21 | * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
22 | * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
23 | * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
24 | * OF THIS SOFTWARE.
25 | */
26 |
27 | /*
28 | * TIFF Library.
29 | */
30 | #include "tiffiop.h"
31 |
32 | TIFFErrorHandlerExt _TIFFwarningHandlerExt = NULL;
33 |
34 | TIFFErrorHandler
35 | TIFFSetWarningHandler(TIFFErrorHandler handler)
36 | {
37 | TIFFErrorHandler prev = _TIFFwarningHandler;
38 | _TIFFwarningHandler = handler;
39 | return (prev);
40 | }
41 |
42 | TIFFErrorHandlerExt
43 | TIFFSetWarningHandlerExt(TIFFErrorHandlerExt handler)
44 | {
45 | TIFFErrorHandlerExt prev = _TIFFwarningHandlerExt;
46 | _TIFFwarningHandlerExt = handler;
47 | return (prev);
48 | }
49 |
50 | void
51 | TIFFWarning(const char* module, const char* fmt, ...)
52 | {
53 | va_list ap;
54 | va_start(ap, fmt);
55 | if (_TIFFwarningHandler)
56 | (*_TIFFwarningHandler)(module, fmt, ap);
57 | if (_TIFFwarningHandlerExt)
58 | (*_TIFFwarningHandlerExt)(0, module, fmt, ap);
59 | va_end(ap);
60 | }
61 |
62 | void
63 | TIFFWarningExt(thandle_t fd, const char* module, const char* fmt, ...)
64 | {
65 | va_list ap;
66 | va_start(ap, fmt);
67 | if (_TIFFwarningHandler)
68 | (*_TIFFwarningHandler)(module, fmt, ap);
69 | if (_TIFFwarningHandlerExt)
70 | (*_TIFFwarningHandlerExt)(fd, module, fmt, ap);
71 | va_end(ap);
72 | }
73 |
74 |
75 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/libtiff/tiffio.hxx:
--------------------------------------------------------------------------------
1 | /* $Id: tiffio.hxx,v 1.1 2004/11/21 16:12:08 dron Exp $ */
2 |
3 | /*
4 | * Copyright (c) 1988-1997 Sam Leffler
5 | * Copyright (c) 1991-1997 Silicon Graphics, Inc.
6 | *
7 | * Permission to use, copy, modify, distribute, and sell this software and
8 | * its documentation for any purpose is hereby granted without fee, provided
9 | * that (i) the above copyright notices and this permission notice appear in
10 | * all copies of the software and related documentation, and (ii) the names of
11 | * Sam Leffler and Silicon Graphics may not be used in any advertising or
12 | * publicity relating to the software without the specific, prior written
13 | * permission of Sam Leffler and Silicon Graphics.
14 | *
15 | * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
16 | * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
17 | * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
18 | *
19 | * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
20 | * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
21 | * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
22 | * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
23 | * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
24 | * OF THIS SOFTWARE.
25 | */
26 |
27 | #ifndef _TIFFIO_HXX_
28 | #define _TIFFIO_HXX_
29 |
30 | /*
31 | * TIFF I/O library definitions which provide C++ streams API.
32 | */
33 |
34 | #include
35 | #include "tiff.h"
36 |
37 | extern TIFF* TIFFStreamOpen(const char*, std::ostream *);
38 | extern TIFF* TIFFStreamOpen(const char*, std::istream *);
39 |
40 | #endif /* _TIFFIO_HXX_ */
41 |
42 | /* vim: set ts=8 sts=8 sw=8 noet: */
43 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/libtiff/tiffvers.h:
--------------------------------------------------------------------------------
1 | #define TIFFLIB_VERSION_STR "LIBTIFF, Version 3.9.2\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
2 | /*
3 | * This define can be used in code that requires
4 | * compilation-related definitions specific to a
5 | * version or versions of the library. Runtime
6 | * version checking should be done based on the
7 | * string returned by TIFFGetVersion.
8 | */
9 | #define TIFFLIB_VERSION 20091104
10 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/m4/ltversion.m4:
--------------------------------------------------------------------------------
1 | # ltversion.m4 -- version numbers -*- Autoconf -*-
2 | #
3 | # Copyright (C) 2004 Free Software Foundation, Inc.
4 | # Written by Scott James Remnant, 2004
5 | #
6 | # This file is free software; the Free Software Foundation gives
7 | # unlimited permission to copy and/or distribute it, with or without
8 | # modifications, as long as this notice is preserved.
9 |
10 | # Generated from ltversion.in.
11 |
12 | # serial 3012 ltversion.m4
13 | # This file is part of GNU Libtool
14 |
15 | m4_define([LT_PACKAGE_VERSION], [2.2.6])
16 | m4_define([LT_PACKAGE_REVISION], [1.3012])
17 |
18 | AC_DEFUN([LTVERSION_VERSION],
19 | [macro_version='2.2.6'
20 | macro_revision='1.3012'
21 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
22 | _LT_DECL(, macro_revision, 0)
23 | ])
24 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/man/TIFFClose.3tiff:
--------------------------------------------------------------------------------
1 | .\" $Id: TIFFClose.3tiff,v 1.2 2005/11/02 11:07:18 dron Exp $
2 | .\"
3 | .\" Copyright (c) 1988-1997 Sam Leffler
4 | .\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
5 | .\"
6 | .\" Permission to use, copy, modify, distribute, and sell this software and
7 | .\" its documentation for any purpose is hereby granted without fee, provided
8 | .\" that (i) the above copyright notices and this permission notice appear in
9 | .\" all copies of the software and related documentation, and (ii) the names of
10 | .\" Sam Leffler and Silicon Graphics may not be used in any advertising or
11 | .\" publicity relating to the software without the specific, prior written
12 | .\" permission of Sam Leffler and Silicon Graphics.
13 | .\"
14 | .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
15 | .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
16 | .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
17 | .\"
18 | .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
19 | .\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
20 | .\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21 | .\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
22 | .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
23 | .\" OF THIS SOFTWARE.
24 | .\"
25 | .if n .po 0
26 | .TH TIFFClose 3TIFF "November 2, 2005" "libtiff"
27 | .SH NAME
28 | TIFFClose \- close a previously opened
29 | .SM TIFF
30 | file
31 | .SH SYNOPSIS
32 | .B "#include "
33 | .sp
34 | .BI "void TIFFClose(TIFF *" tif ")"
35 | .SH DESCRIPTION
36 | .IR TIFFClose
37 | closes a file that was previously opened with
38 | .BR TIFFOpen (3TIFF).
39 | Any buffered data are flushed to the file, including the contents of the
40 | current directory (if modified); and all resources are reclaimed.
41 | .SH DIAGNOSTICS
42 | All error messages are directed to the
43 | .bR TIFFError (3TIFF)
44 | routine.
45 | Likewise, warning messages are directed to the
46 | .BR TIFFWarning (3TIFF)
47 | routine.
48 | .SH "SEE ALSO"
49 | .BR libtiff (3TIFF),
50 | .BR TIFFOpen (3TIFF)
51 | .PP
52 | Libtiff library home page:
53 | .BR http://www.remotesensing.org/libtiff/
54 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/man/TIFFDataWidth.3tiff:
--------------------------------------------------------------------------------
1 | .\" $Id: TIFFDataWidth.3tiff,v 1.3 2006/03/23 14:54:02 dron Exp $
2 | .\"
3 | .\" Copyright (c) 2002, Andrey Kiselev
4 | .\"
5 | .\" Permission to use, copy, modify, distribute, and sell this software and
6 | .\" its documentation for any purpose is hereby granted without fee, provided
7 | .\" that (i) the above copyright notices and this permission notice appear in
8 | .\" all copies of the software and related documentation, and (ii) the names of
9 | .\" Sam Leffler and Silicon Graphics may not be used in any advertising or
10 | .\" publicity relating to the software without the specific, prior written
11 | .\" permission of Sam Leffler and Silicon Graphics.
12 | .\"
13 | .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
14 | .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
15 | .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
16 | .\"
17 | .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
18 | .\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19 | .\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20 | .\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
21 | .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
22 | .\" OF THIS SOFTWARE.
23 | .\"
24 | .if n .po 0
25 | .TH TIFFDataWidth 3TIFF "September 12, 2002" "libtiff"
26 | .SH NAME
27 | TIFFDataWidth \- Get the size of TIFF data types
28 | .SH SYNOPSIS
29 | .B "#include "
30 | .sp
31 | .BI "int TIFFDataWidth(TIFFDataType " type ")"
32 | .SH DESCRIPTION
33 | .I TIFFDataWidth
34 | returns a size of
35 | .I type
36 | in bytes.
37 | Currently following data types are supported:
38 | .br
39 | .I TIFF_BYTE
40 | .br
41 | .I TIFF_ASCII
42 | .br
43 | .I TIFF_SBYTE
44 | .br
45 | .I TIFF_UNDEFINED
46 | .br
47 | .I TIFF_SHORT
48 | .br
49 | .I TIFF_SSHORT
50 | .br
51 | .I TIFF_LONG
52 | .br
53 | .I TIFF_SLONG
54 | .br
55 | .I TIFF_FLOAT
56 | .br
57 | .I TIFF_IFD
58 | .br
59 | .I TIFF_RATIONAL
60 | .br
61 | .I TIFF_SRATIONAL
62 | .br
63 | .I TIFF_DOUBLE
64 | .br
65 | .SH "RETURN VALUES"
66 | .br
67 | .IR TIFFDataWidth
68 | returns a number of bytes occupied by the item of given type. 0 returned when
69 | uknown data type supplied.
70 | .SH "SEE ALSO"
71 | .BR libtiff (3TIFF),
72 | .PP
73 | Libtiff library home page:
74 | .BR http://www.remotesensing.org/libtiff/
75 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/man/TIFFError.3tiff:
--------------------------------------------------------------------------------
1 | .\" $Id: TIFFError.3tiff,v 1.2 2005/11/02 11:07:18 dron Exp $
2 | .\"
3 | .\" Copyright (c) 1988-1997 Sam Leffler
4 | .\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
5 | .\"
6 | .\" Permission to use, copy, modify, distribute, and sell this software and
7 | .\" its documentation for any purpose is hereby granted without fee, provided
8 | .\" that (i) the above copyright notices and this permission notice appear in
9 | .\" all copies of the software and related documentation, and (ii) the names of
10 | .\" Sam Leffler and Silicon Graphics may not be used in any advertising or
11 | .\" publicity relating to the software without the specific, prior written
12 | .\" permission of Sam Leffler and Silicon Graphics.
13 | .\"
14 | .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
15 | .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
16 | .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
17 | .\"
18 | .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
19 | .\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
20 | .\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21 | .\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
22 | .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
23 | .\" OF THIS SOFTWARE.
24 | .\"
25 | .if n .po 0
26 | .TH TIFFError 3TIFF "October 15, 1995" "libtiff"
27 | .SH NAME
28 | TIFFError, TIFFSetErrorHandler \- library error handling interface
29 | .SH SYNOPSIS
30 | .B "#include "
31 | .sp
32 | .BI "void TIFFError(const char *" module ", const char *" fmt ", " ... ")"
33 | .sp
34 | .B "#include "
35 | .sp
36 | .BI "typedef void (*TIFFErrorHandler)(const char *" module ", const char *" fmt ", va_list " ap ");"
37 | .br
38 | .B "TIFFErrorHandler TIFFSetErrorHandler(TIFFErrorHandler handler);"
39 | .SH DESCRIPTION
40 | .I TIFFError
41 | invokes the library-wide error handling function to (normally) write an error
42 | message to the
43 | .BR stderr .
44 | The
45 | .I fmt
46 | parameter is a
47 | .IR printf (3S)
48 | format string, and any number arguments can be supplied. The
49 | .I module
50 | parameter, if non-zero, is printed before the message; it typically is used to
51 | identify the software module in which an error is detected.
52 | .PP
53 | Applications that desire to capture control in the event of an error should
54 | use
55 | .IR TIFFSetErrorHandler
56 | to override the default error handler.
57 | A
58 | .SM NULL
59 | (0) error handling function may be installed to suppress error messages.
60 | .SH "RETURN VALUES"
61 | .IR TIFFSetErrorHandler
62 | returns a reference to the previous error handling function.
63 | .SH "SEE ALSO"
64 | .BR TIFFWarning (3TIFF),
65 | .BR libtiff (3TIFF),
66 | .BR printf (3)
67 | .PP
68 | Libtiff library home page:
69 | .BR http://www.remotesensing.org/libtiff/
70 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/man/TIFFFlush.3tiff:
--------------------------------------------------------------------------------
1 | .\" $Id: TIFFFlush.3tiff,v 1.2 2005/11/02 11:07:18 dron Exp $
2 | .\"
3 | .\" Copyright (c) 1988-1997 Sam Leffler
4 | .\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
5 | .\"
6 | .\" Permission to use, copy, modify, distribute, and sell this software and
7 | .\" its documentation for any purpose is hereby granted without fee, provided
8 | .\" that (i) the above copyright notices and this permission notice appear in
9 | .\" all copies of the software and related documentation, and (ii) the names of
10 | .\" Sam Leffler and Silicon Graphics may not be used in any advertising or
11 | .\" publicity relating to the software without the specific, prior written
12 | .\" permission of Sam Leffler and Silicon Graphics.
13 | .\"
14 | .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
15 | .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
16 | .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
17 | .\"
18 | .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
19 | .\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
20 | .\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21 | .\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
22 | .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
23 | .\" OF THIS SOFTWARE.
24 | .\"
25 | .if n .po 0
26 | .TH TIFFFlush 3TIFF "December 16, 1991" "libtiff"
27 | .SH NAME
28 | TIFFFlush, TIFFFlushData \- flush pending writes to an open
29 | .SM TIFF
30 | file
31 | .SH SYNOPSIS
32 | .B "#include "
33 | .sp
34 | .BI "int TIFFFlush(TIFF *" tif ")"
35 | .br
36 | .BI "int TIFFFlushData(TIFF *" tif ")"
37 | .SH DESCRIPTION
38 | .IR TIFFFlush
39 | causes any pending writes for the specified file (including writes for the
40 | current directory) to be done. In normal operation this call is never needed \-
41 | the library automatically does any flushing required.
42 | .PP
43 | .IR TIFFFlushData
44 | flushes any pending image data for the specified file to be written out;
45 | directory-related data are not flushed. In normal operation this call is never
46 | needed \- the library automatically does any flushing required.
47 | .SH "RETURN VALUES"
48 | 0 is returned if an error is encountered, otherwise 1 is returned.
49 | .SH DIAGNOSTICS
50 | All error messages are directed to the
51 | .BR TIFFError (3TIFF)
52 | routine.
53 | .SH "SEE ALSO"
54 | .BR TIFFOpen (3TIFF),
55 | .BR TIFFWriteEncodedStrip (3TIFF),
56 | .BR TIFFWriteEncodedTile (3TIFF),
57 | .BR TIFFWriteRawStrip (3TIFF),
58 | .BR TIFFWriteRawTile (3TIFF),
59 | .BR TIFFWriteScanline (3TIFF),
60 | .BR TIFFWriteTile (3TIFF)
61 | .BR libtiff (3TIFF),
62 | .PP
63 | Libtiff library home page:
64 | .BR http://www.remotesensing.org/libtiff/
65 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/man/TIFFPrintDirectory.3tiff:
--------------------------------------------------------------------------------
1 | .\" $Id: TIFFPrintDirectory.3tiff,v 1.1 2004/11/11 14:39:16 dron Exp $
2 | .\"
3 | .\" Copyright (c) 1991-1997 Sam Leffler
4 | .\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
5 | .\"
6 | .\" Permission to use, copy, modify, distribute, and sell this software and
7 | .\" its documentation for any purpose is hereby granted without fee, provided
8 | .\" that (i) the above copyright notices and this permission notice appear in
9 | .\" all copies of the software and related documentation, and (ii) the names of
10 | .\" Sam Leffler and Silicon Graphics may not be used in any advertising or
11 | .\" publicity relating to the software without the specific, prior written
12 | .\" permission of Sam Leffler and Silicon Graphics.
13 | .\"
14 | .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
15 | .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
16 | .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
17 | .\"
18 | .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
19 | .\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
20 | .\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21 | .\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
22 | .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
23 | .\" OF THIS SOFTWARE.
24 | .\"
25 | .if n .po 0
26 | .TH TIFFPrintDirectory 3TIFF "December 12, 1991" "libtiff"
27 | .SH NAME
28 | TIFFPrintDirectory \- print a description of a
29 | .SM TIFF
30 | directory
31 | .SH SYNOPSIS
32 | .B "#include "
33 | .sp
34 | .BI "void TIFFPrintDirectory(TIFF *" tif ", FILE *" fd ", long " flags ")"
35 | .SH DESCRIPTION
36 | .I TIFFPrintDirectory
37 | prints a description of the current directory in the specified
38 | .SM TIFF
39 | file to the standard I/O output stream
40 | .IR fd .
41 | The
42 | .I flags
43 | parameter is used to control the
44 | .I "level of detail"
45 | of the printed information; it is a bit-or of the flags defined in
46 | .BR tiffio.h :
47 | .sp .5
48 | .nf
49 | .ta \w'#define 'u +\w'TIFFPRINT_JPEGDCTABLES 'u +\w'0x200 'u
50 | #define TIFFPRINT_NONE 0x0 /* no extra info */
51 | #define TIFFPRINT_STRIPS 0x1 /* strips/tiles info */
52 | #define TIFFPRINT_CURVES 0x2 /* color/gray response curves */
53 | #define TIFFPRINT_COLORMAP 0x4 /* colormap */
54 | #define TIFFPRINT_JPEGQTABLES 0x100 /* JPEG Q matrices */
55 | #define TIFFPRINT_JPEGACTABLES 0x200 /* JPEG AC tables */
56 | #define TIFFPRINT_JPEGDCTABLES 0x200 /* JPEG DC tables */
57 | .fi
58 | .SH NOTES
59 | In C++ the
60 | .I flags
61 | parameter defaults to 0.
62 | .SH "RETURN VALUES"
63 | None.
64 | .SH DIAGNOSTICS
65 | None.
66 | .SH "SEE ALSO"
67 | .IR libtiff (3TIFF),
68 | .IR TIFFOpen (3TIFF),
69 | .IR TIFFReadDirectory (3TIFF),
70 | .IR TIFFSetDirectory (3TIFF)
71 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/man/TIFFReadRawStrip.3tiff:
--------------------------------------------------------------------------------
1 | .\" $Id: TIFFReadRawStrip.3tiff,v 1.2 2005/11/02 11:07:18 dron Exp $
2 | .\"
3 | .\" Copyright (c) 1988-1997 Sam Leffler
4 | .\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
5 | .\"
6 | .\" Permission to use, copy, modify, distribute, and sell this software and
7 | .\" its documentation for any purpose is hereby granted without fee, provided
8 | .\" that (i) the above copyright notices and this permission notice appear in
9 | .\" all copies of the software and related documentation, and (ii) the names of
10 | .\" Sam Leffler and Silicon Graphics may not be used in any advertising or
11 | .\" publicity relating to the software without the specific, prior written
12 | .\" permission of Sam Leffler and Silicon Graphics.
13 | .\"
14 | .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
15 | .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
16 | .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
17 | .\"
18 | .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
19 | .\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
20 | .\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21 | .\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
22 | .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
23 | .\" OF THIS SOFTWARE.
24 | .\"
25 | .if n .po 0
26 | .TH TIFFReadRawStrip 3TIFF "October 15, 1995" "libtiff"
27 | .SH NAME
28 | TIFFReadRawStrip \- return the undecoded contents of a strip of data from an
29 | open
30 | .SM TIFF
31 | file
32 | .SH SYNOPSIS
33 | .B "#include "
34 | .sp
35 | .BI "tsize_t TIFFReadRawStrip(TIFF *" tif ", tstrip_t " strip ", tdata_t " buf ", tsize_t " size ")"
36 | .SH DESCRIPTION
37 | Read the contents of the specified strip into the (user supplied) data buffer.
38 | Note that the value of
39 | .I strip
40 | is a ``raw strip number.'' That is, the caller must take into account whether
41 | or not the data is organized in separate planes (\c
42 | .IR PlanarConfiguration =2).
43 | To read a full strip of data the data buffer should typically be at least as
44 | large as the number returned by
45 | .IR TIFFStripSize .
46 | .SH "RETURN VALUES"
47 | The actual number of bytes of data that were placed in
48 | .I buf
49 | is returned;
50 | .IR TIFFReadEncodedStrip
51 | returns \-1 if an error was encountered.
52 | .SH DIAGNOSTICS
53 | All error messages are directed to the
54 | .BR TIFFError (3TIFF)
55 | routine.
56 | .SH "SEE ALSO"
57 | .BR TIFFOpen (3TIFF),
58 | .BR TIFFReadEncodedStrip (3TIFF),
59 | .BR TIFFReadScanline (3TIFF),
60 | .BR TIFFStripSize (3TIFF),
61 | .BR libtiff (3TIFF)
62 | .PP
63 | Libtiff library home page:
64 | .BR http://www.remotesensing.org/libtiff/
65 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/man/TIFFReadRawTile.3tiff:
--------------------------------------------------------------------------------
1 | .\" $Id: TIFFReadRawTile.3tiff,v 1.2 2005/11/02 11:07:18 dron Exp $
2 | .\"
3 | .\" Copyright (c) 1988-1997 Sam Leffler
4 | .\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
5 | .\"
6 | .\" Permission to use, copy, modify, distribute, and sell this software and
7 | .\" its documentation for any purpose is hereby granted without fee, provided
8 | .\" that (i) the above copyright notices and this permission notice appear in
9 | .\" all copies of the software and related documentation, and (ii) the names of
10 | .\" Sam Leffler and Silicon Graphics may not be used in any advertising or
11 | .\" publicity relating to the software without the specific, prior written
12 | .\" permission of Sam Leffler and Silicon Graphics.
13 | .\"
14 | .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
15 | .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
16 | .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
17 | .\"
18 | .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
19 | .\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
20 | .\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21 | .\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
22 | .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
23 | .\" OF THIS SOFTWARE.
24 | .\"
25 | .if n .po 0
26 | .TH TIFFReadRawTile 3TIFF "October 15, 1995" "libtiff"
27 | .SH NAME
28 | TIFFReadRawTile \- return an undecoded tile of data from an open
29 | .SM TIFF
30 | file
31 | .SH SYNOPSIS
32 | .B "#include "
33 | .sp
34 | .BI "tsize_t TIFFReadRawTile(TIFF *" tif ", ttile_t " tile ", tdata_t " buf ", tsize_t " size ")"
35 | .SH DESCRIPTION
36 | Read the contents of the specified tile into the (user supplied) data buffer.
37 | Note that the value of
38 | .I tile
39 | is a ``raw tile number.'' That is, the caller must take into account whether
40 | or not the data is organized in separate planes (\c
41 | .IR PlanarConfiguration =2).
42 | .I TIFFComputeTile
43 | automatically does this when converting an (x,y,z,sample) coordinate quadruple
44 | to a tile number. To read a full tile of data the data buffer should typically
45 | be at least as large as the value returned by
46 | .IR TIFFTileSize .
47 | .SH "RETURN VALUES"
48 | The actual number of bytes of data that were placed in
49 | .I buf
50 | is returned;
51 | .IR TIFFReadEncodedTile
52 | returns \-1 if an error was encountered.
53 | .SH DIAGNOSTICS
54 | All error messages are directed to the
55 | .BR TIFFError (3TIFF)
56 | routine.
57 | .SH "SEE ALSO"
58 | .BR TIFFOpen (3TIFF),
59 | .BR TIFFReadEncodedTile (3TIFF),
60 | .BR TIFFReadTile (3TIFF),
61 | .BR TIFFTileSize (3TIFF),
62 | .BR libtiff (3TIFF)
63 | .PP
64 | Libtiff library home page:
65 | .BR http://www.remotesensing.org/libtiff/
66 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/man/TIFFsize.3tiff:
--------------------------------------------------------------------------------
1 | .\" $Id: TIFFsize.3tiff,v 1.2 2005/11/02 11:07:18 dron Exp $
2 | .\"
3 | .\" Copyright (c) 1988-1997 Sam Leffler
4 | .\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
5 | .\"
6 | .\" Permission to use, copy, modify, distribute, and sell this software and
7 | .\" its documentation for any purpose is hereby granted without fee, provided
8 | .\" that (i) the above copyright notices and this permission notice appear in
9 | .\" all copies of the software and related documentation, and (ii) the names of
10 | .\" Sam Leffler and Silicon Graphics may not be used in any advertising or
11 | .\" publicity relating to the software without the specific, prior written
12 | .\" permission of Sam Leffler and Silicon Graphics.
13 | .\"
14 | .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
15 | .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
16 | .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
17 | .\"
18 | .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
19 | .\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
20 | .\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21 | .\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
22 | .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
23 | .\" OF THIS SOFTWARE.
24 | .\"
25 | .if n .po 0
26 | .TH TIFFSIZE 3TIFF "October 15, 1995" "libtiff"
27 | .SH NAME
28 | TIFFScanlineSize, TIFFRasterScanlineSize,
29 | \- return the size of various items associated with an open
30 | .SM TIFF
31 | file
32 | .SH SYNOPSIS
33 | .B "#include "
34 | .sp
35 | .BI "tsize_t TIFFRasterScanlineSize(TIFF *" tif ")"
36 | .br
37 | .BI "tsize_t TIFFScanlineSize(TIFF *" tif ")"
38 | .SH DESCRIPTION
39 | .I TIFFScanlineSize
40 | returns the size in bytes of a row of data as it would be returned in a call
41 | to
42 | .IR TIFFReadScanline ,
43 | or as it would be expected in a call to
44 | .IR TIFFWriteScanline .
45 | .PP
46 | .I TIFFRasterScanlineSize
47 | returns the size in bytes of a complete decoded and packed raster scanline.
48 | Note that this value may be different from the value returned by
49 | .I TIFFScanlineSize
50 | if data is stored as separate planes.
51 | .SH DIAGNOSTICS
52 | None.
53 | .SH "SEE ALSO"
54 | .BR TIFFOpen (3TIFF),
55 | .BR TIFFReadScanline (3TIFF),
56 | .BR libtiff (3TIFF)
57 | .PP
58 | Libtiff library home page:
59 | .BR http://www.remotesensing.org/libtiff/
60 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/man/tiffset.1:
--------------------------------------------------------------------------------
1 | .\" $Id: tiffset.1,v 1.3 2006/04/20 12:17:19 dron Exp $
2 | .\"
3 | .\" Copyright (c) 1988-1997 Sam Leffler
4 | .\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
5 | .\"
6 | .\" Permission to use, copy, modify, distribute, and sell this software and
7 | .\" its documentation for any purpose is hereby granted without fee, provided
8 | .\" that (i) the above copyright notices and this permission notice appear in
9 | .\" all copies of the software and related documentation, and (ii) the names of
10 | .\" Sam Leffler and Silicon Graphics may not be used in any advertising or
11 | .\" publicity relating to the software without the specific, prior written
12 | .\" permission of Sam Leffler and Silicon Graphics.
13 | .\"
14 | .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
15 | .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
16 | .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
17 | .\"
18 | .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
19 | .\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
20 | .\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21 | .\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
22 | .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
23 | .\" OF THIS SOFTWARE.
24 | .\"
25 | .if n .po 0
26 | .TH TIFFSET 1 "November 21, 2004" "libtiff"
27 | .SH NAME
28 | tiffset \- set a field in a
29 | .SM TIFF
30 | header
31 | .SH SYNOPSIS
32 | .B tiffset
33 | [
34 | .I options
35 | ]
36 | .I filename.tif
37 | .SH DESCRIPTION
38 | .I Tiffset
39 | sets the value of a
40 | .SM TIFF
41 | header to a specified value.
42 | .SH OPTIONS
43 | .TP
44 | .BI \-s " tagnumber" "\fR [\fP" " count" "\fR ]\fP" " value ..."
45 | Set the value of the named tag to the value or values specified.
46 | .TP
47 | .BI \-sf " tagnumber filename"
48 | Set the value of the tag to the contents of filename. This option is
49 | supported for ASCII tags only.
50 | .SH EXAMPLES
51 | The following example sets the image description tag (270) of a.tif to
52 | the contents of the file descrip:
53 | .RS
54 | .nf
55 | tiffset \-sf 270 descrip a.tif
56 | .fi
57 | .RE
58 | .PP
59 | The following example sets the artist tag (315) of a.tif to the string
60 | ``Anonymous'':
61 | .RS
62 | .nf
63 | tiffset \-s 305 Anonymous a.tif
64 | .fi
65 | .RE
66 | .PP
67 | This example sets the resolution of the file a.tif to 300 dpi:
68 | .RS
69 | .nf
70 | tiffset \-s 296 2 a.tif
71 | tiffset \-s 282 300.0 a.tif
72 | tiffset \-s 283 300.0 a.tif
73 | .fi
74 | .RE
75 | .SH "SEE ALSO"
76 | .BR tiffdump (1),
77 | .BR tiffinfo (1),
78 | .BR tiffcp (1),
79 | .BR libtiff (3TIFF)
80 | .PP
81 | Libtiff library home page:
82 | .BR http://www.remotesensing.org/libtiff/
83 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/man/tiffsplit.1:
--------------------------------------------------------------------------------
1 | .\" $Id: tiffsplit.1,v 1.5 2005/11/02 11:07:19 dron Exp $
2 | .\"
3 | .\" Copyright (c) 1992-1997 Sam Leffler
4 | .\" Copyright (c) 1992-1997 Silicon Graphics, Inc.
5 | .\"
6 | .\" Permission to use, copy, modify, distribute, and sell this software and
7 | .\" its documentation for any purpose is hereby granted without fee, provided
8 | .\" that (i) the above copyright notices and this permission notice appear in
9 | .\" all copies of the software and related documentation, and (ii) the names of
10 | .\" Sam Leffler and Silicon Graphics may not be used in any advertising or
11 | .\" publicity relating to the software without the specific, prior written
12 | .\" permission of Sam Leffler and Silicon Graphics.
13 | .\"
14 | .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
15 | .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
16 | .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
17 | .\"
18 | .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
19 | .\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
20 | .\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21 | .\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
22 | .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
23 | .\" OF THIS SOFTWARE.
24 | .\"
25 | .if n .po 0
26 | .TH TIFFSPLIT 1 "September 20, 2005" "libtiff"
27 | .SH NAME
28 | tiffsplit \- split a multi-image
29 | .SM TIFF
30 | into single-image
31 | .SM TIFF
32 | files
33 | .SH SYNOPSIS
34 | .B tiffsplit
35 | .I src.tif
36 | [
37 | .I prefix
38 | ]
39 | .SH DESCRIPTION
40 | .I tiffsplit
41 | takes a multi-directory (page)
42 | .SM TIFF
43 | file and creates one or more single-directory (page)
44 | .SM TIFF
45 | files from it.
46 | The output files are given names created by concatenating
47 | a prefix, a lexically ordered
48 | suffix in the range [\fIaaa\fP-\fIzzz\fP], the suffix
49 | .I .tif
50 | (e.g.
51 | .IR xaaa.tif ,
52 | .IR xaab.tif ,
53 | \...
54 | .IR xzzz.tif ).
55 | If a prefix is not specified on the command line,
56 | the default prefix of
57 | .I x
58 | is used.
59 | .SH OPTIONS
60 | None.
61 | .SH BUGS
62 | Only a select set of ``known tags'' is copied when splitting.
63 | .SH "SEE ALSO"
64 | .BR tiffcp (1),
65 | .BR tiffinfo (1),
66 | .BR libtiff (3TIFF)
67 | .PP
68 | Libtiff library home page:
69 | .BR http://www.remotesensing.org/libtiff/
70 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/port/Makefile.am:
--------------------------------------------------------------------------------
1 | # Tag Image File Format (TIFF) Software
2 | #
3 | # Copyright (C) 2004, Andrey Kiselev
4 | #
5 | # Permission to use, copy, modify, distribute, and sell this software and
6 | # its documentation for any purpose is hereby granted without fee, provided
7 | # that (i) the above copyright notices and this permission notice appear in
8 | # all copies of the software and related documentation, and (ii) the names of
9 | # Sam Leffler and Silicon Graphics may not be used in any advertising or
10 | # publicity relating to the software without the specific, prior written
11 | # permission of Sam Leffler and Silicon Graphics.
12 | #
13 | # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
14 | # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
15 | # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
16 | #
17 | # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
18 | # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19 | # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20 | # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
21 | # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
22 | # OF THIS SOFTWARE.
23 |
24 | # Process this file with automake to produce Makefile.in.
25 |
26 | EXTRA_DIST = Makefile.vc
27 |
28 | noinst_LTLIBRARIES = libport.la
29 | libport_la_SOURCES = dummy.c libport.h
30 | libport_la_LIBADD = @LTLIBOBJS@
31 |
32 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/port/Makefile.vc:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.vc,v 1.4 2006/03/23 14:54:02 dron Exp $
2 | #
3 | # Copyright (C) 2004, Andrey Kiselev
4 | #
5 | # Permission to use, copy, modify, distribute, and sell this software and
6 | # its documentation for any purpose is hereby granted without fee, provided
7 | # that (i) the above copyright notices and this permission notice appear in
8 | # all copies of the software and related documentation, and (ii) the names of
9 | # Sam Leffler and Silicon Graphics may not be used in any advertising or
10 | # publicity relating to the software without the specific, prior written
11 | # permission of Sam Leffler and Silicon Graphics.
12 | #
13 | # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
14 | # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
15 | # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
16 | #
17 | # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
18 | # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19 | # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20 | # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
21 | # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
22 | # OF THIS SOFTWARE.
23 | #
24 | # Makefile for MS Visual C and Watcom C compilers.
25 | #
26 | # To build:
27 | # C:\libtiff\port> nmake /f makefile.vc
28 |
29 | !INCLUDE ..\nmake.opt
30 |
31 | OBJ = \
32 | strcasecmp.obj \
33 | getopt.obj
34 |
35 | all: libport.lib
36 |
37 | libport.lib: $(OBJ)
38 | $(AR) /out:libport.lib $(OBJ)
39 |
40 | clean:
41 | -del *.obj
42 | -del *.lib
43 |
44 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/port/dummy.c:
--------------------------------------------------------------------------------
1 | /* $Id: dummy.c,v 1.2.2.1 2007/03/21 14:53:46 dron Exp $ */
2 |
3 | /*
4 | * Dummy function, just to be ensure that the library always will be created.
5 | */
6 |
7 | void
8 | libport_dummy_function()
9 | {
10 | return;
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/port/lfind.c:
--------------------------------------------------------------------------------
1 | /* $Id: lfind.c,v 1.4 2007/01/15 18:40:39 mloskot Exp $ */
2 |
3 | /*
4 | * Copyright (c) 1989, 1993
5 | * The Regents of the University of California. All rights reserved.
6 | *
7 | * This code is derived from software contributed to Berkeley by
8 | * Roger L. Snyder.
9 | *
10 | * Redistribution and use in source and binary forms, with or without
11 | * modification, are permitted provided that the following conditions
12 | * are met:
13 | * 1. Redistributions of source code must retain the above copyright
14 | * notice, this list of conditions and the following disclaimer.
15 | * 2. Redistributions in binary form must reproduce the above copyright
16 | * notice, this list of conditions and the following disclaimer in the
17 | * documentation and/or other materials provided with the distribution.
18 | * 3. Neither the name of the University nor the names of its contributors
19 | * may be used to endorse or promote products derived from this software
20 | * without specific prior written permission.
21 | *
22 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 | * SUCH DAMAGE.
33 | */
34 |
35 | #if 0
36 | static char sccsid[] = "@(#)lsearch.c 8.1 (Berkeley) 6/4/93";
37 | __RCSID("$NetBSD: lsearch.c,v 1.2 2005/07/06 15:47:15 drochner Exp $");
38 | #endif
39 |
40 | #ifdef _WIN32_WCE
41 | # include
42 | #else
43 | # include
44 | #endif
45 |
46 | #ifndef NULL
47 | # define NULL 0
48 | #endif
49 |
50 | void *
51 | lfind(const void *key, const void *base, size_t *nmemb, size_t size,
52 | int(*compar)(const void *, const void *))
53 | {
54 | char *element, *end;
55 |
56 | end = (char *)base + *nmemb * size;
57 | for (element = (char *)base; element < end; element += size)
58 | if (!compar(element, key)) /* key found */
59 | return element;
60 |
61 | return NULL;
62 | }
63 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/port/libport.h:
--------------------------------------------------------------------------------
1 | /* $Id: libport.h,v 1.2.2.2 2009-11-02 14:47:41 bfriesen Exp $ */
2 |
3 | /*
4 | * Copyright (c) 2009 Frank Warmerdam
5 | *
6 | * Permission to use, copy, modify, distribute, and sell this software and
7 | * its documentation for any purpose is hereby granted without fee, provided
8 | * that (i) the above copyright notices and this permission notice appear in
9 | * all copies of the software and related documentation, and (ii) the names of
10 | * Sam Leffler and Silicon Graphics may not be used in any advertising or
11 | * publicity relating to the software without the specific, prior written
12 | * permission of Sam Leffler and Silicon Graphics.
13 | *
14 | * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
15 | * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
16 | * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
17 | *
18 | * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
19 | * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
20 | * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21 | * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
22 | * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
23 | * OF THIS SOFTWARE.
24 | */
25 |
26 | #ifndef _LIBPORT_
27 | #define _LIBPORT_
28 |
29 | int getopt(int argc, char * const argv[], const char *optstring);
30 | extern char *optarg;
31 | extern int opterr;
32 | extern int optind;
33 | extern int optopt;
34 |
35 | int strcasecmp(const char *s1, const char *s2);
36 |
37 | #ifndef HAVE_GETOPT
38 | # define HAVE_GETOPT 1
39 | #endif
40 |
41 | #if 0
42 | unsigned long strtoul(const char *nptr, char **endptr, int base);
43 | #endif
44 |
45 | #if 0
46 | void *
47 | lfind(const void *key, const void *base, size_t *nmemb, size_t size,
48 | int(*compar)(const void *, const void *));
49 | #endif
50 |
51 | #endif /* ndef _LIBPORT_ */
52 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/port/strcasecmp.c:
--------------------------------------------------------------------------------
1 | /* $Id: strcasecmp.c,v 1.2 2005/07/07 16:34:06 dron Exp $ */
2 |
3 | /*
4 | * Copyright (c) 1987, 1993
5 | * The Regents of the University of California. All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions
9 | * are met:
10 | * 1. Redistributions of source code must retain the above copyright
11 | * notice, this list of conditions and the following disclaimer.
12 | * 2. Redistributions in binary form must reproduce the above copyright
13 | * notice, this list of conditions and the following disclaimer in the
14 | * documentation and/or other materials provided with the distribution.
15 | * 3. Neither the name of the University nor the names of its contributors
16 | * may be used to endorse or promote products derived from this software
17 | * without specific prior written permission.
18 | *
19 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 | * SUCH DAMAGE.
30 | */
31 |
32 | #if 0
33 | static char sccsid[] = "@(#)strcasecmp.c 8.1 (Berkeley) 6/4/93";
34 | __RCSID("$NetBSD: strcasecmp.c,v 1.16 2003/08/07 16:43:49 agc Exp $");
35 | #endif
36 |
37 | #include
38 | #include
39 |
40 | int
41 | strcasecmp(const char *s1, const char *s2)
42 | {
43 | const unsigned char *us1 = (const unsigned char *)s1,
44 | *us2 = (const unsigned char *)s2;
45 |
46 | while (tolower(*us1) == tolower(*us2++))
47 | if (*us1++ == '\0')
48 | return (0);
49 | return (tolower(*us1) - tolower(*--us2));
50 | }
51 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/test/Makefile.am:
--------------------------------------------------------------------------------
1 | # Tag Image File Format (TIFF) Software
2 | #
3 | # Copyright (C) 2004, Andrey Kiselev
4 | #
5 | # Permission to use, copy, modify, distribute, and sell this software and
6 | # its documentation for any purpose is hereby granted without fee, provided
7 | # that (i) the above copyright notices and this permission notice appear in
8 | # all copies of the software and related documentation, and (ii) the names of
9 | # Sam Leffler and Silicon Graphics may not be used in any advertising or
10 | # publicity relating to the software without the specific, prior written
11 | # permission of Sam Leffler and Silicon Graphics.
12 | #
13 | # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
14 | # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
15 | # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
16 | #
17 | # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
18 | # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19 | # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20 | # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
21 | # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
22 | # OF THIS SOFTWARE.
23 |
24 | # Process this file with automake to produce Makefile.in.
25 |
26 | AUTOMAKE_OPTIONS = 1.11 color-tests parallel-tests foreign
27 |
28 | LIBTIFF = $(top_builddir)/libtiff/libtiff.la
29 |
30 | #EXTRA_DIST = Makefile.vc
31 |
32 | TESTS = $(check_PROGRAMS)
33 |
34 | check_PROGRAMS = ascii_tag long_tag short_tag strip_rw
35 |
36 | ascii_tag_SOURCES = ascii_tag.c
37 | ascii_tag_LDADD = $(LIBTIFF)
38 | long_tag_SOURCES = long_tag.c check_tag.c
39 | long_tag_LDADD = $(LIBTIFF)
40 | short_tag_SOURCES = short_tag.c check_tag.c
41 | short_tag_LDADD = $(LIBTIFF)
42 | strip_rw_SOURCES = strip_rw.c strip.c test_arrays.c test_arrays.h
43 | strip_rw_LDADD = $(LIBTIFF)
44 |
45 | INCLUDES = -I$(top_srcdir)/libtiff
46 |
47 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/test/check_tag.c:
--------------------------------------------------------------------------------
1 | /* $Id: check_tag.c,v 1.2 2006/03/23 14:54:02 dron Exp $ */
2 |
3 | /*
4 | * Copyright (c) 2004, Andrey Kiselev
5 | *
6 | * Permission to use, copy, modify, distribute, and sell this software and
7 | * its documentation for any purpose is hereby granted without fee, provided
8 | * that (i) the above copyright notices and this permission notice appear in
9 | * all copies of the software and related documentation, and (ii) the names of
10 | * Sam Leffler and Silicon Graphics may not be used in any advertising or
11 | * publicity relating to the software without the specific, prior written
12 | * permission of Sam Leffler and Silicon Graphics.
13 | *
14 | * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
15 | * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
16 | * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
17 | *
18 | * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
19 | * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
20 | * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21 | * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
22 | * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
23 | * OF THIS SOFTWARE.
24 | */
25 |
26 | /*
27 | * TIFF Library
28 | *
29 | * Module to test LONG tags read/write functions.
30 | */
31 |
32 | #include "tiffio.h"
33 |
34 | int
35 | CheckShortField(TIFF *tif, ttag_t field, uint16 value)
36 | {
37 | uint16 tmp = 0;
38 |
39 | if (!TIFFGetField(tif, field, &tmp)) {
40 | fprintf (stderr, "Problem fetching tag %lu.\n",
41 | (unsigned long) field);
42 | return -1;
43 | }
44 | if (tmp != value) {
45 | fprintf (stderr, "Wrong SHORT value fetched for tag %lu.\n",
46 | (unsigned long) field);
47 | return -1;
48 | }
49 |
50 | return 0;
51 | }
52 |
53 | int
54 | CheckLongField(TIFF *tif, ttag_t field, uint32 value)
55 | {
56 | uint32 tmp = 0;
57 |
58 | if (!TIFFGetField(tif, field, &tmp)) {
59 | fprintf (stderr, "Problem fetching tag %lu.\n",
60 | (unsigned long) field);
61 | return -1;
62 | }
63 | if (tmp != value) {
64 | fprintf (stderr, "Wrong LONG value fetched for tag %lu.\n",
65 | (unsigned long) field);
66 | return -1;
67 | }
68 |
69 | return 0;
70 | }
71 |
72 |
73 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/test/test_arrays.h:
--------------------------------------------------------------------------------
1 | /* $Id: test_arrays.h,v 1.3 2006/03/23 14:54:02 dron Exp $ */
2 |
3 | /*
4 | * Copyright (c) 2004, Andrey Kiselev
5 | *
6 | * Permission to use, copy, modify, distribute, and sell this software and
7 | * its documentation for any purpose is hereby granted without fee, provided
8 | * that (i) the above copyright notices and this permission notice appear in
9 | * all copies of the software and related documentation, and (ii) the names of
10 | * Sam Leffler and Silicon Graphics may not be used in any advertising or
11 | * publicity relating to the software without the specific, prior written
12 | * permission of Sam Leffler and Silicon Graphics.
13 | *
14 | * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
15 | * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
16 | * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
17 | *
18 | * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
19 | * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
20 | * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21 | * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
22 | * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
23 | * OF THIS SOFTWARE.
24 | */
25 |
26 | /*
27 | * TIFF Library
28 | *
29 | * Few declarations for the test numerical arrays.
30 | */
31 |
32 | #ifndef _TEST_ARRAYS_
33 | #define _TEST_ARRAYS_
34 |
35 | #include
36 |
37 | #define XSIZE 37
38 | #define YSIZE 23
39 |
40 | extern const unsigned char byte_array1[];
41 | extern const size_t byte_array1_size;
42 |
43 | extern const unsigned char byte_array2[];
44 | extern const size_t byte_array2_size;
45 |
46 | extern const unsigned char byte_array3[];
47 | extern const size_t byte_array3_size;
48 |
49 | extern const float array_float1[];
50 | extern const size_t array_float1_size;
51 |
52 | extern const float array_float2[];
53 | extern const size_t array_float2_size;
54 |
55 | extern const double array_double1[];
56 | extern const size_t array_double1_size;
57 |
58 | extern const double array_double2[];
59 | extern const size_t array_double2_size;
60 |
61 | #endif /* _TEST_ARRAYS_ */
62 |
63 | /* vim: set ts=8 sts=8 sw=8 noet: */
64 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/tools/Makefile.vc:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.vc,v 1.13 2007/02/24 15:26:09 dron Exp $
2 | #
3 | # Copyright (C) 2004, Andrey Kiselev
4 | #
5 | # Permission to use, copy, modify, distribute, and sell this software and
6 | # its documentation for any purpose is hereby granted without fee, provided
7 | # that (i) the above copyright notices and this permission notice appear in
8 | # all copies of the software and related documentation, and (ii) the names of
9 | # Sam Leffler and Silicon Graphics may not be used in any advertising or
10 | # publicity relating to the software without the specific, prior written
11 | # permission of Sam Leffler and Silicon Graphics.
12 | #
13 | # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
14 | # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
15 | # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
16 | #
17 | # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
18 | # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19 | # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20 | # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
21 | # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
22 | # OF THIS SOFTWARE.
23 | #
24 | # Makefile for MS Visual C and Watcom C compilers.
25 | #
26 | # To build:
27 | # C:\libtiff\tools> nmake /f makefile.vc
28 |
29 | !INCLUDE ..\nmake.opt
30 |
31 | TARGETS = bmp2tiff.exe tiffinfo.exe tiffdump.exe fax2tiff.exe \
32 | fax2ps.exe gif2tiff.exe pal2rgb.exe ppm2tiff.exe \
33 | rgb2ycbcr.exe thumbnail.exe ras2tiff.exe raw2tiff.exe \
34 | tiff2bw.exe tiff2rgba.exe tiff2pdf.exe tiff2ps.exe \
35 | tiffcmp.exe tiffcp.exe tiffcrop.exe tiffdither.exe \
36 | tiffmedian.exe tiffset.exe tiffsplit.exe
37 |
38 | INCL = -I..\libtiff
39 | LIBS = $(LIBS) ..\port\libport.lib ..\libtiff\libtiff.lib
40 |
41 | default: $(TARGETS)
42 |
43 | .c.exe:
44 | $(CC) $(CFLAGS) $*.c $(EXTRA_OBJ) $(LIBS)
45 |
46 | tiffgt.exe:
47 | $(CC) $(CFLAGS) tiffgt.c $(EXTRA_OBJ) $(LIBS)
48 |
49 | clean:
50 | -del *.exe
51 | -del *.obj
52 |
--------------------------------------------------------------------------------
/src/main/jni/tiff/tools/rasterfile.h:
--------------------------------------------------------------------------------
1 | /* $Header: /cvs/maptools/cvsroot/libtiff/tools/rasterfile.h,v 1.3 2003/11/12 19:14:33 dron Exp $ */
2 |
3 | /*
4 | * Description of header for files containing raster images
5 | */
6 | struct rasterfile {
7 | char ras_magic[4]; /* magic number */
8 | long ras_width; /* width (pixels) of image */
9 | long ras_height; /* height (pixels) of image */
10 | long ras_depth; /* depth (1, 8, or 24 bits) of pixel */
11 | long ras_length; /* length (bytes) of image */
12 | long ras_type; /* type of file; see RT_* below */
13 | long ras_maptype; /* type of colormap; see RMT_* below */
14 | long ras_maplength; /* length (bytes) of following map */
15 | /* color map follows for ras_maplength bytes, followed by image */
16 | };
17 | #define RAS_MAGIC "\x59\xa6\x6a\x95"
18 | #define RAS_MAGIC_INV "\x95\x6a\xa6\x59"
19 |
20 | /* Sun supported ras_type's */
21 | #define RT_OLD 0 /* Raw pixrect image in 68000 byte order */
22 | #define RT_STANDARD 1 /* Raw pixrect image in 68000 byte order */
23 | #define RT_BYTE_ENCODED 2 /* Run-length compression of bytes */
24 | #define RT_EXPERIMENTAL 0xffff /* Reserved for testing */
25 |
26 | /* Sun registered ras_maptype's */
27 | #define RMT_RAW 2
28 | /* Sun supported ras_maptype's */
29 | #define RMT_NONE 0 /* ras_maplength is expected to be 0 */
30 | #define RMT_EQUAL_RGB 1 /* red[ras_maplength/3],green[],blue[] */
31 |
32 | /*
33 | * NOTES:
34 | * Each line of the image is rounded out to a multiple of 16 bits.
35 | * This corresponds to the rounding convention used by the memory pixrect
36 | * package (/usr/include/pixrect/memvar.h) of the SunWindows system.
37 | * The ras_encoding field (always set to 0 by Sun's supported software)
38 | * was renamed to ras_length in release 2.0. As a result, rasterfiles
39 | * of type 0 generated by the old software claim to have 0 length; for
40 | * compatibility, code reading rasterfiles must be prepared to compute the
41 | * true length from the width, height, and depth fields.
42 | */
43 |
--------------------------------------------------------------------------------
/src/main/jni/tiffvers.h:
--------------------------------------------------------------------------------
1 | #define TIFFLIB_VERSION_STR "LIBTIFF, Version 3.9.2\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
2 | /*
3 | * This define can be used in code that requires
4 | * compilation-related definitions specific to a
5 | * version or versions of the library. Runtime
6 | * version checking should be done based on the
7 | * string returned by TIFFGetVersion.
8 | */
9 | #define TIFFLIB_VERSION 20091104
10 |
--------------------------------------------------------------------------------
/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | TiffBitmapFactory
3 |
4 |
--------------------------------------------------------------------------------