From b4e021e8c4a6d9883249c0a37e3acc96e18f8fec Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 2 Feb 2006 15:34:09 +0000 Subject: [PATCH] jpeg-ls regression test Originally committed as revision 4925 to svn://svn.ffmpeg.org/ffmpeg/trunk --- tests/ffmpeg.regression.ref | 4 ++++ tests/regression.sh | 11 +++++++++++ tests/rotozoom.regression.ref | 4 ++++ 3 files changed, 19 insertions(+) diff --git a/tests/ffmpeg.regression.ref b/tests/ffmpeg.regression.ref index c85a7e3640..3cd459c705 100644 --- a/tests/ffmpeg.regression.ref +++ b/tests/ffmpeg.regression.ref @@ -97,6 +97,10 @@ stddev: 7.93 PSNR:30.13 bytes:7602176 6263462 ./data/a-ljpeg.avi 799d3db687f6cdd7a837ec156efc171f *./data/out.yuv stddev: 0.00 PSNR:99.99 bytes:7602176 +7b3010f595177b428cb909fa1a10ef83 *./data/a-jpegls.avi +9085658 ./data/a-jpegls.avi +0f8637e9b861230aff9894825af83720 *./data/out.yuv +stddev: 2.84 PSNR:39.04 bytes:7602176 49c87af74432890cadb28b93da1c653d *./data/a-rv10.rm 677483 ./data/a-rv10.rm f2b7fcff9de17f5aecfeb1090fe1963b *./data/out.yuv diff --git a/tests/regression.sh b/tests/regression.sh index 132a7cd1dc..239d5c7423 100755 --- a/tests/regression.sh +++ b/tests/regression.sh @@ -60,6 +60,7 @@ else do_huffyuv=y do_mjpeg=y do_ljpeg=y + do_jpegls=y do_rv10=y do_rv20=y do_mp2=y @@ -396,6 +397,16 @@ do_ffmpeg $file -y -f pgmyuv -i $raw_src -an -vcodec ljpeg -strict -1 $file do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst fi +################################### +if [ -n "$do_jpegls" ] ; then +# jpeg ls +file=${outfile}jpegls.avi +do_ffmpeg $file -y -f pgmyuv -i $raw_src -an -vcodec jpegls -vtag MJPG $file + +# jpeg ls decoding +do_ffmpeg $raw_dst -y -i $file -f rawvideo -pix_fmt yuv420p $raw_dst +fi + ################################### if [ -n "$do_rv10" ] ; then # rv10 encoding diff --git a/tests/rotozoom.regression.ref b/tests/rotozoom.regression.ref index 9cfb0dafe2..9413872706 100644 --- a/tests/rotozoom.regression.ref +++ b/tests/rotozoom.regression.ref @@ -97,6 +97,10 @@ stddev: 4.38 PSNR:35.28 bytes:7602176 4765522 ./data/a-ljpeg.avi dde5895817ad9d219f79a52d0bdfb001 *./data/out.yuv stddev: 0.00 PSNR:99.99 bytes:7602176 +315493c7e63139c47f0197831475c4da *./data/a-jpegls.avi +8333472 ./data/a-jpegls.avi +a63d4e3ea1f0b0c0d44821da9e09b8f4 *./data/out.yuv +stddev: 0.67 PSNR:51.57 bytes:7602176 2123b30d786e6e6e25caf337f24e7834 *./data/a-rv10.rm 154850 ./data/a-rv10.rm 7ec66fb7dd4e5dddd3820c668d6636aa *./data/out.yuv