On 22.06.2015 14:59, Michael Niedermayer wrote:
On Mon, Jun 22, 2015 at 09:38:43AM +0200, Tobias Rapp wrote:
Attached patch adds some FATE tests for FFV1 level 3 with different
bits-per-sample.

  fate/vcodec.mak                      |    6 +++++-
  ref/vsynth/vsynth1-ffv1.3-420        |    4 ++++
  ref/vsynth/vsynth1-ffv1.3-422p10     |    4 ++++
  ref/vsynth/vsynth1-ffv1.3-444p16     |    4 ++++
  ref/vsynth/vsynth1-ffv1.3-bgr        |    4 ++++
  ref/vsynth/vsynth2-ffv1.3-420        |    4 ++++
  ref/vsynth/vsynth2-ffv1.3-422p10     |    4 ++++
  ref/vsynth/vsynth2-ffv1.3-444p16     |    4 ++++
  ref/vsynth/vsynth2-ffv1.3-bgr        |    4 ++++
  ref/vsynth/vsynth3-ffv1.3-420        |    4 ++++
  ref/vsynth/vsynth3-ffv1.3-422p10     |    4 ++++
  ref/vsynth/vsynth3-ffv1.3-444p16     |    4 ++++
  ref/vsynth/vsynth3-ffv1.3-bgr        |    4 ++++
  ref/vsynth/vsynth_lena-ffv1.3-420    |    4 ++++
  ref/vsynth/vsynth_lena-ffv1.3-422p10 |    4 ++++
  ref/vsynth/vsynth_lena-ffv1.3-444p16 |    4 ++++
  ref/vsynth/vsynth_lena-ffv1.3-bgr    |    4 ++++
  17 files changed, 69 insertions(+), 1 deletion(-)
09d8d05b6b5cded64fc6e6698e503584daad057c  
0001-fate-add-some-tests-for-ffv1-level-3-with-8-10-16-bp.patch
 From aee3721703e8530bb71f85daf4b4438ed170f612 Mon Sep 17 00:00:00 2001
From: Tobias Rapp <t.r...@noa-audio.com>
Date: Fri, 19 Jun 2015 14:30:27 +0200
Subject: [PATCH] fate: add some tests for ffv1 level 3 with 8/10/16 bps

fails on MIPS
you are possibly missing some swscale bitexact flag or something



Attached a new version of the patch with "-sws_flags neighbor+bitexact" added to 10/16 bit YUV and RGB. Looking at fate-run.sh the bitexact flag might be redundant, though.

Noticed that the stddev of all YUV output files is 0.00 now (but not for RGB).

Regards,
Tobias
>From 0ac4ba5ea07c8cb168ba3ff23b0f30d86b25cef8 Mon Sep 17 00:00:00 2001
From: Tobias Rapp <t.r...@noa-audio.com>
Date: Fri, 19 Jun 2015 14:30:27 +0200
Subject: [PATCH] fate: add some tests for ffv1 level 3 with 8/10/16 bps

---
 tests/fate/vcodec.mak                      | 12 +++++++++++-
 tests/ref/vsynth/vsynth1-ffv1.3-420        |  4 ++++
 tests/ref/vsynth/vsynth1-ffv1.3-422p10     |  4 ++++
 tests/ref/vsynth/vsynth1-ffv1.3-444p16     |  4 ++++
 tests/ref/vsynth/vsynth1-ffv1.3-bgr        |  4 ++++
 tests/ref/vsynth/vsynth2-ffv1.3-420        |  4 ++++
 tests/ref/vsynth/vsynth2-ffv1.3-422p10     |  4 ++++
 tests/ref/vsynth/vsynth2-ffv1.3-444p16     |  4 ++++
 tests/ref/vsynth/vsynth2-ffv1.3-bgr        |  4 ++++
 tests/ref/vsynth/vsynth3-ffv1.3-420        |  4 ++++
 tests/ref/vsynth/vsynth3-ffv1.3-422p10     |  4 ++++
 tests/ref/vsynth/vsynth3-ffv1.3-444p16     |  4 ++++
 tests/ref/vsynth/vsynth3-ffv1.3-bgr        |  4 ++++
 tests/ref/vsynth/vsynth_lena-ffv1.3-420    |  4 ++++
 tests/ref/vsynth/vsynth_lena-ffv1.3-422p10 |  4 ++++
 tests/ref/vsynth/vsynth_lena-ffv1.3-444p16 |  4 ++++
 tests/ref/vsynth/vsynth_lena-ffv1.3-bgr    |  4 ++++
 17 files changed, 75 insertions(+), 1 deletion(-)
 create mode 100644 tests/ref/vsynth/vsynth1-ffv1.3-420
 create mode 100644 tests/ref/vsynth/vsynth1-ffv1.3-422p10
 create mode 100644 tests/ref/vsynth/vsynth1-ffv1.3-444p16
 create mode 100644 tests/ref/vsynth/vsynth1-ffv1.3-bgr
 create mode 100644 tests/ref/vsynth/vsynth2-ffv1.3-420
 create mode 100644 tests/ref/vsynth/vsynth2-ffv1.3-422p10
 create mode 100644 tests/ref/vsynth/vsynth2-ffv1.3-444p16
 create mode 100644 tests/ref/vsynth/vsynth2-ffv1.3-bgr
 create mode 100644 tests/ref/vsynth/vsynth3-ffv1.3-420
 create mode 100644 tests/ref/vsynth/vsynth3-ffv1.3-422p10
 create mode 100644 tests/ref/vsynth/vsynth3-ffv1.3-444p16
 create mode 100644 tests/ref/vsynth/vsynth3-ffv1.3-bgr
 create mode 100644 tests/ref/vsynth/vsynth_lena-ffv1.3-420
 create mode 100644 tests/ref/vsynth/vsynth_lena-ffv1.3-422p10
 create mode 100644 tests/ref/vsynth/vsynth_lena-ffv1.3-444p16
 create mode 100644 tests/ref/vsynth/vsynth_lena-ffv1.3-bgr

diff --git a/tests/fate/vcodec.mak b/tests/fate/vcodec.mak
index 1ad5e96..f282d1c 100644
--- a/tests/fate/vcodec.mak
+++ b/tests/fate/vcodec.mak
@@ -68,9 +68,19 @@ fate-vsynth%-dv-50:              ENCOPTS = -dct int -s pal -pix_fmt yuv422p \
 fate-vsynth%-dv-50:              DECOPTS = -sws_flags neighbor
 fate-vsynth%-dv-50:              FMT     = dv
 
-FATE_VCODEC-$(call ENCDEC, FFV1, AVI)   += ffv1 ffv1.0
+FATE_VCODEC-$(call ENCDEC, FFV1, AVI)   += ffv1 ffv1.0 ffv1.3-420 ffv1.3-422p10 ffv1.3-444p16 ffv1.3-bgr
 fate-vsynth%-ffv1:               ENCOPTS = -slices 4
 fate-vsynth%-ffv1.0:             CODEC   = ffv1
+fate-vsynth%-ffv1.3-420:         ENCOPTS = -vcodec ffv1 -level 3 -pix_fmt yuv420p
+fate-vsynth%-ffv1.3-422p10:      ENCOPTS = -vcodec ffv1 -level 3 -pix_fmt yuv422p10le \
+                                           -sws_flags neighbor+bitexact
+fate-vsynth%-ffv1.3-422p10:      DECOPTS = -sws_flags neighbor+bitexact
+fate-vsynth%-ffv1.3-444p16:      ENCOPTS = -vcodec ffv1 -level 3 -pix_fmt yuv444p16le \
+                                           -sws_flags neighbor+bitexact
+fate-vsynth%-ffv1.3-444p16:      DECOPTS = -sws_flags neighbor+bitexact
+fate-vsynth%-ffv1.3-bgr:         ENCOPTS = -vcodec ffv1 -level 3 -pix_fmt bgr0 \
+                                           -sws_flags neighbor+bitexact
+fate-vsynth%-ffv1.3-bgr:         DECOPTS = -sws_flags neighbor+bitexact
 
 FATE_VCODEC-$(call ENCDEC, FFVHUFF, AVI) += ffvhuff ffvhuff444 ffvhuff420p12 ffvhuff422p10left ffvhuff444p16
 fate-vsynth%-ffvhuff444:         ENCOPTS = -vcodec ffvhuff -pix_fmt yuv444p
diff --git a/tests/ref/vsynth/vsynth1-ffv1.3-420 b/tests/ref/vsynth/vsynth1-ffv1.3-420
new file mode 100644
index 0000000..08c5764
--- /dev/null
+++ b/tests/ref/vsynth/vsynth1-ffv1.3-420
@@ -0,0 +1,4 @@
+26b1296a0ef80a3b5c8b63cc57c52bc2 *tests/data/fate/vsynth1-ffv1.3-420.avi
+2691268 tests/data/fate/vsynth1-ffv1.3-420.avi
+c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-ffv1.3-420.out.rawvideo
+stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-ffv1.3-422p10 b/tests/ref/vsynth/vsynth1-ffv1.3-422p10
new file mode 100644
index 0000000..eecef94
--- /dev/null
+++ b/tests/ref/vsynth/vsynth1-ffv1.3-422p10
@@ -0,0 +1,4 @@
+aa8c5630213381c7b2afdec4a91405ed *tests/data/fate/vsynth1-ffv1.3-422p10.avi
+2845574 tests/data/fate/vsynth1-ffv1.3-422p10.avi
+c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-ffv1.3-422p10.out.rawvideo
+stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-ffv1.3-444p16 b/tests/ref/vsynth/vsynth1-ffv1.3-444p16
new file mode 100644
index 0000000..9f6ecba
--- /dev/null
+++ b/tests/ref/vsynth/vsynth1-ffv1.3-444p16
@@ -0,0 +1,4 @@
+f6b6943455d8b2c3010ff898df5dc9db *tests/data/fate/vsynth1-ffv1.3-444p16.avi
+5357816 tests/data/fate/vsynth1-ffv1.3-444p16.avi
+c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-ffv1.3-444p16.out.rawvideo
+stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-ffv1.3-bgr b/tests/ref/vsynth/vsynth1-ffv1.3-bgr
new file mode 100644
index 0000000..d76fe9e
--- /dev/null
+++ b/tests/ref/vsynth/vsynth1-ffv1.3-bgr
@@ -0,0 +1,4 @@
+3c68357b239479fc26656f6dd76b0b58 *tests/data/fate/vsynth1-ffv1.3-bgr.avi
+6883176 tests/data/fate/vsynth1-ffv1.3-bgr.avi
+49c03ab1b73b7cd3cabc3c77a9479c9e *tests/data/fate/vsynth1-ffv1.3-bgr.out.rawvideo
+stddev:    3.16 PSNR: 38.12 MAXDIFF:   50 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-ffv1.3-420 b/tests/ref/vsynth/vsynth2-ffv1.3-420
new file mode 100644
index 0000000..9490778
--- /dev/null
+++ b/tests/ref/vsynth/vsynth2-ffv1.3-420
@@ -0,0 +1,4 @@
+6d7b6352f49e21153bb891df411e60ec *tests/data/fate/vsynth2-ffv1.3-420.avi
+3718026 tests/data/fate/vsynth2-ffv1.3-420.avi
+36d7ca943916e1743cefa609eba0205c *tests/data/fate/vsynth2-ffv1.3-420.out.rawvideo
+stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-ffv1.3-422p10 b/tests/ref/vsynth/vsynth2-ffv1.3-422p10
new file mode 100644
index 0000000..0e3f342
--- /dev/null
+++ b/tests/ref/vsynth/vsynth2-ffv1.3-422p10
@@ -0,0 +1,4 @@
+b43b20163948e44a6c806714e69ac3bf *tests/data/fate/vsynth2-ffv1.3-422p10.avi
+4069370 tests/data/fate/vsynth2-ffv1.3-422p10.avi
+36d7ca943916e1743cefa609eba0205c *tests/data/fate/vsynth2-ffv1.3-422p10.out.rawvideo
+stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-ffv1.3-444p16 b/tests/ref/vsynth/vsynth2-ffv1.3-444p16
new file mode 100644
index 0000000..f3578cc
--- /dev/null
+++ b/tests/ref/vsynth/vsynth2-ffv1.3-444p16
@@ -0,0 +1,4 @@
+ae0bad7ece3ceacc9554f342ab489a4d *tests/data/fate/vsynth2-ffv1.3-444p16.avi
+5086918 tests/data/fate/vsynth2-ffv1.3-444p16.avi
+36d7ca943916e1743cefa609eba0205c *tests/data/fate/vsynth2-ffv1.3-444p16.out.rawvideo
+stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-ffv1.3-bgr b/tests/ref/vsynth/vsynth2-ffv1.3-bgr
new file mode 100644
index 0000000..3684bd4
--- /dev/null
+++ b/tests/ref/vsynth/vsynth2-ffv1.3-bgr
@@ -0,0 +1,4 @@
+4e8ea4c31ddb7703638989c6251e37fe *tests/data/fate/vsynth2-ffv1.3-bgr.avi
+6386312 tests/data/fate/vsynth2-ffv1.3-bgr.avi
+835a86f8dff88917c3e5f2776954c5b7 *tests/data/fate/vsynth2-ffv1.3-bgr.out.rawvideo
+stddev:    1.57 PSNR: 44.18 MAXDIFF:   20 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth3-ffv1.3-420 b/tests/ref/vsynth/vsynth3-ffv1.3-420
new file mode 100644
index 0000000..99bfd66
--- /dev/null
+++ b/tests/ref/vsynth/vsynth3-ffv1.3-420
@@ -0,0 +1,4 @@
+f969ca8542c8384c27233f362b661f8a *tests/data/fate/vsynth3-ffv1.3-420.avi
+62194 tests/data/fate/vsynth3-ffv1.3-420.avi
+a038ad7c3c09f776304ef7accdea9c74 *tests/data/fate/vsynth3-ffv1.3-420.out.rawvideo
+stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-ffv1.3-422p10 b/tests/ref/vsynth/vsynth3-ffv1.3-422p10
new file mode 100644
index 0000000..fb69234
--- /dev/null
+++ b/tests/ref/vsynth/vsynth3-ffv1.3-422p10
@@ -0,0 +1,4 @@
+4fc113caac00ada68e19639ae6f7bc47 *tests/data/fate/vsynth3-ffv1.3-422p10.avi
+63840 tests/data/fate/vsynth3-ffv1.3-422p10.avi
+a038ad7c3c09f776304ef7accdea9c74 *tests/data/fate/vsynth3-ffv1.3-422p10.out.rawvideo
+stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-ffv1.3-444p16 b/tests/ref/vsynth/vsynth3-ffv1.3-444p16
new file mode 100644
index 0000000..fa8377c
--- /dev/null
+++ b/tests/ref/vsynth/vsynth3-ffv1.3-444p16
@@ -0,0 +1,4 @@
+1e8981cec92407938b25cd82381d1c64 *tests/data/fate/vsynth3-ffv1.3-444p16.avi
+82908 tests/data/fate/vsynth3-ffv1.3-444p16.avi
+a038ad7c3c09f776304ef7accdea9c74 *tests/data/fate/vsynth3-ffv1.3-444p16.out.rawvideo
+stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-ffv1.3-bgr b/tests/ref/vsynth/vsynth3-ffv1.3-bgr
new file mode 100644
index 0000000..af89d15
--- /dev/null
+++ b/tests/ref/vsynth/vsynth3-ffv1.3-bgr
@@ -0,0 +1,4 @@
+bdb5f694222e91bb7cb7264d2d5d419b *tests/data/fate/vsynth3-ffv1.3-bgr.avi
+112780 tests/data/fate/vsynth3-ffv1.3-bgr.avi
+5d031d2e891b13593b8cd79e63d083b4 *tests/data/fate/vsynth3-ffv1.3-bgr.out.rawvideo
+stddev:    3.23 PSNR: 37.92 MAXDIFF:   50 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth_lena-ffv1.3-420 b/tests/ref/vsynth/vsynth_lena-ffv1.3-420
new file mode 100644
index 0000000..db00ba1
--- /dev/null
+++ b/tests/ref/vsynth/vsynth_lena-ffv1.3-420
@@ -0,0 +1,4 @@
+ed72c22374718589ffacd7ea15424687 *tests/data/fate/vsynth_lena-ffv1.3-420.avi
+3547792 tests/data/fate/vsynth_lena-ffv1.3-420.avi
+dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth_lena-ffv1.3-420.out.rawvideo
+stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-ffv1.3-422p10 b/tests/ref/vsynth/vsynth_lena-ffv1.3-422p10
new file mode 100644
index 0000000..c5e3986
--- /dev/null
+++ b/tests/ref/vsynth/vsynth_lena-ffv1.3-422p10
@@ -0,0 +1,4 @@
+cd3f5b3d4544a30bd08a9a11945a8adc *tests/data/fate/vsynth_lena-ffv1.3-422p10.avi
+3910306 tests/data/fate/vsynth_lena-ffv1.3-422p10.avi
+dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth_lena-ffv1.3-422p10.out.rawvideo
+stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-ffv1.3-444p16 b/tests/ref/vsynth/vsynth_lena-ffv1.3-444p16
new file mode 100644
index 0000000..22fb79e
--- /dev/null
+++ b/tests/ref/vsynth/vsynth_lena-ffv1.3-444p16
@@ -0,0 +1,4 @@
+e65ad01440ad756b1872b22d3cfa23d7 *tests/data/fate/vsynth_lena-ffv1.3-444p16.avi
+4871266 tests/data/fate/vsynth_lena-ffv1.3-444p16.avi
+dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth_lena-ffv1.3-444p16.out.rawvideo
+stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-ffv1.3-bgr b/tests/ref/vsynth/vsynth_lena-ffv1.3-bgr
new file mode 100644
index 0000000..5c0993f
--- /dev/null
+++ b/tests/ref/vsynth/vsynth_lena-ffv1.3-bgr
@@ -0,0 +1,4 @@
+edf0987619d4d63f8b7e3022a8d0a724 *tests/data/fate/vsynth_lena-ffv1.3-bgr.avi
+6013028 tests/data/fate/vsynth_lena-ffv1.3-bgr.avi
+0a8b7ddfec03622e37c869c5b552f9fc *tests/data/fate/vsynth_lena-ffv1.3-bgr.out.rawvideo
+stddev:    1.24 PSNR: 46.26 MAXDIFF:   17 bytes:  7603200/  7603200
-- 
1.9.1


_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to