From 3b37408be8c319d5bc734970b64c3fd37784bba2 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 12 Jul 2003 16:26:08 +0000 Subject: [PATCH] lossless jpeg regression test Originally committed as revision 2036 to svn://svn.ffmpeg.org/ffmpeg/trunk --- tests/ffmpeg.regression.ref | 3 +++ tests/regression.sh | 11 +++++++++++ tests/rotozoom.regression.ref | 3 +++ 3 files changed, 17 insertions(+) diff --git a/tests/ffmpeg.regression.ref b/tests/ffmpeg.regression.ref index 39c02fb4aa..7989737a1a 100644 --- a/tests/ffmpeg.regression.ref +++ b/tests/ffmpeg.regression.ref @@ -38,6 +38,9 @@ stddev: 6.35 bytes:6993920 07042f42b3119c39eb26537a84a451df *./data/a-mjpeg.avi f23a9e50a559e174766ee808c48fea22 *./data/out.yuv stddev: 8.87 bytes:7602176 +1d565db4a3a054261af95f2483a37cd6 *./data/a-ljpeg.avi +799d3db687f6cdd7a837ec156efc171f *./data/out.yuv +stddev: 0.00 bytes:7602176 4b37703d3dc03873f99603165c0fe11e *./data/a-rv10.rm 255469fef47bee94cfb2e3385ebb736b *./data/out.yuv stddev: 13.42 bytes:7602176 diff --git a/tests/regression.sh b/tests/regression.sh index 0a50b05bfb..bd58f8ecbb 100755 --- a/tests/regression.sh +++ b/tests/regression.sh @@ -39,6 +39,7 @@ else do_mpeg4=y do_huffyuv=y do_mjpeg=y + do_ljpeg=y do_rv10=y do_mp2=y do_ac3=y @@ -245,6 +246,16 @@ do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec mjpeg $file do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst fi +################################### +if [ -n "$do_ljpeg" ] ; then +# ljpeg +file=${outfile}ljpeg.avi +do_ffmpeg $file -y -f pgmyuv -i $raw_src -an -vcodec ljpeg $file + +# ljpeg decoding +do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst +fi + ################################### if [ -n "$do_rv10" ] ; then # rv10 encoding diff --git a/tests/rotozoom.regression.ref b/tests/rotozoom.regression.ref index 5ad7fefe02..7a3d4b6fa6 100644 --- a/tests/rotozoom.regression.ref +++ b/tests/rotozoom.regression.ref @@ -38,6 +38,9 @@ stddev: 4.69 bytes:6993920 e9218a1db885fe0262e88f9df630307d *./data/a-mjpeg.avi a365b4da246ad68caf96b702b7f961a1 *./data/out.yuv stddev: 4.76 bytes:7602176 +defd90b44bced2772c6ca0d8eb75f668 *./data/a-ljpeg.avi +dde5895817ad9d219f79a52d0bdfb001 *./data/out.yuv +stddev: 0.00 bytes:7602176 1b46671251277c14f3a24a034648c458 *./data/a-rv10.rm e1923bc2940a017858e354c3fb0e6244 *./data/out.yuv stddev: 13.18 bytes:7602176