libtiff/test
Su_Laus 6df997c786 Rational with Double Precision Upgrade
Unfortunately, custom rational tags (TIFF_RATIONAL with field_bit=FIELD_CUSTOM) are defined as TIFF_SETGET_DOUBLE
but for the reading interface and LibTiff internally they are stored ALLWAYS as floating point SINGLE precision.
Double precision custom rational tags are not supported by LibTiff.

For the GPS tags in WGS84 a higher accuracy / precision is needed.
Therefore, this upgrade is made, keeping the old interface for the already defined tags and allowing a double precision definition,
as well as calculating rationals with higher accuracy / precision.
This higher accuracy can be used for newly defined tags like that in EXIF/GPS.

Refer also to the very old Bugzilla issue 2542 (#69)

A test file rational_precision2double.c is added, which shows prevention of the old interface to the already defined custom rational tags
with the standard library as well as with the upgraded library.

Also TIFFTAG_XRESOLUTION, TIFFTAG_YRESOLUTION, TIFFTAG_XPOSITION, TIFFTAG_YPOSITION amended from TIFF_SETGET_DOUBLE to TIFF_SETGET_FLOAT and testcase inserted in rational_precision2double.c
2020-02-27 21:11:20 +01:00
..
images add a test for fax2tiff tool 2019-03-22 10:06:01 +01:00
refs Add output check for tiff2ps 2019-04-03 14:55:29 +02:00
ascii_tag.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
check_tag.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
CMakeLists.txt Rational with Double Precision Upgrade 2020-02-27 21:11:20 +01:00
common.sh Add output check for tiff2ps 2019-04-03 14:55:29 +02:00
custom_dir.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
defer_strile_loading.c Add TIFFReadFromUserBuffer() 2019-05-23 00:38:59 +02:00
defer_strile_writing.c Add TIFFDeferStrileArrayWriting() and TIFFForceStrileArrayWriting() 2019-05-25 11:37:34 +02:00
fax2tiff.sh add a test for fax2tiff tool 2019-03-22 10:06:01 +01:00
long_tag.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
Makefile.am Rational with Double Precision Upgrade 2020-02-27 21:11:20 +01:00
ppm2tiff_pbm.sh * test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh, 2009-08-29 20:45:09 +00:00
ppm2tiff_pgm.sh * test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh, 2009-08-29 20:45:09 +00:00
ppm2tiff_ppm.sh * test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh, 2009-08-29 20:45:09 +00:00
rational_precision2double.c Rational with Double Precision Upgrade 2020-02-27 21:11:20 +01:00
raw_decode.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
rewrite_tag.c Creation: use SHORT type when possible for StripByteCounts/TileByteCounts 2019-05-10 11:08:01 +02:00
short_tag.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
strip_rw.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
strip.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
test_arrays.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
test_arrays.h Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
testtypes.c make TIFF_SSIZE_T the same bitwidth as TIFF_SIZE_T 2019-05-31 20:10:51 +02:00
tiff2bw-palette-1c-8b.sh * test/Makefile.am: Add some tests for tiff2bw. 2017-11-02 13:51:22 +00:00
tiff2bw-quad-lzw-compat.sh * test/Makefile.am: Add some tests for tiff2bw. 2017-11-02 13:51:22 +00:00
tiff2bw-rgb-3c-8b.sh * test/Makefile.am: Add some tests for tiff2bw. 2017-11-02 13:51:22 +00:00
tiff2pdf.sh Utilities which write to stdout needed more attention. 2009-08-24 15:48:00 +00:00
tiff2ps-EPS1.sh Add output check for tiff2ps 2019-04-03 14:55:29 +02:00
tiff2ps-PS1.sh Add output check for tiff2ps 2019-04-03 14:55:29 +02:00
tiff2ps-PS2.sh Add output check for tiff2ps 2019-04-03 14:55:29 +02:00
tiff2ps-PS3.sh Add output check for tiff2ps 2019-04-03 14:55:29 +02:00
tiff2rgba-logluv-3c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiff2rgba-minisblack-1c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiff2rgba-minisblack-1c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiff2rgba-minisblack-2c-8b-alpha.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiff2rgba-miniswhite-1c-1b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiff2rgba-palette-1c-1b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiff2rgba-palette-1c-4b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiff2rgba-palette-1c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiff2rgba-quad-tile.jpg.sh add new test scripts 2012-06-15 23:36:41 +00:00
tiff2rgba-rgb-3c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiff2rgba-rgb-3c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcp-g3-1d-fill.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcp-g3-1d.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcp-g3-2d-fill.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcp-g3-2d.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcp-g3.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcp-g4.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcp-logluv.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcp-lzw-compat.sh * test/tiffcp-lzw-compat.sh, test/images/quad-lzw-compat.tiff: new files 2017-07-11 09:20:31 +00:00
tiffcp-lzw-scanline-decode.sh Fix libtiff 4.0.8 regression when reading LZW-compressed strips with scanline API 2018-08-07 11:54:27 +02:00
tiffcp-split-join.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcp-split.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcp-thumbnail.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcrop-doubleflip-logluv-3c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-doubleflip-minisblack-1c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-doubleflip-minisblack-1c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-doubleflip-minisblack-2c-8b-alpha.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-doubleflip-miniswhite-1c-1b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-doubleflip-palette-1c-1b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-doubleflip-palette-1c-4b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-doubleflip-palette-1c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-doubleflip-quad-tile.jpg.sh add new test scripts 2012-06-15 23:36:41 +00:00
tiffcrop-doubleflip-rgb-3c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-doubleflip-rgb-3c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extract-logluv-3c-16b.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extract-minisblack-1c-8b.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extract-minisblack-1c-16b.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extract-minisblack-2c-8b-alpha.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extract-miniswhite-1c-1b.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extract-palette-1c-1b.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extract-palette-1c-4b.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extract-palette-1c-8b.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extract-quad-tile.jpg.sh add new test scripts 2012-06-15 23:36:41 +00:00
tiffcrop-extract-rgb-3c-8b.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extract-rgb-3c-16b.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extractz14-logluv-3c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extractz14-minisblack-1c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extractz14-minisblack-1c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extractz14-minisblack-2c-8b-alpha.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extractz14-miniswhite-1c-1b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extractz14-palette-1c-1b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extractz14-palette-1c-4b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extractz14-palette-1c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extractz14-quad-tile.jpg.sh add new test scripts 2012-06-15 23:36:41 +00:00
tiffcrop-extractz14-rgb-3c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extractz14-rgb-3c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-logluv-3c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-minisblack-1c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-minisblack-1c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-minisblack-2c-8b-alpha.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-miniswhite-1c-1b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-palette-1c-1b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-palette-1c-4b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-palette-1c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-quad-tile.jpg.sh add new test scripts 2012-06-15 23:36:41 +00:00
tiffcrop-R90-rgb-3c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-rgb-3c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffdump.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffinfo.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
TiffSplitTest.cmake * CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to 2015-06-25 02:27:58 +00:00
TiffTest.cmake * CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to 2015-06-25 02:27:58 +00:00
tifftest.h Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
TiffTestCommon.cmake * .travis.yml, build/travis-ci: new files from 2017-06-08 20:46:10 +00:00