summaryrefslogtreecommitdiffstats
path: root/apps/codecs/libtremor/config-tremor.h
diff options
context:
space:
mode:
authorDave Hooper <dave@beermex.com>2009-04-25 11:25:13 +0000
committerDave Hooper <dave@beermex.com>2009-04-25 11:25:13 +0000
commit67fb5415f78a3198030a6285d1ccc641044f149b (patch)
tree1af65f6512f42361a5e83207d4b76b00265776cd /apps/codecs/libtremor/config-tremor.h
parent738824ccdd327da7d9d13fe9d2a48e74c40ad62f (diff)
downloadrockbox-67fb5415f78a3198030a6285d1ccc641044f149b.tar.gz
rockbox-67fb5415f78a3198030a6285d1ccc641044f149b.tar.bz2
rockbox-67fb5415f78a3198030a6285d1ccc641044f149b.zip
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
Diffstat (limited to 'apps/codecs/libtremor/config-tremor.h')
-rw-r--r--apps/codecs/libtremor/config-tremor.h29
1 files changed, 25 insertions, 4 deletions
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_