From 61b1d85c1f1074d9ce56bb482de99d0f03c7a161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Wed, 30 Nov 2011 00:13:54 +0100 Subject: [PATCH] Add tests for several encoders. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit More specifically, PNG, v210, zlib and zmbv codecs. zmbv needs vf_scale to be able to produce PAL8. Signed-off-by: Reimar Döffinger --- tests/codec-regression.sh | 20 ++++++++++++++++++++ tests/ref/vsynth1/mpng | 4 ++++ tests/ref/vsynth1/v210 | 4 ++++ tests/ref/vsynth1/zlib | 4 ++++ tests/ref/vsynth1/zmbv | 4 ++++ tests/ref/vsynth2/mpng | 4 ++++ tests/ref/vsynth2/v210 | 4 ++++ tests/ref/vsynth2/zlib | 4 ++++ tests/ref/vsynth2/zmbv | 4 ++++ 9 files changed, 52 insertions(+) create mode 100644 tests/ref/vsynth1/mpng create mode 100644 tests/ref/vsynth1/v210 create mode 100644 tests/ref/vsynth1/zlib create mode 100644 tests/ref/vsynth1/zmbv create mode 100644 tests/ref/vsynth2/mpng create mode 100644 tests/ref/vsynth2/v210 create mode 100644 tests/ref/vsynth2/zlib create mode 100644 tests/ref/vsynth2/zmbv diff --git a/tests/codec-regression.sh b/tests/codec-regression.sh index 7a71e47273..c0f8d3ddb9 100755 --- a/tests/codec-regression.sh +++ b/tests/codec-regression.sh @@ -268,6 +268,11 @@ do_video_encoding dnxhd-720p-10bit.dnxhd "-s hd720 -b 90M -pix_fmt yuv422p10 -vf do_video_decoding "" "-s cif -pix_fmt yuv420p" fi +if [ -n "$do_mpng" ] ; then +do_video_encoding mpng.avi "-an -vcodec png" +do_video_decoding "" "-pix_fmt yuv420p" +fi + if [ -n "$do_prores" ] ; then do_video_encoding prores.mov "-vcodec prores" do_video_decoding "" "-pix_fmt yuv420p" @@ -309,11 +314,26 @@ do_video_encoding rgb.avi "-an -vcodec rawvideo -pix_fmt bgr24" do_video_decoding "" "-pix_fmt yuv420p" fi +if [ -n "$do_v210" ] ; then +do_video_encoding v210.avi "-an -vcodec v210" +do_video_decoding "" "-pix_fmt yuv420p" +fi + if [ -n "$do_yuv" ] ; then do_video_encoding yuv.avi "-an -vcodec rawvideo -pix_fmt yuv420p" do_video_decoding "" "-pix_fmt yuv420p" fi +if [ -n "$do_zlib" ] ; then +do_video_encoding zlib.avi "-an -vcodec zlib" +do_video_decoding "" "-pix_fmt yuv420p" +fi + +if [ -n "$do_zmbv" ] ; then +do_video_encoding zmbv.avi "-an -vcodec zmbv" +do_video_decoding "" "-pix_fmt yuv420p" +fi + if [ -n "$do_mp2" ] ; then do_audio_encoding mp2.mp2 do_audio_decoding diff --git a/tests/ref/vsynth1/mpng b/tests/ref/vsynth1/mpng new file mode 100644 index 0000000000..40e13d4309 --- /dev/null +++ b/tests/ref/vsynth1/mpng @@ -0,0 +1,4 @@ +a8e7393fa534289eee9319ded7807f99 *./tests/data/vsynth1/mpng.avi +12157242 ./tests/data/vsynth1/mpng.avi +93695a27c24a61105076ca7b1f010bbd *./tests/data/mpng.vsynth1.out.yuv +stddev: 3.42 PSNR: 37.44 MAXDIFF: 48 bytes: 7603200/ 7603200 diff --git a/tests/ref/vsynth1/v210 b/tests/ref/vsynth1/v210 new file mode 100644 index 0000000000..bb84c3ec98 --- /dev/null +++ b/tests/ref/vsynth1/v210 @@ -0,0 +1,4 @@ +dd6c870a2a52c9e75ce61c3670e710e7 *./tests/data/vsynth1/v210.avi +14752460 ./tests/data/vsynth1/v210.avi +50973792d3f1abe04a51ee0121f077f2 *./tests/data/v210.vsynth1.out.yuv +stddev: 1.85 PSNR: 42.78 MAXDIFF: 29 bytes: 7603200/ 7603200 diff --git a/tests/ref/vsynth1/zlib b/tests/ref/vsynth1/zlib new file mode 100644 index 0000000000..d4cc004f75 --- /dev/null +++ b/tests/ref/vsynth1/zlib @@ -0,0 +1,4 @@ +fe4983e551b48dc555e1aeaf628f649f *./tests/data/vsynth1/zlib.avi +12108644 ./tests/data/vsynth1/zlib.avi +93695a27c24a61105076ca7b1f010bbd *./tests/data/zlib.vsynth1.out.yuv +stddev: 3.42 PSNR: 37.44 MAXDIFF: 48 bytes: 7603200/ 7603200 diff --git a/tests/ref/vsynth1/zmbv b/tests/ref/vsynth1/zmbv new file mode 100644 index 0000000000..12f1a870b6 --- /dev/null +++ b/tests/ref/vsynth1/zmbv @@ -0,0 +1,4 @@ +5874bd5764a92be48b63d90446b1b386 *./tests/data/vsynth1/zmbv.avi +2284022 ./tests/data/vsynth1/zmbv.avi +cfbec364e41d70c9b177435b5655d8af *./tests/data/zmbv.vsynth1.out.yuv +stddev: 46.47 PSNR: 14.79 MAXDIFF: 129 bytes: 7603200/ 7603200 diff --git a/tests/ref/vsynth2/mpng b/tests/ref/vsynth2/mpng new file mode 100644 index 0000000000..99b91fe9e0 --- /dev/null +++ b/tests/ref/vsynth2/mpng @@ -0,0 +1,4 @@ +198a3d67c56e1b5b12bdd3ffa67d8128 *./tests/data/vsynth2/mpng.avi +12557288 ./tests/data/vsynth2/mpng.avi +98d0e2854731472c5bf13d8638502d0a *./tests/data/mpng.vsynth2.out.yuv +stddev: 1.26 PSNR: 46.10 MAXDIFF: 13 bytes: 7603200/ 7603200 diff --git a/tests/ref/vsynth2/v210 b/tests/ref/vsynth2/v210 new file mode 100644 index 0000000000..31160bdc61 --- /dev/null +++ b/tests/ref/vsynth2/v210 @@ -0,0 +1,4 @@ +db0579bd46e1ba133ff86c0f7cdd761f *./tests/data/vsynth2/v210.avi +14752460 ./tests/data/vsynth2/v210.avi +a627fb50c8276200fd71383977d87ca3 *./tests/data/v210.vsynth2.out.yuv +stddev: 0.34 PSNR: 57.43 MAXDIFF: 6 bytes: 7603200/ 7603200 diff --git a/tests/ref/vsynth2/zlib b/tests/ref/vsynth2/zlib new file mode 100644 index 0000000000..49cb42efb1 --- /dev/null +++ b/tests/ref/vsynth2/zlib @@ -0,0 +1,4 @@ +f4bfa774c853abe8f06a29596c1f16cb *./tests/data/vsynth2/zlib.avi +12517188 ./tests/data/vsynth2/zlib.avi +98d0e2854731472c5bf13d8638502d0a *./tests/data/zlib.vsynth2.out.yuv +stddev: 1.26 PSNR: 46.10 MAXDIFF: 13 bytes: 7603200/ 7603200 diff --git a/tests/ref/vsynth2/zmbv b/tests/ref/vsynth2/zmbv new file mode 100644 index 0000000000..8b08379aa8 --- /dev/null +++ b/tests/ref/vsynth2/zmbv @@ -0,0 +1,4 @@ +65825cdc90e550aeba556020365bc2d9 *./tests/data/vsynth2/zmbv.avi +1807074 ./tests/data/vsynth2/zmbv.avi +cfbec364e41d70c9b177435b5655d8af *./tests/data/zmbv.vsynth2.out.yuv +stddev: 42.07 PSNR: 15.65 MAXDIFF: 112 bytes: 7603200/ 7603200