******************************************************************/
#include "iLBC_define.h"
+#include "FrameClassify.h"
/*---------------------------------------------------------------*
* Classification of subframes to localize start state
#include "helpfun.h"
#include "lsf.h"
#include "iLBC_define.h"
+#include "LPCdecode.h"
#include "constants.h"
/*---------------------------------------------------------------*
#include "iLBC_define.h"
+#include "LPCencode.h"
#include "helpfun.h"
#include "lsf.h"
#include "constants.h"
* lpc analysis (subrutine to LPCencode)
*---------------------------------------------------------------*/
-void SimpleAnalysis(
+static void SimpleAnalysis(
float *lsf, /* (o) lsf coefficients */
float *data, /* (i) new data vector */
iLBC_Enc_Inst_t *iLBCenc_inst
* (subrutine to SimpleInterpolateLSF)
*---------------------------------------------------------------*/
-void LSFinterpolate2a_enc(
+static void LSFinterpolate2a_enc(
float *a, /* (o) lpc coefficients */
float *lsf1,/* (i) first set of lsf coefficients */
float *lsf2,/* (i) second set of lsf coefficients */
* lsf interpolator (subrutine to LPCencode)
*---------------------------------------------------------------*/
-void SimpleInterpolateLSF(
+static void SimpleInterpolateLSF(
float *syntdenum, /* (o) the synthesis filter denominator
resulting from the quantized
interpolated lsf */
* lsf quantizer (subrutine to LPCencode)
*---------------------------------------------------------------*/
-void SimplelsfQ(
+static void SimplelsfQ(
float *lsfdeq, /* (o) dequantized lsf coefficients
(dimension FILTERORDER) */
int *index, /* (o) quantization index */
#include <string.h>
#include "iLBC_define.h"
+#include "StateConstructW.h"
#include "constants.h"
#include "filter.h"
#include <string.h>
#include "iLBC_define.h"
+#include "StateSearchW.h"
#include "constants.h"
#include "filter.h"
#include "helpfun.h"
******************************************************************/
#include <string.h>
+#include "anaFilter.h"
#include "iLBC_define.h"
/*----------------------------------------------------------------*
******************************************************************/
#include "iLBC_define.h"
+#include "createCB.h"
#include "constants.h"
#include <string.h>
#include <math.h>
#include <stdio.h>
#include "iLBC_define.h"
+#include "doCPLC.h"
/*----------------------------------------------------------------*
* Compute cross correlation and pitch gain for pitch prediction
* of last subframe at given lag.
*---------------------------------------------------------------*/
-void compCorr(
+static void compCorr(
float *cc, /* (o) cross correlation coefficient */
float *gc, /* (o) gain */
float *pm,
#include <math.h>
#include <string.h>
#include "iLBC_define.h"
+#include "enhancer.h"
#include "constants.h"
#include "filter.h"
* according to the squared-error criterion
*---------------------------------------------------------------*/
-void NearestNeighbor(
+static void NearestNeighbor(
int *index, /* (o) index of array element closest
to value */
float *array, /* (i) data array */
* compute cross correlation between sequences
*---------------------------------------------------------------*/
-void mycorr1(
+static void mycorr1(
float* corr, /* (o) correlation of seq1 and seq2 */
float* seq1, /* (i) first sequence */
int dim1, /* (i) dimension first seq1 */
-void enh_upsample(
+static void enh_upsample(
float* useq1, /* (o) upsampled output sequence */
float* seq1,/* (i) unupsampled sequence */
int dim1, /* (i) dimension seq1 */
* sampling rate
*---------------------------------------------------------------*/
-void refiner(
+static void refiner(
float *seg, /* (o) segment array */
float *updStartPos, /* (o) updated start point */
float* idata, /* (i) original data buffer */
* find the smoothed output data
*---------------------------------------------------------------*/
-void smath(
+static void smath(
float *odata, /* (o) smoothed output */
float *sseq,/* (i) said second sequence of waveforms */
int hl, /* (i) 2*hl+1 is sseq dimension */
* get the pitch-synchronous sample sequence
*---------------------------------------------------------------*/
-void getsseq(
+static void getsseq(
float *sseq, /* (o) the pitch-synchronous sequence */
float *idata, /* (i) original data */
int idatal, /* (i) dimension of data */
* idata+centerStartPos+ENH_BLOCKL-1
*---------------------------------------------------------------*/
-void enhancer(
+static void enhancer(
float *odata, /* (o) smoothed block, dimension blockl */
float *idata, /* (i) data buffer used for enhancing */
int idatal, /* (i) dimension idata */
#include "iLBC_define.h"
+#include "filter.h"
/*----------------------------------------------------------------*
* all-pole filter
#include <string.h>
#include <math.h>
#include "constants.h"
+#include "gainquant.h"
#include "filter.h"
/*----------------------------------------------------------------*
******************************************************************/
#include "iLBC_define.h"
+#include "getCBvec.h"
#include "constants.h"
#include <string.h>
#include <math.h>
#include "iLBC_define.h"
+#include "helpfun.h"
#include "constants.h"
/*----------------------------------------------------------------*
******************************************************************/
#include "constants.h"
+#include "hpInput.h"
/*----------------------------------------------------------------*
* Input high-pass filter
******************************************************************/
#include "constants.h"
-
+#include "hpOutput.h"
/*----------------------------------------------------------------*
* Output high-pass filter
*---------------------------------------------------------------*/
#include <math.h>
#include "iLBC_define.h"
+#include "iCBConstruct.h"
#include "gainquant.h"
#include "getCBvec.h"
#include <string.h>
#include "iLBC_define.h"
+#include "iCBSearch.h"
#include "gainquant.h"
#include "createCB.h"
#include "filter.h"
*ppe=0.0;
pp=buf+LPC_FILTERORDER+lMem-lTarget;
for (j=0; j<lTarget; j++) {
- *ppe+=(*pp)*(*pp++);
+ *ppe+=(*pp)*(*pp);
+ pp++;
}
if (*ppe>0.0) {
pp=cbvectors+lMem-lTarget;
for (j=0; j<lTarget; j++) {
- *ppe+=(*pp)*(*pp++);
+ *ppe+=(*pp)*(*pp);
+ pp++;
}
ppi = cbvectors + lMem - 1 - lTarget;
#include <stdlib.h>
#include "iLBC_define.h"
+#include "iLBC_decode.h"
#include "StateConstructW.h"
#include "LPCdecode.h"
#include "iCBConstruct.h"
* frame residual decoder function (subrutine to iLBC_decode)
*---------------------------------------------------------------*/
-void Decode(
+static void Decode(
iLBC_Dec_Inst_t *iLBCdec_inst, /* (i/o) the decoder state
structure */
float *decresidual, /* (o) decoded residual frame */
#include <string.h>
#include "iLBC_define.h"
+#include "iLBC_encode.h"
#include "LPCencode.h"
#include "FrameClassify.h"
#include "StateSearchW.h"
#include <math.h>
#include "iLBC_define.h"
+#include "lsf.h"
/*----------------------------------------------------------------*
* conversion from lpc coefficients to lsf coefficients
#include "iLBC_define.h"
#include "constants.h"
#include "helpfun.h"
+#include "packing.h"
#include "string.h"
/*----------------------------------------------------------------*
******************************************************************/
#include "iLBC_define.h"
+#include "syntFilter.h"
/*----------------------------------------------------------------*
* LP synthesis filter.