summaryrefslogtreecommitdiffstats
path: root/contrib/benchmark.sh
blob: 01486675d1f47d0c8d290d277f6bfc2c30cc6752 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

GAPK=./src/gapk
PCMFILE=$1
BASE=`basename $PCMFILE`

echo
echo Encoder Benchmark:
$GAPK -i "$PCMFILE" -f rawpcm-s16le -o "$BASE.fr" -g gsm
$GAPK -i "$PCMFILE" -f rawpcm-s16le -o "$BASE.efr" -g amr-efr
$GAPK -i "$PCMFILE" -f rawpcm-s16le -o "$BASE.hr" -g ti-hr

echo
echo Decoder Benchmark:
$GAPK -i "$BASE.fr"  -g rawpcm-s16le -o /dev/null -f gsm
$GAPK -i "$BASE.efr" -g rawpcm-s16le -o /dev/null -f amr-efr
$GAPK -i "$BASE.hr"  -g rawpcm-s16le -o /dev/null -f ti-hr