2 #include "../libasf/asf.h"
4 #if (CONFIG_CPU == MCF5250) || defined(CPU_S5L870X)
5 /* Enough IRAM but performance suffers with ICODE_ATTR. */
6 #define IBSS_ATTR_WMAPRO_LARGE_IRAM IBSS_ATTR
7 #define ICODE_ATTR_WMAPRO_LARGE_IRAM
8 #define ICONST_ATTR_WMAPRO_LARGE_IRAM ICONST_ATTR
9 #define ICONST_ATTR_WMAPRO_WIN_VS_TMP
11 #elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024)
12 /* Enough IRAM to move additional data and code to it. */
13 #define IBSS_ATTR_WMAPRO_LARGE_IRAM IBSS_ATTR
14 #define ICODE_ATTR_WMAPRO_LARGE_IRAM ICODE_ATTR
15 #define ICONST_ATTR_WMAPRO_LARGE_IRAM ICONST_ATTR
16 #define ICONST_ATTR_WMAPRO_WIN_VS_TMP
19 /* Not enough IRAM available. */
20 #define IBSS_ATTR_WMAPRO_LARGE_IRAM
21 #define ICODE_ATTR_WMAPRO_LARGE_IRAM
22 #define ICONST_ATTR_WMAPRO_LARGE_IRAM
23 /* Models with large IRAM put tmp to IRAM rather than window coefficients as
24 * this is the fastest option. On models with smaller IRAM the 2nd-best option
25 * is to move the window coefficients to IRAM. */
26 #define ICONST_ATTR_WMAPRO_WIN_VS_TMP ICONST_ATTR
29 int decode_init(asf_waveformatex_t
*wfx
);
30 int decode_packet(asf_waveformatex_t
*wfx
,
31 int32_t *dec
[2], int *data_size
, void* pktdata
, int size
);