aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarvin Scholz <epirat07@gmail.com>2023-11-07 23:21:18 +0100
committerAnton Khirnov <anton@khirnov.net>2023-11-09 11:11:00 +0100
commite900a559c25251398e6d0e0268ef836771fbec06 (patch)
tree532e4bfd152abceb487abfe4d69b71f4c0958de5
parent6667741029bce9a79b48caedf24d6cb69c5ead7d (diff)
downloadffmpeg-e900a559c25251398e6d0e0268ef836771fbec06.tar.gz
fate: enhance tpad filter test
Adds another test that uses the start_duration and stop_duration options instead of start and stop. Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--tests/fate/filter-video.mak3
-rw-r--r--tests/ref/fate/filter-tpad-add-duration11
2 files changed, 13 insertions, 1 deletions
diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index 789ec6414c..58edc70f46 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -299,9 +299,10 @@ fate-filter-tblend: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf tblend=all_mode=dif
FATE_FILTER_VSYNTH_PGMYUV-$(CONFIG_TELECINE_FILTER) += fate-filter-telecine
fate-filter-telecine: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf telecine
-FATE_FILTER-$(call FILTERFRAMECRC, TESTSRC2 TPAD) += fate-filter-tpad-add fate-filter-tpad-clone
+FATE_FILTER-$(call FILTERFRAMECRC, TESTSRC2 TPAD) += fate-filter-tpad-add fate-filter-tpad-clone fate-filter-tpad-add-duration
fate-filter-tpad-add: CMD = framecrc -lavfi testsrc2=d=1:r=2,tpad=start=1:stop=3:color=gray
fate-filter-tpad-clone: CMD = framecrc -lavfi testsrc2=d=1:r=2,tpad=start=1:stop=2:stop_mode=clone:color=black
+fate-filter-tpad-add-duration: CMD = framecrc -lavfi testsrc2=d=1:r=2,tpad=start_duration=0.5s:stop_duration=1.5s:color=gray
FATE_FILTER_VSYNTH_PGMYUV-$(CONFIG_TRANSPOSE_FILTER) += fate-filter-transpose
fate-filter-transpose: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf transpose
diff --git a/tests/ref/fate/filter-tpad-add-duration b/tests/ref/fate/filter-tpad-add-duration
new file mode 100644
index 0000000000..10e01655a1
--- /dev/null
+++ b/tests/ref/fate/filter-tpad-add-duration
@@ -0,0 +1,11 @@
+#tb 0: 1/2
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
+0, 0, 0, 1, 115200, 0x2213b502
+0, 1, 1, 1, 115200, 0xeba70ff3
+0, 2, 2, 1, 115200, 0xa764e4d5
+0, 3, 3, 1, 115200, 0x2213b502
+0, 4, 4, 1, 115200, 0x2213b502
+0, 5, 5, 1, 115200, 0x2213b502