Add missing codec id <-> codec tag entries:
[libav.git] / tests / lavfi-regression.sh
CommitLineData
77f66963
SS
1#!/bin/sh
2#
3# automatic regression test for libavfilter
4#
5#
6#set -x
7
8set -e
9
10. $(dirname $0)/regression-funcs.sh
11
12eval do_$test=y
13
14rm -f "$logfile"
15rm -f "$benchfile"
16
17do_lavfi() {
18 test_name=$1
19 eval test=\$do_$test_name
1400bd5a 20 vfilters="slicify=random,$2"
77f66963
SS
21
22 if [ -n "$test" ] ; then
e904c51f 23 do_video_encoding ${test_name}.nut "" "-vcodec rawvideo -vf $vfilters"
77f66963
SS
24 fi
25}
26
cec96e8d
SS
27do_lavfi "crop" "crop=100:100"
28do_lavfi "crop_scale" "crop=100:100,scale=400:-1"
29do_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"
30do_lavfi "crop_vflip" "crop=100:100,vflip"
31do_lavfi "null" "null"
32do_lavfi "scale200" "scale=200:200"
33do_lavfi "scale500" "scale=500:500"
34do_lavfi "vflip" "vflip"
35do_lavfi "vflip_crop" "vflip,crop=100:100"
36do_lavfi "vflip_vflip" "vflip,vflip"
77f66963
SS
37
38# TODO: add tests for
39# direct rendering,
40# slices
41# chains with feedback loops
42
43rm -f "$bench" "$bench2"