Revision 77f66963 tests/codec-regression.sh

View differences:

tests/codec-regression.sh
342 342
do_audio_enc_dec 302 s16 pcm_s24daud "-ac 6 -ar 96000"
343 343
fi
344 344

  
345
# libavfilter testing
346

  
347
do_lavfi() {
348
    test_name=$1
349
    eval test=\$do_$test_name
350
    vfilters=$2
351

  
352
    if [ -n "$test" ] ; then
353
        do_video_encoding ${test_name}.avi "" "-vcodec rawvideo -vfilters $vfilters"
354
    fi
355
}
356

  
357
# example tests:
358
# do_lavfi "crop" "crop=100:100:-1:-1"
359
# do_lavfi "crop_scale" "crop=100:100,scale=200:-1"
360
# do_lavfi "scale" "scale=200:200"
361

  
362
# TODO: add tests for
363
# direct rendering,
364
# slices
365
# chains with feedback loops
366

  
367 345
rm -f "$bench" "$bench2"

Also available in: Unified diff