diff options
author | Gregory Maxwell <greg@xiph.org> | 2011-09-28 15:44:53 -0400 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2011-09-28 16:28:18 -0400 |
commit | 59647fdb655bf6dc363c155b23bc817d195dc17d (patch) | |
tree | 38ba24728a3b3d35ad6fcb46203282c9a6d49a1d /silk/PLC.c | |
parent | afc8d53b1b1d4a740551b3bbf8c2ac45061786ed (diff) | |
download | opus-59647fdb655bf6dc363c155b23bc817d195dc17d.tar.gz |
Misc. silk/ cleanups: static inline things which are only used in one file.
Diffstat (limited to 'silk/PLC.c')
-rw-r--r-- | silk/PLC.c | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -37,6 +37,18 @@ static const opus_int16 HARM_ATT_Q15[NB_ATT] = { 32440, 31130 }; /* static const opus_int16 PLC_RAND_ATTENUATE_V_Q15[NB_ATT] = { 31130, 26214 }; /* 0.95, 0.8 */ static const opus_int16 PLC_RAND_ATTENUATE_UV_Q15[NB_ATT] = { 32440, 29491 }; /* 0.99, 0.9 */ +static inline void silk_PLC_update( + silk_decoder_state *psDec, /* I/O Decoder state */ + silk_decoder_control *psDecCtrl /* I/O Decoder control */ +); + +static inline void silk_PLC_conceal( + silk_decoder_state *psDec, /* I/O Decoder state */ + silk_decoder_control *psDecCtrl, /* I/O Decoder control */ + opus_int16 signal[] /* O LPC residual signal */ +); + + void silk_PLC_Reset( silk_decoder_state *psDec /* I/O Decoder state */ ) @@ -75,7 +87,7 @@ void silk_PLC( /**************************************************/ /* Update state of PLC */ /**************************************************/ -void silk_PLC_update( +static inline void silk_PLC_update( silk_decoder_state *psDec, /* (I/O) Decoder state */ silk_decoder_control *psDecCtrl /* (I/O) Decoder control */ ) @@ -147,7 +159,7 @@ void silk_PLC_update( silk_memcpy( psPLC->prevGain_Q16, psDecCtrl->Gains_Q16, psDec->nb_subfr * sizeof( opus_int32 ) ); } -void silk_PLC_conceal( +static inline void silk_PLC_conceal( silk_decoder_state *psDec, /* I/O Decoder state */ silk_decoder_control *psDecCtrl, /* I/O Decoder control */ opus_int16 frame[] /* O concealed signal */ |