X-Git-Url: https://git.piment-noir.org/?p=deb_ffmpeg.git;a=blobdiff_plain;f=ffmpeg%2Ftests%2Ffate-run.sh;h=f78e4fcfd5a3faf28eadb4afadd7ce7eff21f96e;hp=b994abab27293176140eed407f2058358a7c8b78;hb=f6fa7814ccfe3e76514b36cf04f5cd3cb657c8cf;hpb=2ba45a602cbfa7b771effba9b11bb4245c21bc00 diff --git a/ffmpeg/tests/fate-run.sh b/ffmpeg/tests/fate-run.sh index b994aba..f78e4fc 100755 --- a/ffmpeg/tests/fate-run.sh +++ b/ffmpeg/tests/fate-run.sh @@ -114,6 +114,12 @@ pcm(){ ffmpeg "$@" -vn -f s16le - } +fmtstdout(){ + fmt=$1 + shift 1 + ffmpeg -flags +bitexact "$@" -f $fmt - +} + enc_dec_pcm(){ out_fmt=$1 dec_fmt=$2 @@ -197,12 +203,14 @@ pixfmts(){ $showfiltfmts $filter | awk -F '[ \r]' '/^INPUT/{ fmt=substr($3, 5); print fmt }' | sort >$in_fmts pix_fmts=$(comm -12 $scale_exclude_fmts $in_fmts) + outertest=$test for pix_fmt in $pix_fmts; do test=$pix_fmt video_filter "${prefilter_chain}format=$pix_fmt,$filter=$filter_args" -pix_fmt $pix_fmt done rm $in_fmts $scale_in_fmts $scale_out_fmts $scale_exclude_fmts + test=$outertest } mkdir -p "$outdir" @@ -223,6 +231,7 @@ fi if test -e "$ref" || test $cmp = "oneline" ; then case $cmp in diff) diff -u -b "$ref" "$outfile" >$cmpfile ;; + rawdiff)diff -u "$ref" "$outfile" >$cmpfile ;; oneoff) oneoff "$ref" "$outfile" >$cmpfile ;; stddev) stddev "$ref" "$outfile" >$cmpfile ;; oneline)oneline "$ref" "$outfile" >$cmpfile ;;