summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs/libtremor/config-tremor.h
diff options
context:
space:
mode:
authorSean Bartell <wingedtachikoma@gmail.com>2011-06-25 21:32:25 -0400
committerNils Wallménius <nils@rockbox.org>2012-04-25 22:13:20 +0200
commitf40bfc9267b13b54e6379dfe7539447662879d24 (patch)
tree9b20069d5e62809ff434061ad730096836f916f2 /lib/rbcodec/codecs/libtremor/config-tremor.h
parenta0009907de7a0107d49040d8a180f140e2eff299 (diff)
downloadrockbox-f40bfc9267b13b54e6379dfe7539447662879d24.tar.gz
rockbox-f40bfc9267b13b54e6379dfe7539447662879d24.zip
Add codecs to librbcodec.
Change-Id: Id7f4717d51ed02d67cb9f9cb3c0ada4a81843f97 Reviewed-on: http://gerrit.rockbox.org/137 Reviewed-by: Nils Wallménius <nils@rockbox.org> Tested-by: Nils Wallménius <nils@rockbox.org>
Diffstat (limited to 'lib/rbcodec/codecs/libtremor/config-tremor.h')
-rw-r--r--lib/rbcodec/codecs/libtremor/config-tremor.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/libtremor/config-tremor.h b/lib/rbcodec/codecs/libtremor/config-tremor.h
new file mode 100644
index 0000000000..cf2dbe977d
--- /dev/null
+++ b/lib/rbcodec/codecs/libtremor/config-tremor.h
@@ -0,0 +1,55 @@
1#ifndef _CONFIG_TREMOR_H
2#define _CONFIG_TREMOR_H
3
4#include "codeclib.h"
5
6#ifdef CPU_ARM
7#define _ARM_ASSEM_
8#endif
9
10#ifndef BYTE_ORDER
11#ifdef ROCKBOX_BIG_ENDIAN
12#define BIG_ENDIAN 1
13#define LITTLE_ENDIAN 0
14#define BYTE_ORDER BIG_ENDIAN
15#else
16#define BYTE_ORDER LITTLE_ENDIAN
17#define LITTLE_ENDIAN 1
18#define BIG_ENDIAN 0
19#endif
20#endif
21
22#ifndef ICODE_ATTR_TREMOR_NOT_MDCT
23#define ICODE_ATTR_TREMOR_NOT_MDCT ICODE_ATTR
24#endif
25
26/* Enable special handling of buffers in faster ram, not usefull when no
27 such different ram is available. There are 3 different memory configurations
28 * No special iram, uses double buffers to avoid copying data
29 * Small special iram, copies buffers to run hottest processing in iram
30 * Large iram, uses double buffers in iram */
31#ifdef USE_IRAM
32#define TREMOR_USE_IRAM
33
34/* Define CPU of large IRAM (PP5022/5024, MCF5250) */
35#if (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || defined(CPU_S5L870X) || (CONFIG_CPU == MCF5250)
36/* PCM_BUFFER : 32768 byte (4096*2*4 or 2048*4*4) *
37 * WINDOW_LOOKUP : 9216 Byte (256*4 + 2048*4) *
38 * TOTAL : 41984 */
39#define IRAM_IBSS_SIZE 41984
40
41/* Define CPU of Normal IRAM (96KB) */
42#else
43/* floor and double residue buffer : 24576 Byte (2048/2*4*2*3) *
44 * WINDOW_LOOKUP : 4608 Byte (128*4 + 1024*4) *
45 * TOTAL : 29184 */
46#define IRAM_IBSS_SIZE 29184
47#endif
48#endif
49
50/* max 2 channels */
51#define CHANNELS 2
52
53// #define _LOW_ACCURACY_
54
55#endif /* _CONFIG_TREMOR_H */