From 4555874af19acd0cbd6e856e032468ff52ceaa63 Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Thu, 21 Jul 2011 00:55:24 +0100
Subject: [PATCH] dnxhd: add regression test for 10-bit

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
 tests/codec-regression.sh          | 5 +++++
 tests/ref/vsynth1/dnxhd_720p_10bit | 4 ++++
 tests/ref/vsynth2/dnxhd_720p_10bit | 4 ++++
 3 files changed, 13 insertions(+)
 create mode 100644 tests/ref/vsynth1/dnxhd_720p_10bit
 create mode 100644 tests/ref/vsynth2/dnxhd_720p_10bit

diff --git a/tests/codec-regression.sh b/tests/codec-regression.sh
index ccedbdbfef1..a420c573c9a 100755
--- a/tests/codec-regression.sh
+++ b/tests/codec-regression.sh
@@ -230,6 +230,11 @@ do_video_encoding dnxhd-720p-rd.dnxhd "-threads 4 -mbd rd -s hd720 -b 90M -pix_f
 do_video_decoding "" "-s cif -pix_fmt yuv420p"
 fi
 
+if [ -n "$do_dnxhd_720p_10bit" ] ; then
+do_video_encoding dnxhd-720p-10bit.dnxhd "-s hd720 -b 90M -pix_fmt yuv422p10 -vframes 5 -an"
+do_video_decoding "" "-s cif -pix_fmt yuv420p"
+fi
+
 if [ -n "$do_svq1" ] ; then
 do_video_encoding svq1.mov "-an -vcodec svq1 -qscale 3 -pix_fmt yuv410p"
 do_video_decoding "" "-pix_fmt yuv420p"
diff --git a/tests/ref/vsynth1/dnxhd_720p_10bit b/tests/ref/vsynth1/dnxhd_720p_10bit
new file mode 100644
index 00000000000..4a815a973c1
--- /dev/null
+++ b/tests/ref/vsynth1/dnxhd_720p_10bit
@@ -0,0 +1,4 @@
+3ed972af47641d39a19916b0cd119120 *./tests/data/vsynth1/dnxhd-720p-10bit.dnxhd
+2293760 ./tests/data/vsynth1/dnxhd-720p-10bit.dnxhd
+b64efb0b4eb934bb66f4530c12d5d7fa *./tests/data/dnxhd_720p_10bit.vsynth1.out.yuv
+stddev:    6.27 PSNR: 32.18 MAXDIFF:   65 bytes:   760320/  7603200
diff --git a/tests/ref/vsynth2/dnxhd_720p_10bit b/tests/ref/vsynth2/dnxhd_720p_10bit
new file mode 100644
index 00000000000..734df4ffe2c
--- /dev/null
+++ b/tests/ref/vsynth2/dnxhd_720p_10bit
@@ -0,0 +1,4 @@
+0b8389955cce583bd2db7d2e727a6f15 *./tests/data/vsynth2/dnxhd-720p-10bit.dnxhd
+2293760 ./tests/data/vsynth2/dnxhd-720p-10bit.dnxhd
+bde04e992df2473e89aef4460265332d *./tests/data/dnxhd_720p_10bit.vsynth2.out.yuv
+stddev:    1.45 PSNR: 44.89 MAXDIFF:   22 bytes:   760320/  7603200
-- 
GitLab