From 6486ad57ee7dcdad6967dcaa958da047ad3d33f0 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 22 Mar 2004 21:20:14 +0000 Subject: [PATCH] test more (i)dcts Originally committed as revision 2917 to svn://svn.ffmpeg.org/ffmpeg/trunk --- tests/ffmpeg.regression.ref | 3 +++ tests/regression.sh | 7 +++++++ tests/rotozoom.regression.ref | 3 +++ 3 files changed, 13 insertions(+) diff --git a/tests/ffmpeg.regression.ref b/tests/ffmpeg.regression.ref index 64c7bb0acc..2d444fa300 100644 --- a/tests/ffmpeg.regression.ref +++ b/tests/ffmpeg.regression.ref @@ -5,6 +5,9 @@ stddev: 7.66 PSNR:30.43 bytes:7602176 d407d83f6fa7c98468a6f69a40bdc6a0 *./data/a-mpeg2.mpg d2421f070ffc974735cb53d3cac687c7 *./data/out.yuv stddev: 7.68 PSNR:30.41 bytes:7602176 +b7d78c9f045e063707ad51d71f597885 *./data/a-mpeg2.mpg +4ea5aada565f1ef35cdf1d461fc5534d *./data/out.yuv +stddev: 7.68 PSNR:30.40 bytes:7602176 d295328b9860a8daf49e783e7644b566 *./data/a-mpeg2i.mpg 4acf1008a49f18b9ab632d2470bdc22a *./data/out.yuv stddev: 7.70 PSNR:30.39 bytes:7602176 diff --git a/tests/regression.sh b/tests/regression.sh index 6970649f33..8b6fe6a7f3 100755 --- a/tests/regression.sh +++ b/tests/regression.sh @@ -150,6 +150,13 @@ do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -vcodec mpeg2video -f mpeg1v # mpeg2 decoding do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst +# mpeg2 encoding +file=${outfile}mpeg2.mpg +do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -vcodec mpeg2video -idct_algo 1 -dct_algo 2 -f mpeg1video $file + +# mpeg2 decoding +do_ffmpeg $raw_dst -y -idct_algo 1 -i $file -f rawvideo $raw_dst + # mpeg2 encoding interlaced file=${outfile}mpeg2i.mpg do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -vcodec mpeg2video -f mpeg1video -ildct -ilme $file diff --git a/tests/rotozoom.regression.ref b/tests/rotozoom.regression.ref index eb2fe96c0d..3920e3392c 100644 --- a/tests/rotozoom.regression.ref +++ b/tests/rotozoom.regression.ref @@ -5,6 +5,9 @@ stddev: 5.03 PSNR:34.07 bytes:7602176 8a7a3b90f1fac5e207f3e9e3cdf11197 *./data/a-mpeg2.mpg 686d5937aec5c8ffd3a7be5363580b79 *./data/out.yuv stddev: 5.05 PSNR:34.04 bytes:7602176 +7b9333730f9a1ca89134b9b1c55700d3 *./data/a-mpeg2.mpg +acd0d0f73b95d5a4ed5da34e567e4a6e *./data/out.yuv +stddev: 5.05 PSNR:34.04 bytes:7602176 3f5ee459440c4bc5f9fd8f53e2591073 *./data/a-mpeg2i.mpg 07f678cfa5f1c81657dadbc820d20841 *./data/out.yuv stddev: 5.06 PSNR:34.02 bytes:7602176