ref: 389b752ac84c89bc11dd17f811b2b717266fc71a
parent: 57f255d00e178d2689a6606e847943299932f828
author: Tristan Matthews <tmatth@videolan.org>
date: Fri Nov 8 06:32:31 EST 2024
silk: fix spelling Signed-off-by: Jean-Marc Valin <jeanmarcv@google.com>
--- a/silk/PLC.c
+++ b/silk/PLC.c
@@ -178,7 +178,7 @@
silk_memset( psPLC->LTPCoef_Q14, 0, LTP_ORDER * sizeof( opus_int16 ));
}
- /* Save LPC coeficients */
+ /* Save LPC coefficients */
silk_memcpy( psPLC->prevLPC_Q12, psDecCtrl->PredCoef_Q12[ 1 ], psDec->LPC_order * sizeof( opus_int16 ) );
psPLC->prevLTP_scale_Q14 = psDecCtrl->LTP_scale_Q14;
@@ -282,7 +282,7 @@
/* LPC concealment. Apply BWE to previous LPC */
silk_bwexpander( psPLC->prevLPC_Q12, psDec->LPC_order, SILK_FIX_CONST( BWE_COEF, 16 ) );
- /* Preload LPC coeficients to array on stack. Gives small performance gain */
+ /* Preload LPC coefficients to array on stack. Gives small performance gain */
silk_memcpy( A_Q12, psPLC->prevLPC_Q12, psDec->LPC_order * sizeof( opus_int16 ) );
/* First Lost frame */
--- a/silk/control_SNR.c
+++ b/silk/control_SNR.c
@@ -78,7 +78,7 @@
247,248,249,249,250,251,252,253,255
};
-/* Control SNR of redidual quantizer */
+/* Control SNR of residual quantizer */
opus_int silk_control_SNR(
silk_encoder_state *psEncC, /* I/O Pointer to Silk encoder state */
opus_int32 TargetRate_bps /* I Target max bitrate (bps) */
--- a/silk/decode_core.c
+++ b/silk/decode_core.c
@@ -104,7 +104,7 @@
pres_Q14 = res_Q14;
A_Q12 = psDecCtrl->PredCoef_Q12[ k >> 1 ];
- /* Preload LPC coeficients to array on stack. Gives small performance gain */
+ /* Preload LPC coefficients to array on stack. Gives small performance gain */
silk_memcpy( A_Q12_tmp, A_Q12, psDec->LPC_order * sizeof( opus_int16 ) );
B_Q14 = &psDecCtrl->LTPCoef_Q14[ k * LTP_ORDER ];
signalType = psDec->indices.signalType;
--- a/silk/decode_indices.c
+++ b/silk/decode_indices.c
@@ -120,7 +120,7 @@
}
psDec->ec_prevLagIndex = psDec->indices.lagIndex;
- /* Get countour index */
+ /* Get contour index */
psDec->indices.contourIndex = (opus_int8)ec_dec_icdf( psRangeDec, psDec->pitch_contour_iCDF, 8 );
/********************/
--- a/silk/encode_indices.c
+++ b/silk/encode_indices.c
@@ -140,7 +140,7 @@
}
psEncC->ec_prevLagIndex = psIndices->lagIndex;
- /* Countour index */
+ /* Contour index */
silk_assert( psIndices->contourIndex >= 0 );
silk_assert( ( psIndices->contourIndex < 34 && psEncC->fs_kHz > 8 && psEncC->nb_subfr == 4 ) ||
( psIndices->contourIndex < 11 && psEncC->fs_kHz == 8 && psEncC->nb_subfr == 4 ) ||
--- a/silk/fixed/encode_frame_FIX.c
+++ b/silk/fixed/encode_frame_FIX.c
@@ -328,7 +328,7 @@
} else {
/* Adjust gain by interpolating */
gainMult_Q8 = gainMult_lower + silk_DIV32_16( silk_MUL( gainMult_upper - gainMult_lower, maxBits - nBits_lower ), nBits_upper - nBits_lower );
- /* New gain multplier must be between 25% and 75% of old range (note that gainMult_upper < gainMult_lower) */
+ /* New gain multiplier must be between 25% and 75% of old range (note that gainMult_upper < gainMult_lower) */
if( gainMult_Q8 > silk_ADD_RSHIFT32( gainMult_lower, gainMult_upper - gainMult_lower, 2 ) ) {
gainMult_Q8 = silk_ADD_RSHIFT32( gainMult_lower, gainMult_upper - gainMult_lower, 2 );
} else
--- a/silk/fixed/mips/prefilter_FIX_mipsr1.h
+++ b/silk/fixed/mips/prefilter_FIX_mipsr1.h
@@ -117,9 +117,9 @@
silk_prefilter_state_FIX *P, /* I/O state */
opus_int32 st_res_Q12[], /* I short term residual signal */
opus_int32 xw_Q3[], /* O prefiltered signal */
- opus_int32 HarmShapeFIRPacked_Q12, /* I Harmonic shaping coeficients */
- opus_int Tilt_Q14, /* I Tilt shaping coeficient */
- opus_int32 LF_shp_Q14, /* I Low-frequancy shaping coeficients */
+ opus_int32 HarmShapeFIRPacked_Q12, /* I Harmonic shaping coefficients */
+ opus_int Tilt_Q14, /* I Tilt shaping coefficients */
+ opus_int32 LF_shp_Q14, /* I Low-frequancy shaping coefficients */
opus_int lag, /* I Lag for harmonic shaping */
opus_int length /* I Length of signals */
)
--- a/silk/float/encode_frame_FLP.c
+++ b/silk/float/encode_frame_FLP.c
@@ -316,7 +316,7 @@
} else {
/* Adjust gain by interpolating */
gainMult_Q8 = gainMult_lower + ( ( gainMult_upper - gainMult_lower ) * ( maxBits - nBits_lower ) ) / ( nBits_upper - nBits_lower );
- /* New gain multplier must be between 25% and 75% of old range (note that gainMult_upper < gainMult_lower) */
+ /* New gain multiplier must be between 25% and 75% of old range (note that gainMult_upper < gainMult_lower) */
if( gainMult_Q8 > silk_ADD_RSHIFT32( gainMult_lower, gainMult_upper - gainMult_lower, 2 ) ) {
gainMult_Q8 = silk_ADD_RSHIFT32( gainMult_lower, gainMult_upper - gainMult_lower, 2 );
} else
--- a/silk/float/find_pitch_lags_FLP.c
+++ b/silk/float/find_pitch_lags_FLP.c
@@ -61,7 +61,7 @@
x_buf = x - psEnc->sCmn.ltp_mem_length;
/******************************************/
- /* Estimate LPC AR coeficients */
+ /* Estimate LPC AR coefficients */
/******************************************/
/* Calculate windowed signal */
--- a/silk/main.h
+++ b/silk/main.h
@@ -142,7 +142,7 @@
silk_EncControlStruct *encControl /* I Control structure */
);
-/* Control SNR of redidual quantizer */
+/* Control SNR of residual quantizer */
opus_int silk_control_SNR(
silk_encoder_state *psEncC, /* I/O Pointer to Silk encoder state */
opus_int32 TargetRate_bps /* I Target max bitrate (bps) */
--- a/silk/structs.h
+++ b/silk/structs.h
@@ -259,7 +259,7 @@
/* Struct for Packet Loss Concealment */
typedef struct {
opus_int32 pitchL_Q8; /* Pitch lag to use for voiced concealment */
- opus_int16 LTPCoef_Q14[ LTP_ORDER ]; /* LTP coeficients to use for voiced concealment */
+ opus_int16 LTPCoef_Q14[ LTP_ORDER ]; /* LTP coefficients to use for voiced concealment */
opus_int16 prevLPC_Q12[ MAX_LPC_ORDER ];
opus_int last_frame_lost; /* Was previous frame lost */
opus_int32 rand_seed; /* Seed for unvoiced signal generation */
--
⑨