diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2014-01-07 06:59:48 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2014-01-07 06:59:48 +0400 |
commit | dce69d2b9b4f33ecb482023f0fe1230ef5b53235 (patch) | |
tree | cbe39b13272b5bc14e1cd25c4001a60cdf7463ee /silk/decode_pulses.c | |
parent | ad8371d172e930c28bc66da165bf8498c5d16d15 (diff) |
Store decoded SILK pulses as 16-bit vector
This saves 640 bytes on the peak stack usage.
Diffstat (limited to 'silk/decode_pulses.c')
-rw-r--r-- | silk/decode_pulses.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/silk/decode_pulses.c b/silk/decode_pulses.c index e8a87c2a..1e14bc37 100644 --- a/silk/decode_pulses.c +++ b/silk/decode_pulses.c @@ -36,7 +36,7 @@ POSSIBILITY OF SUCH DAMAGE. /*********************************************/ void silk_decode_pulses( ec_dec *psRangeDec, /* I/O Compressor data structure */ - opus_int pulses[], /* O Excitation signal */ + opus_int16 pulses[], /* O Excitation signal */ const opus_int signalType, /* I Sigtype */ const opus_int quantOffsetType, /* I quantOffsetType */ const opus_int frame_length /* I Frame length */ @@ -44,7 +44,7 @@ void silk_decode_pulses( { opus_int i, j, k, iter, abs_q, nLS, RateLevelIndex; opus_int sum_pulses[ MAX_NB_SHELL_BLOCKS ], nLshifts[ MAX_NB_SHELL_BLOCKS ]; - opus_int *pulses_ptr; + opus_int16 *pulses_ptr; const opus_uint8 *cdf_ptr; /*********************/ @@ -84,7 +84,7 @@ void silk_decode_pulses( if( sum_pulses[ i ] > 0 ) { silk_shell_decoder( &pulses[ silk_SMULBB( i, SHELL_CODEC_FRAME_LENGTH ) ], psRangeDec, sum_pulses[ i ] ); } else { - silk_memset( &pulses[ silk_SMULBB( i, SHELL_CODEC_FRAME_LENGTH ) ], 0, SHELL_CODEC_FRAME_LENGTH * sizeof( opus_int ) ); + silk_memset( &pulses[ silk_SMULBB( i, SHELL_CODEC_FRAME_LENGTH ) ], 0, SHELL_CODEC_FRAME_LENGTH * sizeof( pulses[0] ) ); } } |