From 733b23c2e44cb67b90e04f337eb4a407d46f70d1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= <Reimar.Doeffinger@gmx.de>
Date: Tue, 27 Dec 2011 20:43:16 -0500
Subject: [PATCH] fate: Add v210 codec regression tests
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
---
 tests/codec-regression.sh | 5 +++++
 tests/ref/vsynth1/v210    | 4 ++++
 tests/ref/vsynth2/v210    | 4 ++++
 3 files changed, 13 insertions(+)
 create mode 100644 tests/ref/vsynth1/v210
 create mode 100644 tests/ref/vsynth2/v210

diff --git a/tests/codec-regression.sh b/tests/codec-regression.sh
index 57e5f07f052..e20bf6420d8 100755
--- a/tests/codec-regression.sh
+++ b/tests/codec-regression.sh
@@ -278,6 +278,11 @@ 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 -c:v 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"
diff --git a/tests/ref/vsynth1/v210 b/tests/ref/vsynth1/v210
new file mode 100644
index 00000000000..bb84c3ec981
--- /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/vsynth2/v210 b/tests/ref/vsynth2/v210
new file mode 100644
index 00000000000..31160bdc61a
--- /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
-- 
GitLab