projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cffd758
)
FATE: add capability for audio encode/decode tests with fuzzy psnr comparison
author
Justin Ruggles
<justin.ruggles@gmail.com>
Sat, 10 Mar 2012 21:37:41 +0000
(16:37 -0500)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Thu, 15 Mar 2012 21:06:17 +0000
(17:06 -0400)
This allows for testing floating-point audio encoders across different
platforms where exact comparisons are unreliable due to float rounding
differences.
tests/fate-run.sh
patch
|
blob
|
history
diff --git
a/tests/fate-run.sh
b/tests/fate-run.sh
index
40a4fe2
..
dcfbc84
100755
(executable)
--- a/
tests/fate-run.sh
+++ b/
tests/fate-run.sh
@@
-85,6
+85,16
@@
pcm(){
avconv "$@" -vn -f s16le -
}
+enc_dec_pcm(){
+ out_fmt=$1
+ pcm_fmt=$2
+ shift 2
+ encfile="${outdir}/${test}.${out_fmt}"
+ cleanfiles=$encfile
+ avconv -i $ref "$@" -f $out_fmt -y $encfile || return
+ avconv -i $encfile -c:a pcm_${pcm_fmt} -f wav -
+}
+
regtest(){
t="${test#$2-}"
ref=${base}/ref/$2/$t