Statistics
| Branch: | Revision:

ffmpeg / tests / lavfi-regression.sh @ 73823cb9

History | View | Annotate | Download (619 Bytes)

1 77f66963 Stefano Sabatini
#!/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}.avi "" "-vcodec rawvideo -vfilters $vfilters"
24
    fi
25
}
26
27
# example tests:
28
# do_lavfi "crop" "crop=100:100:-1:-1"
29
# do_lavfi "crop_scale" "crop=100:100,scale=200:-1"
30
# do_lavfi "scale" "scale=200:200"
31
32
# TODO: add tests for
33
# direct rendering,
34
# slices
35
# chains with feedback loops
36
37
rm -f "$bench" "$bench2"