libavfilter/vf_fps: Add tests for start_time option
authorCalvin Walton <calvin.walton@kepstin.ca>
Tue, 20 Feb 2018 00:54:35 +0000 (19:54 -0500)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 21 Feb 2018 23:29:27 +0000 (00:29 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tests/fate/filter-video.mak
tests/ref/fate/filter-fps-start-drop [new file with mode: 0644]
tests/ref/fate/filter-fps-start-fill [new file with mode: 0644]

index e3e128c..0757214 100644 (file)
@@ -425,7 +425,7 @@ fate-filter-concat: CMD = framecrc -filter_complex_script $(TARGET_PATH)/tests/d
 FATE_FILTER-$(call ALLYES, TESTSRC2_FILTER FPS_FILTER MPDECIMATE_FILTER) += fate-filter-mpdecimate
 fate-filter-mpdecimate: CMD = framecrc -lavfi testsrc2=r=2:d=10,fps=3,mpdecimate -r 3 -pix_fmt yuv420p
 
-FATE_FILTER-$(call ALLYES, FPS_FILTER TESTSRC2_FILTER) += fate-filter-fps-up fate-filter-fps-up-round-down fate-filter-fps-up-round-up fate-filter-fps-down fate-filter-fps-down-round-down fate-filter-fps-down-round-up fate-filter-fps-down-eof-pass
+FATE_FILTER-$(call ALLYES, FPS_FILTER TESTSRC2_FILTER) += fate-filter-fps-up fate-filter-fps-up-round-down fate-filter-fps-up-round-up fate-filter-fps-down fate-filter-fps-down-round-down fate-filter-fps-down-round-up fate-filter-fps-down-eof-pass fate-filter-fps-start-drop fate-filter-fps-start-fill
 fate-filter-fps-up: CMD = framecrc -lavfi testsrc2=r=3:d=2,fps=7
 fate-filter-fps-up-round-down: CMD = framecrc -lavfi testsrc2=r=3:d=2,fps=7:round=down
 fate-filter-fps-up-round-up: CMD = framecrc -lavfi testsrc2=r=3:d=2,fps=7:round=up
@@ -433,6 +433,8 @@ fate-filter-fps-down: CMD = framecrc -lavfi testsrc2=r=7:d=3.5,fps=3
 fate-filter-fps-down-round-down: CMD = framecrc -lavfi testsrc2=r=7:d=3.5,fps=3:round=down
 fate-filter-fps-down-round-up: CMD = framecrc -lavfi testsrc2=r=7:d=3.5,fps=3:round=up
 fate-filter-fps-down-eof-pass: CMD = framecrc -lavfi testsrc2=r=7:d=3.5,fps=3:eof_action=pass
+fate-filter-fps-start-drop: CMD = framecrc -lavfi testsrc2=r=7:d=3.5,fps=3:start_time=1.5
+fate-filter-fps-start-fill: CMD = framecrc -lavfi testsrc2=r=7:d=1.5,setpts=PTS+14,fps=3:start_time=1.5
 
 FATE_FILTER_SAMPLES-$(call ALLYES, MOV_DEMUXER FPS_FILTER QTRLE_DECODER) += fate-filter-fps-cfr fate-filter-fps fate-filter-fps-r
 fate-filter-fps-cfr: CMD = framecrc -i $(TARGET_SAMPLES)/qtrle/apple-animation-variable-fps-bug.mov -r 30 -vsync cfr -pix_fmt yuv420p
diff --git a/tests/ref/fate/filter-fps-start-drop b/tests/ref/fate/filter-fps-start-drop
new file mode 100644 (file)
index 0000000..cfa1c40
--- /dev/null
@@ -0,0 +1,11 @@
+#tb 0: 1/3
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
+0,          5,          5,        1,   115200, 0x2d0ba5a4
+0,          6,          6,        1,   115200, 0xc95a675e
+0,          7,          7,        1,   115200, 0xf040bf35
+0,          8,          8,        1,   115200, 0x5635daa5
+0,          9,          9,        1,   115200, 0x0caf7172
+0,         10,         10,        1,   115200, 0xc8ce7fb1
diff --git a/tests/ref/fate/filter-fps-start-fill b/tests/ref/fate/filter-fps-start-fill
new file mode 100644 (file)
index 0000000..c5efb42
--- /dev/null
@@ -0,0 +1,11 @@
+#tb 0: 1/3
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
+0,          5,          5,        1,   115200, 0x3744b3ed
+0,          6,          6,        1,   115200, 0x3744b3ed
+0,          7,          7,        1,   115200, 0x201b9db1
+0,          8,          8,        1,   115200, 0x75e1a17b
+0,          9,          9,        1,   115200, 0xb73857e2
+0,         10,         10,        1,   115200, 0x02b6ab21