aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-03-13 11:03:08 +0100
committerAnton Khirnov <anton@khirnov.net>2013-03-28 08:01:46 +0100
commitea290d919a52f0f8c7e30d69328bb011ed13f61a (patch)
treedb23369a737efa90ac5a873aa9ea988a4e6b6933
parent71f3ede24e8c2fe53dcbd8faba1cc27e5075c67a (diff)
downloadffmpeg-ea290d919a52f0f8c7e30d69328bb011ed13f61a.tar.gz
FATE: add a test for the setpts filter
-rw-r--r--tests/fate/filter.mak3
-rw-r--r--tests/filtergraphs/setpts2
-rw-r--r--tests/ref/fate/filter-setpts51
3 files changed, 56 insertions, 0 deletions
diff --git a/tests/fate/filter.mak b/tests/fate/filter.mak
index aa07bc2e66..d07cdcba50 100644
--- a/tests/fate/filter.mak
+++ b/tests/fate/filter.mak
@@ -49,6 +49,9 @@ fate-filter-gradfun: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf gradfun
FATE_FILTER_VSYNTH-$(CONFIG_HQDN3D_FILTER) += fate-filter-hqdn3d
fate-filter-hqdn3d: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf hqdn3d
+FATE_FILTER_VSYNTH-$(call ALLYES, SETPTS_FILTER SETTB_FILTER) += fate-filter-setpts
+fate-filter-setpts: CMD = framecrc -c:v pgmyuv -i $(SRC) -filter_script $(SRC_PATH)/tests/filtergraphs/setpts
+
FATE_FILTER_VSYNTH-$(CONFIG_TRANSPOSE_FILTER) += fate-filter-transpose
fate-filter-transpose: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf transpose
diff --git a/tests/filtergraphs/setpts b/tests/filtergraphs/setpts
new file mode 100644
index 0000000000..79037d1b65
--- /dev/null
+++ b/tests/filtergraphs/setpts
@@ -0,0 +1,2 @@
+settb=1/1000,
+setpts=1/(35*TB) * (N + 0.05 * sin(N*2*PI/25))
diff --git a/tests/ref/fate/filter-setpts b/tests/ref/fate/filter-setpts
new file mode 100644
index 0000000000..14aa613873
--- /dev/null
+++ b/tests/ref/fate/filter-setpts
@@ -0,0 +1,51 @@
+#tb 0: 1/1000
+0, 0, 0, 0, 152064, 0x05b789ef
+0, 28, 28, 0, 152064, 0x4bb46551
+0, 57, 57, 0, 152064, 0x9dddf64a
+0, 86, 86, 0, 152064, 0x2a8380b0
+0, 115, 115, 0, 152064, 0x4de3b652
+0, 144, 144, 0, 152064, 0xedb5a8e6
+0, 172, 172, 0, 152064, 0xe20f7c23
+0, 201, 201, 0, 152064, 0x5ab58bac
+0, 229, 229, 0, 152064, 0x1f1b8026
+0, 258, 258, 0, 152064, 0x91373915
+0, 286, 286, 0, 152064, 0x02344760
+0, 314, 314, 0, 152064, 0x30f5fcd5
+0, 343, 343, 0, 152064, 0xc711ad61
+0, 371, 371, 0, 152064, 0x24eca223
+0, 399, 399, 0, 152064, 0x52a48ddd
+0, 427, 427, 0, 152064, 0xa91c0f05
+0, 456, 456, 0, 152064, 0x8e364e18
+0, 484, 484, 0, 152064, 0xb15d38c8
+0, 512, 512, 0, 152064, 0xf25f6acc
+0, 541, 541, 0, 152064, 0xf34ddbff
+0, 570, 570, 0, 152064, 0xfc7bf570
+0, 598, 598, 0, 152064, 0x9dc72412
+0, 627, 627, 0, 152064, 0x445d1d59
+0, 656, 656, 0, 152064, 0x2f2768ef
+0, 685, 685, 0, 152064, 0xce09f9d6
+0, 714, 714, 0, 152064, 0x95579936
+0, 743, 743, 0, 152064, 0x43d796b5
+0, 772, 772, 0, 152064, 0xd780d887
+0, 800, 800, 0, 152064, 0x76d2a455
+0, 829, 829, 0, 152064, 0x6dc3650e
+0, 858, 858, 0, 152064, 0x0f9d6aca
+0, 887, 887, 0, 152064, 0xe295c51e
+0, 915, 915, 0, 152064, 0xd766fc8d
+0, 944, 944, 0, 152064, 0xe22f7a30
+0, 972, 972, 0, 152064, 0x7fea4378
+0, 1000, 1000, 0, 152064, 0xfa8d94fb
+0, 1029, 1029, 0, 152064, 0x4c9737ab
+0, 1057, 1057, 0, 152064, 0xa50d01f8
+0, 1085, 1085, 0, 152064, 0x0b07594c
+0, 1113, 1113, 0, 152064, 0x88734edd
+0, 1142, 1142, 0, 152064, 0xd2735925
+0, 1170, 1170, 0, 152064, 0xd4e49e08
+0, 1198, 1198, 0, 152064, 0x20cebfa9
+0, 1227, 1227, 0, 152064, 0x575c20ec
+0, 1255, 1255, 0, 152064, 0xfd500471
+0, 1284, 1284, 0, 152064, 0x61b47e73
+0, 1313, 1313, 0, 152064, 0x09ef53ff
+0, 1341, 1341, 0, 152064, 0x6e88c5c2
+0, 1370, 1370, 0, 152064, 0xbb87b483
+0, 1399, 1399, 0, 152064, 0x4bbad8ea