diff --git a/codecs/ilbc/FrameClassify.c b/codecs/ilbc/FrameClassify.c index 69e52902a71882ad0d3a6788293fced5e1f906c1..c982fd667a327f37ad19d2e3d270b5a210145c6c 100755 --- a/codecs/ilbc/FrameClassify.c +++ b/codecs/ilbc/FrameClassify.c @@ -11,6 +11,7 @@ ******************************************************************/ #include "iLBC_define.h" +#include "FrameClassify.h" /*---------------------------------------------------------------* * Classification of subframes to localize start state diff --git a/codecs/ilbc/LPCdecode.c b/codecs/ilbc/LPCdecode.c index 680ebdfac08df53e13a08bfdebae2df8e75ee900..f4bc9896d2ef3b59f2e2983191546f1203086c6f 100755 --- a/codecs/ilbc/LPCdecode.c +++ b/codecs/ilbc/LPCdecode.c @@ -16,6 +16,7 @@ #include "helpfun.h" #include "lsf.h" #include "iLBC_define.h" +#include "LPCdecode.h" #include "constants.h" /*---------------------------------------------------------------* diff --git a/codecs/ilbc/LPCencode.c b/codecs/ilbc/LPCencode.c index 920859a0e9cc0eed73714bc9f6021ee7eb5192e0..4d5fcff213a91f4dcfa63d0daf7bede9d8f35d21 100755 --- a/codecs/ilbc/LPCencode.c +++ b/codecs/ilbc/LPCencode.c @@ -15,6 +15,7 @@ #include "iLBC_define.h" +#include "LPCencode.h" #include "helpfun.h" #include "lsf.h" #include "constants.h" @@ -23,7 +24,7 @@ * 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 @@ -73,7 +74,7 @@ void SimpleAnalysis( * (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 */ @@ -91,7 +92,7 @@ void LSFinterpolate2a_enc( * lsf interpolator (subrutine to LPCencode) *---------------------------------------------------------------*/ -void SimpleInterpolateLSF( +static void SimpleInterpolateLSF( float *syntdenum, /* (o) the synthesis filter denominator resulting from the quantized interpolated lsf */ @@ -174,7 +175,7 @@ void SimpleInterpolateLSF( * lsf quantizer (subrutine to LPCencode) *---------------------------------------------------------------*/ -void SimplelsfQ( +static void SimplelsfQ( float *lsfdeq, /* (o) dequantized lsf coefficients (dimension FILTERORDER) */ int *index, /* (o) quantization index */ diff --git a/codecs/ilbc/StateConstructW.c b/codecs/ilbc/StateConstructW.c index 75f521328243911e9fa8ac0e7294c081f5ed1033..e48fe035d4a64b8adce238ea25f7ee036d662011 100755 --- a/codecs/ilbc/StateConstructW.c +++ b/codecs/ilbc/StateConstructW.c @@ -16,6 +16,7 @@ #include <string.h> #include "iLBC_define.h" +#include "StateConstructW.h" #include "constants.h" #include "filter.h" diff --git a/codecs/ilbc/StateSearchW.c b/codecs/ilbc/StateSearchW.c index d4ca73472f5deec0895e50c61c7c97a75755d9a3..b87b9f3c6026024e4356722bd68a24c98f224843 100755 --- a/codecs/ilbc/StateSearchW.c +++ b/codecs/ilbc/StateSearchW.c @@ -14,6 +14,7 @@ #include <string.h> #include "iLBC_define.h" +#include "StateSearchW.h" #include "constants.h" #include "filter.h" #include "helpfun.h" diff --git a/codecs/ilbc/anaFilter.c b/codecs/ilbc/anaFilter.c index 1c9e71889109bf1f15b0b014861c3ee43e6bcef1..f88fefaa0899319594ec5c7d955240f15c40c3aa 100755 --- a/codecs/ilbc/anaFilter.c +++ b/codecs/ilbc/anaFilter.c @@ -11,6 +11,7 @@ ******************************************************************/ #include <string.h> +#include "anaFilter.h" #include "iLBC_define.h" /*----------------------------------------------------------------* diff --git a/codecs/ilbc/createCB.c b/codecs/ilbc/createCB.c index b3b0c2b0f0c46118f2f1ddcc9029e78b16782d1b..a7efd93801a3bf574018a445d137917f2952e72a 100755 --- a/codecs/ilbc/createCB.c +++ b/codecs/ilbc/createCB.c @@ -13,6 +13,7 @@ ******************************************************************/ #include "iLBC_define.h" +#include "createCB.h" #include "constants.h" #include <string.h> #include <math.h> diff --git a/codecs/ilbc/doCPLC.c b/codecs/ilbc/doCPLC.c index 559c64344d867807063a0957e4964041ceb909c0..bb4b56c108cb0e81698ae59b201ba1e5dc6cb0c4 100755 --- a/codecs/ilbc/doCPLC.c +++ b/codecs/ilbc/doCPLC.c @@ -15,13 +15,14 @@ #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, diff --git a/codecs/ilbc/enhancer.c b/codecs/ilbc/enhancer.c index 3e381ec31735c05b3eace839640ba248a870ae75..7c78298028cebdc4e037ab4c116e24f80697550d 100755 --- a/codecs/ilbc/enhancer.c +++ b/codecs/ilbc/enhancer.c @@ -13,6 +13,7 @@ #include <math.h> #include <string.h> #include "iLBC_define.h" +#include "enhancer.h" #include "constants.h" #include "filter.h" @@ -24,7 +25,7 @@ * 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 */ @@ -52,7 +53,7 @@ void NearestNeighbor( * 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 */ @@ -75,7 +76,7 @@ void mycorr1( -void enh_upsample( +static void enh_upsample( float* useq1, /* (o) upsampled output sequence */ float* seq1,/* (i) unupsampled sequence */ int dim1, /* (i) dimension seq1 */ @@ -160,7 +161,7 @@ void enh_upsample( * sampling rate *---------------------------------------------------------------*/ -void refiner( +static void refiner( float *seg, /* (o) segment array */ float *updStartPos, /* (o) updated start point */ float* idata, /* (i) original data buffer */ @@ -250,7 +251,7 @@ void refiner( * 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 */ @@ -347,7 +348,7 @@ void smath( * 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 */ @@ -425,7 +426,7 @@ void getsseq( * 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 */ diff --git a/codecs/ilbc/filter.c b/codecs/ilbc/filter.c index 0afb52fa93efba0ea5fbc345d05473d33ae3c7cd..f4ba63386d6046d5998bcfd7c986483b3d93211b 100755 --- a/codecs/ilbc/filter.c +++ b/codecs/ilbc/filter.c @@ -13,6 +13,7 @@ #include "iLBC_define.h" +#include "filter.h" /*----------------------------------------------------------------* * all-pole filter diff --git a/codecs/ilbc/gainquant.c b/codecs/ilbc/gainquant.c index a23ce05b451f800721d25a88f204246e2b6385b2..33dc194744b29ef8a6c9afa5ac3d60cdba6d1ee0 100755 --- a/codecs/ilbc/gainquant.c +++ b/codecs/ilbc/gainquant.c @@ -15,6 +15,7 @@ #include <string.h> #include <math.h> #include "constants.h" +#include "gainquant.h" #include "filter.h" /*----------------------------------------------------------------* diff --git a/codecs/ilbc/getCBvec.c b/codecs/ilbc/getCBvec.c index 3d301dc40bf6b7eed4b7b78cdc6e03cb57287aff..081abb216427e4b9ca1d20f68854bfc73f09fa49 100755 --- a/codecs/ilbc/getCBvec.c +++ b/codecs/ilbc/getCBvec.c @@ -11,6 +11,7 @@ ******************************************************************/ #include "iLBC_define.h" +#include "getCBvec.h" #include "constants.h" #include <string.h> diff --git a/codecs/ilbc/helpfun.c b/codecs/ilbc/helpfun.c index ed8be502407e40853cb1f7179783c1f84be9ed42..02d83c9717645f64ecacd5651a9e54e555cc7a50 100755 --- a/codecs/ilbc/helpfun.c +++ b/codecs/ilbc/helpfun.c @@ -13,6 +13,7 @@ #include <math.h> #include "iLBC_define.h" +#include "helpfun.h" #include "constants.h" /*----------------------------------------------------------------* diff --git a/codecs/ilbc/hpInput.c b/codecs/ilbc/hpInput.c index 4097c62052d0516a19fbd386eb1942ba4734620d..16b98f3df9d014ad5ae8769eb39901a92b9b5c05 100755 --- a/codecs/ilbc/hpInput.c +++ b/codecs/ilbc/hpInput.c @@ -11,6 +11,7 @@ ******************************************************************/ #include "constants.h" +#include "hpInput.h" /*----------------------------------------------------------------* * Input high-pass filter diff --git a/codecs/ilbc/hpOutput.c b/codecs/ilbc/hpOutput.c index 7d0eea010ff3b870e96b168c0927f33929b5e29a..fdc0f6db92b9eb8e7829ce922d3897a2c7a9c966 100755 --- a/codecs/ilbc/hpOutput.c +++ b/codecs/ilbc/hpOutput.c @@ -13,7 +13,7 @@ ******************************************************************/ #include "constants.h" - +#include "hpOutput.h" /*----------------------------------------------------------------* * Output high-pass filter *---------------------------------------------------------------*/ diff --git a/codecs/ilbc/iCBConstruct.c b/codecs/ilbc/iCBConstruct.c index 384e75df64a5bf170904fda786722712998058dc..dbee586c259342a067e9ce162184dc4f7db51c5e 100755 --- a/codecs/ilbc/iCBConstruct.c +++ b/codecs/ilbc/iCBConstruct.c @@ -13,6 +13,7 @@ #include <math.h> #include "iLBC_define.h" +#include "iCBConstruct.h" #include "gainquant.h" #include "getCBvec.h" diff --git a/codecs/ilbc/iCBSearch.c b/codecs/ilbc/iCBSearch.c index fbdeaf6b24dcfa763199b756addf071932f43674..c047297e3dfaa6935e387c37bc089b84298f56a9 100755 --- a/codecs/ilbc/iCBSearch.c +++ b/codecs/ilbc/iCBSearch.c @@ -14,6 +14,7 @@ #include <string.h> #include "iLBC_define.h" +#include "iCBSearch.h" #include "gainquant.h" #include "createCB.h" #include "filter.h" @@ -121,7 +122,8 @@ void iCBSearch( *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) { @@ -303,7 +305,8 @@ void iCBSearch( pp=cbvectors+lMem-lTarget; for (j=0; j<lTarget; j++) { - *ppe+=(*pp)*(*pp++); + *ppe+=(*pp)*(*pp); + pp++; } ppi = cbvectors + lMem - 1 - lTarget; diff --git a/codecs/ilbc/iLBC_decode.c b/codecs/ilbc/iLBC_decode.c index ace6fd90fe0404d6a8c06b449f5e4e08b60125cb..91c80c8e22bf68927eded2c3678237f29631287a 100755 --- a/codecs/ilbc/iLBC_decode.c +++ b/codecs/ilbc/iLBC_decode.c @@ -14,6 +14,7 @@ #include <stdlib.h> #include "iLBC_define.h" +#include "iLBC_decode.h" #include "StateConstructW.h" #include "LPCdecode.h" #include "iCBConstruct.h" @@ -110,7 +111,7 @@ short initDecode( /* (o) Number of decoded * 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 */ diff --git a/codecs/ilbc/iLBC_encode.c b/codecs/ilbc/iLBC_encode.c index ceccc119fe9b8db33e0e69fa4e049373b27556fe..e2090626e2516fa9a03b89c1dee66161a2576633 100755 --- a/codecs/ilbc/iLBC_encode.c +++ b/codecs/ilbc/iLBC_encode.c @@ -15,6 +15,7 @@ #include <string.h> #include "iLBC_define.h" +#include "iLBC_encode.h" #include "LPCencode.h" #include "FrameClassify.h" #include "StateSearchW.h" diff --git a/codecs/ilbc/lsf.c b/codecs/ilbc/lsf.c index 348ffe3931a4cd44fe64d7d51b858abb9aa492fe..055c21cb5611e66a5c08bfdbd10d46dc0819f2c7 100755 --- a/codecs/ilbc/lsf.c +++ b/codecs/ilbc/lsf.c @@ -14,6 +14,7 @@ #include <math.h> #include "iLBC_define.h" +#include "lsf.h" /*----------------------------------------------------------------* * conversion from lpc coefficients to lsf coefficients diff --git a/codecs/ilbc/packing.c b/codecs/ilbc/packing.c index 4496ee9bca38918d3e06e2c7ff82772c4a74d58e..3071032e096feb4dacedd01232bd883d4eac8c54 100755 --- a/codecs/ilbc/packing.c +++ b/codecs/ilbc/packing.c @@ -16,6 +16,7 @@ #include "iLBC_define.h" #include "constants.h" #include "helpfun.h" +#include "packing.h" #include "string.h" /*----------------------------------------------------------------* diff --git a/codecs/ilbc/syntFilter.c b/codecs/ilbc/syntFilter.c index 8621850d0183c5cfc0f2db700e8a3cd41349273c..bb7f7a5599a2555eb57f57ab114d5c5ad555ebbf 100755 --- a/codecs/ilbc/syntFilter.c +++ b/codecs/ilbc/syntFilter.c @@ -11,6 +11,7 @@ ******************************************************************/ #include "iLBC_define.h" +#include "syntFilter.h" /*----------------------------------------------------------------* * LP synthesis filter.