3 # common regression functions for avconv
15 datadir="./tests/data"
16 target_datadir="${target_path}/${datadir}"
18 this="$test.$test_ref"
19 outfile="$datadir/$test_ref/"
22 avconv="$target_exec ${target_path}/avconv"
23 raw_src="${target_path}/$raw_src_dir/%02d.pgm"
24 raw_dst="$datadir/$this.out.yuv"
25 pcm_src="$target_datadir/asynth1.sw"
26 crcfile="$datadir/$this.crc"
27 target_crcfile="$target_datadir/$this.crc"
29 cleanfiles="$raw_dst $crcfile"
30 trap 'rm -f -- $cleanfiles' EXIT
35 [ "${V-0}" -gt 0 ] && echov=echov || echov=:
41 . $(dirname $0)/md5.sh
43 AVCONV_OPTS="-nostats -y -cpuflags $cpuflags"
44 COMMON_OPTS="-flags +bitexact -idct simple -sws_flags +accurate_rnd+bitexact"
45 DEC_OPTS="$COMMON_OPTS -threads $threads"
46 ENC_OPTS="$COMMON_OPTS -threads 1 -dct fastint"
50 $echov $avconv $AVCONV_OPTS $*
51 $avconv $AVCONV_OPTS $*
58 set -- $* ${target_path}/$f
68 run_avconv $* -f crc "$target_crcfile"
69 echo "$f $(cat $crcfile)"