libavfilter/vf_fps: Add more fate tests

These tests cover specific rounding behaviour, to ensure that I don't
introduce any regressions with the rewritten "activate" callback based
fps filter.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Calvin Walton 2018-02-16 15:02:02 -05:00 committed by Michael Niedermayer
parent 1be49cee34
commit d2fc244293
8 changed files with 121 additions and 1 deletions

View File

@ -108,7 +108,6 @@ FATE_FILTER-$(call ALLYES, AVDEVICE TESTSRC_FILTER FORMAT_FILTER CONCAT_FILTER S
fate-filter-lavd-scalenorm: tests/data/filtergraphs/scalenorm
fate-filter-lavd-scalenorm: CMD = framecrc -f lavfi -graph_file $(TARGET_PATH)/tests/data/filtergraphs/scalenorm -i dummy
FATE_FILTER-$(call ALLYES, FRAMERATE_FILTER TESTSRC2_FILTER) += fate-filter-framerate-up fate-filter-framerate-down
fate-filter-framerate-up: CMD = framecrc -lavfi testsrc2=r=2:d=10,framerate=fps=10 -t 1
fate-filter-framerate-down: CMD = framecrc -lavfi testsrc2=r=2:d=10,framerate=fps=1 -t 1
@ -426,6 +425,15 @@ 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-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
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_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
fate-filter-fps-r: CMD = framecrc -i $(TARGET_SAMPLES)/qtrle/apple-animation-variable-fps-bug.mov -r 30 -vf fps -pix_fmt yuv420p

View File

@ -0,0 +1,15 @@
#tb 0: 1/3
#media_type 0: video
#codec_id 0: rawvideo
#dimensions 0: 320x240
#sar 0: 1/1
0, 0, 0, 1, 115200, 0x0c1062d6
0, 1, 1, 1, 115200, 0x278d887e
0, 2, 2, 1, 115200, 0x75e1a17b
0, 3, 3, 1, 115200, 0x686b77e7
0, 4, 4, 1, 115200, 0x1fc2d693
0, 5, 5, 1, 115200, 0x2d0ba5a4
0, 6, 6, 1, 115200, 0x40426f99
0, 7, 7, 1, 115200, 0xc705ccd9
0, 8, 8, 1, 115200, 0x5635daa5
0, 9, 9, 1, 115200, 0x7161ef8f

View File

@ -0,0 +1,16 @@
#tb 0: 1/3
#media_type 0: video
#codec_id 0: rawvideo
#dimensions 0: 320x240
#sar 0: 1/1
0, 0, 0, 1, 115200, 0x0c1062d6
0, 1, 1, 1, 115200, 0x278d887e
0, 2, 2, 1, 115200, 0x75e1a17b
0, 3, 3, 1, 115200, 0x686b77e7
0, 4, 4, 1, 115200, 0x1fc2d693
0, 5, 5, 1, 115200, 0x2d0ba5a4
0, 6, 6, 1, 115200, 0x40426f99
0, 7, 7, 1, 115200, 0xc705ccd9
0, 8, 8, 1, 115200, 0x5635daa5
0, 9, 9, 1, 115200, 0x7161ef8f
0, 10, 10, 1, 115200, 0xccf02fed

View File

@ -0,0 +1,15 @@
#tb 0: 1/3
#media_type 0: video
#codec_id 0: rawvideo
#dimensions 0: 320x240
#sar 0: 1/1
0, 0, 0, 1, 115200, 0x201b9db1
0, 1, 1, 1, 115200, 0x309b9c06
0, 2, 2, 1, 115200, 0xa14e9aca
0, 3, 3, 1, 115200, 0x02b6ab21
0, 4, 4, 1, 115200, 0x296dd4a5
0, 5, 5, 1, 115200, 0x59e85f83
0, 6, 6, 1, 115200, 0xf040bf35
0, 7, 7, 1, 115200, 0xa76dcd9d
0, 8, 8, 1, 115200, 0x3af5d306
0, 9, 9, 1, 115200, 0xc8ce7fb1

View File

@ -0,0 +1,16 @@
#tb 0: 1/3
#media_type 0: video
#codec_id 0: rawvideo
#dimensions 0: 320x240
#sar 0: 1/1
0, 0, 0, 1, 115200, 0x3744b3ed
0, 1, 1, 1, 115200, 0x201b9db1
0, 2, 2, 1, 115200, 0x309b9c06
0, 3, 3, 1, 115200, 0xb73857e2
0, 4, 4, 1, 115200, 0x02b6ab21
0, 5, 5, 1, 115200, 0x296dd4a5
0, 6, 6, 1, 115200, 0xc95a675e
0, 7, 7, 1, 115200, 0xf040bf35
0, 8, 8, 1, 115200, 0xa76dcd9d
0, 9, 9, 1, 115200, 0x0caf7172
0, 10, 10, 1, 115200, 0xc8ce7fb1

View File

@ -0,0 +1,17 @@
#tb 0: 1/7
#media_type 0: video
#codec_id 0: rawvideo
#dimensions 0: 320x240
#sar 0: 1/1
0, 0, 0, 1, 115200, 0x3744b3ed
0, 1, 1, 1, 115200, 0x3744b3ed
0, 2, 2, 1, 115200, 0x60a58f35
0, 3, 3, 1, 115200, 0x60a58f35
0, 4, 4, 1, 115200, 0x60a58f35
0, 5, 5, 1, 115200, 0x09ffa4e1
0, 6, 6, 1, 115200, 0x09ffa4e1
0, 7, 7, 1, 115200, 0x33f15918
0, 8, 8, 1, 115200, 0x33f15918
0, 9, 9, 1, 115200, 0xb0dfacf8
0, 10, 10, 1, 115200, 0xb0dfacf8
0, 11, 11, 1, 115200, 0xb0dfacf8

View File

@ -0,0 +1,16 @@
#tb 0: 1/7
#media_type 0: video
#codec_id 0: rawvideo
#dimensions 0: 320x240
#sar 0: 1/1
0, 0, 0, 1, 115200, 0x3744b3ed
0, 1, 1, 1, 115200, 0x3744b3ed
0, 2, 2, 1, 115200, 0x60a58f35
0, 3, 3, 1, 115200, 0x60a58f35
0, 4, 4, 1, 115200, 0x09ffa4e1
0, 5, 5, 1, 115200, 0x09ffa4e1
0, 6, 6, 1, 115200, 0x09ffa4e1
0, 7, 7, 1, 115200, 0x33f15918
0, 8, 8, 1, 115200, 0x33f15918
0, 9, 9, 1, 115200, 0xb0dfacf8
0, 10, 10, 1, 115200, 0xb0dfacf8

View File

@ -0,0 +1,17 @@
#tb 0: 1/7
#media_type 0: video
#codec_id 0: rawvideo
#dimensions 0: 320x240
#sar 0: 1/1
0, 0, 0, 1, 115200, 0x3744b3ed
0, 1, 1, 1, 115200, 0x3744b3ed
0, 2, 2, 1, 115200, 0x3744b3ed
0, 3, 3, 1, 115200, 0x60a58f35
0, 4, 4, 1, 115200, 0x60a58f35
0, 5, 5, 1, 115200, 0x09ffa4e1
0, 6, 6, 1, 115200, 0x09ffa4e1
0, 7, 7, 1, 115200, 0x33f15918
0, 8, 8, 1, 115200, 0x33f15918
0, 9, 9, 1, 115200, 0x33f15918
0, 10, 10, 1, 115200, 0xb0dfacf8
0, 11, 11, 1, 115200, 0xb0dfacf8