Smaller and more correctly sized statically allocated arrays in decoder state structs.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15500 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thom Johansen 2007-11-06 21:25:46 +00:00
parent 8a7c0eee8a
commit d9a9801171
2 changed files with 8 additions and 8 deletions

View file

@ -142,14 +142,14 @@ typedef struct DecState {
char *stack; /**< Pseudo-stack allocation for temporary memory */
/* Size calculated from maximum values of frameSize, max_pitch and
* subframeSize, being respectively 320, 144 and 80 (for uwb) */
spx_word16_t excBuf[556]; /**< Excitation buffer */
* subframeSize, being respectively 160, 144 and 40 */
spx_word16_t excBuf[500]; /**< Excitation buffer */
spx_word16_t *exc; /**< Start of excitation frame */
spx_lsp_t old_qlsp[10]; /**< Quantized LSPs for previous frame */
spx_coef_t interp_qlpc[10]; /**< Interpolated quantized LPCs */
spx_mem_t mem_sp[10]; /**< Filter memory for synthesis signal */
spx_mem_t mem_hp[2]; /**< High-pass filter memory */
spx_word32_t pi_gain[5]; /**< Gain of LPC filter at theta=pi (fe/2) */
spx_word32_t pi_gain[4]; /**< Gain of LPC filter at theta=pi (fe/2) */
spx_word16_t *innov_save; /** If non-NULL, innovation is copied here */
spx_word16_t level;

View file

@ -112,12 +112,12 @@ typedef struct SBDecState {
spx_word16_t g0_mem[64], g1_mem[64];
spx_word16_t excBuf[80];
spx_lsp_t old_qlsp[10];
spx_coef_t interp_qlpc[10];
spx_lsp_t old_qlsp[8];
spx_coef_t interp_qlpc[8];
spx_mem_t mem_sp[20];
spx_word32_t pi_gain[5];
spx_word16_t exc_rms[5];
spx_mem_t mem_sp[16];
spx_word32_t pi_gain[4];
spx_word16_t exc_rms[4];
spx_word16_t *innov_save; /** If non-NULL, innovation is copied here */
spx_word16_t last_ener;