summaryrefslogtreecommitdiffstats
path: root/thirdparties/win32/include/ilbc
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparties/win32/include/ilbc')
-rwxr-xr-xthirdparties/win32/include/ilbc/FrameClassify.h28
-rwxr-xr-xthirdparties/win32/include/ilbc/LPCdecode.h58
-rwxr-xr-xthirdparties/win32/include/ilbc/LPCencode.h34
-rwxr-xr-xthirdparties/win32/include/ilbc/StateConstructW.h32
-rwxr-xr-xthirdparties/win32/include/ilbc/StateSearchW.h62
-rwxr-xr-xthirdparties/win32/include/ilbc/anaFilter.h32
-rwxr-xr-xthirdparties/win32/include/ilbc/constants.h90
-rwxr-xr-xthirdparties/win32/include/ilbc/createCB.h66
-rwxr-xr-xthirdparties/win32/include/ilbc/doCPLC.h40
-rwxr-xr-xthirdparties/win32/include/ilbc/enhancer.h42
-rwxr-xr-xthirdparties/win32/include/ilbc/filter.h74
-rwxr-xr-xthirdparties/win32/include/ilbc/gainquant.h40
-rwxr-xr-xthirdparties/win32/include/ilbc/getCBvec.h32
-rwxr-xr-xthirdparties/win32/include/ilbc/helpfun.h142
-rwxr-xr-xthirdparties/win32/include/ilbc/hpInput.h30
-rwxr-xr-xthirdparties/win32/include/ilbc/hpOutput.h30
-rwxr-xr-xthirdparties/win32/include/ilbc/iCBConstruct.h48
-rwxr-xr-xthirdparties/win32/include/ilbc/iCBSearch.h46
-rwxr-xr-xthirdparties/win32/include/ilbc/iLBC_decode.h42
-rwxr-xr-xthirdparties/win32/include/ilbc/iLBC_define.h300
-rwxr-xr-xthirdparties/win32/include/ilbc/iLBC_encode.h38
-rwxr-xr-xthirdparties/win32/include/ilbc/lsf.h34
-rwxr-xr-xthirdparties/win32/include/ilbc/packing.h66
-rwxr-xr-xthirdparties/win32/include/ilbc/syntFilter.h30
24 files changed, 718 insertions, 718 deletions
diff --git a/thirdparties/win32/include/ilbc/FrameClassify.h b/thirdparties/win32/include/ilbc/FrameClassify.h
index d8666b5..7025281 100755
--- a/thirdparties/win32/include/ilbc/FrameClassify.h
+++ b/thirdparties/win32/include/ilbc/FrameClassify.h
@@ -1,27 +1,27 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- FrameClassify.h
+ FrameClassify.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_FRAMECLASSIFY_H
- #define __iLBC_FRAMECLASSIFY_H
+#ifndef __iLBC_FRAMECLASSIFY_H
+#define __iLBC_FRAMECLASSIFY_H
- int FrameClassify( /* index to the max-energy sub-frame */
- iLBC_Enc_Inst_t *iLBCenc_inst,
- /* (i/o) the encoder state structure */
- float *residual /* (i) lpc residual signal */
- );
+int FrameClassify( /* index to the max-energy sub-frame */
+ iLBC_Enc_Inst_t *iLBCenc_inst,
+ /* (i/o) the encoder state structure */
+ float *residual /* (i) lpc residual signal */
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/LPCdecode.h b/thirdparties/win32/include/ilbc/LPCdecode.h
index b7fa417..1c8f7a8 100755
--- a/thirdparties/win32/include/ilbc/LPCdecode.h
+++ b/thirdparties/win32/include/ilbc/LPCdecode.h
@@ -1,42 +1,42 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- LPC_decode.h
+ LPC_decode.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_LPC_DECODE_H
- #define __iLBC_LPC_DECODE_H
+#ifndef __iLBC_LPC_DECODE_H
+#define __iLBC_LPC_DECODE_H
- void LSFinterpolate2a_dec(
- float *a, /* (o) lpc coefficients for a sub-frame */
- float *lsf1, /* (i) first lsf coefficient vector */
- float *lsf2, /* (i) second lsf coefficient vector */
- float coef, /* (i) interpolation weight */
- int length /* (i) length of lsf vectors */
- );
+void LSFinterpolate2a_dec(
+ float *a, /* (o) lpc coefficients for a sub-frame */
+ float *lsf1, /* (i) first lsf coefficient vector */
+ float *lsf2, /* (i) second lsf coefficient vector */
+ float coef, /* (i) interpolation weight */
+ int length /* (i) length of lsf vectors */
+);
- void SimplelsfDEQ(
- float *lsfdeq, /* (o) dequantized lsf coefficients */
- int *index, /* (i) quantization index */
- int lpc_n /* (i) number of LPCs */
- );
+void SimplelsfDEQ(
+ float *lsfdeq, /* (o) dequantized lsf coefficients */
+ int *index, /* (i) quantization index */
+ int lpc_n /* (i) number of LPCs */
+);
- void DecoderInterpolateLSF(
- float *syntdenum, /* (o) synthesis filter coefficients */
- float *weightdenum, /* (o) weighting denumerator
+void DecoderInterpolateLSF(
+ float *syntdenum, /* (o) synthesis filter coefficients */
+ float *weightdenum, /* (o) weighting denumerator
coefficients */
- float *lsfdeq, /* (i) dequantized lsf coefficients */
- int length, /* (i) length of lsf coefficient vector */
- iLBC_Dec_Inst_t *iLBCdec_inst
- /* (i) the decoder state structure */
- );
+ float *lsfdeq, /* (i) dequantized lsf coefficients */
+ int length, /* (i) length of lsf coefficient vector */
+ iLBC_Dec_Inst_t *iLBCdec_inst
+ /* (i) the decoder state structure */
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/LPCencode.h b/thirdparties/win32/include/ilbc/LPCencode.h
index 17bae5f..4643c56 100755
--- a/thirdparties/win32/include/ilbc/LPCencode.h
+++ b/thirdparties/win32/include/ilbc/LPCencode.h
@@ -1,27 +1,27 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- LPCencode.h
+ LPCencode.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_LPCENCOD_H
- #define __iLBC_LPCENCOD_H
+#ifndef __iLBC_LPCENCOD_H
+#define __iLBC_LPCENCOD_H
- void LPCencode(
- float *syntdenum, /* (i/o) synthesis filter coefficients
+void LPCencode(
+ float *syntdenum, /* (i/o) synthesis filter coefficients
before/after encoding */
- float *weightdenum, /* (i/o) weighting denumerator coefficients
+ float *weightdenum, /* (i/o) weighting denumerator coefficients
before/after encoding */
- int *lsf_index, /* (o) lsf quantization index */
- float *data, /* (i) lsf coefficients to quantize */
- iLBC_Enc_Inst_t *iLBCenc_inst
- /* (i/o) the encoder state structure */
- );
+ int *lsf_index, /* (o) lsf quantization index */
+ float *data, /* (i) lsf coefficients to quantize */
+ iLBC_Enc_Inst_t *iLBCenc_inst
+ /* (i/o) the encoder state structure */
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/StateConstructW.h b/thirdparties/win32/include/ilbc/StateConstructW.h
index 4e40a73..46e7f78 100755
--- a/thirdparties/win32/include/ilbc/StateConstructW.h
+++ b/thirdparties/win32/include/ilbc/StateConstructW.h
@@ -1,8 +1,8 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- StateConstructW.h
+ StateConstructW.h
@@ -10,22 +10,22 @@
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_STATECONSTRUCTW_H
- #define __iLBC_STATECONSTRUCTW_H
+#ifndef __iLBC_STATECONSTRUCTW_H
+#define __iLBC_STATECONSTRUCTW_H
- void StateConstructW(
- int idxForMax, /* (i) 6-bit index for the quantization of
+void StateConstructW(
+ int idxForMax, /* (i) 6-bit index for the quantization of
max amplitude */
- int *idxVec, /* (i) vector of quantization indexes */
- float *syntDenum, /* (i) synthesis filter denumerator */
- float *out, /* (o) the decoded state vector */
- int len /* (i) length of a state vector */
- );
+ int *idxVec, /* (i) vector of quantization indexes */
+ float *syntDenum, /* (i) synthesis filter denumerator */
+ float *out, /* (o) the decoded state vector */
+ int len /* (i) length of a state vector */
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/StateSearchW.h b/thirdparties/win32/include/ilbc/StateSearchW.h
index cc9449b..638c6f3 100755
--- a/thirdparties/win32/include/ilbc/StateSearchW.h
+++ b/thirdparties/win32/include/ilbc/StateSearchW.h
@@ -1,46 +1,46 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- StateSearchW.h
+ StateSearchW.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_STATESEARCHW_H
- #define __iLBC_STATESEARCHW_H
+#ifndef __iLBC_STATESEARCHW_H
+#define __iLBC_STATESEARCHW_H
- void AbsQuantW(
- iLBC_Enc_Inst_t *iLBCenc_inst,
- /* (i) Encoder instance */
- float *in, /* (i) vector to encode */
- float *syntDenum, /* (i) denominator of synthesis filter */
- float *weightDenum, /* (i) denominator of weighting filter */
- int *out, /* (o) vector of quantizer indexes */
- int len, /* (i) length of vector to encode and
+void AbsQuantW(
+ iLBC_Enc_Inst_t *iLBCenc_inst,
+ /* (i) Encoder instance */
+ float *in, /* (i) vector to encode */
+ float *syntDenum, /* (i) denominator of synthesis filter */
+ float *weightDenum, /* (i) denominator of weighting filter */
+ int *out, /* (o) vector of quantizer indexes */
+ int len, /* (i) length of vector to encode and
vector of quantizer indexes */
- int state_first /* (i) position of start state in the
+ int state_first /* (i) position of start state in the
80 vec */
- );
-
- void StateSearchW(
- iLBC_Enc_Inst_t *iLBCenc_inst,
- /* (i) Encoder instance */
- float *residual,/* (i) target residual vector */
- float *syntDenum, /* (i) lpc synthesis filter */
- float *weightDenum, /* (i) weighting filter denuminator */
- int *idxForMax, /* (o) quantizer index for maximum
+);
+
+void StateSearchW(
+ iLBC_Enc_Inst_t *iLBCenc_inst,
+ /* (i) Encoder instance */
+ float *residual,/* (i) target residual vector */
+ float *syntDenum, /* (i) lpc synthesis filter */
+ float *weightDenum, /* (i) weighting filter denuminator */
+ int *idxForMax, /* (o) quantizer index for maximum
amplitude */
- int *idxVec, /* (o) vector of quantization indexes */
- int len, /* (i) length of all vectors */
- int state_first /* (i) position of start state in the
+ int *idxVec, /* (o) vector of quantization indexes */
+ int len, /* (i) length of all vectors */
+ int state_first /* (i) position of start state in the
80 vec */
- );
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/anaFilter.h b/thirdparties/win32/include/ilbc/anaFilter.h
index 47388f2..924cea5 100755
--- a/thirdparties/win32/include/ilbc/anaFilter.h
+++ b/thirdparties/win32/include/ilbc/anaFilter.h
@@ -1,30 +1,30 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- anaFilter.h
+ anaFilter.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_ANAFILTER_H
- #define __iLBC_ANAFILTER_H
+#ifndef __iLBC_ANAFILTER_H
+#define __iLBC_ANAFILTER_H
- void anaFilter(
+void anaFilter(
- float *In, /* (i) Signal to be filtered */
- float *a, /* (i) LP parameters */
- int len,/* (i) Length of signal */
- float *Out, /* (o) Filtered signal */
- float *mem /* (i/o) Filter state */
- );
+ float *In, /* (i) Signal to be filtered */
+ float *a, /* (i) LP parameters */
+ int len,/* (i) Length of signal */
+ float *Out, /* (o) Filtered signal */
+ float *mem /* (i/o) Filter state */
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/constants.h b/thirdparties/win32/include/ilbc/constants.h
index 6b37aed..5880edb 100755
--- a/thirdparties/win32/include/ilbc/constants.h
+++ b/thirdparties/win32/include/ilbc/constants.h
@@ -1,21 +1,21 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- constants.h
+ constants.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_CONSTANTS_H
- #define __iLBC_CONSTANTS_H
+#ifndef __iLBC_CONSTANTS_H
+#define __iLBC_CONSTANTS_H
- #include "iLBC_define.h"
+#include "iLBC_define.h"
- /* ULP bit allocation */
+/* ULP bit allocation */
@@ -23,53 +23,53 @@
- extern const iLBC_ULP_Inst_t ULP_20msTbl;
- extern const iLBC_ULP_Inst_t ULP_30msTbl;
+extern const iLBC_ULP_Inst_t ULP_20msTbl;
+extern const iLBC_ULP_Inst_t ULP_30msTbl;
- /* high pass filters */
+/* high pass filters */
- extern float hpi_zero_coefsTbl[];
- extern float hpi_pole_coefsTbl[];
- extern float hpo_zero_coefsTbl[];
- extern float hpo_pole_coefsTbl[];
+extern float hpi_zero_coefsTbl[];
+extern float hpi_pole_coefsTbl[];
+extern float hpo_zero_coefsTbl[];
+extern float hpo_pole_coefsTbl[];
- /* low pass filters */
- extern float lpFilt_coefsTbl[];
+/* low pass filters */
+extern float lpFilt_coefsTbl[];
- /* LPC analysis and quantization */
+/* LPC analysis and quantization */
- extern float lpc_winTbl[];
- extern float lpc_asymwinTbl[];
- extern float lpc_lagwinTbl[];
- extern float lsfCbTbl[];
- extern float lsfmeanTbl[];
- extern int dim_lsfCbTbl[];
- extern int size_lsfCbTbl[];
- extern float lsf_weightTbl_30ms[];
- extern float lsf_weightTbl_20ms[];
+extern float lpc_winTbl[];
+extern float lpc_asymwinTbl[];
+extern float lpc_lagwinTbl[];
+extern float lsfCbTbl[];
+extern float lsfmeanTbl[];
+extern int dim_lsfCbTbl[];
+extern int size_lsfCbTbl[];
+extern float lsf_weightTbl_30ms[];
+extern float lsf_weightTbl_20ms[];
- /* state quantization tables */
+/* state quantization tables */
- extern float state_sq3Tbl[];
- extern float state_frgqTbl[];
+extern float state_sq3Tbl[];
+extern float state_frgqTbl[];
- /* gain quantization tables */
+/* gain quantization tables */
- extern float gain_sq3Tbl[];
- extern float gain_sq4Tbl[];
- extern float gain_sq5Tbl[];
+extern float gain_sq3Tbl[];
+extern float gain_sq4Tbl[];
+extern float gain_sq5Tbl[];
- /* adaptive codebook definitions */
+/* adaptive codebook definitions */
- extern int search_rangeTbl[5][CB_NSTAGES];
- extern int memLfTbl[];
- extern int stMemLTbl;
- extern float cbfiltersTbl[CB_FILTERLEN];
+extern int search_rangeTbl[5][CB_NSTAGES];
+extern int memLfTbl[];
+extern int stMemLTbl;
+extern float cbfiltersTbl[CB_FILTERLEN];
- /* enhancer definitions */
+/* enhancer definitions */
- extern float polyphaserTbl[];
- extern float enh_plocsTbl[];
+extern float polyphaserTbl[];
+extern float enh_plocsTbl[];
@@ -77,5 +77,5 @@
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/createCB.h b/thirdparties/win32/include/ilbc/createCB.h
index 526405a..7fe91d3 100755
--- a/thirdparties/win32/include/ilbc/createCB.h
+++ b/thirdparties/win32/include/ilbc/createCB.h
@@ -1,19 +1,19 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- createCB.h
+ createCB.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_CREATECB_H
- #define __iLBC_CREATECB_H
+#ifndef __iLBC_CREATECB_H
+#define __iLBC_CREATECB_H
- void filteredCBvecs(
- float *cbvectors, /* (o) Codebook vector for the
+void filteredCBvecs(
+ float *cbvectors, /* (o) Codebook vector for the
higher section */
@@ -21,38 +21,38 @@
- float *mem, /* (i) Buffer to create codebook
+ float *mem, /* (i) Buffer to create codebook
vectors from */
- int lMem /* (i) Length of buffer */
- );
-
- void searchAugmentedCB(
- int low, /* (i) Start index for the search */
- int high, /* (i) End index for the search */
- int stage, /* (i) Current stage */
- int startIndex, /* (i) CB index for the first
+ int lMem /* (i) Length of buffer */
+);
+
+void searchAugmentedCB(
+ int low, /* (i) Start index for the search */
+ int high, /* (i) End index for the search */
+ int stage, /* (i) Current stage */
+ int startIndex, /* (i) CB index for the first
augmented vector */
- float *target, /* (i) Target vector for encoding */
- float *buffer, /* (i) Pointer to the end of the
+ float *target, /* (i) Target vector for encoding */
+ float *buffer, /* (i) Pointer to the end of the
buffer for augmented codebook
construction */
- float *max_measure, /* (i/o) Currently maximum measure */
- int *best_index,/* (o) Currently the best index */
- float *gain, /* (o) Currently the best gain */
- float *energy, /* (o) Energy of augmented
+ float *max_measure, /* (i/o) Currently maximum measure */
+ int *best_index,/* (o) Currently the best index */
+ float *gain, /* (o) Currently the best gain */
+ float *energy, /* (o) Energy of augmented
codebook vectors */
- float *invenergy/* (o) Inv energy of aug codebook
+ float *invenergy/* (o) Inv energy of aug codebook
vectors */
- );
+);
- void createAugmentedVec(
- int index, /* (i) Index for the aug vector
+void createAugmentedVec(
+ int index, /* (i) Index for the aug vector
to be created */
- float *buffer, /* (i) Pointer to the end of the
+ float *buffer, /* (i) Pointer to the end of the
buffer for augmented codebook
construction */
- float *cbVec /* (o) The construced codebook vector */
- );
+ float *cbVec /* (o) The construced codebook vector */
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/doCPLC.h b/thirdparties/win32/include/ilbc/doCPLC.h
index e84ed83..4767c72 100755
--- a/thirdparties/win32/include/ilbc/doCPLC.h
+++ b/thirdparties/win32/include/ilbc/doCPLC.h
@@ -1,28 +1,28 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- doCPLC.h
+ doCPLC.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_DOLPC_H
- #define __iLBC_DOLPC_H
+#ifndef __iLBC_DOLPC_H
+#define __iLBC_DOLPC_H
- void doThePLC(
- float *PLCresidual, /* (o) concealed residual */
- float *PLClpc, /* (o) concealed LP parameters */
- int PLI, /* (i) packet loss indicator
+void doThePLC(
+ float *PLCresidual, /* (o) concealed residual */
+ float *PLClpc, /* (o) concealed LP parameters */
+ int PLI, /* (i) packet loss indicator
0 - no PL, 1 = PL */
- float *decresidual, /* (i) decoded residual */
- float *lpc, /* (i) decoded LPC (only used for no PL) */
- int inlag, /* (i) pitch lag */
- iLBC_Dec_Inst_t *iLBCdec_inst
- /* (i/o) decoder instance */
- );
-
- #endif
+ float *decresidual, /* (i) decoded residual */
+ float *lpc, /* (i) decoded LPC (only used for no PL) */
+ int inlag, /* (i) pitch lag */
+ iLBC_Dec_Inst_t *iLBCdec_inst
+ /* (i/o) decoder instance */
+);
+
+#endif
diff --git a/thirdparties/win32/include/ilbc/enhancer.h b/thirdparties/win32/include/ilbc/enhancer.h
index bbdfa14..e4f7f0f 100755
--- a/thirdparties/win32/include/ilbc/enhancer.h
+++ b/thirdparties/win32/include/ilbc/enhancer.h
@@ -1,36 +1,36 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- enhancer.h
+ enhancer.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __ENHANCER_H
- #define __ENHANCER_H
+#ifndef __ENHANCER_H
+#define __ENHANCER_H
- #include "iLBC_define.h"
+#include "iLBC_define.h"
- float xCorrCoef(
- float *target, /* (i) first array */
- float *regressor, /* (i) second array */
- int subl /* (i) dimension arrays */
- );
+float xCorrCoef(
+ float *target, /* (i) first array */
+ float *regressor, /* (i) second array */
+ int subl /* (i) dimension arrays */
+);
- int enhancerInterface(
- float *out, /* (o) the enhanced recidual signal */
- float *in, /* (i) the recidual signal to enhance */
- iLBC_Dec_Inst_t *iLBCdec_inst
- /* (i/o) the decoder state structure */
- );
+int enhancerInterface(
+ float *out, /* (o) the enhanced recidual signal */
+ float *in, /* (i) the recidual signal to enhance */
+ iLBC_Dec_Inst_t *iLBCdec_inst
+ /* (i/o) the decoder state structure */
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/filter.h b/thirdparties/win32/include/ilbc/filter.h
index 0b9b8b5..a7bbec1 100755
--- a/thirdparties/win32/include/ilbc/filter.h
+++ b/thirdparties/win32/include/ilbc/filter.h
@@ -1,13 +1,13 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- filter.h
+ filter.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
@@ -15,11 +15,11 @@
- #ifndef __iLBC_FILTER_H
- #define __iLBC_FILTER_H
+#ifndef __iLBC_FILTER_H
+#define __iLBC_FILTER_H
- void AllPoleFilter(
- float *InOut, /* (i/o) on entrance InOut[-orderCoef] to
+void AllPoleFilter(
+ float *InOut, /* (i/o) on entrance InOut[-orderCoef] to
InOut[-1] contain the state of the
filter (delayed samples). InOut[0] to
InOut[lengthInOut-1] contain the filter
@@ -27,41 +27,41 @@
InOut[-1] is unchanged and InOut[0] to
InOut[lengthInOut-1] contain filtered
samples */
- float *Coef,/* (i) filter coefficients, Coef[0] is assumed
+ float *Coef,/* (i) filter coefficients, Coef[0] is assumed
to be 1.0 */
- int lengthInOut,/* (i) number of input/output samples */
- int orderCoef /* (i) number of filter coefficients */
- );
+ int lengthInOut,/* (i) number of input/output samples */
+ int orderCoef /* (i) number of filter coefficients */
+);
- void AllZeroFilter(
- float *In, /* (i) In[0] to In[lengthInOut-1] contain
+void AllZeroFilter(
+ float *In, /* (i) In[0] to In[lengthInOut-1] contain
filter input samples */
- float *Coef,/* (i) filter coefficients (Coef[0] is assumed
+ float *Coef,/* (i) filter coefficients (Coef[0] is assumed
to be 1.0) */
- int lengthInOut,/* (i) number of input/output samples */
- int orderCoef, /* (i) number of filter coefficients */
- float *Out /* (i/o) on entrance Out[-orderCoef] to Out[-1]
+ int lengthInOut,/* (i) number of input/output samples */
+ int orderCoef, /* (i) number of filter coefficients */
+ float *Out /* (i/o) on entrance Out[-orderCoef] to Out[-1]
contain the filter state, on exit Out[0]
to Out[lengthInOut-1] contain filtered
samples */
- );
+);
- void ZeroPoleFilter(
- float *In, /* (i) In[0] to In[lengthInOut-1] contain filter
+void ZeroPoleFilter(
+ float *In, /* (i) In[0] to In[lengthInOut-1] contain filter
input samples In[-orderCoef] to In[-1]
contain state of all-zero section */
- float *ZeroCoef,/* (i) filter coefficients for all-zero
+ float *ZeroCoef,/* (i) filter coefficients for all-zero
section (ZeroCoef[0] is assumed to
be 1.0) */
- float *PoleCoef,/* (i) filter coefficients for all-pole section
+ float *PoleCoef,/* (i) filter coefficients for all-pole section
(ZeroCoef[0] is assumed to be 1.0) */
- int lengthInOut,/* (i) number of input/output samples */
- int orderCoef, /* (i) number of filter coefficients */
- float *Out /* (i/o) on entrance Out[-orderCoef] to Out[-1]
+ int lengthInOut,/* (i) number of input/output samples */
+ int orderCoef, /* (i) number of filter coefficients */
+ float *Out /* (i/o) on entrance Out[-orderCoef] to Out[-1]
contain state of all-pole section. On
exit Out[0] to Out[lengthInOut-1]
contain filtered samples */
- );
+);
@@ -69,13 +69,13 @@
- void DownSample (
- float *In, /* (i) input samples */
- float *Coef, /* (i) filter coefficients */
- int lengthIn, /* (i) number of input samples */
- float *state, /* (i) filter state */
- float *Out /* (o) downsampled output */
- );
+void DownSample (
+ float *In, /* (i) input samples */
+ float *Coef, /* (i) filter coefficients */
+ int lengthIn, /* (i) number of input samples */
+ float *state, /* (i) filter state */
+ float *Out /* (o) downsampled output */
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/gainquant.h b/thirdparties/win32/include/ilbc/gainquant.h
index cc7418c..b0480a8 100755
--- a/thirdparties/win32/include/ilbc/gainquant.h
+++ b/thirdparties/win32/include/ilbc/gainquant.h
@@ -1,29 +1,29 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- gainquant.h
+ gainquant.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_GAINQUANT_H
- #define __iLBC_GAINQUANT_H
+#ifndef __iLBC_GAINQUANT_H
+#define __iLBC_GAINQUANT_H
- float gainquant(/* (o) quantized gain value */
- float in, /* (i) gain value */
- float maxIn,/* (i) maximum of gain value */
- int cblen, /* (i) number of quantization indices */
- int *index /* (o) quantization index */
- );
+float gainquant(/* (o) quantized gain value */
+ float in, /* (i) gain value */
+ float maxIn,/* (i) maximum of gain value */
+ int cblen, /* (i) number of quantization indices */
+ int *index /* (o) quantization index */
+);
- float gaindequant( /* (o) quantized gain value */
- int index, /* (i) quantization index */
- float maxIn,/* (i) maximum of unquantized gain */
- int cblen /* (i) number of quantization indices */
- );
+float gaindequant( /* (o) quantized gain value */
+ int index, /* (i) quantization index */
+ float maxIn,/* (i) maximum of unquantized gain */
+ int cblen /* (i) number of quantization indices */
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/getCBvec.h b/thirdparties/win32/include/ilbc/getCBvec.h
index 50cc6cd..36b27e6 100755
--- a/thirdparties/win32/include/ilbc/getCBvec.h
+++ b/thirdparties/win32/include/ilbc/getCBvec.h
@@ -1,24 +1,24 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- getCBvec.h
+ getCBvec.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_GETCBVEC_H
- #define __iLBC_GETCBVEC_H
+#ifndef __iLBC_GETCBVEC_H
+#define __iLBC_GETCBVEC_H
- void getCBvec(
- float *cbvec, /* (o) Constructed codebook vector */
- float *mem, /* (i) Codebook buffer */
- int index, /* (i) Codebook index */
- int lMem, /* (i) Length of codebook buffer */
- int cbveclen/* (i) Codebook vector length */
- );
+void getCBvec(
+ float *cbvec, /* (o) Constructed codebook vector */
+ float *mem, /* (i) Codebook buffer */
+ int index, /* (i) Codebook index */
+ int lMem, /* (i) Length of codebook buffer */
+ int cbveclen/* (i) Codebook vector length */
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/helpfun.h b/thirdparties/win32/include/ilbc/helpfun.h
index 8b20452..10f09ec 100755
--- a/thirdparties/win32/include/ilbc/helpfun.h
+++ b/thirdparties/win32/include/ilbc/helpfun.h
@@ -1,95 +1,95 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- helpfun.h
+ helpfun.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_HELPFUN_H
- #define __iLBC_HELPFUN_H
+#ifndef __iLBC_HELPFUN_H
+#define __iLBC_HELPFUN_H
- void autocorr(
- float *r, /* (o) autocorrelation vector */
- const float *x, /* (i) data vector */
- int N, /* (i) length of data vector */
- int order /* largest lag for calculated
+void autocorr(
+ float *r, /* (o) autocorrelation vector */
+ const float *x, /* (i) data vector */
+ int N, /* (i) length of data vector */
+ int order /* largest lag for calculated
autocorrelations */
- );
+);
- void window(
- float *z, /* (o) the windowed data */
- const float *x, /* (i) the original data vector */
- const float *y, /* (i) the window */
- int N /* (i) length of all vectors */
- );
+void window(
+ float *z, /* (o) the windowed data */
+ const float *x, /* (i) the original data vector */
+ const float *y, /* (i) the window */
+ int N /* (i) length of all vectors */
+);
- void levdurb(
- float *a, /* (o) lpc coefficient vector starting
+void levdurb(
+ float *a, /* (o) lpc coefficient vector starting
with 1.0 */
- float *k, /* (o) reflection coefficients */
- float *r, /* (i) autocorrelation vector */
- int order /* (i) order of lpc filter */
- );
+ float *k, /* (o) reflection coefficients */
+ float *r, /* (i) autocorrelation vector */
+ int order /* (i) order of lpc filter */
+);
- void interpolate(
+void interpolate(
- float *out, /* (o) the interpolated vector */
- float *in1, /* (i) the first vector for the
+ float *out, /* (o) the interpolated vector */
+ float *in1, /* (i) the first vector for the
interpolation */
- float *in2, /* (i) the second vector for the
+ float *in2, /* (i) the second vector for the
interpolation */
- float coef, /* (i) interpolation weights */
- int length /* (i) length of all vectors */
- );
+ float coef, /* (i) interpolation weights */
+ int length /* (i) length of all vectors */
+);
- void bwexpand(
- float *out, /* (o) the bandwidth expanded lpc
+void bwexpand(
+ float *out, /* (o) the bandwidth expanded lpc
coefficients */
- float *in, /* (i) the lpc coefficients before bandwidth
+ float *in, /* (i) the lpc coefficients before bandwidth
expansion */
- float coef, /* (i) the bandwidth expansion factor */
- int length /* (i) the length of lpc coefficient vectors */
- );
-
- void vq(
- float *Xq, /* (o) the quantized vector */
- int *index, /* (o) the quantization index */
- const float *CB,/* (i) the vector quantization codebook */
- float *X, /* (i) the vector to quantize */
- int n_cb, /* (i) the number of vectors in the codebook */
- int dim /* (i) the dimension of all vectors */
- );
-
- void SplitVQ(
- float *qX, /* (o) the quantized vector */
- int *index, /* (o) a vector of indexes for all vector
+ float coef, /* (i) the bandwidth expansion factor */
+ int length /* (i) the length of lpc coefficient vectors */
+);
+
+void vq(
+ float *Xq, /* (o) the quantized vector */
+ int *index, /* (o) the quantization index */
+ const float *CB,/* (i) the vector quantization codebook */
+ float *X, /* (i) the vector to quantize */
+ int n_cb, /* (i) the number of vectors in the codebook */
+ int dim /* (i) the dimension of all vectors */
+);
+
+void SplitVQ(
+ float *qX, /* (o) the quantized vector */
+ int *index, /* (o) a vector of indexes for all vector
codebooks in the split */
- float *X, /* (i) the vector to quantize */
- const float *CB,/* (i) the quantizer codebook */
- int nsplit, /* the number of vector splits */
- const int *dim, /* the dimension of X and qX */
- const int *cbsize /* the number of vectors in the codebook */
- );
+ float *X, /* (i) the vector to quantize */
+ const float *CB,/* (i) the quantizer codebook */
+ int nsplit, /* the number of vector splits */
+ const int *dim, /* the dimension of X and qX */
+ const int *cbsize /* the number of vectors in the codebook */
+);
- void sort_sq(
- float *xq, /* (o) the quantized value */
- int *index, /* (o) the quantization index */
- float x, /* (i) the value to quantize */
- const float *cb,/* (i) the quantization codebook */
- int cb_size /* (i) the size of the quantization codebook */
- );
+void sort_sq(
+ float *xq, /* (o) the quantized value */
+ int *index, /* (o) the quantization index */
+ float x, /* (i) the value to quantize */
+ const float *cb,/* (i) the quantization codebook */
+ int cb_size /* (i) the size of the quantization codebook */
+);
- int LSF_check( /* (o) 1 for stable lsf vectors and 0 for
+int LSF_check( /* (o) 1 for stable lsf vectors and 0 for
@@ -97,11 +97,11 @@
nonstable ones */
- float *lsf, /* (i) a table of lsf vectors */
- int dim, /* (i) the dimension of each lsf vector */
- int NoAn /* (i) the number of lsf vectors in the
+ float *lsf, /* (i) a table of lsf vectors */
+ int dim, /* (i) the dimension of each lsf vector */
+ int NoAn /* (i) the number of lsf vectors in the
table */
- );
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/hpInput.h b/thirdparties/win32/include/ilbc/hpInput.h
index 69160c4..96ebbc5 100755
--- a/thirdparties/win32/include/ilbc/hpInput.h
+++ b/thirdparties/win32/include/ilbc/hpInput.h
@@ -1,23 +1,23 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- hpInput.h
+ hpInput.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_HPINPUT_H
- #define __iLBC_HPINPUT_H
+#ifndef __iLBC_HPINPUT_H
+#define __iLBC_HPINPUT_H
- void hpInput(
- float *In, /* (i) vector to filter */
- int len, /* (i) length of vector to filter */
- float *Out, /* (o) the resulting filtered vector */
- float *mem /* (i/o) the filter state */
- );
+void hpInput(
+ float *In, /* (i) vector to filter */
+ int len, /* (i) length of vector to filter */
+ float *Out, /* (o) the resulting filtered vector */
+ float *mem /* (i/o) the filter state */
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/hpOutput.h b/thirdparties/win32/include/ilbc/hpOutput.h
index 08a679c..8510213 100755
--- a/thirdparties/win32/include/ilbc/hpOutput.h
+++ b/thirdparties/win32/include/ilbc/hpOutput.h
@@ -1,23 +1,23 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- hpOutput.h
+ hpOutput.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_HPOUTPUT_H
- #define __iLBC_HPOUTPUT_H
+#ifndef __iLBC_HPOUTPUT_H
+#define __iLBC_HPOUTPUT_H
- void hpOutput(
- float *In, /* (i) vector to filter */
- int len,/* (i) length of vector to filter */
- float *Out, /* (o) the resulting filtered vector */
- float *mem /* (i/o) the filter state */
- );
+void hpOutput(
+ float *In, /* (i) vector to filter */
+ int len,/* (i) length of vector to filter */
+ float *Out, /* (o) the resulting filtered vector */
+ float *mem /* (i/o) the filter state */
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/iCBConstruct.h b/thirdparties/win32/include/ilbc/iCBConstruct.h
index e63ba34..6fe1b10 100755
--- a/thirdparties/win32/include/ilbc/iCBConstruct.h
+++ b/thirdparties/win32/include/ilbc/iCBConstruct.h
@@ -1,11 +1,11 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- iCBConstruct.h
+ iCBConstruct.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
@@ -13,28 +13,28 @@
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_ICBCONSTRUCT_H
- #define __iLBC_ICBCONSTRUCT_H
+#ifndef __iLBC_ICBCONSTRUCT_H
+#define __iLBC_ICBCONSTRUCT_H
- void index_conv_enc(
- int *index /* (i/o) Codebook indexes */
- );
+void index_conv_enc(
+ int *index /* (i/o) Codebook indexes */
+);
- void index_conv_dec(
- int *index /* (i/o) Codebook indexes */
- );
+void index_conv_dec(
+ int *index /* (i/o) Codebook indexes */
+);
- void iCBConstruct(
- float *decvector, /* (o) Decoded vector */
- int *index, /* (i) Codebook indices */
- int *gain_index,/* (i) Gain quantization indices */
- float *mem, /* (i) Buffer for codevector construction */
- int lMem, /* (i) Length of buffer */
- int veclen, /* (i) Length of vector */
- int nStages /* (i) Number of codebook stages */
- );
+void iCBConstruct(
+ float *decvector, /* (o) Decoded vector */
+ int *index, /* (i) Codebook indices */
+ int *gain_index,/* (i) Gain quantization indices */
+ float *mem, /* (i) Buffer for codevector construction */
+ int lMem, /* (i) Length of buffer */
+ int veclen, /* (i) Length of vector */
+ int nStages /* (i) Number of codebook stages */
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/iCBSearch.h b/thirdparties/win32/include/ilbc/iCBSearch.h
index da7dc6c..f0fd843 100755
--- a/thirdparties/win32/include/ilbc/iCBSearch.h
+++ b/thirdparties/win32/include/ilbc/iCBSearch.h
@@ -1,16 +1,16 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- iCBSearch.h
+ iCBSearch.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_ICBSEARCH_H
- #define __iLBC_ICBSEARCH_H
+#ifndef __iLBC_ICBSEARCH_H
+#define __iLBC_ICBSEARCH_H
@@ -18,20 +18,20 @@
- void iCBSearch(
- iLBC_Enc_Inst_t *iLBCenc_inst,
- /* (i) the encoder state structure */
- int *index, /* (o) Codebook indices */
- int *gain_index,/* (o) Gain quantization indices */
- float *intarget,/* (i) Target vector for encoding */
- float *mem, /* (i) Buffer for codebook construction */
- int lMem, /* (i) Length of buffer */
- int lTarget, /* (i) Length of vector */
- int nStages, /* (i) Number of codebook stages */
- float *weightDenum, /* (i) weighting filter coefficients */
- float *weightState, /* (i) weighting filter state */
- int block /* (i) the sub-block number */
- );
+void iCBSearch(
+ iLBC_Enc_Inst_t *iLBCenc_inst,
+ /* (i) the encoder state structure */
+ int *index, /* (o) Codebook indices */
+ int *gain_index,/* (o) Gain quantization indices */
+ float *intarget,/* (i) Target vector for encoding */
+ float *mem, /* (i) Buffer for codebook construction */
+ int lMem, /* (i) Length of buffer */
+ int lTarget, /* (i) Length of vector */
+ int nStages, /* (i) Number of codebook stages */
+ float *weightDenum, /* (i) weighting filter coefficients */
+ float *weightState, /* (i) weighting filter state */
+ int block /* (i) the sub-block number */
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/iLBC_decode.h b/thirdparties/win32/include/ilbc/iLBC_decode.h
index 7557041..8b9f3de 100755
--- a/thirdparties/win32/include/ilbc/iLBC_decode.h
+++ b/thirdparties/win32/include/ilbc/iLBC_decode.h
@@ -1,34 +1,34 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- iLBC_decode.h
+ iLBC_decode.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_ILBCDECODE_H
- #define __iLBC_ILBCDECODE_H
+#ifndef __iLBC_ILBCDECODE_H
+#define __iLBC_ILBCDECODE_H
- #include "iLBC_define.h"
+#include "iLBC_define.h"
- short initDecode( /* (o) Number of decoded
+short initDecode( /* (o) Number of decoded
samples */
- iLBC_Dec_Inst_t *iLBCdec_inst, /* (i/o) Decoder instance */
- int mode, /* (i) frame size mode */
- int use_enhancer /* (i) 1 to use enhancer
+ iLBC_Dec_Inst_t *iLBCdec_inst, /* (i/o) Decoder instance */
+ int mode, /* (i) frame size mode */
+ int use_enhancer /* (i) 1 to use enhancer
0 to run without
enhancer */
- );
+);
- void iLBC_decode(
- float *decblock, /* (o) decoded signal block */
- unsigned char *bytes, /* (i) encoded signal bits */
- iLBC_Dec_Inst_t *iLBCdec_inst, /* (i/o) the decoder state
+void iLBC_decode(
+ float *decblock, /* (o) decoded signal block */
+ unsigned char *bytes, /* (i) encoded signal bits */
+ iLBC_Dec_Inst_t *iLBCdec_inst, /* (i/o) the decoder state
structure */
- int mode /* (i) 0: bad packet, PLC,
+ int mode /* (i) 0: bad packet, PLC,
1: normal */
@@ -36,7 +36,7 @@
- );
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/iLBC_define.h b/thirdparties/win32/include/ilbc/iLBC_define.h
index 904f370..f8d31ce 100755
--- a/thirdparties/win32/include/ilbc/iLBC_define.h
+++ b/thirdparties/win32/include/ilbc/iLBC_define.h
@@ -1,220 +1,220 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- iLBC_define.h
+ iLBC_define.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
- #include <string.h>
+******************************************************************/
+#include <string.h>
- #ifndef __iLBC_ILBCDEFINE_H
- #define __iLBC_ILBCDEFINE_H
+#ifndef __iLBC_ILBCDEFINE_H
+#define __iLBC_ILBCDEFINE_H
- /* general codec settings */
+/* general codec settings */
- #define FS (float)8000.0
- #define BLOCKL_20MS 160
- #define BLOCKL_30MS 240
- #define BLOCKL_MAX 240
- #define NSUB_20MS 4
- #define NSUB_30MS 6
- #define NSUB_MAX 6
- #define NASUB_20MS 2
+#define FS (float)8000.0
+#define BLOCKL_20MS 160
+#define BLOCKL_30MS 240
+#define BLOCKL_MAX 240
+#define NSUB_20MS 4
+#define NSUB_30MS 6
+#define NSUB_MAX 6
+#define NASUB_20MS 2
- #define NASUB_30MS 4
- #define NASUB_MAX 4
- #define SUBL 40
- #define STATE_LEN 80
- #define STATE_SHORT_LEN_30MS 58
- #define STATE_SHORT_LEN_20MS 57
+#define NASUB_30MS 4
+#define NASUB_MAX 4
+#define SUBL 40
+#define STATE_LEN 80
+#define STATE_SHORT_LEN_30MS 58
+#define STATE_SHORT_LEN_20MS 57
- /* LPC settings */
+/* LPC settings */
- #define LPC_FILTERORDER 10
- #define LPC_CHIRP_SYNTDENUM (float)0.9025
- #define LPC_CHIRP_WEIGHTDENUM (float)0.4222
- #define LPC_LOOKBACK 60
- #define LPC_N_20MS 1
- #define LPC_N_30MS 2
- #define LPC_N_MAX 2
- #define LPC_ASYMDIFF 20
- #define LPC_BW (float)60.0
- #define LPC_WN (float)1.0001
- #define LSF_NSPLIT 3
- #define LSF_NUMBER_OF_STEPS 4
- #define LPC_HALFORDER (LPC_FILTERORDER/2)
+#define LPC_FILTERORDER 10
+#define LPC_CHIRP_SYNTDENUM (float)0.9025
+#define LPC_CHIRP_WEIGHTDENUM (float)0.4222
+#define LPC_LOOKBACK 60
+#define LPC_N_20MS 1
+#define LPC_N_30MS 2
+#define LPC_N_MAX 2
+#define LPC_ASYMDIFF 20
+#define LPC_BW (float)60.0
+#define LPC_WN (float)1.0001
+#define LSF_NSPLIT 3
+#define LSF_NUMBER_OF_STEPS 4
+#define LPC_HALFORDER (LPC_FILTERORDER/2)
- /* cb settings */
+/* cb settings */
- #define CB_NSTAGES 3
- #define CB_EXPAND 2
- #define CB_MEML 147
- #define CB_FILTERLEN 2*4
- #define CB_HALFFILTERLEN 4
- #define CB_RESRANGE 34
- #define CB_MAXGAIN (float)1.3
+#define CB_NSTAGES 3
+#define CB_EXPAND 2
+#define CB_MEML 147
+#define CB_FILTERLEN 2*4
+#define CB_HALFFILTERLEN 4
+#define CB_RESRANGE 34
+#define CB_MAXGAIN (float)1.3
- /* enhancer */
+/* enhancer */
- #define ENH_BLOCKL 80 /* block length */
- #define ENH_BLOCKL_HALF (ENH_BLOCKL/2)
- #define ENH_HL 3 /* 2*ENH_HL+1 is number blocks
+#define ENH_BLOCKL 80 /* block length */
+#define ENH_BLOCKL_HALF (ENH_BLOCKL/2)
+#define ENH_HL 3 /* 2*ENH_HL+1 is number blocks
in said second sequence */
- #define ENH_SLOP 2 /* max difference estimated and
+#define ENH_SLOP 2 /* max difference estimated and
correct pitch period */
- #define ENH_PLOCSL 20 /* pitch-estimates and pitch-
+#define ENH_PLOCSL 20 /* pitch-estimates and pitch-
locations buffer length */
- #define ENH_OVERHANG 2
- #define ENH_UPS0 4 /* upsampling rate */
- #define ENH_FL0 3 /* 2*FLO+1 is the length of
+#define ENH_OVERHANG 2
+#define ENH_UPS0 4 /* upsampling rate */
+#define ENH_FL0 3 /* 2*FLO+1 is the length of
each filter */
- #define ENH_VECTL (ENH_BLOCKL+2*ENH_FL0)
+#define ENH_VECTL (ENH_BLOCKL+2*ENH_FL0)
- #define ENH_CORRDIM (2*ENH_SLOP+1)
- #define ENH_NBLOCKS (BLOCKL_MAX/ENH_BLOCKL)
- #define ENH_NBLOCKS_EXTRA 5
- #define ENH_NBLOCKS_TOT 8 /* ENH_NBLOCKS +
+#define ENH_CORRDIM (2*ENH_SLOP+1)
+#define ENH_NBLOCKS (BLOCKL_MAX/ENH_BLOCKL)
+#define ENH_NBLOCKS_EXTRA 5
+#define ENH_NBLOCKS_TOT 8 /* ENH_NBLOCKS +
ENH_NBLOCKS_EXTRA */
- #define ENH_BUFL (ENH_NBLOCKS_TOT)*ENH_BLOCKL
- #define ENH_ALPHA0 (float)0.05
+#define ENH_BUFL (ENH_NBLOCKS_TOT)*ENH_BLOCKL
+#define ENH_ALPHA0 (float)0.05
- /* Down sampling */
+/* Down sampling */
- #define FILTERORDER_DS 7
- #define DELAY_DS 3
- #define FACTOR_DS 2
+#define FILTERORDER_DS 7
+#define DELAY_DS 3
+#define FACTOR_DS 2
- /* bit stream defs */
+/* bit stream defs */
- #define NO_OF_BYTES_20MS 38
- #define NO_OF_BYTES_30MS 50
- #define NO_OF_WORDS_20MS 19
- #define NO_OF_WORDS_30MS 25
- #define STATE_BITS 3
- #define BYTE_LEN 8
- #define ULP_CLASSES 3
+#define NO_OF_BYTES_20MS 38
+#define NO_OF_BYTES_30MS 50
+#define NO_OF_WORDS_20MS 19
+#define NO_OF_WORDS_30MS 25
+#define STATE_BITS 3
+#define BYTE_LEN 8
+#define ULP_CLASSES 3
- /* help parameters */
+/* help parameters */
- #define FLOAT_MAX (float)1.0e37
- #define EPS (float)2.220446049250313e-016
- #define PI (float)3.14159265358979323846
- #define MIN_SAMPLE -32768
- #define MAX_SAMPLE 32767
- #define TWO_PI (float)6.283185307
- #define PI2 (float)0.159154943
+#define FLOAT_MAX (float)1.0e37
+#define EPS (float)2.220446049250313e-016
+#define PI (float)3.14159265358979323846
+#define MIN_SAMPLE -32768
+#define MAX_SAMPLE 32767
+#define TWO_PI (float)6.283185307
+#define PI2 (float)0.159154943
- /* type definition encoder instance */
- typedef struct iLBC_ULP_Inst_t_ {
- int lsf_bits[6][ULP_CLASSES+2];
- int start_bits[ULP_CLASSES+2];
- int startfirst_bits[ULP_CLASSES+2];
- int scale_bits[ULP_CLASSES+2];
- int state_bits[ULP_CLASSES+2];
- int extra_cb_index[CB_NSTAGES][ULP_CLASSES+2];
- int extra_cb_gain[CB_NSTAGES][ULP_CLASSES+2];
- int cb_index[NSUB_MAX][CB_NSTAGES][ULP_CLASSES+2];
- int cb_gain[NSUB_MAX][CB_NSTAGES][ULP_CLASSES+2];
- } iLBC_ULP_Inst_t;
+/* type definition encoder instance */
+typedef struct iLBC_ULP_Inst_t_ {
+ int lsf_bits[6][ULP_CLASSES+2];
+ int start_bits[ULP_CLASSES+2];
+ int startfirst_bits[ULP_CLASSES+2];
+ int scale_bits[ULP_CLASSES+2];
+ int state_bits[ULP_CLASSES+2];
+ int extra_cb_index[CB_NSTAGES][ULP_CLASSES+2];
+ int extra_cb_gain[CB_NSTAGES][ULP_CLASSES+2];
+ int cb_index[NSUB_MAX][CB_NSTAGES][ULP_CLASSES+2];
+ int cb_gain[NSUB_MAX][CB_NSTAGES][ULP_CLASSES+2];
+} iLBC_ULP_Inst_t;
- /* type definition encoder instance */
+/* type definition encoder instance */
- typedef struct iLBC_Enc_Inst_t_ {
+typedef struct iLBC_Enc_Inst_t_ {
- /* flag for frame size mode */
- int mode;
+ /* flag for frame size mode */
+ int mode;
- /* basic parameters for different frame sizes */
- int blockl;
- int nsub;
- int nasub;
- int no_of_bytes, no_of_words;
- int lpc_n;
- int state_short_len;
- const iLBC_ULP_Inst_t *ULP_inst;
+ /* basic parameters for different frame sizes */
+ int blockl;
+ int nsub;
+ int nasub;
+ int no_of_bytes, no_of_words;
+ int lpc_n;
+ int state_short_len;
+ const iLBC_ULP_Inst_t *ULP_inst;
- /* analysis filter state */
- float anaMem[LPC_FILTERORDER];
+ /* analysis filter state */
+ float anaMem[LPC_FILTERORDER];
- /* old lsf parameters for interpolation */
- float lsfold[LPC_FILTERORDER];
- float lsfdeqold[LPC_FILTERORDER];
+ /* old lsf parameters for interpolation */
+ float lsfold[LPC_FILTERORDER];
+ float lsfdeqold[LPC_FILTERORDER];
- /* signal buffer for LP analysis */
- float lpc_buffer[LPC_LOOKBACK + BLOCKL_MAX];
+ /* signal buffer for LP analysis */
+ float lpc_buffer[LPC_LOOKBACK + BLOCKL_MAX];
- /* state of input HP filter */
- float hpimem[4];
+ /* state of input HP filter */
+ float hpimem[4];
- } iLBC_Enc_Inst_t;
+} iLBC_Enc_Inst_t;
- /* type definition decoder instance */
- typedef struct iLBC_Dec_Inst_t_ {
+/* type definition decoder instance */
+typedef struct iLBC_Dec_Inst_t_ {
- /* flag for frame size mode */
- int mode;
+ /* flag for frame size mode */
+ int mode;
- /* basic parameters for different frame sizes */
- int blockl;
- int nsub;
- int nasub;
- int no_of_bytes, no_of_words;
- int lpc_n;
- int state_short_len;
- const iLBC_ULP_Inst_t *ULP_inst;
+ /* basic parameters for different frame sizes */
+ int blockl;
+ int nsub;
+ int nasub;
+ int no_of_bytes, no_of_words;
+ int lpc_n;
+ int state_short_len;
+ const iLBC_ULP_Inst_t *ULP_inst;
- /* synthesis filter state */
- float syntMem[LPC_FILTERORDER];
+ /* synthesis filter state */
+ float syntMem[LPC_FILTERORDER];
- /* old LSF for interpolation */
+ /* old LSF for interpolation */
- float lsfdeqold[LPC_FILTERORDER];
+ float lsfdeqold[LPC_FILTERORDER];
- /* pitch lag estimated in enhancer and used in PLC */
- int last_lag;
+ /* pitch lag estimated in enhancer and used in PLC */
+ int last_lag;
- /* PLC state information */
- int prevLag, consPLICount, prevPLI, prev_enh_pl;
- float prevLpc[LPC_FILTERORDER+1];
- float prevResidual[NSUB_MAX*SUBL];
- float per;
- unsigned long seed;
+ /* PLC state information */
+ int prevLag, consPLICount, prevPLI, prev_enh_pl;
+ float prevLpc[LPC_FILTERORDER+1];
+ float prevResidual[NSUB_MAX*SUBL];
+ float per;
+ unsigned long seed;
- /* previous synthesis filter parameters */
- float old_syntdenum[(LPC_FILTERORDER + 1)*NSUB_MAX];
+ /* previous synthesis filter parameters */
+ float old_syntdenum[(LPC_FILTERORDER + 1)*NSUB_MAX];
- /* state of output HP filter */
- float hpomem[4];
+ /* state of output HP filter */
+ float hpomem[4];
- /* enhancer state information */
- int use_enhancer;
- float enh_buf[ENH_BUFL];
- float enh_period[ENH_NBLOCKS_TOT];
+ /* enhancer state information */
+ int use_enhancer;
+ float enh_buf[ENH_BUFL];
+ float enh_period[ENH_NBLOCKS_TOT];
- } iLBC_Dec_Inst_t;
+} iLBC_Dec_Inst_t;
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/iLBC_encode.h b/thirdparties/win32/include/ilbc/iLBC_encode.h
index b993416..a1a26df 100755
--- a/thirdparties/win32/include/ilbc/iLBC_encode.h
+++ b/thirdparties/win32/include/ilbc/iLBC_encode.h
@@ -1,35 +1,35 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- iLBC_encode.h
+ iLBC_encode.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_ILBCENCODE_H
- #define __iLBC_ILBCENCODE_H
+#ifndef __iLBC_ILBCENCODE_H
+#define __iLBC_ILBCENCODE_H
- #include "iLBC_define.h"
+#include "iLBC_define.h"
- short initEncode( /* (o) Number of bytes
+short initEncode( /* (o) Number of bytes
encoded */
- iLBC_Enc_Inst_t *iLBCenc_inst, /* (i/o) Encoder instance */
- int mode /* (i) frame size mode */
- );
+ iLBC_Enc_Inst_t *iLBCenc_inst, /* (i/o) Encoder instance */
+ int mode /* (i) frame size mode */
+);
- void iLBC_encode(
+void iLBC_encode(
- unsigned char *bytes, /* (o) encoded data bits iLBC */
- float *block, /* (o) speech vector to
+ unsigned char *bytes, /* (o) encoded data bits iLBC */
+ float *block, /* (o) speech vector to
encode */
- iLBC_Enc_Inst_t *iLBCenc_inst /* (i/o) the general encoder
+ iLBC_Enc_Inst_t *iLBCenc_inst /* (i/o) the general encoder
state */
- );
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/lsf.h b/thirdparties/win32/include/ilbc/lsf.h
index 2cea08c..b1d180f 100755
--- a/thirdparties/win32/include/ilbc/lsf.h
+++ b/thirdparties/win32/include/ilbc/lsf.h
@@ -1,26 +1,26 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- lsf.h
+ lsf.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_LSF_H
- #define __iLBC_LSF_H
+#ifndef __iLBC_LSF_H
+#define __iLBC_LSF_H
- void a2lsf(
- float *freq,/* (o) lsf coefficients */
- float *a /* (i) lpc coefficients */
- );
+void a2lsf(
+ float *freq,/* (o) lsf coefficients */
+ float *a /* (i) lpc coefficients */
+);
- void lsf2a(
- float *a_coef, /* (o) lpc coefficients */
- float *freq /* (i) lsf coefficients */
- );
+void lsf2a(
+ float *a_coef, /* (o) lpc coefficients */
+ float *freq /* (i) lsf coefficients */
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/packing.h b/thirdparties/win32/include/ilbc/packing.h
index 8bb1f36..f489f55 100755
--- a/thirdparties/win32/include/ilbc/packing.h
+++ b/thirdparties/win32/include/ilbc/packing.h
@@ -1,68 +1,68 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- packing.h
+ packing.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __PACKING_H
- #define __PACKING_H
+#ifndef __PACKING_H
+#define __PACKING_H
- void packsplit(
- int *index, /* (i) the value to split */
- int *firstpart, /* (o) the value specified by most
+void packsplit(
+ int *index, /* (i) the value to split */
+ int *firstpart, /* (o) the value specified by most
significant bits */
- int *rest, /* (o) the value specified by least
+ int *rest, /* (o) the value specified by least
significant bits */
- int bitno_firstpart, /* (i) number of bits in most
+ int bitno_firstpart, /* (i) number of bits in most
significant part */
- int bitno_total /* (i) number of bits in full range
+ int bitno_total /* (i) number of bits in full range
of value */
- );
+);
- void packcombine(
- int *index, /* (i/o) the msb value in the
+void packcombine(
+ int *index, /* (i/o) the msb value in the
combined value out */
- int rest, /* (i) the lsb value */
- int bitno_rest /* (i) the number of bits in the
+ int rest, /* (i) the lsb value */
+ int bitno_rest /* (i) the number of bits in the
lsb part */
- );
+);
- void dopack(
- unsigned char **bitstream, /* (i/o) on entrance pointer to
+void dopack(
+ unsigned char **bitstream, /* (i/o) on entrance pointer to
place in bitstream to pack
new data, on exit pointer
to place in bitstream to
pack future data */
- int index, /* (i) the value to pack */
- int bitno, /* (i) the number of bits that the
+ int index, /* (i) the value to pack */
+ int bitno, /* (i) the number of bits that the
value will fit within */
- int *pos /* (i/o) write position in the
+ int *pos /* (i/o) write position in the
current byte */
- );
+);
- void unpack(
- unsigned char **bitstream, /* (i/o) on entrance pointer to
+void unpack(
+ unsigned char **bitstream, /* (i/o) on entrance pointer to
place in bitstream to
unpack new data from, on
exit pointer to place in
bitstream to unpack future
data from */
- int *index, /* (o) resulting value */
- int bitno, /* (i) number of bits used to
+ int *index, /* (o) resulting value */
+ int bitno, /* (i) number of bits used to
represent the value */
- int *pos /* (i/o) read position in the
+ int *pos /* (i/o) read position in the
current byte */
- );
+);
- #endif
+#endif
diff --git a/thirdparties/win32/include/ilbc/syntFilter.h b/thirdparties/win32/include/ilbc/syntFilter.h
index 0dc4d3d..71ab4e0 100755
--- a/thirdparties/win32/include/ilbc/syntFilter.h
+++ b/thirdparties/win32/include/ilbc/syntFilter.h
@@ -1,23 +1,23 @@
- /******************************************************************
+/******************************************************************
- iLBC Speech Coder ANSI-C Source Code
+ iLBC Speech Coder ANSI-C Source Code
- syntFilter.h
+ syntFilter.h
- Copyright (C) The Internet Society (2004).
- All Rights Reserved.
+ Copyright (C) The Internet Society (2004).
+ All Rights Reserved.
- ******************************************************************/
+******************************************************************/
- #ifndef __iLBC_SYNTFILTER_H
- #define __iLBC_SYNTFILTER_H
+#ifndef __iLBC_SYNTFILTER_H
+#define __iLBC_SYNTFILTER_H
- void syntFilter(
- float *Out, /* (i/o) Signal to be filtered */
- float *a, /* (i) LP parameters */
- int len, /* (i) Length of signal */
- float *mem /* (i/o) Filter state */
- );
+void syntFilter(
+ float *Out, /* (i/o) Signal to be filtered */
+ float *a, /* (i) LP parameters */
+ int len, /* (i) Length of signal */
+ float *mem /* (i/o) Filter state */
+);
- #endif
+#endif
OpenPOWER on IntegriCloud