Using icode attribute for S5L870x is faster on some codecs. Speed up for mpc is ...
[kugel-rb.git] / apps / codecs / libwmapro / wmaprodec.h
blobe30205cd35c6c5d46b0f9524d7189f27c393f745
1 #include "codeclib.h"
2 #include "wma.h"
3 #include "../libasf/asf.h"
5 #if (CONFIG_CPU == MCF5250)
6 /* Enough IRAM but performance suffers with ICODE_ATTR. */
7 #define IBSS_ATTR_WMAPRO_LARGE_IRAM IBSS_ATTR
8 #define ICODE_ATTR_WMAPRO_LARGE_IRAM
9 #define ICONST_ATTR_WMAPRO_LARGE_IRAM ICONST_ATTR
10 #define ICONST_ATTR_WMAPRO_WIN_VS_TMP
12 #elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || defined(CPU_S5L870X)
13 /* Enough IRAM to move additional data and code to it. */
14 #define IBSS_ATTR_WMAPRO_LARGE_IRAM IBSS_ATTR
15 #define ICODE_ATTR_WMAPRO_LARGE_IRAM ICODE_ATTR
16 #define ICONST_ATTR_WMAPRO_LARGE_IRAM ICONST_ATTR
17 #define ICONST_ATTR_WMAPRO_WIN_VS_TMP
19 #else
20 /* Not enough IRAM available. */
21 #define IBSS_ATTR_WMAPRO_LARGE_IRAM
22 #define ICODE_ATTR_WMAPRO_LARGE_IRAM
23 #define ICONST_ATTR_WMAPRO_LARGE_IRAM
24 /* Models with large IRAM put tmp to IRAM rather than window coefficients as
25 * this is the fastest option. On models with smaller IRAM the 2nd-best option
26 * is to move the window coefficients to IRAM. */
27 #define ICONST_ATTR_WMAPRO_WIN_VS_TMP ICONST_ATTR
28 #endif
30 int decode_init(asf_waveformatex_t *wfx);
31 int decode_packet(asf_waveformatex_t *wfx,
32 int32_t *dec[2], int *data_size, void* pktdata, int size);