summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2022-02-09 21:53:39 +0100
committerEven Rouault <even.rouault@spatialys.com>2022-02-09 22:52:52 +0100
commitb0456acbba36927eeb2f937f4abed66deab4a029 (patch)
tree5ca8780bc0781e40b61d7a212a44ae2168e9c15d /test
parenta1dafbf307278696bcf99b8f320bf81a112315e1 (diff)
downloadlibtiff-git-b0456acbba36927eeb2f937f4abed66deab4a029.tar.gz
Predictor 2 (horizontal differenciation): support 64-bit
There's no reason not to support 64-bit. The TIFF 6 specification doesn't say anything about that (and even mention 4-bit, which we don't support)
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt2
-rw-r--r--test/Makefile.am2
-rw-r--r--test/images/test_float64_predictor2_be_lzw.tifbin0 -> 872 bytes
-rw-r--r--test/images/test_float64_predictor2_le_lzw.tifbin0 -> 887 bytes
4 files changed, 4 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 3336b58c..1bdb283e 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -356,6 +356,8 @@ add_convert_test_multi(tiffcp thumbnail "" thumbnail "-c g3:1d" "" ""
"images/miniswhite-1c-1b.tiff" FALSE)
add_convert_test(tiffcp none "-c none" "images/quad-lzw-compat.tiff" FALSE)
add_convert_test(tiffcp noner1 "-c none -r 1" "images/lzw-single-strip.tiff" FALSE)
+add_convert_test(tiffcp float64_lzw_2_le "-c lzw:2 "images/test_float64_predictor2_le_lzw.tif" FALSE)
+add_convert_test(tiffcp float64_lzw_2_be "-c lzw:2 "images/test_float64_predictor2_be_lzw.tif" FALSE)
# tiffdump
add_reader_test(tiffdump "" "images/miniswhite-1c-1b.tiff")
diff --git a/test/Makefile.am b/test/Makefile.am
index cb338884..6c1bae62 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -199,6 +199,8 @@ PNMIMAGES = \
IMAGES_EXTRA_DIST = \
images/README.txt \
images/miniswhite-1c-1b.g3 \
+ images/test_float64_predictor2_le_lzw.tif \
+ images/test_float64_predictor2_be_lzw.tif \
$(PNMIMAGES) \
$(TIFFIMAGES)
diff --git a/test/images/test_float64_predictor2_be_lzw.tif b/test/images/test_float64_predictor2_be_lzw.tif
new file mode 100644
index 00000000..7cbbae14
--- /dev/null
+++ b/test/images/test_float64_predictor2_be_lzw.tif
Binary files differ
diff --git a/test/images/test_float64_predictor2_le_lzw.tif b/test/images/test_float64_predictor2_le_lzw.tif
new file mode 100644
index 00000000..3dd57a54
--- /dev/null
+++ b/test/images/test_float64_predictor2_le_lzw.tif
Binary files differ