From 9797ce58b7967b94cf70028e4a8159d654084695 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Tue, 6 Oct 2009 22:47:33 +0000 Subject: Add ALAC encoding and decoding regression tests. Originally committed as revision 20188 to svn://svn.ffmpeg.org/ffmpeg/trunk --- Makefile | 1 + tests/codec-regression.sh | 5 +++++ tests/rotozoom.regression.ref | 4 ++++ tests/vsynth.regression.ref | 4 ++++ 4 files changed, 14 insertions(+) diff --git a/Makefile b/Makefile index ed81397581..9cd9ef25f6 100644 --- a/Makefile +++ b/Makefile @@ -194,6 +194,7 @@ CODEC_TESTS = $(addprefix regtest-, \ adpcm_ms \ adpcm_yam \ adpcm_swf \ + alac \ flac \ wma \ pcm \ diff --git a/tests/codec-regression.sh b/tests/codec-regression.sh index 65273aa76e..49f4ce3a9d 100755 --- a/tests/codec-regression.sh +++ b/tests/codec-regression.sh @@ -431,6 +431,11 @@ do_audio_encoding adpcm_swf.flv "-ar 44100" "-acodec adpcm_swf" do_audio_decoding fi +if [ -n "$do_alac" ] ; then +do_audio_encoding alac.m4a "-ar 44100" "-acodec alac -compression_level 1" +do_audio_decoding +fi + if [ -n "$do_flac" ] ; then do_audio_encoding flac.flac "-ar 44100" "-acodec flac -compression_level 2" do_audio_decoding diff --git a/tests/rotozoom.regression.ref b/tests/rotozoom.regression.ref index 665de75f63..a6dd7daff6 100644 --- a/tests/rotozoom.regression.ref +++ b/tests/rotozoom.regression.ref @@ -213,6 +213,10 @@ stddev: 1247.64 PSNR: 34.40 bytes: 1065004/ 1058444 269166 ./tests/data/a-adpcm_swf.flv 628089745a7059ae4055c2515b6d668b *./tests/data/adpcm_swf.rotozoom.out.wav stddev: 933.65 PSNR: 36.92 bytes: 1065004/ 1058444 +c68f649777ab8e7c9a0f1f221451d3ad *./tests/data/a-alac.m4a +389386 ./tests/data/a-alac.m4a +95e54b261530a1bcf6de6fe3b21dc5f6 *./tests/data/alac.rotozoom.out.wav +stddev: 0.00 PSNR:999.99 bytes: 1058444/ 1058444 7781a016edfc242a39e4d65af02d861a *./tests/data/a-flac.flac 353368 ./tests/data/a-flac.flac 95e54b261530a1bcf6de6fe3b21dc5f6 *./tests/data/flac.rotozoom.out.wav diff --git a/tests/vsynth.regression.ref b/tests/vsynth.regression.ref index 5df7b0d95f..971abb4eea 100644 --- a/tests/vsynth.regression.ref +++ b/tests/vsynth.regression.ref @@ -213,6 +213,10 @@ stddev: 1247.64 PSNR: 34.40 bytes: 1065004/ 1058444 269166 ./tests/data/a-adpcm_swf.flv 628089745a7059ae4055c2515b6d668b *./tests/data/adpcm_swf.vsynth.out.wav stddev: 933.65 PSNR: 36.92 bytes: 1065004/ 1058444 +c68f649777ab8e7c9a0f1f221451d3ad *./tests/data/a-alac.m4a +389386 ./tests/data/a-alac.m4a +95e54b261530a1bcf6de6fe3b21dc5f6 *./tests/data/alac.vsynth.out.wav +stddev: 0.00 PSNR:999.99 bytes: 1058444/ 1058444 7781a016edfc242a39e4d65af02d861a *./tests/data/a-flac.flac 353368 ./tests/data/a-flac.flac 95e54b261530a1bcf6de6fe3b21dc5f6 *./tests/data/flac.vsynth.out.wav -- cgit v1.2.3