aboutsummaryrefslogtreecommitdiffstats
path: root/codecs
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-15 04:38:39 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-15 04:38:39 +0000
commita1136fedf44ba8d0bada48295ac00961696b4bf5 (patch)
tree14f5bc090ee5daef3022a525dcf8035720d01227 /codecs
parenta34be8cd3f45e4c2f4f661c29f0810f4a379576e (diff)
Asterisk:
#72 - Should eliminate probs on VMWI #41 - Dynamic add survives reload #73 - Make festival honor its arguments #93 - Make events on FXO interfaces more logical #26 - Prefer "bindaddr" to logical address for registrations ??? - Record crashes AGI git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1338 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs')
-rwxr-xr-xcodecs/ilbc/FrameClassify.c1
-rwxr-xr-xcodecs/ilbc/LPCdecode.c1
-rwxr-xr-xcodecs/ilbc/LPCencode.c9
-rwxr-xr-xcodecs/ilbc/StateConstructW.c1
-rwxr-xr-xcodecs/ilbc/StateSearchW.c1
-rwxr-xr-xcodecs/ilbc/anaFilter.c1
-rwxr-xr-xcodecs/ilbc/createCB.c1
-rwxr-xr-xcodecs/ilbc/doCPLC.c3
-rwxr-xr-xcodecs/ilbc/enhancer.c15
-rwxr-xr-xcodecs/ilbc/filter.c3
-rwxr-xr-xcodecs/ilbc/gainquant.c1
-rwxr-xr-xcodecs/ilbc/getCBvec.c1
-rwxr-xr-xcodecs/ilbc/helpfun.c1
-rwxr-xr-xcodecs/ilbc/hpInput.c1
-rwxr-xr-xcodecs/ilbc/hpOutput.c1
-rwxr-xr-xcodecs/ilbc/iCBConstruct.c1
-rwxr-xr-xcodecs/ilbc/iCBSearch.c1
-rwxr-xr-xcodecs/ilbc/iLBC_decode.c3
-rwxr-xr-xcodecs/ilbc/iLBC_encode.c1
-rwxr-xr-xcodecs/ilbc/lsf.c1
-rwxr-xr-xcodecs/ilbc/packing.c1
-rwxr-xr-xcodecs/ilbc/syntFilter.c1
22 files changed, 36 insertions, 14 deletions
diff --git a/codecs/ilbc/FrameClassify.c b/codecs/ilbc/FrameClassify.c
index 61ede133b..9e8299cd0 100755
--- a/codecs/ilbc/FrameClassify.c
+++ b/codecs/ilbc/FrameClassify.c
@@ -12,6 +12,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 5ca53d055..b0d273b32 100755
--- a/codecs/ilbc/LPCdecode.c
+++ b/codecs/ilbc/LPCdecode.c
@@ -18,6 +18,7 @@
#include "lsf.h"
#include "iLBC_define.h"
#include "constants.h"
+#include "LPCdecode.h"
/*----------------------------------------------------------------*
* interpolation of lsf coefficients for the decoder
diff --git a/codecs/ilbc/LPCencode.c b/codecs/ilbc/LPCencode.c
index 251cd3fe5..eeac4bd4d 100755
--- a/codecs/ilbc/LPCencode.c
+++ b/codecs/ilbc/LPCencode.c
@@ -17,12 +17,13 @@
#include "helpfun.h"
#include "lsf.h"
#include "constants.h"
+#include "LPCencode.h"
/*----------------------------------------------------------------*
* lpc analysis (subrutine to LPCencode)
*---------------------------------------------------------------*/
-void SimpleAnalysis(
+static void SimpleAnalysis(
float *lsf, /* (o) lsf coefficients */
float *data, /* (i) new data vector */
float *lpc_buffer /* (i) buffer containing old data */
@@ -63,7 +64,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 */
@@ -81,7 +82,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 */
@@ -138,7 +139,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 c694106ae..2b2114f3c 100755
--- a/codecs/ilbc/StateConstructW.c
+++ b/codecs/ilbc/StateConstructW.c
@@ -17,6 +17,7 @@
#include "iLBC_define.h"
#include "constants.h"
#include "filter.h"
+#include "StateConstructW.h"
/*----------------------------------------------------------------*
* decoding of the start state
diff --git a/codecs/ilbc/StateSearchW.c b/codecs/ilbc/StateSearchW.c
index 3a761d5af..e1134ae56 100755
--- a/codecs/ilbc/StateSearchW.c
+++ b/codecs/ilbc/StateSearchW.c
@@ -18,6 +18,7 @@
#include "constants.h"
#include "filter.h"
#include "helpfun.h"
+#include "StateSearchW.h"
/*----------------------------------------------------------------*
* predictive noise shaping encoding of scaled start state
diff --git a/codecs/ilbc/anaFilter.c b/codecs/ilbc/anaFilter.c
index 19b502ef0..268c9266c 100755
--- a/codecs/ilbc/anaFilter.c
+++ b/codecs/ilbc/anaFilter.c
@@ -13,6 +13,7 @@
#include <string.h>
#include "iLBC_define.h"
+#include "anaFilter.h"
/*----------------------------------------------------------------*
* LP analysis filter.
diff --git a/codecs/ilbc/createCB.c b/codecs/ilbc/createCB.c
index b16ef4610..4d95b7513 100755
--- a/codecs/ilbc/createCB.c
+++ b/codecs/ilbc/createCB.c
@@ -13,6 +13,7 @@
#include "iLBC_define.h"
#include "constants.h"
+#include "createCB.h"
#include <string.h>
#include <math.h>
diff --git a/codecs/ilbc/doCPLC.c b/codecs/ilbc/doCPLC.c
index 0b0083b09..863d6e0ed 100755
--- a/codecs/ilbc/doCPLC.c
+++ b/codecs/ilbc/doCPLC.c
@@ -15,13 +15,14 @@
#include <string.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 *buffer, /* (i) signal buffer */
diff --git a/codecs/ilbc/enhancer.c b/codecs/ilbc/enhancer.c
index a2878cce0..86c4a85c0 100755
--- a/codecs/ilbc/enhancer.c
+++ b/codecs/ilbc/enhancer.c
@@ -16,6 +16,7 @@
#include "iLBC_define.h"
#include "constants.h"
#include "filter.h"
+#include "enhancer.h"
/*----------------------------------------------------------------*
* Find index in array such that the array element with said
@@ -23,7 +24,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 */
float value,/* (i) value */
@@ -50,7 +51,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 */
@@ -71,7 +72,7 @@ void mycorr1(
* upsample finite array assuming zeros outside bounds
*---------------------------------------------------------------*/
-void enh_upsample(
+static void enh_upsample(
float* useq1, /* (o) upsampled output sequence */
float* seq1,/* (i) unupsampled sequence */
int dim1, /* (i) dimension seq1 */
@@ -153,7 +154,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 */
@@ -240,7 +241,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 */
@@ -335,7 +336,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 */
@@ -411,7 +412,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 c74e9cfc5..2249555af 100755
--- a/codecs/ilbc/filter.c
+++ b/codecs/ilbc/filter.c
@@ -12,7 +12,8 @@
******************************************************************/
#include "iLBC_define.h"
-
+#include "filter.h"
+
/*----------------------------------------------------------------*
* all-pole filter
*---------------------------------------------------------------*/
diff --git a/codecs/ilbc/gainquant.c b/codecs/ilbc/gainquant.c
index be64f8a67..e0085c688 100755
--- a/codecs/ilbc/gainquant.c
+++ b/codecs/ilbc/gainquant.c
@@ -15,6 +15,7 @@
#include <math.h>
#include "constants.h"
#include "filter.h"
+#include "gainquant.h"
/*----------------------------------------------------------------*
* quantizer for the gain in the gain-shape coding of residual
diff --git a/codecs/ilbc/getCBvec.c b/codecs/ilbc/getCBvec.c
index 07e9f2d3c..9c57f7bf9 100755
--- a/codecs/ilbc/getCBvec.c
+++ b/codecs/ilbc/getCBvec.c
@@ -13,6 +13,7 @@
#include "iLBC_define.h"
#include "constants.h"
+#include "getCBvec.h"
#include <string.h>
/*----------------------------------------------------------------*
diff --git a/codecs/ilbc/helpfun.c b/codecs/ilbc/helpfun.c
index 936afd614..67d63c2be 100755
--- a/codecs/ilbc/helpfun.c
+++ b/codecs/ilbc/helpfun.c
@@ -14,6 +14,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 1599c2923..1947e757e 100755
--- a/codecs/ilbc/hpInput.c
+++ b/codecs/ilbc/hpInput.c
@@ -12,6 +12,7 @@
******************************************************************/
#include "constants.h"
+#include "hpInput.h"
/*----------------------------------------------------------------*
* Input high-pass filter
diff --git a/codecs/ilbc/hpOutput.c b/codecs/ilbc/hpOutput.c
index fa75f2578..60a78d278 100755
--- a/codecs/ilbc/hpOutput.c
+++ b/codecs/ilbc/hpOutput.c
@@ -12,6 +12,7 @@
******************************************************************/
#include "constants.h"
+#include "hpOutput.h"
/*----------------------------------------------------------------*
* Output high-pass filter
diff --git a/codecs/ilbc/iCBConstruct.c b/codecs/ilbc/iCBConstruct.c
index ccb3f663b..acbf54e3c 100755
--- a/codecs/ilbc/iCBConstruct.c
+++ b/codecs/ilbc/iCBConstruct.c
@@ -16,6 +16,7 @@
#include "iLBC_define.h"
#include "gainquant.h"
#include "getCBvec.h"
+#include "iCBConstruct.h"
/*----------------------------------------------------------------*
* Convert the codebook indexes to make the search easier
diff --git a/codecs/ilbc/iCBSearch.c b/codecs/ilbc/iCBSearch.c
index a6f3030fa..2279deb73 100755
--- a/codecs/ilbc/iCBSearch.c
+++ b/codecs/ilbc/iCBSearch.c
@@ -15,6 +15,7 @@
#include <string.h>
#include "iLBC_define.h"
+#include "iCBSearch.h"
#include "gainquant.h"
#include "createCB.h"
#include "filter.h"
diff --git a/codecs/ilbc/iLBC_decode.c b/codecs/ilbc/iLBC_decode.c
index 2347ab83a..06602ff0a 100755
--- a/codecs/ilbc/iLBC_decode.c
+++ b/codecs/ilbc/iLBC_decode.c
@@ -22,6 +22,7 @@
#include "helpfun.h"
#include "constants.h"
#include "packing.h"
+#include "iLBC_decode.h"
#include "string.h"
#include "enhancer.h"
#include "hpOutput.h"
@@ -78,7 +79,7 @@ short initDecode( /* (o) Number of decoded
* frame residual decoder function (subrutine to iLBC_decode)
*---------------------------------------------------------------*/
-void Decode(
+static void Decode(
float *decresidual, /* (o) decoded residual frame */
int start, /* (i) location of start state */
int idxForMax, /* (i) codebook index for the maximum
diff --git a/codecs/ilbc/iLBC_encode.c b/codecs/ilbc/iLBC_encode.c
index 6d8e04345..5a921e7be 100755
--- a/codecs/ilbc/iLBC_encode.c
+++ b/codecs/ilbc/iLBC_encode.c
@@ -22,6 +22,7 @@
#include "helpfun.h"
#include "constants.h"
#include "packing.h"
+#include "iLBC_encode.h"
#include "iCBSearch.h"
#include "iCBConstruct.h"
#include "hpInput.h"
diff --git a/codecs/ilbc/lsf.c b/codecs/ilbc/lsf.c
index f768b7782..b0429e05b 100755
--- a/codecs/ilbc/lsf.c
+++ b/codecs/ilbc/lsf.c
@@ -15,6 +15,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 6449e55ff..3818840bb 100755
--- a/codecs/ilbc/packing.c
+++ b/codecs/ilbc/packing.c
@@ -18,6 +18,7 @@
#include "constants.h"
#include "helpfun.h"
#include "string.h"
+#include "packing.h"
/*----------------------------------------------------------------*
* splitting an integer into first most significant bits and
diff --git a/codecs/ilbc/syntFilter.c b/codecs/ilbc/syntFilter.c
index fe61eaa46..121d1f508 100755
--- a/codecs/ilbc/syntFilter.c
+++ b/codecs/ilbc/syntFilter.c
@@ -12,6 +12,7 @@
******************************************************************/
#include "iLBC_define.h"
+#include "syntFilter.h"
/*----------------------------------------------------------------*
* LP synthesis filter.