From 67fb5415f78a3198030a6285d1ccc641044f149b Mon Sep 17 00:00:00 2001 From: Dave Hooper Date: Sat, 25 Apr 2009 11:25:13 +0000 Subject: Commit FS#9882 - make better use of iram at different quality encodings, remove redundant memsets, implement doublebuffer if it will fit in iram to save a mempcy each frame, and some alignment fixes for coldfire git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20783 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libtremor/config-tremor.h | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'apps/codecs/libtremor/config-tremor.h') diff --git a/apps/codecs/libtremor/config-tremor.h b/apps/codecs/libtremor/config-tremor.h index 7cfcb7e35d..d360b5fd73 100644 --- a/apps/codecs/libtremor/config-tremor.h +++ b/apps/codecs/libtremor/config-tremor.h @@ -13,10 +13,6 @@ #define BIG_ENDIAN 0 #endif -#ifndef ICONST_ATTR_TREMOR_WINDOW -#define ICONST_ATTR_TREMOR_WINDOW ICONST_ATTR -#endif - #ifndef ICODE_ATTR_TREMOR_MDCT #define ICODE_ATTR_TREMOR_MDCT ICODE_ATTR #endif @@ -25,4 +21,29 @@ #define ICODE_ATTR_TREMOR_NOT_MDCT ICODE_ATTR #endif +/* Define CPU of large IRAM (MCF5250) */ +#if (CONFIG_CPU == MCF5250) +/* PCM_BUFFER : 32768 Byte (4096*2*4) * + * WINDOW_LOOKUP : 4608 Byte (128*4 + 1024*4) * + * TOTAL : 37376 */ +#define IRAM_IBSS_SIZE 37376 + +/* Define CPU of large IRAM (PP5022/5024) */ +#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) +/* PCM_BUFFER : 32768 byte (4096*2*4 or 2048*4*4) * + * WINDOW_LOOKUP : 9216 Byte (256*4 + 2048*4) * + * TOTAL : 41984 */ +#define IRAM_IBSS_SIZE 41984 + +/* Define CPU of Normal IRAM (96KB) (and SIM also) */ +#else +/* PCM_BUFFER : 16384 Byte (2048*2*4) * + * WINDOW_LOOKUP : 4608 Byte (128*4 + 1024*4) * + * TOTAL : 20992 */ +#define IRAM_IBSS_SIZE 20992 +#endif + +/* max 2 channels */ +#define CHANNELS 2 + // #define _LOW_ACCURACY_ -- cgit v1.2.3