diff options
author | Jens Arnold <amiconn@rockbox.org> | 2008-11-16 17:49:37 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2008-11-16 17:49:37 +0000 |
commit | 1b14167861bb5bf4c692f8fc661b33e26a706183 (patch) | |
tree | 5a635ce1c95dd74235b29bd23ae9cd9bd4a8e93a /apps/codecs/demac/libdemac/demac_config.h | |
parent | 66ff812c4a4fb5bb39c6056a10d814944bda92dc (diff) | |
download | rockbox-1b14167861bb5bf4c692f8fc661b33e26a706183.tar.gz rockbox-1b14167861bb5bf4c692f8fc661b33e26a706183.zip |
Centralise compile-time configuration.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19121 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/demac/libdemac/demac_config.h')
-rw-r--r-- | apps/codecs/demac/libdemac/demac_config.h | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/apps/codecs/demac/libdemac/demac_config.h b/apps/codecs/demac/libdemac/demac_config.h new file mode 100644 index 0000000000..93fda76e25 --- /dev/null +++ b/apps/codecs/demac/libdemac/demac_config.h | |||
@@ -0,0 +1,80 @@ | |||
1 | /* | ||
2 | |||
3 | libdemac - A Monkey's Audio decoder | ||
4 | |||
5 | $Id$ | ||
6 | |||
7 | Copyright (C) Dave Chapman 2007 | ||
8 | |||
9 | This program is free software; you can redistribute it and/or modify | ||
10 | it under the terms of the GNU General Public License as published by | ||
11 | the Free Software Foundation; either version 2 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | This program is distributed in the hope that it will be useful, | ||
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | GNU General Public License for more details. | ||
18 | |||
19 | You should have received a copy of the GNU General Public License | ||
20 | along with this program; if not, write to the Free Software | ||
21 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA | ||
22 | |||
23 | */ | ||
24 | |||
25 | #ifndef _DEMAC_CONFIG_H | ||
26 | #define _DEMAC_CONFIG_H | ||
27 | |||
28 | /* Build-time choices for libdemac. | ||
29 | * Note that this file is included by both .c and .S files. */ | ||
30 | |||
31 | #ifdef ROCKBOX | ||
32 | |||
33 | #include "config.h" | ||
34 | |||
35 | #ifndef __ASSEMBLER__ | ||
36 | #include "../lib/codeclib.h" | ||
37 | #include <codecs.h> | ||
38 | #endif | ||
39 | |||
40 | #define APE_OUTPUT_DEPTH 29 | ||
41 | |||
42 | /* On PP5002 code should go into IRAM. Otherwise put the insane | ||
43 | * filter buffer into IRAM as long as there is no better use. */ | ||
44 | #if CONFIG_CPU == PP5002 | ||
45 | #define ICODE_SECTION_DEMAC_ARM .icode | ||
46 | #define ICODE_ATTR_DEMAC ICODE_ATTR | ||
47 | #define IBSS_ATTR_DEMAC_INSANEBUF | ||
48 | #else | ||
49 | #define ICODE_SECTION_DEMAC_ARM .text | ||
50 | #define ICODE_ATTR_DEMAC | ||
51 | #define IBSS_ATTR_DEMAC_INSANEBUF IBSS_ATTR | ||
52 | #endif | ||
53 | |||
54 | #else /* !ROCKBOX */ | ||
55 | |||
56 | #define APE_OUTPUT_DEPTH (ape_ctx->bps) | ||
57 | |||
58 | #define IBSS_ATTR | ||
59 | #define IBSS_ATTR_DEMAC_INSANEBUF | ||
60 | #define ICONST_ATTR | ||
61 | #define ICODE_ATTR | ||
62 | #define ICODE_ATTR_DEMAC | ||
63 | |||
64 | #endif /* !ROCKBOX */ | ||
65 | |||
66 | /* Defaults */ | ||
67 | |||
68 | #ifndef UDIV32 | ||
69 | #define UDIV32(a, b) (a / b) | ||
70 | #endif | ||
71 | |||
72 | #ifndef FILTER_HISTORY_SIZE | ||
73 | #define FILTER_HISTORY_SIZE 512 | ||
74 | #endif | ||
75 | |||
76 | #ifndef PREDICTOR_HISTORY_SIZE | ||
77 | #define PREDICTOR_HISTORY_SIZE 512 | ||
78 | #endif | ||
79 | |||
80 | #endif /* _DEMAC_CONFIG_H */ | ||