From d4e904bf3557c63fb358d2d8e91bb103ca369e1a Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 24 Feb 2007 17:06:36 +0000 Subject: SWCODEC: Dsp speed optimizations. Changes for more modularity. Removal of some usless stuff. Some assembly routines for Coldfire with speed in mind over size for the outputs but the channel modes remain compact. Miscellaneous coldfire asm updates to accomodate the changes. Codec API structure version has to increase so do a full update. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12472 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/mpa.c | 2 -- apps/codecs/spc.c | 3 ++- apps/codecs/vorbis.c | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) (limited to 'apps/codecs') diff --git a/apps/codecs/mpa.c b/apps/codecs/mpa.c index 7bc546b..6d98677 100644 --- a/apps/codecs/mpa.c +++ b/apps/codecs/mpa.c @@ -79,8 +79,6 @@ enum codec_status codec_main(void) /* Create a decoder instance */ ci->configure(DSP_SET_SAMPLE_DEPTH, MAD_F_FRACBITS); - ci->configure(DSP_SET_CLIP_MIN, -MAD_F_ONE); - ci->configure(DSP_SET_CLIP_MAX, MAD_F_ONE - 1); ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, 1024*16); next_track: diff --git a/apps/codecs/spc.c b/apps/codecs/spc.c index 8d621dd..61fd9de 100644 --- a/apps/codecs/spc.c +++ b/apps/codecs/spc.c @@ -712,7 +712,8 @@ static int LoadID666(unsigned char *buf) { /**************** Codec ****************/ -static int32_t samples[WAV_CHUNK_SIZE*2] IBSS_ATTR; +static int32_t samples[WAV_CHUNK_SIZE*2] + __attribute__ ((aligned (16))) IBSS_ATTR; static struct Spc_Emu spc_emu IDATA_ATTR; diff --git a/apps/codecs/vorbis.c b/apps/codecs/vorbis.c index 5f08fb5..7e7ef36 100644 --- a/apps/codecs/vorbis.c +++ b/apps/codecs/vorbis.c @@ -113,8 +113,6 @@ enum codec_status codec_main(void) ogg_int64_t vf_pcmlengths[2]; ci->configure(DSP_SET_SAMPLE_DEPTH, 24); - ci->configure(DSP_SET_CLIP_MAX, (1 << 24) - 1); - ci->configure(DSP_SET_CLIP_MIN, -((1 << 24) - 1)); /* Note: These are sane defaults for these values. Perhaps * they should be set differently based on quality setting */ -- cgit v1.1