Statistics
| Branch: | Revision:

ffmpeg / tests / lavfi-regression.sh @ cec96e8d

History | View | Annotate | Download (1.05 KB)

1
#!/bin/sh
2
#
3
# automatic regression test for libavfilter
4
#
5
#
6
#set -x
7

    
8
set -e
9

    
10
. $(dirname $0)/regression-funcs.sh
11

    
12
eval do_$test=y
13

    
14
rm -f "$logfile"
15
rm -f "$benchfile"
16

    
17
do_lavfi() {
18
    test_name=$1
19
    eval test=\$do_$test_name
20
    vfilters=$2
21

    
22
    if [ -n "$test" ] ; then
23
        do_video_encoding ${test_name}.nut "" "-vcodec rawvideo -vfilters $vfilters"
24
    fi
25
}
26

    
27
do_lavfi "crop"               "crop=100:100"
28
do_lavfi "crop_scale"         "crop=100:100,scale=400:-1"
29
do_lavfi "crop_scale_vflip"   "null,null,crop=200:200,crop=20:20,scale=200:200,scale=250:250,vflip,vflip,null,scale=200:200,crop=100:100,vflip,scale=200:200,null,vflip,crop=100:100,null"
30
do_lavfi "crop_vflip"         "crop=100:100,vflip"
31
do_lavfi "null"               "null"
32
do_lavfi "scale200"           "scale=200:200"
33
do_lavfi "scale500"           "scale=500:500"
34
do_lavfi "vflip"              "vflip"
35
do_lavfi "vflip_crop"         "vflip,crop=100:100"
36
do_lavfi "vflip_vflip"        "vflip,vflip"
37

    
38
# TODO: add tests for
39
# direct rendering,
40
# slices
41
# chains with feedback loops
42

    
43
rm -f "$bench" "$bench2"