summaryrefslogtreecommitdiff
path: root/apps/codecs/demac/libdemac/decoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/demac/libdemac/decoder.c')
-rw-r--r--apps/codecs/demac/libdemac/decoder.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/apps/codecs/demac/libdemac/decoder.c b/apps/codecs/demac/libdemac/decoder.c
index c415db774a..6566ba26a8 100644
--- a/apps/codecs/demac/libdemac/decoder.c
+++ b/apps/codecs/demac/libdemac/decoder.c
@@ -35,24 +35,27 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
35 35
36#ifdef FILTER256_IRAM 36#ifdef FILTER256_IRAM
37static filter_int filterbuf32[(32*3 + FILTER_HISTORY_SIZE) * 2] 37static filter_int filterbuf32[(32*3 + FILTER_HISTORY_SIZE) * 2]
38 IBSS_ATTR __attribute__((aligned(16))); /* 2432/4864 bytes */ 38 IBSS_ATTR_DEMAC __attribute__((aligned(16)));
39 /* 2432 or 4864 bytes */
39static filter_int filterbuf256[(256*3 + FILTER_HISTORY_SIZE) * 2] 40static filter_int filterbuf256[(256*3 + FILTER_HISTORY_SIZE) * 2]
40 IBSS_ATTR __attribute__((aligned(16))); /* 5120/10240 bytes */ 41 IBSS_ATTR_DEMAC __attribute__((aligned(16)));
42 /* 5120 or 10240 bytes */
41#define FILTERBUF64 filterbuf256 43#define FILTERBUF64 filterbuf256
42#define FILTERBUF32 filterbuf32 44#define FILTERBUF32 filterbuf32
43#define FILTERBUF16 filterbuf32 45#define FILTERBUF16 filterbuf32
44#else 46#else
45static filter_int filterbuf64[(64*3 + FILTER_HISTORY_SIZE) * 2] 47static filter_int filterbuf64[(64*3 + FILTER_HISTORY_SIZE) * 2]
46 IBSS_ATTR __attribute__((aligned(16))); /* 2432/4864 bytes */ 48 IBSS_ATTR_DEMAC __attribute__((aligned(16)));
49 /* 2432 or 4864 bytes */
47static filter_int filterbuf256[(256*3 + FILTER_HISTORY_SIZE) * 2] 50static filter_int filterbuf256[(256*3 + FILTER_HISTORY_SIZE) * 2]
48 __attribute__((aligned(16))); /* 5120/10240 bytes */ 51 __attribute__((aligned(16))); /* 5120 or 10240 bytes */
49#define FILTERBUF64 filterbuf64 52#define FILTERBUF64 filterbuf64
50#define FILTERBUF32 filterbuf64 53#define FILTERBUF32 filterbuf64
51#define FILTERBUF16 filterbuf64 54#define FILTERBUF16 filterbuf64
52#endif 55#endif
53 56
54/* This is only needed for "insane" files, and no current Rockbox targets 57/* This is only needed for "insane" files, and no current Rockbox targets
55 can hope to decode them in realtime, although the Gigabeat S comes close. */ 58 can hope to decode them in realtime, except the Gigabeat S (at 528MHz). */
56static filter_int filterbuf1280[(1280*3 + FILTER_HISTORY_SIZE) * 2] 59static filter_int filterbuf1280[(1280*3 + FILTER_HISTORY_SIZE) * 2]
57 IBSS_ATTR_DEMAC_INSANEBUF __attribute__((aligned(16))); 60 IBSS_ATTR_DEMAC_INSANEBUF __attribute__((aligned(16)));
58 /* 17408 or 34816 bytes */ 61 /* 17408 or 34816 bytes */