summaryrefslogtreecommitdiff
path: root/silk/PLC.c
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2011-09-28 15:44:53 -0400
committerGregory Maxwell <greg@xiph.org>2011-09-28 16:28:18 -0400
commit59647fdb655bf6dc363c155b23bc817d195dc17d (patch)
tree38ba24728a3b3d35ad6fcb46203282c9a6d49a1d /silk/PLC.c
parentafc8d53b1b1d4a740551b3bbf8c2ac45061786ed (diff)
downloadopus-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.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/silk/PLC.c b/silk/PLC.c
index d4029fb0..50e0ddae 100644
--- a/silk/PLC.c
+++ b/silk/PLC.c
@@ -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 */