summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-01-29 00:31:17 +0000
committerMichael Niedermayer <michaelni@gmx.at>2012-01-29 02:41:09 +0100
commitcbf1dc4eb4b49c5c35ba69b3edef2fe8ea8087ec (patch)
treeb2ca64e1711e985b544cbd82f32d11ae29e55b34
parentc065255bba62ebef145f80cd8d805ef1a9eca133 (diff)
downloadffmpeg-streaming-cbf1dc4eb4b49c5c35ba69b3edef2fe8ea8087ec.zip
ffmpeg-streaming-cbf1dc4eb4b49c5c35ba69b3edef2fe8ea8087ec.tar.gz
fate: add Y41P encoding/decoding test
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rwxr-xr-xtests/codec-regression.sh5
-rw-r--r--tests/ref/vsynth1/y41p4
-rw-r--r--tests/ref/vsynth2/y41p4
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/codec-regression.sh b/tests/codec-regression.sh
index 48d585a..5871c2d 100755
--- a/tests/codec-regression.sh
+++ b/tests/codec-regression.sh
@@ -329,6 +329,11 @@ do_video_encoding yuv.avi "-an -vcodec rawvideo -pix_fmt yuv420p"
do_video_decoding "" "-pix_fmt yuv420p"
fi
+if [ -n "$do_y41p" ] ; then
+do_video_encoding y41p.avi "-an -c:v y41p"
+do_video_decoding
+fi
+
if [ -n "$do_zlib" ] ; then
do_video_encoding zlib.avi "-an -vcodec zlib"
do_video_decoding "" "-pix_fmt yuv420p"
diff --git a/tests/ref/vsynth1/y41p b/tests/ref/vsynth1/y41p
new file mode 100644
index 0000000..36f45f1
--- /dev/null
+++ b/tests/ref/vsynth1/y41p
@@ -0,0 +1,4 @@
+70bbcb52acac0a3cb3217719669a8242 *./tests/data/vsynth1/y41p.avi
+ 7610060 ./tests/data/vsynth1/y41p.avi
+665f6045e3b3031f719fa4a44f63daba *./tests/data/y41p.vsynth1.out.yuv
+stddev: 30.54 PSNR: 18.43 MAXDIFF: 222 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/y41p b/tests/ref/vsynth2/y41p
new file mode 100644
index 0000000..e603c6b
--- /dev/null
+++ b/tests/ref/vsynth2/y41p
@@ -0,0 +1,4 @@
+8e0139963e79180a0fc1c154e36cebe5 *./tests/data/vsynth2/y41p.avi
+ 7610060 ./tests/data/vsynth2/y41p.avi
+0e0996e1d8b62f02af91fabb3c0a6f76 *./tests/data/y41p.vsynth2.out.yuv
+stddev: 9.87 PSNR: 28.24 MAXDIFF: 61 bytes: 7603200/ 7603200
OpenPOWER on IntegriCloud