[FFmpeg-devel] [PATCH] fate: add tests for stereo3d filter

Paul B Mahol onemda at gmail.com
Fri May 17 18:17:16 CEST 2013


Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 tests/fate/filter-video.mak              | 26 ++++++++++++++++++++++++++
 tests/ref/fate/filter-stereo3d-abr-ml    |  6 ++++++
 tests/ref/fate/filter-stereo3d-abr-mr    |  6 ++++++
 tests/ref/fate/filter-stereo3d-al-sbsl   |  6 ++++++
 tests/ref/fate/filter-stereo3d-ar-abl    |  6 ++++++
 tests/ref/fate/filter-stereo3d-sbsl-abl  |  6 ++++++
 tests/ref/fate/filter-stereo3d-sbsl-abr  |  6 ++++++
 tests/ref/fate/filter-stereo3d-sbsl-al   |  6 ++++++
 tests/ref/fate/filter-stereo3d-sbsl-sbsr |  6 ++++++
 9 files changed, 74 insertions(+)
 create mode 100644 tests/ref/fate/filter-stereo3d-abr-ml
 create mode 100644 tests/ref/fate/filter-stereo3d-abr-mr
 create mode 100644 tests/ref/fate/filter-stereo3d-al-sbsl
 create mode 100644 tests/ref/fate/filter-stereo3d-ar-abl
 create mode 100644 tests/ref/fate/filter-stereo3d-sbsl-abl
 create mode 100644 tests/ref/fate/filter-stereo3d-sbsl-abr
 create mode 100644 tests/ref/fate/filter-stereo3d-sbsl-al
 create mode 100644 tests/ref/fate/filter-stereo3d-sbsl-sbsr

diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index 2df9cc8..c2296e9 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -186,6 +186,32 @@ fate-filter-setdar: CMD = video_filter "setdar=dar=16/9"
 FATE_FILTER_VSYNTH-$(CONFIG_SETSAR_FILTER) += fate-filter-setsar
 fate-filter-setsar: CMD = video_filter "setsar=sar=16/11"
 
+FATE_STEREO3D += fate-filter-stereo3d-al-sbsl
+fate-filter-stereo3d-al-sbsl: CMD = framecrc -c:v pgmyuv -i $(SRC) -vframes 5 -vf stereo3d=al:sbsl
+
+FATE_STEREO3D += fate-filter-stereo3d-ar-abl
+fate-filter-stereo3d-ar-abl: CMD = framecrc -c:v pgmyuv -i $(SRC) -vframes 5 -vf stereo3d=ar:abl
+
+FATE_STEREO3D += fate-filter-stereo3d-abr-mr
+fate-filter-stereo3d-abr-mr: CMD = framecrc -c:v pgmyuv -i $(SRC) -vframes 5 -vf stereo3d=abr:mr
+
+FATE_STEREO3D += fate-filter-stereo3d-abr-ml
+fate-filter-stereo3d-abr-ml: CMD = framecrc -c:v pgmyuv -i $(SRC) -vframes 5 -vf stereo3d=abr:ml
+
+FATE_STEREO3D  += fate-filter-stereo3d-sbsl-abl
+fate-filter-stereo3d-sbsl-abl: CMD = framecrc -c:v pgmyuv -i $(SRC) -vframes 5 -vf stereo3d=sbsl:abl
+
+FATE_STEREO3D += fate-filter-stereo3d-sbsl-abr
+fate-filter-stereo3d-sbsl-abr: CMD = framecrc -c:v pgmyuv -i $(SRC) -vframes 5 -vf stereo3d=sbsl:abr
+
+FATE_STEREO3D += fate-filter-stereo3d-sbsl-al
+fate-filter-stereo3d-sbsl-al: CMD = framecrc -c:v pgmyuv -i $(SRC) -vframes 5 -vf stereo3d=sbsl:al
+
+FATE_STEREO3D += fate-filter-stereo3d-sbsl-sbsr
+fate-filter-stereo3d-sbsl-sbsr: CMD = framecrc -c:v pgmyuv -i $(SRC) -vframes 5 -vf stereo3d=sbsl:sbsr
+
+FATE_FILTER_VSYNTH-$(CONFIG_STEREO3D_FILTER) += $(FATE_STEREO3D)
+
 FATE_FILTER_VSYNTH-$(CONFIG_THUMBNAIL_FILTER) += fate-filter-thumbnail
 fate-filter-thumbnail: CMD = video_filter "thumbnail=10"
 
diff --git a/tests/ref/fate/filter-stereo3d-abr-ml b/tests/ref/fate/filter-stereo3d-abr-ml
new file mode 100644
index 0000000..1ed0fa1
--- /dev/null
+++ b/tests/ref/fate/filter-stereo3d-abr-ml
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+0,          0,          0,        1,   152064, 0x34769690
+0,          1,          1,        1,   152064, 0xd97fce5a
+0,          2,          2,        1,   152064, 0xbccdc588
+0,          3,          3,        1,   152064, 0xcef0ee1f
+0,          4,          4,        1,   152064, 0x801c76e8
diff --git a/tests/ref/fate/filter-stereo3d-abr-mr b/tests/ref/fate/filter-stereo3d-abr-mr
new file mode 100644
index 0000000..9b71774
--- /dev/null
+++ b/tests/ref/fate/filter-stereo3d-abr-mr
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+0,          0,          0,        1,   152064, 0x68905a2e
+0,          1,          1,        1,   152064, 0x52e6c8f6
+0,          2,          2,        1,   152064, 0x3aae8670
+0,          3,          3,        1,   152064, 0x8e0b3a3b
+0,          4,          4,        1,   152064, 0xb52a6c9e
diff --git a/tests/ref/fate/filter-stereo3d-al-sbsl b/tests/ref/fate/filter-stereo3d-al-sbsl
new file mode 100644
index 0000000..0ed2596
--- /dev/null
+++ b/tests/ref/fate/filter-stereo3d-al-sbsl
@@ -0,0 +1,6 @@
+#tb 0: 2/25
+0,          0,          0,        1,   608256, 0x09a9882c
+0,          1,          1,        1,   608256, 0xa6747470
+0,          2,          2,        1,   608256, 0x8c69aeeb
+0,          3,          3,        1,   608256, 0xa9d7e92e
+0,          4,          4,        1,   608256, 0xb1a875a5
diff --git a/tests/ref/fate/filter-stereo3d-ar-abl b/tests/ref/fate/filter-stereo3d-ar-abl
new file mode 100644
index 0000000..96cb337
--- /dev/null
+++ b/tests/ref/fate/filter-stereo3d-ar-abl
@@ -0,0 +1,6 @@
+#tb 0: 2/25
+0,          0,          0,        1,   608256, 0x925a882c
+0,          1,          1,        1,   608256, 0x3ff67470
+0,          2,          2,        1,   608256, 0x5d1aaeeb
+0,          3,          3,        1,   608256, 0x7e9ee92e
+0,          4,          4,        1,   608256, 0x368375a5
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-abl b/tests/ref/fate/filter-stereo3d-sbsl-abl
new file mode 100644
index 0000000..311b260
--- /dev/null
+++ b/tests/ref/fate/filter-stereo3d-sbsl-abl
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+0,          0,          0,        1,   304128, 0x0b37f0be
+0,          1,          1,        1,   304128, 0xc435975f
+0,          2,          2,        1,   304128, 0x6a3b4c07
+0,          3,          3,        1,   304128, 0x31ff2869
+0,          4,          4,        1,   304128, 0xb57ee386
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-abr b/tests/ref/fate/filter-stereo3d-sbsl-abr
new file mode 100644
index 0000000..a2828fc
--- /dev/null
+++ b/tests/ref/fate/filter-stereo3d-sbsl-abr
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+0,          0,          0,        1,   304128, 0xb8c2f0be
+0,          1,          1,        1,   304128, 0x913d975f
+0,          2,          2,        1,   304128, 0xd5174c07
+0,          3,          3,        1,   304128, 0xd7932869
+0,          4,          4,        1,   304128, 0xbe9be386
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-al b/tests/ref/fate/filter-stereo3d-sbsl-al
new file mode 100644
index 0000000..5bb1da6
--- /dev/null
+++ b/tests/ref/fate/filter-stereo3d-sbsl-al
@@ -0,0 +1,6 @@
+#tb 0: 1/50
+0,          0,          0,        1,   152064, 0x41d6c6b9
+0,          1,          1,        1,   152064, 0x4f9a2a05
+0,          2,          2,        1,   152064, 0xe6a6c4e4
+0,          3,          3,        1,   152064, 0x4a0fd26c
+0,          4,          4,        1,   152064, 0x28cc1830
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-sbsr b/tests/ref/fate/filter-stereo3d-sbsl-sbsr
new file mode 100644
index 0000000..6c167d5
--- /dev/null
+++ b/tests/ref/fate/filter-stereo3d-sbsl-sbsr
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+0,          0,          0,        1,   304128, 0xe722f0be
+0,          1,          1,        1,   304128, 0x2935975f
+0,          2,          2,        1,   304128, 0xd3ce4c07
+0,          3,          3,        1,   304128, 0x475b2869
+0,          4,          4,        1,   304128, 0xf43ce386
-- 
1.7.11.2



More information about the ffmpeg-devel mailing list