summaryrefslogtreecommitdiff
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.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 @@
13#define BIG_ENDIAN 0 13#define BIG_ENDIAN 0
14#endif 14#endif
15 15
16#ifndef ICONST_ATTR_TREMOR_WINDOW
17#define ICONST_ATTR_TREMOR_WINDOW ICONST_ATTR
18#endif
19
20#ifndef ICODE_ATTR_TREMOR_MDCT 16#ifndef ICODE_ATTR_TREMOR_MDCT
21#define ICODE_ATTR_TREMOR_MDCT ICODE_ATTR 17#define ICODE_ATTR_TREMOR_MDCT ICODE_ATTR
22#endif 18#endif
@@ -25,4 +21,29 @@
25#define ICODE_ATTR_TREMOR_NOT_MDCT ICODE_ATTR 21#define ICODE_ATTR_TREMOR_NOT_MDCT ICODE_ATTR
26#endif 22#endif
27 23
24/* Define CPU of large IRAM (MCF5250) */
25#if (CONFIG_CPU == MCF5250)
26/* PCM_BUFFER : 32768 Byte (4096*2*4) *
27 * WINDOW_LOOKUP : 4608 Byte (128*4 + 1024*4) *
28 * TOTAL : 37376 */
29#define IRAM_IBSS_SIZE 37376
30
31/* Define CPU of large IRAM (PP5022/5024) */
32#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024)
33/* PCM_BUFFER : 32768 byte (4096*2*4 or 2048*4*4) *
34 * WINDOW_LOOKUP : 9216 Byte (256*4 + 2048*4) *
35 * TOTAL : 41984 */
36#define IRAM_IBSS_SIZE 41984
37
38/* Define CPU of Normal IRAM (96KB) (and SIM also) */
39#else
40/* PCM_BUFFER : 16384 Byte (2048*2*4) *
41 * WINDOW_LOOKUP : 4608 Byte (128*4 + 1024*4) *
42 * TOTAL : 20992 */
43#define IRAM_IBSS_SIZE 20992
44#endif
45
46/* max 2 channels */
47#define CHANNELS 2
48
28// #define _LOW_ACCURACY_ 49// #define _LOW_ACCURACY_