ppm2tiff: Add test for 16bpc PPM
This commit is contained in:
parent
622492cb31
commit
5f84fefcf5
@ -143,6 +143,7 @@ set(GIFIMAGES
|
||||
set(PNMIMAGES
|
||||
images/minisblack-1c-8b.pgm
|
||||
images/miniswhite-1c-1b.pbm
|
||||
images/rgb-3c-16b.ppm
|
||||
images/rgb-3c-8b.ppm)
|
||||
|
||||
# All uncompressed image files
|
||||
@ -353,6 +354,7 @@ add_convert_test(gif2tiff palette "" "images/palette-1c-8b.gif" TRUE)
|
||||
# PPM
|
||||
add_convert_test(ppm2tiff miniswhite "" "images/miniswhite-1c-1b.pbm" TRUE)
|
||||
add_convert_test(ppm2tiff minisblack "" "images/minisblack-1c-8b.pgm" TRUE)
|
||||
add_convert_test(ppm2tiff rgb "" "images/rgb-3c-16b.ppm" TRUE)
|
||||
add_convert_test(ppm2tiff rgb "" "images/rgb-3c-8b.ppm" TRUE)
|
||||
|
||||
# tiffcp
|
||||
|
@ -186,6 +186,7 @@ TIFFIMAGES = \
|
||||
PNMIMAGES = \
|
||||
images/minisblack-1c-8b.pgm \
|
||||
images/miniswhite-1c-1b.pbm \
|
||||
images/rgb-3c-16b.ppm \
|
||||
images/rgb-3c-8b.ppm
|
||||
|
||||
# This list should include all of the files in the 'images'
|
||||
|
@ -46,10 +46,11 @@ IMG_LZW_SINGLE_STROP=${IMAGES}/lzw-single-strip.tiff
|
||||
|
||||
IMG_MINISWHITE_1C_1B_PBM=${IMAGES}/miniswhite-1c-1b.pbm
|
||||
IMG_MINISBLACK_1C_8B_PGM=${IMAGES}/minisblack-1c-8b.pgm
|
||||
IMG_RGB_3C_16B_PPM=${IMAGES}/rgb-3c-16b.ppm
|
||||
IMG_RGB_3C_8B_PPM=${IMAGES}/rgb-3c-8b.ppm
|
||||
|
||||
# All uncompressed image files
|
||||
IMG_UNCOMPRESSED="${IMG_MINISBLACK_1C_16B} ${IMG_MINISBLACK_1C_8B} ${IMG_MINISWHITE_1C_1B} ${IMG_PALETTE_1C_1B} ${IMG_PALETTE_1C_4B} ${IMG_PALETTE_1C_4B} ${IMG_PALETTE_1C_8B} ${IMG_RGB_3C_8B}"
|
||||
IMG_UNCOMPRESSED="${IMG_MINISBLACK_1C_16B} ${IMG_MINISBLACK_1C_8B} ${IMG_MINISWHITE_1C_1B} ${IMG_PALETTE_1C_1B} ${IMG_PALETTE_1C_4B} ${IMG_PALETTE_1C_4B} ${IMG_PALETTE_1C_8B} ${IMG_RGB_3C_8B} ${IMG_RGB_3C_16B}"
|
||||
|
||||
#
|
||||
# Test a simple convert-like command.
|
||||
|
BIN
test/images/rgb-3c-16b.ppm
Normal file
BIN
test/images/rgb-3c-16b.ppm
Normal file
Binary file not shown.
@ -1,6 +1,10 @@
|
||||
#!/bin/sh
|
||||
. ${srcdir:-.}/common.sh
|
||||
infile="$IMG_RGB_3C_8B_PPM"
|
||||
outfile="o-ppm2tiff_ppm.tiff"
|
||||
outfile="o-ppm2tiff_8b_ppm.tiff"
|
||||
f_test_convert "$PPM2TIFF" $infile $outfile
|
||||
f_tiffinfo_validate $outfile
|
||||
infile="$IMG_RGB_3C_16B_PPM"
|
||||
outfile="o-ppm2tiff_16b_ppm.tiff"
|
||||
f_test_convert "$PPM2TIFF" $infile $outfile
|
||||
f_tiffinfo_validate $outfile
|
||||
|
Loading…
Reference in New Issue
Block a user