Modify the wma pro decoder to produce non-interleaved samples, and work directly...
[kugel-rb.git] / apps / codecs / libwmapro / wmaprodec.h
blob2e7d01a3349a98e812ea8a0d5ccdbb207c871664
1 #include "codeclib.h"
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
18 #else
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
27 #endif
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);