From c7a6a451a5c277556e28dfb3b4b943719cdda7ff Mon Sep 17 00:00:00 2001 From: Eirik Aavitsland Date: Thu, 16 Mar 2017 14:13:57 +0100 Subject: Extend support for tiled tiff files to all color formats This commit extends the recently added support for tiled tiff images of color index format to also cover grayscale and mono images. RGB images were already covered, since the libtiff API used for those handles tiled images transparently. This commit also simplifies the tiff read() function by sharing common code among the different formats. [ChangeLog][TIFF] Extend support for tiled tiff files to all color formats Change-Id: I13f94bbca65dd6a35384a415906034e245ad8b79 Reviewed-by: Allan Sandfeld Jensen --- tests/shared/images/tiff/indexed_nontiled.tif | Bin 119486 -> 0 bytes tests/shared/images/tiff/indexed_tiled.tif | Bin 209220 -> 0 bytes tests/shared/images/tiff/oddsize_grayscale.tiff | Bin 0 -> 4553 bytes tests/shared/images/tiff/oddsize_mono.tiff | Bin 0 -> 886 bytes tests/shared/images/tiff/original_grayscale.tiff | Bin 0 -> 4432 bytes tests/shared/images/tiff/tiled_grayscale.tiff | Bin 0 -> 4584 bytes tests/shared/images/tiff/tiled_indexed.tiff | Bin 0 -> 6061 bytes tests/shared/images/tiff/tiled_mono.tiff | Bin 0 -> 926 bytes tests/shared/images/tiff/tiled_oddsize_grayscale.tiff | Bin 0 -> 5639 bytes tests/shared/images/tiff/tiled_oddsize_mono.tiff | Bin 0 -> 1114 bytes tests/shared/images/tiff/tiled_rgb.tiff | Bin 0 -> 12748 bytes 11 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 tests/shared/images/tiff/indexed_nontiled.tif delete mode 100644 tests/shared/images/tiff/indexed_tiled.tif create mode 100644 tests/shared/images/tiff/oddsize_grayscale.tiff create mode 100644 tests/shared/images/tiff/oddsize_mono.tiff create mode 100644 tests/shared/images/tiff/original_grayscale.tiff create mode 100644 tests/shared/images/tiff/tiled_grayscale.tiff create mode 100644 tests/shared/images/tiff/tiled_indexed.tiff create mode 100644 tests/shared/images/tiff/tiled_mono.tiff create mode 100644 tests/shared/images/tiff/tiled_oddsize_grayscale.tiff create mode 100644 tests/shared/images/tiff/tiled_oddsize_mono.tiff create mode 100644 tests/shared/images/tiff/tiled_rgb.tiff (limited to 'tests/shared/images/tiff') diff --git a/tests/shared/images/tiff/indexed_nontiled.tif b/tests/shared/images/tiff/indexed_nontiled.tif deleted file mode 100644 index d0b7cef..0000000 Binary files a/tests/shared/images/tiff/indexed_nontiled.tif and /dev/null differ diff --git a/tests/shared/images/tiff/indexed_tiled.tif b/tests/shared/images/tiff/indexed_tiled.tif deleted file mode 100644 index 4ed11dd..0000000 Binary files a/tests/shared/images/tiff/indexed_tiled.tif and /dev/null differ diff --git a/tests/shared/images/tiff/oddsize_grayscale.tiff b/tests/shared/images/tiff/oddsize_grayscale.tiff new file mode 100644 index 0000000..d519cd2 Binary files /dev/null and b/tests/shared/images/tiff/oddsize_grayscale.tiff differ diff --git a/tests/shared/images/tiff/oddsize_mono.tiff b/tests/shared/images/tiff/oddsize_mono.tiff new file mode 100644 index 0000000..fbac0ed Binary files /dev/null and b/tests/shared/images/tiff/oddsize_mono.tiff differ diff --git a/tests/shared/images/tiff/original_grayscale.tiff b/tests/shared/images/tiff/original_grayscale.tiff new file mode 100644 index 0000000..174c2cf Binary files /dev/null and b/tests/shared/images/tiff/original_grayscale.tiff differ diff --git a/tests/shared/images/tiff/tiled_grayscale.tiff b/tests/shared/images/tiff/tiled_grayscale.tiff new file mode 100644 index 0000000..894ba8b Binary files /dev/null and b/tests/shared/images/tiff/tiled_grayscale.tiff differ diff --git a/tests/shared/images/tiff/tiled_indexed.tiff b/tests/shared/images/tiff/tiled_indexed.tiff new file mode 100644 index 0000000..2bd266a Binary files /dev/null and b/tests/shared/images/tiff/tiled_indexed.tiff differ diff --git a/tests/shared/images/tiff/tiled_mono.tiff b/tests/shared/images/tiff/tiled_mono.tiff new file mode 100644 index 0000000..cbcda19 Binary files /dev/null and b/tests/shared/images/tiff/tiled_mono.tiff differ diff --git a/tests/shared/images/tiff/tiled_oddsize_grayscale.tiff b/tests/shared/images/tiff/tiled_oddsize_grayscale.tiff new file mode 100644 index 0000000..27bc9d4 Binary files /dev/null and b/tests/shared/images/tiff/tiled_oddsize_grayscale.tiff differ diff --git a/tests/shared/images/tiff/tiled_oddsize_mono.tiff b/tests/shared/images/tiff/tiled_oddsize_mono.tiff new file mode 100644 index 0000000..e858e90 Binary files /dev/null and b/tests/shared/images/tiff/tiled_oddsize_mono.tiff differ diff --git a/tests/shared/images/tiff/tiled_rgb.tiff b/tests/shared/images/tiff/tiled_rgb.tiff new file mode 100644 index 0000000..90291b9 Binary files /dev/null and b/tests/shared/images/tiff/tiled_rgb.tiff differ -- cgit v1.2.3