summaryrefslogtreecommitdiff
path: root/apps/codecs/libtremor/config-tremor.h
diff options
context:
space:
mode:
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_