[FFmpeg-devel,2/2] fate: add yuv422p12 median prediction ffhuff test

Submitted by James Almer on Dec. 26, 2016, 2:59 a.m.

Details

Message ID 20161226025938.6660-2-jamrial@gmail.com
State New
Headers show

Commit Message

James Almer Dec. 26, 2016, 2:59 a.m.
Signed-off-by: James Almer <jamrial@gmail.com>
---
The bug fixed by the previous patch can be also reproduced using yuv422p10.

 tests/fate/vcodec.mak                            | 3 ++-
 tests/ref/vsynth/vsynth1-ffvhuff422p12median     | 4 ++++
 tests/ref/vsynth/vsynth2-ffvhuff422p12median     | 4 ++++
 tests/ref/vsynth/vsynth3-ffvhuff422p12median     | 4 ++++
 tests/ref/vsynth/vsynth_lena-ffvhuff422p12median | 4 ++++
 5 files changed, 18 insertions(+), 1 deletion(-)
 create mode 100644 tests/ref/vsynth/vsynth1-ffvhuff422p12median
 create mode 100644 tests/ref/vsynth/vsynth2-ffvhuff422p12median
 create mode 100644 tests/ref/vsynth/vsynth3-ffvhuff422p12median
 create mode 100644 tests/ref/vsynth/vsynth_lena-ffvhuff422p12median

Patch hide | download patch | download mbox

diff --git a/tests/fate/vcodec.mak b/tests/fate/vcodec.mak
index a51f16c..b2ab09d 100644
--- a/tests/fate/vcodec.mak
+++ b/tests/fate/vcodec.mak
@@ -163,10 +163,11 @@  fate-vsynth%-ffv1-v3-rgb48:      ENCOPTS = -level 3 -pix_fmt rgb48 -strict -2 \
                                            -sws_flags neighbor+bitexact
 fate-vsynth%-ffv1-v3-rgb48:      DECOPTS = -sws_flags neighbor+bitexact
 
-FATE_VCODEC-$(call ENCDEC, FFVHUFF, AVI) += ffvhuff ffvhuff444 ffvhuff420p12 ffvhuff422p10left ffvhuff444p16
+FATE_VCODEC-$(call ENCDEC, FFVHUFF, AVI) += ffvhuff ffvhuff444 ffvhuff420p12 ffvhuff422p10left ffvhuff422p12median ffvhuff444p16
 fate-vsynth%-ffvhuff444:         ENCOPTS = -vcodec ffvhuff -pix_fmt yuv444p
 fate-vsynth%-ffvhuff420p12:      ENCOPTS = -vcodec ffvhuff -pix_fmt yuv420p12le
 fate-vsynth%-ffvhuff422p10left:  ENCOPTS = -vcodec ffvhuff -pix_fmt yuv422p10le -pred left
+fate-vsynth%-ffvhuff422p12median:ENCOPTS = -vcodec ffvhuff -pix_fmt yuv422p12le -pred median
 fate-vsynth%-ffvhuff444p16:      ENCOPTS = -vcodec ffvhuff -pix_fmt yuv444p16le -pred plane
 
 FATE_VCODEC-$(call ENCDEC, FLASHSV, FLV) += flashsv
diff --git a/tests/ref/vsynth/vsynth1-ffvhuff422p12median b/tests/ref/vsynth/vsynth1-ffvhuff422p12median
new file mode 100644
index 0000000..00fbb42
--- /dev/null
+++ b/tests/ref/vsynth/vsynth1-ffvhuff422p12median
@@ -0,0 +1,4 @@ 
+ec0bfc1827c605744343f9a43950e52d *tests/data/fate/vsynth1-ffvhuff422p12median.avi
+16377468 tests/data/fate/vsynth1-ffvhuff422p12median.avi
+30158648597626fcd62e4d484ab3c91f *tests/data/fate/vsynth1-ffvhuff422p12median.out.rawvideo
+stddev:    1.84 PSNR: 42.80 MAXDIFF:   29 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-ffvhuff422p12median b/tests/ref/vsynth/vsynth2-ffvhuff422p12median
new file mode 100644
index 0000000..6e28101
--- /dev/null
+++ b/tests/ref/vsynth/vsynth2-ffvhuff422p12median
@@ -0,0 +1,4 @@ 
+7f5d06ee194e0d11af7c074513713a9e *tests/data/fate/vsynth2-ffvhuff422p12median.avi
+12300372 tests/data/fate/vsynth2-ffvhuff422p12median.avi
+a2a42106efee207fd76b32908d05bd5c *tests/data/fate/vsynth2-ffvhuff422p12median.out.rawvideo
+stddev:    0.39 PSNR: 56.23 MAXDIFF:    9 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth3-ffvhuff422p12median b/tests/ref/vsynth/vsynth3-ffvhuff422p12median
new file mode 100644
index 0000000..6203520
--- /dev/null
+++ b/tests/ref/vsynth/vsynth3-ffvhuff422p12median
@@ -0,0 +1,4 @@ 
+f150723812124a617abeeb162c0cc106 *tests/data/fate/vsynth3-ffvhuff422p12median.avi
+203188 tests/data/fate/vsynth3-ffvhuff422p12median.avi
+975a9ed50959f5997874c8b2860519a3 *tests/data/fate/vsynth3-ffvhuff422p12median.out.rawvideo
+stddev:    2.12 PSNR: 41.59 MAXDIFF:   26 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth_lena-ffvhuff422p12median b/tests/ref/vsynth/vsynth_lena-ffvhuff422p12median
new file mode 100644
index 0000000..65b20a5
--- /dev/null
+++ b/tests/ref/vsynth/vsynth_lena-ffvhuff422p12median
@@ -0,0 +1,4 @@ 
+8366a0f7a1b87774d5b1fdfdcf9ced73 *tests/data/fate/vsynth_lena-ffvhuff422p12median.avi
+12182440 tests/data/fate/vsynth_lena-ffvhuff422p12median.avi
+5f581c9df94c98eca3297c33eb8271e7 *tests/data/fate/vsynth_lena-ffvhuff422p12median.out.rawvideo
+stddev:    0.33 PSNR: 57.53 MAXDIFF:    6 bytes:  7603200/  7603200