test: add test for single-strip OJPEG file without RowsPerStrip tag (like in CR2 files)

This commit is contained in:
Even Rouault 2020-01-07 23:41:26 +01:00
parent 0a8245b7b8
commit 8192df23fa
No known key found for this signature in database
GPG Key ID: 33EBBFC47B3DD87D
4 changed files with 15 additions and 4 deletions

View File

@ -107,7 +107,8 @@ set(TESTSCRIPTS
tiff2rgba-rgb-3c-8b.sh tiff2rgba-rgb-3c-8b.sh
tiff2rgba-quad-tile.jpg.sh tiff2rgba-quad-tile.jpg.sh
tiff2rgba-ojpeg_zackthecat_subsamp22_single_strip.sh tiff2rgba-ojpeg_zackthecat_subsamp22_single_strip.sh
tiff2rgba-ojpeg_chewey_subsamp21_multi_strip.sh) tiff2rgba-ojpeg_chewey_subsamp21_multi_strip.sh
tiff2rgba-ojpeg_single_strip_no_rowsperstrip.sh)
# This list should contain all of the TIFF files in the 'images' # This list should contain all of the TIFF files in the 'images'
# subdirectory which are intended to be used as input images for # subdirectory which are intended to be used as input images for
@ -127,7 +128,8 @@ set(TIFFIMAGES
images/quad-lzw-compat.tiff images/quad-lzw-compat.tiff
images/lzw-single-strip.tiff images/lzw-single-strip.tiff
images/ojpeg_zackthecat_subsamp22_single_strip.tiff images/ojpeg_zackthecat_subsamp22_single_strip.tiff
images/ojpeg_chewey_subsamp21_multi_strip.tiff) images/ojpeg_chewey_subsamp21_multi_strip.tiff
images/ojpeg_single_strip_no_rowsperstrip.tiff)
set(BMPIMAGES set(BMPIMAGES
images/palette-1c-8b.bmp images/palette-1c-8b.bmp

View File

@ -57,7 +57,8 @@ JPEG_DEPENDENT_CHECK_PROG=raw_decode
JPEG_DEPENDENT_TESTSCRIPTS=\ JPEG_DEPENDENT_TESTSCRIPTS=\
tiff2rgba-quad-tile.jpg.sh \ tiff2rgba-quad-tile.jpg.sh \
tiff2rgba-ojpeg_zackthecat_subsamp22_single_strip.sh \ tiff2rgba-ojpeg_zackthecat_subsamp22_single_strip.sh \
tiff2rgba-ojpeg_chewey_subsamp21_multi_strip.sh tiff2rgba-ojpeg_chewey_subsamp21_multi_strip.sh \
tiff2rgba-ojpeg_single_strip_no_rowsperstrip.sh
else else
JPEG_DEPENDENT_CHECK_PROG= JPEG_DEPENDENT_CHECK_PROG=
@ -176,7 +177,8 @@ TIFFIMAGES = \
images/quad-lzw-compat.tiff \ images/quad-lzw-compat.tiff \
images/lzw-single-strip.tiff \ images/lzw-single-strip.tiff \
images/ojpeg_zackthecat_subsamp22_single_strip.tiff \ images/ojpeg_zackthecat_subsamp22_single_strip.tiff \
images/ojpeg_chewey_subsamp21_multi_strip.tiff images/ojpeg_chewey_subsamp21_multi_strip.tiff \
images/ojpeg_single_strip_no_rowsperstrip.tiff
PNMIMAGES = \ PNMIMAGES = \
images/minisblack-1c-8b.pgm \ images/minisblack-1c-8b.pgm \

Binary file not shown.

View File

@ -0,0 +1,7 @@
#!/bin/sh
# Generated file, master is Makefile.am
. ${srcdir:-.}/common.sh
infile="$srcdir/images/ojpeg_single_strip_no_rowsperstrip.tiff"
outfile="o-tiff2rgba-ojpeg_single_strip_no_rowsperstrip.tiff"
f_test_convert "$TIFF2RGBA" $infile $outfile
f_tiffinfo_validate $outfile