From 0f11d76d4cfdcb954b6d9252096cf64b3d8c6e47 Mon Sep 17 00:00:00 2001
From: Martin Vignali <martin.vignali@gmail.com>
Date: Sat, 23 Feb 2019 19:05:34 +0100
Subject: [PATCH] fate/proresenc_aw : add test for interlace and 444  encoding

---
 tests/fate/vcodec.mak                       | 14 +++++++++++++-
 tests/ref/vsynth/vsynth1-prores_444         |  4 ++++
 tests/ref/vsynth/vsynth1-prores_444_int     |  4 ++++
 tests/ref/vsynth/vsynth1-prores_int         |  4 ++++
 tests/ref/vsynth/vsynth2-prores_444         |  4 ++++
 tests/ref/vsynth/vsynth2-prores_444_int     |  4 ++++
 tests/ref/vsynth/vsynth2-prores_int         |  4 ++++
 tests/ref/vsynth/vsynth3-prores_444         |  4 ++++
 tests/ref/vsynth/vsynth3-prores_444_int     |  4 ++++
 tests/ref/vsynth/vsynth3-prores_int         |  4 ++++
 tests/ref/vsynth/vsynth_lena-prores_444     |  4 ++++
 tests/ref/vsynth/vsynth_lena-prores_444_int |  4 ++++
 tests/ref/vsynth/vsynth_lena-prores_int     |  4 ++++
 13 files changed, 61 insertions(+), 1 deletion(-)
 create mode 100644 tests/ref/vsynth/vsynth1-prores_444
 create mode 100644 tests/ref/vsynth/vsynth1-prores_444_int
 create mode 100644 tests/ref/vsynth/vsynth1-prores_int
 create mode 100644 tests/ref/vsynth/vsynth2-prores_444
 create mode 100644 tests/ref/vsynth/vsynth2-prores_444_int
 create mode 100644 tests/ref/vsynth/vsynth2-prores_int
 create mode 100644 tests/ref/vsynth/vsynth3-prores_444
 create mode 100644 tests/ref/vsynth/vsynth3-prores_444_int
 create mode 100644 tests/ref/vsynth/vsynth3-prores_int
 create mode 100644 tests/ref/vsynth/vsynth_lena-prores_444
 create mode 100644 tests/ref/vsynth/vsynth_lena-prores_444_int
 create mode 100644 tests/ref/vsynth/vsynth_lena-prores_int

diff --git a/tests/fate/vcodec.mak b/tests/fate/vcodec.mak
index da6da9e09b..2705d2227a 100644
--- a/tests/fate/vcodec.mak
+++ b/tests/fate/vcodec.mak
@@ -336,9 +336,21 @@ fate-vsynth%-mpng:               CODEC   = png
 
 FATE_VCODEC-$(call ENCDEC, MSVIDEO1, AVI) += msvideo1
 
-FATE_VCODEC-$(call ENCDEC, PRORES, MOV) += prores prores_ks
+FATE_VCODEC-$(call ENCDEC, PRORES, MOV) += prores prores_int prores_444 prores_444_int prores_ks
 fate-vsynth%-prores:             FMT     = mov
 
+fate-vsynth%-prores_int:         CODEC   = prores
+fate-vsynth%-prores_int:         ENCOPTS = -flags +ildct
+fate-vsynth%-prores_int:         FMT     = mov
+
+fate-vsynth%-prores_444:         CODEC   = prores
+fate-vsynth%-prores_444:         ENCOPTS = -pix_fmt yuv444p10
+fate-vsynth%-prores_444:         FMT     = mov
+
+fate-vsynth%-prores_444_int:     CODEC   = prores
+fate-vsynth%-prores_444_int:     ENCOPTS = -pix_fmt yuv444p10 -flags +ildct
+fate-vsynth%-prores_444_int:     FMT     = mov
+
 fate-vsynth%-prores_ks:          ENCOPTS = -profile hq
 fate-vsynth%-prores_ks:          FMT     = mov
 
diff --git a/tests/ref/vsynth/vsynth1-prores_444 b/tests/ref/vsynth/vsynth1-prores_444
new file mode 100644
index 0000000000..2f064d624d
--- /dev/null
+++ b/tests/ref/vsynth/vsynth1-prores_444
@@ -0,0 +1,4 @@
+48b30df581b35bf3ce1bc335327323a6 *tests/data/fate/vsynth1-prores_444.mov
+7778954 tests/data/fate/vsynth1-prores_444.mov
+e0da52b5d58171294d1b299539801ae0 *tests/data/fate/vsynth1-prores_444.out.rawvideo
+stddev:    2.80 PSNR: 39.17 MAXDIFF:   44 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-prores_444_int b/tests/ref/vsynth/vsynth1-prores_444_int
new file mode 100644
index 0000000000..db0d42f7cd
--- /dev/null
+++ b/tests/ref/vsynth/vsynth1-prores_444_int
@@ -0,0 +1,4 @@
+4fc38d6a1c3171f23713c24b1342a592 *tests/data/fate/vsynth1-prores_444_int.mov
+9940947 tests/data/fate/vsynth1-prores_444_int.mov
+732ceeb6887524e0aee98762fe50578b *tests/data/fate/vsynth1-prores_444_int.out.rawvideo
+stddev:    2.83 PSNR: 39.08 MAXDIFF:   45 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-prores_int b/tests/ref/vsynth/vsynth1-prores_int
new file mode 100644
index 0000000000..470174559a
--- /dev/null
+++ b/tests/ref/vsynth/vsynth1-prores_int
@@ -0,0 +1,4 @@
+c2e40555435e717dd24be0430b8c0cdf *tests/data/fate/vsynth1-prores_int.mov
+6308688 tests/data/fate/vsynth1-prores_int.mov
+164a4ca890695cf594293d1acec9463c *tests/data/fate/vsynth1-prores_int.out.rawvideo
+stddev:    2.66 PSNR: 39.62 MAXDIFF:   34 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-prores_444 b/tests/ref/vsynth/vsynth2-prores_444
new file mode 100644
index 0000000000..513caaacc2
--- /dev/null
+++ b/tests/ref/vsynth/vsynth2-prores_444
@@ -0,0 +1,4 @@
+cdea76066b82eed873462c2da908a8a0 *tests/data/fate/vsynth2-prores_444.mov
+5219722 tests/data/fate/vsynth2-prores_444.mov
+e425b6af7afa51b5e64fc529528b3691 *tests/data/fate/vsynth2-prores_444.out.rawvideo
+stddev:    0.88 PSNR: 49.18 MAXDIFF:   14 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-prores_444_int b/tests/ref/vsynth/vsynth2-prores_444_int
new file mode 100644
index 0000000000..bce8277b3c
--- /dev/null
+++ b/tests/ref/vsynth/vsynth2-prores_444_int
@@ -0,0 +1,4 @@
+4043270721dafd28c1cfa176a1c6916a *tests/data/fate/vsynth2-prores_444_int.mov
+6420787 tests/data/fate/vsynth2-prores_444_int.mov
+33a5db4f0423168d4ae4f1db3610928e *tests/data/fate/vsynth2-prores_444_int.out.rawvideo
+stddev:    0.93 PSNR: 48.73 MAXDIFF:   14 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-prores_int b/tests/ref/vsynth/vsynth2-prores_int
new file mode 100644
index 0000000000..48a419b9bc
--- /dev/null
+++ b/tests/ref/vsynth/vsynth2-prores_int
@@ -0,0 +1,4 @@
+9fef0da9e53a028e81545cf81ec2c3e7 *tests/data/fate/vsynth2-prores_int.mov
+4070996 tests/data/fate/vsynth2-prores_int.mov
+bef9e38387a1fbb1ce2e4401b6d41674 *tests/data/fate/vsynth2-prores_int.out.rawvideo
+stddev:    1.54 PSNR: 44.37 MAXDIFF:   13 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth3-prores_444 b/tests/ref/vsynth/vsynth3-prores_444
new file mode 100644
index 0000000000..78ca0dd68a
--- /dev/null
+++ b/tests/ref/vsynth/vsynth3-prores_444
@@ -0,0 +1,4 @@
+3319da492e560964bf92440a0d8612b3 *tests/data/fate/vsynth3-prores_444.mov
+159127 tests/data/fate/vsynth3-prores_444.mov
+025b48feb3d9a9652983ef71e6cb7e7c *tests/data/fate/vsynth3-prores_444.out.rawvideo
+stddev:    3.21 PSNR: 37.98 MAXDIFF:   41 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-prores_444_int b/tests/ref/vsynth/vsynth3-prores_444_int
new file mode 100644
index 0000000000..f75f464100
--- /dev/null
+++ b/tests/ref/vsynth/vsynth3-prores_444_int
@@ -0,0 +1,4 @@
+7545847af47cc52059a47d1018d3ee55 *tests/data/fate/vsynth3-prores_444_int.mov
+215553 tests/data/fate/vsynth3-prores_444_int.mov
+5bfc7730a33163a9900d591a1ba0a090 *tests/data/fate/vsynth3-prores_444_int.out.rawvideo
+stddev:    9.99 PSNR: 28.14 MAXDIFF:  242 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-prores_int b/tests/ref/vsynth/vsynth3-prores_int
new file mode 100644
index 0000000000..85aaf27d48
--- /dev/null
+++ b/tests/ref/vsynth/vsynth3-prores_int
@@ -0,0 +1,4 @@
+264713812dba67134321546191e04d20 *tests/data/fate/vsynth3-prores_int.mov
+140180 tests/data/fate/vsynth3-prores_int.mov
+0d5b3eb01390b7bfcff050c7c8de931e *tests/data/fate/vsynth3-prores_int.out.rawvideo
+stddev:    9.96 PSNR: 28.16 MAXDIFF:  242 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth_lena-prores_444 b/tests/ref/vsynth/vsynth_lena-prores_444
new file mode 100644
index 0000000000..2aac93f4fb
--- /dev/null
+++ b/tests/ref/vsynth/vsynth_lena-prores_444
@@ -0,0 +1,4 @@
+9df5b55d8545ff162414499530749808 *tests/data/fate/vsynth_lena-prores_444.mov
+4734395 tests/data/fate/vsynth_lena-prores_444.mov
+a704e05e3e0a451edef7515b25a76bb8 *tests/data/fate/vsynth_lena-prores_444.out.rawvideo
+stddev:    0.81 PSNR: 49.88 MAXDIFF:    8 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-prores_444_int b/tests/ref/vsynth/vsynth_lena-prores_444_int
new file mode 100644
index 0000000000..378b57d04d
--- /dev/null
+++ b/tests/ref/vsynth/vsynth_lena-prores_444_int
@@ -0,0 +1,4 @@
+02400504ef9b76cc58e8d964b9dd40a3 *tests/data/fate/vsynth_lena-prores_444_int.mov
+5696258 tests/data/fate/vsynth_lena-prores_444_int.mov
+466380156e4d2b811f4ffb9c5a8bca72 *tests/data/fate/vsynth_lena-prores_444_int.out.rawvideo
+stddev:    0.88 PSNR: 49.23 MAXDIFF:    9 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-prores_int b/tests/ref/vsynth/vsynth_lena-prores_int
new file mode 100644
index 0000000000..bd6adaf211
--- /dev/null
+++ b/tests/ref/vsynth/vsynth_lena-prores_int
@@ -0,0 +1,4 @@
+5fada1996c2937546d11fda8b1e02188 *tests/data/fate/vsynth_lena-prores_int.mov
+3532698 tests/data/fate/vsynth_lena-prores_int.mov
+eb5caa9824ca294f403cd13f33c40f23 *tests/data/fate/vsynth_lena-prores_int.out.rawvideo
+stddev:    1.47 PSNR: 44.78 MAXDIFF:   12 bytes:  7603200/  7603200
-- 
2.17.2 (Apple Git-113)

