aboutsummaryrefslogtreecommitdiff
path: root/silk
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2011-09-27 23:30:18 -0400
committerGregory Maxwell <greg@xiph.org>2011-09-27 23:30:18 -0400
commit9925366a2bd61f44e306493d389e2b86d1505c4f (patch)
treedd473b327600d846ee67037ceca12869f4f904f0 /silk
parent7152a9aa9a479ac39053a39548343a8ec2757094 (diff)
downloadlibopus-9925366a2bd61f44e306493d389e2b86d1505c4f.tar.gz
Silence the remaining silk/ GCC warnings.
Diffstat (limited to 'silk')
-rw-r--r--silk/NSQ_del_dec.c4
-rw-r--r--silk/PLC.c6
-rw-r--r--silk/PLC.h4
-rw-r--r--silk/decode_frame.c4
-rw-r--r--silk/resampler_private_copy.c12
5 files changed, 15 insertions, 15 deletions
diff --git a/silk/NSQ_del_dec.c b/silk/NSQ_del_dec.c
index 140aa844..f2d3c7c1 100644
--- a/silk/NSQ_del_dec.c
+++ b/silk/NSQ_del_dec.c
@@ -64,7 +64,6 @@ static inline void silk_nsq_del_dec_scale_states(
opus_int32 sLTP_Q16[], /* O LTP state matching scaled input */
opus_int subfr, /* I Subframe number */
opus_int nStatesDelayedDecision, /* I Number of del dec states */
- opus_int smpl_buf_idx, /* I Index to newest samples in buffers */
const opus_int LTP_scale_Q14, /* I LTP state scaling */
const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */
const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag */
@@ -243,7 +242,7 @@ void silk_NSQ_del_dec(
}
silk_nsq_del_dec_scale_states( psEncC, NSQ, psDelDec, x, x_sc_Q10, sLTP, sLTP_Q16, k,
- psEncC->nStatesDelayedDecision, smpl_buf_idx, LTP_scale_Q14, Gains_Q16, pitchL, psIndices->signalType, decisionDelay );
+ psEncC->nStatesDelayedDecision, LTP_scale_Q14, Gains_Q16, pitchL, psIndices->signalType, decisionDelay );
silk_noise_shape_quantizer_del_dec( NSQ, psDelDec, psIndices->signalType, x_sc_Q10, pulses, pxq, sLTP_Q16,
delayedGain_Q16, A_Q12, B_Q14, AR_shp_Q13, lag, HarmShapeFIRPacked_Q14, Tilt_Q14[ k ], LF_shp_Q14[ k ],
@@ -610,7 +609,6 @@ static inline void silk_nsq_del_dec_scale_states(
opus_int32 sLTP_Q16[], /* O LTP state matching scaled input */
opus_int subfr, /* I Subframe number */
opus_int nStatesDelayedDecision, /* I Number of del dec states */
- opus_int smpl_buf_idx, /* I Index to newest samples in buffers */
const opus_int LTP_scale_Q14, /* I LTP state scaling */
const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */
const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag */
diff --git a/silk/PLC.c b/silk/PLC.c
index 9fe5a87f..d4029fb0 100644
--- a/silk/PLC.c
+++ b/silk/PLC.c
@@ -48,7 +48,6 @@ void silk_PLC(
silk_decoder_state *psDec, /* I Decoder state */
silk_decoder_control *psDecCtrl, /* I Decoder control */
opus_int16 frame[], /* O Concealed signal */
- opus_int length, /* I length of residual */
opus_int lost /* I Loss flag */
)
{
@@ -62,7 +61,7 @@ void silk_PLC(
/****************************/
/* Generate Signal */
/****************************/
- silk_PLC_conceal( psDec, psDecCtrl, frame, length );
+ silk_PLC_conceal( psDec, psDecCtrl, frame );
psDec->lossCnt++;
} else {
@@ -151,8 +150,7 @@ void silk_PLC_update(
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 */
- opus_int length /* I length of residual */
+ opus_int16 frame[] /* O concealed signal */
)
{
opus_int i, j, k;
diff --git a/silk/PLC.h b/silk/PLC.h
index 0ac537b8..ea6266f4 100644
--- a/silk/PLC.h
+++ b/silk/PLC.h
@@ -50,7 +50,6 @@ void silk_PLC(
silk_decoder_state *psDec, /* I/O Decoder state */
silk_decoder_control *psDecCtrl, /* I/O Decoder control */
opus_int16 signal[], /* I/O signal */
- opus_int length, /* I length of residual */
opus_int lost /* I Loss flag */
);
@@ -62,8 +61,7 @@ void silk_PLC_update(
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 */
- opus_int length /* I length of signal */
+ opus_int16 signal[] /* O LPC residual signal */
);
void silk_PLC_glue_frames(
diff --git a/silk/decode_frame.c b/silk/decode_frame.c
index 413ff832..24786174 100644
--- a/silk/decode_frame.c
+++ b/silk/decode_frame.c
@@ -93,7 +93,7 @@ TOC(decode_core)
/********************************************************/
/* Update PLC state */
/********************************************************/
- silk_PLC( psDec, &sDecCtrl, pOut, L, 0 );
+ silk_PLC( psDec, &sDecCtrl, pOut, 0 );
psDec->lossCnt = 0;
psDec->prevSignalType = psDec->indices.signalType;
@@ -103,7 +103,7 @@ TOC(decode_core)
psDec->first_frame_after_reset = 0;
} else {
/* Handle packet loss by extrapolation */
- silk_PLC( psDec, &sDecCtrl, pOut, L, 1 );
+ silk_PLC( psDec, &sDecCtrl, pOut, 1 );
}
/*************************/
diff --git a/silk/resampler_private_copy.c b/silk/resampler_private_copy.c
index 1d253e12..8e7a976e 100644
--- a/silk/resampler_private_copy.c
+++ b/silk/resampler_private_copy.c
@@ -32,12 +32,18 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "SigProc_FIX.h"
#include "resampler_private.h"
+#ifdef __GNUC__
+#define OPUS_UNUSED_VAR __attribute__ ((unused))
+#else
+#define OPUS_UNUSED_VAR
+#endif
+
/* Copy */
void silk_resampler_private_copy(
- void *SS, /* I/O: Resampler state (unused) */
- opus_int16 out[], /* O: Output signal */
+ void *SS OPUS_UNUSED_VAR, /* I/O: Resampler state (unused) */
+ opus_int16 out[], /* O: Output signal */
const opus_int16 in[], /* I: Input signal */
- opus_int32 inLen /* I: Number of input samples */
+ opus_int32 inLen /* I: Number of input samples */
)
{
silk_memcpy( out, in, inLen * sizeof( opus_int16 ) );