diff options
Diffstat (limited to 'apps/codecs/libwma/wmadeci.c')
-rw-r--r-- | apps/codecs/libwma/wmadeci.c | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/apps/codecs/libwma/wmadeci.c b/apps/codecs/libwma/wmadeci.c index 50a1b47405..d63a7641c9 100644 --- a/apps/codecs/libwma/wmadeci.c +++ b/apps/codecs/libwma/wmadeci.c | |||
@@ -33,19 +33,25 @@ static void wma_lsp_to_curve_init(WMADecodeContext *s, int frame_len); | |||
33 | 33 | ||
34 | /*declarations of statically allocated variables used to remove malloc calls*/ | 34 | /*declarations of statically allocated variables used to remove malloc calls*/ |
35 | 35 | ||
36 | fixed32 coefsarray[MAX_CHANNELS][BLOCK_MAX_SIZE] IBSS_ATTR MEM_ALIGN_ATTR; | 36 | static fixed32 coefsarray[MAX_CHANNELS][BLOCK_MAX_SIZE] IBSS_ATTR MEM_ALIGN_ATTR; |
37 | /*decode and window into IRAM on targets with at least 80KB of codec IRAM*/ | 37 | /*decode and window into IRAM on targets with at least 80KB of codec IRAM*/ |
38 | fixed32 frame_out_buf[MAX_CHANNELS][BLOCK_MAX_SIZE * 2] IBSS_ATTR_WMA_LARGE_IRAM MEM_ALIGN_ATTR; | 38 | static fixed32 frame_out_buf[MAX_CHANNELS][BLOCK_MAX_SIZE * 2] IBSS_ATTR_WMA_LARGE_IRAM MEM_ALIGN_ATTR; |
39 | 39 | ||
40 | /*MDCT reconstruction windows*/ | 40 | /*MDCT reconstruction windows*/ |
41 | fixed32 stat0[2048] MEM_ALIGN_ATTR, stat1[1024] MEM_ALIGN_ATTR, | 41 | static fixed32 stat0[2048] IBSS_ATTR_WMA_XL_IRAM MEM_ALIGN_ATTR; |
42 | stat2[512] MEM_ALIGN_ATTR, stat3[256] MEM_ALIGN_ATTR, stat4[128] MEM_ALIGN_ATTR; | 42 | static fixed32 stat1[1024] IBSS_ATTR_WMA_XL_IRAM MEM_ALIGN_ATTR; |
43 | static fixed32 stat2[ 512] IBSS_ATTR_WMA_XL_IRAM MEM_ALIGN_ATTR; | ||
44 | static fixed32 stat3[ 256] IBSS_ATTR_WMA_XL_IRAM MEM_ALIGN_ATTR; | ||
45 | static fixed32 stat4[ 128] IBSS_ATTR_WMA_XL_IRAM MEM_ALIGN_ATTR; | ||
43 | 46 | ||
44 | /*VLC lookup tables*/ | 47 | /*VLC lookup tables*/ |
45 | uint16_t *runtabarray[2], *levtabarray[2]; | 48 | static uint16_t *runtabarray[2]; |
49 | static uint16_t *levtabarray[2]; | ||
46 | 50 | ||
47 | uint16_t runtab_big[1336] MEM_ALIGN_ATTR, runtab_small[1072] MEM_ALIGN_ATTR, | 51 | static uint16_t runtab_big[1336] MEM_ALIGN_ATTR; |
48 | levtab_big[1336] MEM_ALIGN_ATTR, levtab_small[1072] MEM_ALIGN_ATTR; | 52 | static uint16_t runtab_small[1072] MEM_ALIGN_ATTR; |
53 | static uint16_t levtab_big[1336] MEM_ALIGN_ATTR; | ||
54 | static uint16_t levtab_small[1072] MEM_ALIGN_ATTR; | ||
49 | 55 | ||
50 | #define VLCBUF1SIZE 4598 | 56 | #define VLCBUF1SIZE 4598 |
51 | #define VLCBUF2SIZE 3574 | 57 | #define VLCBUF2SIZE 3574 |
@@ -54,11 +60,11 @@ uint16_t runtab_big[1336] MEM_ALIGN_ATTR, runtab_small[1072] MEM_ALIGN_ATTR, | |||
54 | 60 | ||
55 | /*putting these in IRAM actually makes PP slower*/ | 61 | /*putting these in IRAM actually makes PP slower*/ |
56 | 62 | ||
57 | VLC_TYPE vlcbuf1[VLCBUF1SIZE][2] MEM_ALIGN_ATTR; | 63 | static VLC_TYPE vlcbuf1[VLCBUF1SIZE][2] IBSS_ATTR_WMA_XL_IRAM MEM_ALIGN_ATTR; |
58 | VLC_TYPE vlcbuf2[VLCBUF2SIZE][2] MEM_ALIGN_ATTR; | 64 | static VLC_TYPE vlcbuf2[VLCBUF2SIZE][2] MEM_ALIGN_ATTR; |
59 | /* This buffer gets reused for lsp tables */ | 65 | /* This buffer gets reused for lsp tables */ |
60 | VLC_TYPE vlcbuf3[VLCBUF3SIZE][2] MEM_ALIGN_ATTR; | 66 | static VLC_TYPE vlcbuf3[VLCBUF3SIZE][2] MEM_ALIGN_ATTR; |
61 | VLC_TYPE vlcbuf4[VLCBUF4SIZE][2] MEM_ALIGN_ATTR; | 67 | static VLC_TYPE vlcbuf4[VLCBUF4SIZE][2] MEM_ALIGN_ATTR; |
62 | 68 | ||
63 | 69 | ||
64 | 70 | ||