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
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
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
);