mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-01 05:12:37 +00:00
update ilbc and lpc10 codecs from openh323 sources.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@211 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
27dd35f064
commit
fb85339762
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,20 +8,19 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include "iLBC_define.h"
|
||||
#include "FrameClassify.h"
|
||||
#include "iLBC_define.h"
|
||||
|
||||
/*---------------------------------------------------------------*
|
||||
/*---------------------------------------------------------------*
|
||||
* Classification of subframes to localize start state
|
||||
*--------------------------------------------------------------*/
|
||||
|
||||
int FrameClassify( /* index to the max-energy sub-frame */
|
||||
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 */
|
||||
) {
|
||||
) {
|
||||
float max_ssqEn, fssqEn[NSUB_MAX], bssqEn[NSUB_MAX], *pp;
|
||||
int n, l, max_ssqEn_n;
|
||||
const float ssqEn_win[NSUB_MAX-1]={(float)0.8,(float)0.9,
|
||||
@ -105,6 +104,6 @@ int FrameClassify( /* index to the max-energy sub-frame */
|
||||
}
|
||||
|
||||
return max_ssqEn_n;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,19 +8,19 @@
|
||||
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 */
|
||||
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
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,22 +8,21 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "helpfun.h"
|
||||
#include "lsf.h"
|
||||
#include "iLBC_define.h"
|
||||
#include "LPCdecode.h"
|
||||
#include "constants.h"
|
||||
#include "helpfun.h"
|
||||
#include "lsf.h"
|
||||
#include "iLBC_define.h"
|
||||
#include "constants.h"
|
||||
|
||||
/*---------------------------------------------------------------*
|
||||
/*---------------------------------------------------------------*
|
||||
* interpolation of lsf coefficients for the decoder
|
||||
*--------------------------------------------------------------*/
|
||||
|
||||
void LSFinterpolate2a_dec(
|
||||
void LSFinterpolate2a_dec(
|
||||
float *a, /* (o) lpc coefficients for a sub-frame */
|
||||
float *lsf1, /* (i) first lsf coefficient vector */
|
||||
|
||||
@ -31,22 +30,22 @@ void LSFinterpolate2a_dec(
|
||||
float *lsf2, /* (i) second lsf coefficient vector */
|
||||
float coef, /* (i) interpolation weight */
|
||||
int length /* (i) length of lsf vectors */
|
||||
){
|
||||
){
|
||||
float lsftmp[LPC_FILTERORDER];
|
||||
|
||||
interpolate(lsftmp, lsf1, lsf2, coef, length);
|
||||
lsf2a(a, lsftmp);
|
||||
}
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------*
|
||||
/*---------------------------------------------------------------*
|
||||
* obtain dequantized lsf coefficients from quantization index
|
||||
*--------------------------------------------------------------*/
|
||||
|
||||
void SimplelsfDEQ(
|
||||
void SimplelsfDEQ(
|
||||
float *lsfdeq, /* (o) dequantized lsf coefficients */
|
||||
int *index, /* (i) quantization index */
|
||||
int lpc_n /* (i) number of LPCs */
|
||||
){
|
||||
){
|
||||
int i, j, pos, cb_pos;
|
||||
|
||||
/* decode first LSF */
|
||||
@ -79,15 +78,15 @@ void SimplelsfDEQ(
|
||||
cb_pos += size_lsfCbTbl[i]*dim_lsfCbTbl[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
|
||||
|
||||
* obtain synthesis and weighting filters form lsf coefficients
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void DecoderInterpolateLSF(
|
||||
void DecoderInterpolateLSF(
|
||||
float *syntdenum, /* (o) synthesis filter coefficients */
|
||||
float *weightdenum, /* (o) weighting denumerator
|
||||
coefficients */
|
||||
@ -95,7 +94,7 @@ void DecoderInterpolateLSF(
|
||||
int length, /* (i) length of lsf coefficient vector */
|
||||
iLBC_Dec_Inst_t *iLBCdec_inst
|
||||
/* (i) the decoder state structure */
|
||||
){
|
||||
){
|
||||
int i, pos, lp_length;
|
||||
float lp[LPC_FILTERORDER + 1], *lsfdeq2;
|
||||
|
||||
@ -147,6 +146,6 @@ void DecoderInterpolateLSF(
|
||||
memcpy(iLBCdec_inst->lsfdeqold, lsfdeq,
|
||||
length*sizeof(float));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,12 +8,12 @@
|
||||
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(
|
||||
void LSFinterpolate2a_dec(
|
||||
|
||||
|
||||
float *a, /* (o) lpc coefficients for a sub-frame */
|
||||
@ -21,15 +21,15 @@ void LSFinterpolate2a_dec(
|
||||
float *lsf2, /* (i) second lsf coefficient vector */
|
||||
float coef, /* (i) interpolation weight */
|
||||
int length /* (i) length of lsf vectors */
|
||||
);
|
||||
);
|
||||
|
||||
void SimplelsfDEQ(
|
||||
void SimplelsfDEQ(
|
||||
float *lsfdeq, /* (o) dequantized lsf coefficients */
|
||||
int *index, /* (i) quantization index */
|
||||
int lpc_n /* (i) number of LPCs */
|
||||
);
|
||||
);
|
||||
|
||||
void DecoderInterpolateLSF(
|
||||
void DecoderInterpolateLSF(
|
||||
float *syntdenum, /* (o) synthesis filter coefficients */
|
||||
float *weightdenum, /* (o) weighting denumerator
|
||||
coefficients */
|
||||
@ -37,8 +37,8 @@ void DecoderInterpolateLSF(
|
||||
int length, /* (i) length of lsf coefficient vector */
|
||||
iLBC_Dec_Inst_t *iLBCdec_inst
|
||||
/* (i) the decoder state structure */
|
||||
);
|
||||
);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,28 +8,27 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include <string.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
|
||||
#include "iLBC_define.h"
|
||||
#include "LPCencode.h"
|
||||
#include "helpfun.h"
|
||||
#include "lsf.h"
|
||||
#include "constants.h"
|
||||
#include "iLBC_define.h"
|
||||
#include "helpfun.h"
|
||||
#include "lsf.h"
|
||||
#include "constants.h"
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* lpc analysis (subrutine to LPCencode)
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
static void SimpleAnalysis(
|
||||
void SimpleAnalysis(
|
||||
float *lsf, /* (o) lsf coefficients */
|
||||
float *data, /* (i) new data vector */
|
||||
iLBC_Enc_Inst_t *iLBCenc_inst
|
||||
/* (i/o) the encoder state structure */
|
||||
){
|
||||
){
|
||||
int k, is;
|
||||
float temp[BLOCKL_MAX], lp[LPC_FILTERORDER + 1];
|
||||
float lp2[LPC_FILTERORDER + 1];
|
||||
@ -65,34 +64,34 @@ static void SimpleAnalysis(
|
||||
memmove(iLBCenc_inst->lpc_buffer,
|
||||
iLBCenc_inst->lpc_buffer+LPC_LOOKBACK+BLOCKL_MAX-is,
|
||||
is*sizeof(float));
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
|
||||
|
||||
* lsf interpolator and conversion from lsf to a coefficients
|
||||
* (subrutine to SimpleInterpolateLSF)
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
static void LSFinterpolate2a_enc(
|
||||
void LSFinterpolate2a_enc(
|
||||
float *a, /* (o) lpc coefficients */
|
||||
float *lsf1,/* (i) first set of lsf coefficients */
|
||||
float *lsf2,/* (i) second set of lsf coefficients */
|
||||
float coef, /* (i) weighting coefficient to use between
|
||||
lsf1 and lsf2 */
|
||||
long length /* (i) length of coefficient vectors */
|
||||
){
|
||||
){
|
||||
float lsftmp[LPC_FILTERORDER];
|
||||
|
||||
interpolate(lsftmp, lsf1, lsf2, coef, length);
|
||||
lsf2a(a, lsftmp);
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* lsf interpolator (subrutine to LPCencode)
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
static void SimpleInterpolateLSF(
|
||||
void SimpleInterpolateLSF(
|
||||
float *syntdenum, /* (o) the synthesis filter denominator
|
||||
resulting from the quantized
|
||||
interpolated lsf */
|
||||
@ -108,7 +107,7 @@ static void SimpleInterpolateLSF(
|
||||
int length, /* (i) should equate LPC_FILTERORDER */
|
||||
iLBC_Enc_Inst_t *iLBCenc_inst
|
||||
/* (i/o) the encoder state structure */
|
||||
){
|
||||
){
|
||||
int i, pos, lp_length;
|
||||
float lp[LPC_FILTERORDER + 1], *lsf2, *lsfdeq2;
|
||||
|
||||
@ -169,13 +168,13 @@ static void SimpleInterpolateLSF(
|
||||
memcpy(lsfold, lsf, length*sizeof(float));
|
||||
memcpy(lsfdeqold, lsfdeq, length*sizeof(float));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* lsf quantizer (subrutine to LPCencode)
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
static void SimplelsfQ(
|
||||
void SimplelsfQ(
|
||||
float *lsfdeq, /* (o) dequantized lsf coefficients
|
||||
(dimension FILTERORDER) */
|
||||
int *index, /* (o) quantization index */
|
||||
@ -184,7 +183,7 @@ static void SimplelsfQ(
|
||||
|
||||
quantized (dimension FILTERORDER ) */
|
||||
int lpc_n /* (i) number of lsf sets to quantize */
|
||||
){
|
||||
){
|
||||
/* Quantize first LSF with memoryless split VQ */
|
||||
SplitVQ(lsfdeq, index, lsf, lsfCbTbl, LSF_NSPLIT,
|
||||
dim_lsfCbTbl, size_lsfCbTbl);
|
||||
@ -195,13 +194,13 @@ static void SimplelsfQ(
|
||||
lsf + LPC_FILTERORDER, lsfCbTbl, LSF_NSPLIT,
|
||||
dim_lsfCbTbl, size_lsfCbTbl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* lpc encoder
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void LPCencode(
|
||||
void LPCencode(
|
||||
float *syntdenum, /* (i/o) synthesis filter coefficients
|
||||
before/after encoding */
|
||||
float *weightdenum, /* (i/o) weighting denumerator
|
||||
@ -211,7 +210,7 @@ void LPCencode(
|
||||
float *data, /* (i) lsf coefficients to quantize */
|
||||
iLBC_Enc_Inst_t *iLBCenc_inst
|
||||
/* (i/o) the encoder state structure */
|
||||
){
|
||||
){
|
||||
float lsf[LPC_FILTERORDER * LPC_N_MAX];
|
||||
float lsfdeq[LPC_FILTERORDER * LPC_N_MAX];
|
||||
int change=0;
|
||||
@ -222,7 +221,7 @@ void LPCencode(
|
||||
SimpleInterpolateLSF(syntdenum, weightdenum,
|
||||
lsf, lsfdeq, iLBCenc_inst->lsfold,
|
||||
iLBCenc_inst->lsfdeqold, LPC_FILTERORDER, iLBCenc_inst);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,12 +8,12 @@
|
||||
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(
|
||||
void LPCencode(
|
||||
float *syntdenum, /* (i/o) synthesis filter coefficients
|
||||
before/after encoding */
|
||||
float *weightdenum, /* (i/o) weighting denumerator coefficients
|
||||
@ -22,8 +22,8 @@ void LPCencode(
|
||||
float *data, /* (i) lsf coefficients to quantize */
|
||||
iLBC_Enc_Inst_t *iLBCenc_inst
|
||||
/* (i/o) the encoder state structure */
|
||||
);
|
||||
);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
|
||||
|
||||
@ -10,28 +10,27 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "iLBC_define.h"
|
||||
#include "StateConstructW.h"
|
||||
#include "constants.h"
|
||||
#include "filter.h"
|
||||
#include "iLBC_define.h"
|
||||
#include "constants.h"
|
||||
#include "filter.h"
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* decoding of the start state
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void StateConstructW(
|
||||
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 */
|
||||
){
|
||||
){
|
||||
float maxVal, tmpbuf[LPC_FILTERORDER+2*STATE_LEN], *tmp,
|
||||
numerator[LPC_FILTERORDER+1];
|
||||
float foutbuf[LPC_FILTERORDER+2*STATE_LEN], *fout;
|
||||
@ -71,6 +70,6 @@ void StateConstructW(
|
||||
for (k=0;k<len;k++) {
|
||||
out[k] = fout[len-1-k]+fout[2*len-1-k];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,20 +8,20 @@
|
||||
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(
|
||||
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 */
|
||||
);
|
||||
);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,23 +8,22 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "iLBC_define.h"
|
||||
#include "StateSearchW.h"
|
||||
#include "constants.h"
|
||||
#include "filter.h"
|
||||
#include "helpfun.h"
|
||||
#include "iLBC_define.h"
|
||||
#include "constants.h"
|
||||
#include "filter.h"
|
||||
#include "helpfun.h"
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* predictive noise shaping encoding of scaled start state
|
||||
* (subrutine for StateSearchW)
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void AbsQuantW(
|
||||
void AbsQuantW(
|
||||
iLBC_Enc_Inst_t *iLBCenc_inst,
|
||||
/* (i) Encoder instance */
|
||||
float *in, /* (i) vector to encode */
|
||||
@ -35,7 +34,7 @@ void AbsQuantW(
|
||||
vector of quantizer indexes */
|
||||
int state_first /* (i) position of start state in the
|
||||
80 vec */
|
||||
){
|
||||
){
|
||||
float *syntOut;
|
||||
float syntOutBuf[LPC_FILTERORDER+STATE_SHORT_LEN_30MS];
|
||||
float toQ, xq;
|
||||
@ -107,13 +106,13 @@ void AbsQuantW(
|
||||
AllPoleFilter(&syntOut[n], weightDenum, 1,
|
||||
LPC_FILTERORDER);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* encoding of start state
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void StateSearchW(
|
||||
void StateSearchW(
|
||||
iLBC_Enc_Inst_t *iLBCenc_inst,
|
||||
/* (i) Encoder instance */
|
||||
float *residual,/* (i) target residual vector */
|
||||
@ -125,7 +124,7 @@ void StateSearchW(
|
||||
int len, /* (i) length of all vectors */
|
||||
int state_first /* (i) position of start state in the
|
||||
80 vec */
|
||||
){
|
||||
){
|
||||
float dtmp, maxVal;
|
||||
float tmpbuf[LPC_FILTERORDER+2*STATE_SHORT_LEN_30MS];
|
||||
float *tmp, numerator[1+LPC_FILTERORDER];
|
||||
@ -189,6 +188,6 @@ void StateSearchW(
|
||||
|
||||
AbsQuantW(iLBCenc_inst, fout,syntDenum,
|
||||
weightDenum,idxVec, len, state_first);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,12 +8,12 @@
|
||||
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(
|
||||
void AbsQuantW(
|
||||
iLBC_Enc_Inst_t *iLBCenc_inst,
|
||||
/* (i) Encoder instance */
|
||||
float *in, /* (i) vector to encode */
|
||||
@ -24,9 +24,9 @@ void AbsQuantW(
|
||||
vector of quantizer indexes */
|
||||
int state_first /* (i) position of start state in the
|
||||
80 vec */
|
||||
);
|
||||
);
|
||||
|
||||
void StateSearchW(
|
||||
void StateSearchW(
|
||||
iLBC_Enc_Inst_t *iLBCenc_inst,
|
||||
/* (i) Encoder instance */
|
||||
float *residual,/* (i) target residual vector */
|
||||
@ -40,9 +40,9 @@ void StateSearchW(
|
||||
|
||||
|
||||
80 vec */
|
||||
);
|
||||
);
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,25 +8,24 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include <string.h>
|
||||
#include "anaFilter.h"
|
||||
#include "iLBC_define.h"
|
||||
#include <string.h>
|
||||
#include "iLBC_define.h"
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* LP analysis filter.
|
||||
|
||||
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
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 */
|
||||
){
|
||||
){
|
||||
int i, j;
|
||||
float *po, *pi, *pm, *pa;
|
||||
|
||||
@ -66,6 +65,6 @@ void anaFilter(
|
||||
|
||||
memcpy(mem, &In[len-LPC_FILTERORDER],
|
||||
LPC_FILTERORDER*sizeof(float));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,19 +8,19 @@
|
||||
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 */
|
||||
);
|
||||
);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,15 +8,15 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include "iLBC_define.h"
|
||||
#include "iLBC_define.h"
|
||||
|
||||
/* ULP bit allocation */
|
||||
/* ULP bit allocation */
|
||||
|
||||
/* 20 ms frame */
|
||||
|
||||
const iLBC_ULP_Inst_t ULP_20msTbl = {
|
||||
const iLBC_ULP_Inst_t ULP_20msTbl = {
|
||||
/* LSF */
|
||||
{ {6,0,0,0,0}, {7,0,0,0,0}, {7,0,0,0,0},
|
||||
{0,0,0,0,0}, {0,0,0,0,0}, {0,0,0,0,0}},
|
||||
@ -37,11 +37,11 @@ const iLBC_ULP_Inst_t ULP_20msTbl = {
|
||||
{{1,1,3,0,0}, {0,2,2,0,0}, {0,0,3,0,0}},
|
||||
{{0,0,0,0,0}, {0,0,0,0,0}, {0,0,0,0,0}},
|
||||
{{0,0,0,0,0}, {0,0,0,0,0}, {0,0,0,0,0}}}
|
||||
};
|
||||
};
|
||||
|
||||
/* 30 ms frame */
|
||||
|
||||
const iLBC_ULP_Inst_t ULP_30msTbl = {
|
||||
const iLBC_ULP_Inst_t ULP_30msTbl = {
|
||||
/* LSF */
|
||||
{ {6,0,0,0,0}, {7,0,0,0,0}, {7,0,0,0,0},
|
||||
|
||||
@ -64,40 +64,40 @@ const iLBC_ULP_Inst_t ULP_30msTbl = {
|
||||
{{0,2,3,0,0}, {0,2,2,0,0}, {0,0,3,0,0}},
|
||||
{{0,1,4,0,0}, {0,1,3,0,0}, {0,0,3,0,0}},
|
||||
{{0,1,4,0,0}, {0,1,3,0,0}, {0,0,3,0,0}}}
|
||||
};
|
||||
};
|
||||
|
||||
/* HP Filters */
|
||||
/* HP Filters */
|
||||
|
||||
float hpi_zero_coefsTbl[3] = {
|
||||
float hpi_zero_coefsTbl[3] = {
|
||||
(float)0.92727436, (float)-1.8544941, (float)0.92727436
|
||||
};
|
||||
float hpi_pole_coefsTbl[3] = {
|
||||
};
|
||||
float hpi_pole_coefsTbl[3] = {
|
||||
(float)1.0, (float)-1.9059465, (float)0.9114024
|
||||
};
|
||||
float hpo_zero_coefsTbl[3] = {
|
||||
};
|
||||
float hpo_zero_coefsTbl[3] = {
|
||||
(float)0.93980581, (float)-1.8795834, (float)0.93980581
|
||||
};
|
||||
float hpo_pole_coefsTbl[3] = {
|
||||
};
|
||||
float hpo_pole_coefsTbl[3] = {
|
||||
(float)1.0, (float)-1.9330735, (float)0.93589199
|
||||
};
|
||||
};
|
||||
|
||||
/* LP Filter */
|
||||
/* LP Filter */
|
||||
|
||||
float lpFilt_coefsTbl[FILTERORDER_DS]={
|
||||
float lpFilt_coefsTbl[FILTERORDER_DS]={
|
||||
(float)-0.066650, (float)0.125000, (float)0.316650,
|
||||
(float)0.414063, (float)0.316650,
|
||||
(float)0.125000, (float)-0.066650
|
||||
};
|
||||
};
|
||||
|
||||
/* State quantization tables */
|
||||
/* State quantization tables */
|
||||
|
||||
float state_sq3Tbl[8] = {
|
||||
float state_sq3Tbl[8] = {
|
||||
(float)-3.719849, (float)-2.177490, (float)-1.130005,
|
||||
(float)-0.309692, (float)0.444214, (float)1.329712,
|
||||
(float)2.436279, (float)3.983887
|
||||
};
|
||||
};
|
||||
|
||||
float state_frgqTbl[64] = {
|
||||
float state_frgqTbl[64] = {
|
||||
(float)1.000085, (float)1.071695, (float)1.140395,
|
||||
(float)1.206868, (float)1.277188, (float)1.351503,
|
||||
|
||||
@ -122,31 +122,31 @@ float state_frgqTbl[64] = {
|
||||
(float)3.542514, (float)3.604064, (float)3.666050,
|
||||
(float)3.740994, (float)3.830749, (float)3.938770,
|
||||
(float)4.101764
|
||||
};
|
||||
};
|
||||
|
||||
/* CB tables */
|
||||
/* CB tables */
|
||||
|
||||
int search_rangeTbl[5][CB_NSTAGES]={{58,58,58}, {108,44,44},
|
||||
int search_rangeTbl[5][CB_NSTAGES]={{58,58,58}, {108,44,44},
|
||||
{108,108,108}, {108,108,108}, {108,108,108}};
|
||||
int stMemLTbl=85;
|
||||
int memLfTbl[NASUB_MAX]={147,147,147,147};
|
||||
int stMemLTbl=85;
|
||||
int memLfTbl[NASUB_MAX]={147,147,147,147};
|
||||
|
||||
/* expansion filter(s) */
|
||||
/* expansion filter(s) */
|
||||
|
||||
float cbfiltersTbl[CB_FILTERLEN]={
|
||||
float cbfiltersTbl[CB_FILTERLEN]={
|
||||
(float)-0.034180, (float)0.108887, (float)-0.184326,
|
||||
(float)0.806152, (float)0.713379, (float)-0.144043,
|
||||
(float)0.083740, (float)-0.033691
|
||||
};
|
||||
};
|
||||
|
||||
/* Gain Quantization */
|
||||
/* Gain Quantization */
|
||||
|
||||
float gain_sq3Tbl[8]={
|
||||
float gain_sq3Tbl[8]={
|
||||
(float)-1.000000, (float)-0.659973, (float)-0.330017,
|
||||
(float)0.000000, (float)0.250000, (float)0.500000,
|
||||
(float)0.750000, (float)1.00000};
|
||||
|
||||
float gain_sq4Tbl[16]={
|
||||
float gain_sq4Tbl[16]={
|
||||
(float)-1.049988, (float)-0.900024, (float)-0.750000,
|
||||
(float)-0.599976, (float)-0.450012, (float)-0.299988,
|
||||
(float)-0.150024, (float)0.000000, (float)0.150024,
|
||||
@ -154,7 +154,7 @@ float gain_sq4Tbl[16]={
|
||||
(float)0.750000, (float)0.900024, (float)1.049988,
|
||||
(float)1.200012};
|
||||
|
||||
float gain_sq5Tbl[32]={
|
||||
float gain_sq5Tbl[32]={
|
||||
(float)0.037476, (float)0.075012, (float)0.112488,
|
||||
|
||||
|
||||
@ -169,46 +169,46 @@ float gain_sq5Tbl[32]={
|
||||
(float)1.049988, (float)1.087524, (float)1.125000,
|
||||
(float)1.162476, (float)1.200012};
|
||||
|
||||
/* Enhancer - Upsamling a factor 4 (ENH_UPS0 = 4) */
|
||||
float polyphaserTbl[ENH_UPS0*(2*ENH_FL0+1)]={
|
||||
/* Enhancer - Upsamling a factor 4 (ENH_UPS0 = 4) */
|
||||
float polyphaserTbl[ENH_UPS0*(2*ENH_FL0+1)]={
|
||||
(float)0.000000, (float)0.000000, (float)0.000000,
|
||||
(float)1.000000,
|
||||
(float)1.000000,
|
||||
(float)0.000000, (float)0.000000, (float)0.000000,
|
||||
(float)0.015625, (float)-0.076904, (float)0.288330,
|
||||
(float)0.862061,
|
||||
(float)0.862061,
|
||||
(float)-0.106445, (float)0.018799, (float)-0.015625,
|
||||
(float)0.023682, (float)-0.124268, (float)0.601563,
|
||||
(float)0.601563,
|
||||
(float)0.601563,
|
||||
(float)-0.124268, (float)0.023682, (float)-0.023682,
|
||||
(float)0.018799, (float)-0.106445, (float)0.862061,
|
||||
(float)0.288330,
|
||||
(float)0.288330,
|
||||
(float)-0.076904, (float)0.015625, (float)-0.018799};
|
||||
|
||||
float enh_plocsTbl[ENH_NBLOCKS_TOT] = {(float)40.0, (float)120.0,
|
||||
float enh_plocsTbl[ENH_NBLOCKS_TOT] = {(float)40.0, (float)120.0,
|
||||
(float)200.0, (float)280.0, (float)360.0,
|
||||
(float)440.0, (float)520.0, (float)600.0};
|
||||
|
||||
/* LPC analysis and quantization */
|
||||
/* LPC analysis and quantization */
|
||||
|
||||
int dim_lsfCbTbl[LSF_NSPLIT] = {3, 3, 4};
|
||||
int size_lsfCbTbl[LSF_NSPLIT] = {64,128,128};
|
||||
int dim_lsfCbTbl[LSF_NSPLIT] = {3, 3, 4};
|
||||
int size_lsfCbTbl[LSF_NSPLIT] = {64,128,128};
|
||||
|
||||
|
||||
float lsfmeanTbl[LPC_FILTERORDER] = {
|
||||
float lsfmeanTbl[LPC_FILTERORDER] = {
|
||||
(float)0.281738, (float)0.445801, (float)0.663330,
|
||||
(float)0.962524, (float)1.251831, (float)1.533081,
|
||||
(float)1.850586, (float)2.137817, (float)2.481445,
|
||||
(float)2.777344};
|
||||
|
||||
float lsf_weightTbl_30ms[6] = {(float)(1.0/2.0), (float)1.0,
|
||||
(float)(2.0/3.0),
|
||||
float lsf_weightTbl_30ms[6] = {(float)(1.0/2.0), (float)1.0,
|
||||
(float)(2.0/3.0),
|
||||
(float)(1.0/3.0), (float)0.0, (float)0.0};
|
||||
|
||||
float lsf_weightTbl_20ms[4] = {(float)(3.0/4.0), (float)(2.0/4.0),
|
||||
float lsf_weightTbl_20ms[4] = {(float)(3.0/4.0), (float)(2.0/4.0),
|
||||
(float)(1.0/4.0), (float)(0.0)};
|
||||
|
||||
/* Hanning LPC window */
|
||||
float lpc_winTbl[BLOCKL_MAX]={
|
||||
/* Hanning LPC window */
|
||||
float lpc_winTbl[BLOCKL_MAX]={
|
||||
(float)0.000183, (float)0.000671, (float)0.001526,
|
||||
(float)0.002716, (float)0.004242, (float)0.006104,
|
||||
(float)0.008301, (float)0.010834, (float)0.013702,
|
||||
@ -293,10 +293,10 @@ float lpc_winTbl[BLOCKL_MAX]={
|
||||
(float)0.013702, (float)0.010834, (float)0.008301,
|
||||
(float)0.006104, (float)0.004242, (float)0.002716,
|
||||
(float)0.001526, (float)0.000671, (float)0.000183
|
||||
};
|
||||
};
|
||||
|
||||
/* Asymmetric LPC window */
|
||||
float lpc_asymwinTbl[BLOCKL_MAX]={
|
||||
/* Asymmetric LPC window */
|
||||
float lpc_asymwinTbl[BLOCKL_MAX]={
|
||||
(float)0.000061, (float)0.000214, (float)0.000458,
|
||||
(float)0.000824, (float)0.001282, (float)0.001831,
|
||||
(float)0.002472, (float)0.003235, (float)0.004120,
|
||||
@ -379,351 +379,351 @@ float lpc_asymwinTbl[BLOCKL_MAX]={
|
||||
(float)0.649445, (float)0.587799, (float)0.522491,
|
||||
(float)0.453979, (float)0.382690, (float)0.309021,
|
||||
(float)0.233459, (float)0.156433, (float)0.078461
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
/* Lag window for LPC */
|
||||
float lpc_lagwinTbl[LPC_FILTERORDER + 1]={
|
||||
/* Lag window for LPC */
|
||||
float lpc_lagwinTbl[LPC_FILTERORDER + 1]={
|
||||
(float)1.000100, (float)0.998890, (float)0.995569,
|
||||
(float)0.990057, (float)0.982392,
|
||||
(float)0.972623, (float)0.960816, (float)0.947047,
|
||||
(float)0.931405, (float)0.913989, (float)0.894909};
|
||||
|
||||
/* LSF quantization*/
|
||||
float lsfCbTbl[64 * 3 + 128 * 3 + 128 * 4] = {
|
||||
(float)0.155396, (float)0.273193, (float)0.451172,
|
||||
(float)0.390503, (float)0.648071, (float)1.002075,
|
||||
(float)0.440186, (float)0.692261, (float)0.955688,
|
||||
(float)0.343628, (float)0.642334, (float)1.071533,
|
||||
(float)0.318359, (float)0.491577, (float)0.670532,
|
||||
(float)0.193115, (float)0.375488, (float)0.725708,
|
||||
(float)0.364136, (float)0.510376, (float)0.658691,
|
||||
(float)0.297485, (float)0.527588, (float)0.842529,
|
||||
(float)0.227173, (float)0.365967, (float)0.563110,
|
||||
(float)0.244995, (float)0.396729, (float)0.636475,
|
||||
(float)0.169434, (float)0.300171, (float)0.520264,
|
||||
(float)0.312866, (float)0.464478, (float)0.643188,
|
||||
(float)0.248535, (float)0.429932, (float)0.626099,
|
||||
(float)0.236206, (float)0.491333, (float)0.817139,
|
||||
(float)0.334961, (float)0.625122, (float)0.895752,
|
||||
(float)0.343018, (float)0.518555, (float)0.698608,
|
||||
(float)0.372803, (float)0.659790, (float)0.945435,
|
||||
(float)0.176880, (float)0.316528, (float)0.581421,
|
||||
(float)0.416382, (float)0.625977, (float)0.805176,
|
||||
(float)0.303223, (float)0.568726, (float)0.915039,
|
||||
(float)0.203613, (float)0.351440, (float)0.588135,
|
||||
(float)0.221191, (float)0.375000, (float)0.614746,
|
||||
(float)0.199951, (float)0.323364, (float)0.476074,
|
||||
(float)0.300781, (float)0.433350, (float)0.566895,
|
||||
(float)0.226196, (float)0.354004, (float)0.507568,
|
||||
(float)0.300049, (float)0.508179, (float)0.711670,
|
||||
(float)0.312012, (float)0.492676, (float)0.763428,
|
||||
(float)0.329956, (float)0.541016, (float)0.795776,
|
||||
(float)0.373779, (float)0.604614, (float)0.928833,
|
||||
(float)0.210571, (float)0.452026, (float)0.755249,
|
||||
(float)0.271118, (float)0.473267, (float)0.662476,
|
||||
(float)0.285522, (float)0.436890, (float)0.634399,
|
||||
(float)0.246704, (float)0.565552, (float)0.859009,
|
||||
(float)0.270508, (float)0.406250, (float)0.553589,
|
||||
(float)0.361450, (float)0.578491, (float)0.813843,
|
||||
(float)0.342651, (float)0.482788, (float)0.622437,
|
||||
(float)0.340332, (float)0.549438, (float)0.743164,
|
||||
(float)0.200439, (float)0.336304, (float)0.540894,
|
||||
(float)0.407837, (float)0.644775, (float)0.895142,
|
||||
(float)0.294678, (float)0.454834, (float)0.699097,
|
||||
(float)0.193115, (float)0.344482, (float)0.643188,
|
||||
(float)0.275757, (float)0.420776, (float)0.598755,
|
||||
(float)0.380493, (float)0.608643, (float)0.861084,
|
||||
(float)0.222778, (float)0.426147, (float)0.676514,
|
||||
/* LSF quantization*/
|
||||
float lsfCbTbl[64 * 3 + 128 * 3 + 128 * 4] = {
|
||||
(float)0.155396, (float)0.273193, (float)0.451172,
|
||||
(float)0.390503, (float)0.648071, (float)1.002075,
|
||||
(float)0.440186, (float)0.692261, (float)0.955688,
|
||||
(float)0.343628, (float)0.642334, (float)1.071533,
|
||||
(float)0.318359, (float)0.491577, (float)0.670532,
|
||||
(float)0.193115, (float)0.375488, (float)0.725708,
|
||||
(float)0.364136, (float)0.510376, (float)0.658691,
|
||||
(float)0.297485, (float)0.527588, (float)0.842529,
|
||||
(float)0.227173, (float)0.365967, (float)0.563110,
|
||||
(float)0.244995, (float)0.396729, (float)0.636475,
|
||||
(float)0.169434, (float)0.300171, (float)0.520264,
|
||||
(float)0.312866, (float)0.464478, (float)0.643188,
|
||||
(float)0.248535, (float)0.429932, (float)0.626099,
|
||||
(float)0.236206, (float)0.491333, (float)0.817139,
|
||||
(float)0.334961, (float)0.625122, (float)0.895752,
|
||||
(float)0.343018, (float)0.518555, (float)0.698608,
|
||||
(float)0.372803, (float)0.659790, (float)0.945435,
|
||||
(float)0.176880, (float)0.316528, (float)0.581421,
|
||||
(float)0.416382, (float)0.625977, (float)0.805176,
|
||||
(float)0.303223, (float)0.568726, (float)0.915039,
|
||||
(float)0.203613, (float)0.351440, (float)0.588135,
|
||||
(float)0.221191, (float)0.375000, (float)0.614746,
|
||||
(float)0.199951, (float)0.323364, (float)0.476074,
|
||||
(float)0.300781, (float)0.433350, (float)0.566895,
|
||||
(float)0.226196, (float)0.354004, (float)0.507568,
|
||||
(float)0.300049, (float)0.508179, (float)0.711670,
|
||||
(float)0.312012, (float)0.492676, (float)0.763428,
|
||||
(float)0.329956, (float)0.541016, (float)0.795776,
|
||||
(float)0.373779, (float)0.604614, (float)0.928833,
|
||||
(float)0.210571, (float)0.452026, (float)0.755249,
|
||||
(float)0.271118, (float)0.473267, (float)0.662476,
|
||||
(float)0.285522, (float)0.436890, (float)0.634399,
|
||||
(float)0.246704, (float)0.565552, (float)0.859009,
|
||||
(float)0.270508, (float)0.406250, (float)0.553589,
|
||||
(float)0.361450, (float)0.578491, (float)0.813843,
|
||||
(float)0.342651, (float)0.482788, (float)0.622437,
|
||||
(float)0.340332, (float)0.549438, (float)0.743164,
|
||||
(float)0.200439, (float)0.336304, (float)0.540894,
|
||||
(float)0.407837, (float)0.644775, (float)0.895142,
|
||||
(float)0.294678, (float)0.454834, (float)0.699097,
|
||||
(float)0.193115, (float)0.344482, (float)0.643188,
|
||||
(float)0.275757, (float)0.420776, (float)0.598755,
|
||||
(float)0.380493, (float)0.608643, (float)0.861084,
|
||||
(float)0.222778, (float)0.426147, (float)0.676514,
|
||||
|
||||
|
||||
(float)0.407471, (float)0.700195, (float)1.053101,
|
||||
(float)0.218384, (float)0.377197, (float)0.669922,
|
||||
(float)0.313232, (float)0.454102, (float)0.600952,
|
||||
(float)0.347412, (float)0.571533, (float)0.874146,
|
||||
(float)0.238037, (float)0.405396, (float)0.729492,
|
||||
(float)0.223877, (float)0.412964, (float)0.822021,
|
||||
(float)0.395264, (float)0.582153, (float)0.743896,
|
||||
(float)0.247925, (float)0.485596, (float)0.720581,
|
||||
(float)0.229126, (float)0.496582, (float)0.907715,
|
||||
(float)0.260132, (float)0.566895, (float)1.012695,
|
||||
(float)0.337402, (float)0.611572, (float)0.978149,
|
||||
(float)0.267822, (float)0.447632, (float)0.769287,
|
||||
(float)0.250610, (float)0.381714, (float)0.530029,
|
||||
(float)0.430054, (float)0.805054, (float)1.221924,
|
||||
(float)0.382568, (float)0.544067, (float)0.701660,
|
||||
(float)0.383545, (float)0.710327, (float)1.149170,
|
||||
(float)0.271362, (float)0.529053, (float)0.775513,
|
||||
(float)0.246826, (float)0.393555, (float)0.588623,
|
||||
(float)0.266846, (float)0.422119, (float)0.676758,
|
||||
(float)0.311523, (float)0.580688, (float)0.838623,
|
||||
(float)1.331177, (float)1.576782, (float)1.779541,
|
||||
(float)1.160034, (float)1.401978, (float)1.768188,
|
||||
(float)1.161865, (float)1.525146, (float)1.715332,
|
||||
(float)0.759521, (float)0.913940, (float)1.119873,
|
||||
(float)0.947144, (float)1.121338, (float)1.282471,
|
||||
(float)1.015015, (float)1.557007, (float)1.804932,
|
||||
(float)1.172974, (float)1.402100, (float)1.692627,
|
||||
(float)1.087524, (float)1.474243, (float)1.665405,
|
||||
(float)0.899536, (float)1.105225, (float)1.406250,
|
||||
(float)1.148438, (float)1.484741, (float)1.796265,
|
||||
(float)0.785645, (float)1.209839, (float)1.567749,
|
||||
(float)0.867798, (float)1.166504, (float)1.450684,
|
||||
(float)0.922485, (float)1.229858, (float)1.420898,
|
||||
(float)0.791260, (float)1.123291, (float)1.409546,
|
||||
(float)0.788940, (float)0.966064, (float)1.340332,
|
||||
(float)1.051147, (float)1.272827, (float)1.556641,
|
||||
(float)0.866821, (float)1.181152, (float)1.538818,
|
||||
(float)0.906738, (float)1.373535, (float)1.607910,
|
||||
(float)1.244751, (float)1.581421, (float)1.933838,
|
||||
(float)0.913940, (float)1.337280, (float)1.539673,
|
||||
(float)0.680542, (float)0.959229, (float)1.662720,
|
||||
(float)0.887207, (float)1.430542, (float)1.800781,
|
||||
(float)0.912598, (float)1.433594, (float)1.683960,
|
||||
(float)0.860474, (float)1.060303, (float)1.455322,
|
||||
(float)1.005127, (float)1.381104, (float)1.706909,
|
||||
(float)0.800781, (float)1.363892, (float)1.829102,
|
||||
(float)0.781860, (float)1.124390, (float)1.505981,
|
||||
(float)1.003662, (float)1.471436, (float)1.684692,
|
||||
(float)0.981323, (float)1.309570, (float)1.618042,
|
||||
(float)1.228760, (float)1.554321, (float)1.756470,
|
||||
(float)0.734375, (float)0.895752, (float)1.225586,
|
||||
(float)0.841797, (float)1.055664, (float)1.249268,
|
||||
(float)0.920166, (float)1.119385, (float)1.486206,
|
||||
(float)0.894409, (float)1.539063, (float)1.828979,
|
||||
(float)0.407471, (float)0.700195, (float)1.053101,
|
||||
(float)0.218384, (float)0.377197, (float)0.669922,
|
||||
(float)0.313232, (float)0.454102, (float)0.600952,
|
||||
(float)0.347412, (float)0.571533, (float)0.874146,
|
||||
(float)0.238037, (float)0.405396, (float)0.729492,
|
||||
(float)0.223877, (float)0.412964, (float)0.822021,
|
||||
(float)0.395264, (float)0.582153, (float)0.743896,
|
||||
(float)0.247925, (float)0.485596, (float)0.720581,
|
||||
(float)0.229126, (float)0.496582, (float)0.907715,
|
||||
(float)0.260132, (float)0.566895, (float)1.012695,
|
||||
(float)0.337402, (float)0.611572, (float)0.978149,
|
||||
(float)0.267822, (float)0.447632, (float)0.769287,
|
||||
(float)0.250610, (float)0.381714, (float)0.530029,
|
||||
(float)0.430054, (float)0.805054, (float)1.221924,
|
||||
(float)0.382568, (float)0.544067, (float)0.701660,
|
||||
(float)0.383545, (float)0.710327, (float)1.149170,
|
||||
(float)0.271362, (float)0.529053, (float)0.775513,
|
||||
(float)0.246826, (float)0.393555, (float)0.588623,
|
||||
(float)0.266846, (float)0.422119, (float)0.676758,
|
||||
(float)0.311523, (float)0.580688, (float)0.838623,
|
||||
(float)1.331177, (float)1.576782, (float)1.779541,
|
||||
(float)1.160034, (float)1.401978, (float)1.768188,
|
||||
(float)1.161865, (float)1.525146, (float)1.715332,
|
||||
(float)0.759521, (float)0.913940, (float)1.119873,
|
||||
(float)0.947144, (float)1.121338, (float)1.282471,
|
||||
(float)1.015015, (float)1.557007, (float)1.804932,
|
||||
(float)1.172974, (float)1.402100, (float)1.692627,
|
||||
(float)1.087524, (float)1.474243, (float)1.665405,
|
||||
(float)0.899536, (float)1.105225, (float)1.406250,
|
||||
(float)1.148438, (float)1.484741, (float)1.796265,
|
||||
(float)0.785645, (float)1.209839, (float)1.567749,
|
||||
(float)0.867798, (float)1.166504, (float)1.450684,
|
||||
(float)0.922485, (float)1.229858, (float)1.420898,
|
||||
(float)0.791260, (float)1.123291, (float)1.409546,
|
||||
(float)0.788940, (float)0.966064, (float)1.340332,
|
||||
(float)1.051147, (float)1.272827, (float)1.556641,
|
||||
(float)0.866821, (float)1.181152, (float)1.538818,
|
||||
(float)0.906738, (float)1.373535, (float)1.607910,
|
||||
(float)1.244751, (float)1.581421, (float)1.933838,
|
||||
(float)0.913940, (float)1.337280, (float)1.539673,
|
||||
(float)0.680542, (float)0.959229, (float)1.662720,
|
||||
(float)0.887207, (float)1.430542, (float)1.800781,
|
||||
(float)0.912598, (float)1.433594, (float)1.683960,
|
||||
(float)0.860474, (float)1.060303, (float)1.455322,
|
||||
(float)1.005127, (float)1.381104, (float)1.706909,
|
||||
(float)0.800781, (float)1.363892, (float)1.829102,
|
||||
(float)0.781860, (float)1.124390, (float)1.505981,
|
||||
(float)1.003662, (float)1.471436, (float)1.684692,
|
||||
(float)0.981323, (float)1.309570, (float)1.618042,
|
||||
(float)1.228760, (float)1.554321, (float)1.756470,
|
||||
(float)0.734375, (float)0.895752, (float)1.225586,
|
||||
(float)0.841797, (float)1.055664, (float)1.249268,
|
||||
(float)0.920166, (float)1.119385, (float)1.486206,
|
||||
(float)0.894409, (float)1.539063, (float)1.828979,
|
||||
|
||||
|
||||
(float)1.283691, (float)1.543335, (float)1.858276,
|
||||
(float)0.676025, (float)0.933105, (float)1.490845,
|
||||
(float)0.821289, (float)1.491821, (float)1.739868,
|
||||
(float)0.923218, (float)1.144653, (float)1.580566,
|
||||
(float)1.057251, (float)1.345581, (float)1.635864,
|
||||
(float)0.888672, (float)1.074951, (float)1.353149,
|
||||
(float)0.942749, (float)1.195435, (float)1.505493,
|
||||
(float)1.492310, (float)1.788086, (float)2.039673,
|
||||
(float)1.070313, (float)1.634399, (float)1.860962,
|
||||
(float)1.253296, (float)1.488892, (float)1.686035,
|
||||
(float)0.647095, (float)0.864014, (float)1.401855,
|
||||
(float)0.866699, (float)1.254883, (float)1.453369,
|
||||
(float)1.063965, (float)1.532593, (float)1.731323,
|
||||
(float)1.167847, (float)1.521484, (float)1.884033,
|
||||
(float)0.956055, (float)1.502075, (float)1.745605,
|
||||
(float)0.928711, (float)1.288574, (float)1.479614,
|
||||
(float)1.088013, (float)1.380737, (float)1.570801,
|
||||
(float)0.905029, (float)1.186768, (float)1.371948,
|
||||
(float)1.057861, (float)1.421021, (float)1.617432,
|
||||
(float)1.108276, (float)1.312500, (float)1.501465,
|
||||
(float)0.979492, (float)1.416992, (float)1.624268,
|
||||
(float)1.276001, (float)1.661011, (float)2.007935,
|
||||
(float)0.993042, (float)1.168579, (float)1.331665,
|
||||
(float)0.778198, (float)0.944946, (float)1.235962,
|
||||
(float)1.223755, (float)1.491333, (float)1.815674,
|
||||
(float)0.852661, (float)1.350464, (float)1.722290,
|
||||
(float)1.134766, (float)1.593140, (float)1.787354,
|
||||
(float)1.051392, (float)1.339722, (float)1.531006,
|
||||
(float)0.803589, (float)1.271240, (float)1.652100,
|
||||
(float)0.755737, (float)1.143555, (float)1.639404,
|
||||
(float)0.700928, (float)0.837280, (float)1.130371,
|
||||
(float)0.942749, (float)1.197876, (float)1.669800,
|
||||
(float)0.993286, (float)1.378296, (float)1.566528,
|
||||
(float)0.801025, (float)1.095337, (float)1.298950,
|
||||
(float)0.739990, (float)1.032959, (float)1.383667,
|
||||
(float)0.845703, (float)1.072266, (float)1.543823,
|
||||
(float)0.915649, (float)1.072266, (float)1.224487,
|
||||
(float)1.021973, (float)1.226196, (float)1.481323,
|
||||
(float)0.999878, (float)1.204102, (float)1.555908,
|
||||
(float)0.722290, (float)0.913940, (float)1.340210,
|
||||
(float)0.673340, (float)0.835938, (float)1.259521,
|
||||
(float)0.832397, (float)1.208374, (float)1.394165,
|
||||
(float)0.962158, (float)1.576172, (float)1.912842,
|
||||
(float)1.166748, (float)1.370850, (float)1.556763,
|
||||
(float)0.946289, (float)1.138550, (float)1.400391,
|
||||
(float)1.035034, (float)1.218262, (float)1.386475,
|
||||
(float)1.393799, (float)1.717773, (float)2.000244,
|
||||
(float)0.972656, (float)1.260986, (float)1.760620,
|
||||
(float)1.028198, (float)1.288452, (float)1.484619,
|
||||
(float)0.773560, (float)1.258057, (float)1.756714,
|
||||
(float)1.080322, (float)1.328003, (float)1.742676,
|
||||
(float)0.823975, (float)1.450806, (float)1.917725,
|
||||
(float)0.859009, (float)1.016602, (float)1.191895,
|
||||
(float)0.843994, (float)1.131104, (float)1.645020,
|
||||
(float)1.283691, (float)1.543335, (float)1.858276,
|
||||
(float)0.676025, (float)0.933105, (float)1.490845,
|
||||
(float)0.821289, (float)1.491821, (float)1.739868,
|
||||
(float)0.923218, (float)1.144653, (float)1.580566,
|
||||
(float)1.057251, (float)1.345581, (float)1.635864,
|
||||
(float)0.888672, (float)1.074951, (float)1.353149,
|
||||
(float)0.942749, (float)1.195435, (float)1.505493,
|
||||
(float)1.492310, (float)1.788086, (float)2.039673,
|
||||
(float)1.070313, (float)1.634399, (float)1.860962,
|
||||
(float)1.253296, (float)1.488892, (float)1.686035,
|
||||
(float)0.647095, (float)0.864014, (float)1.401855,
|
||||
(float)0.866699, (float)1.254883, (float)1.453369,
|
||||
(float)1.063965, (float)1.532593, (float)1.731323,
|
||||
(float)1.167847, (float)1.521484, (float)1.884033,
|
||||
(float)0.956055, (float)1.502075, (float)1.745605,
|
||||
(float)0.928711, (float)1.288574, (float)1.479614,
|
||||
(float)1.088013, (float)1.380737, (float)1.570801,
|
||||
(float)0.905029, (float)1.186768, (float)1.371948,
|
||||
(float)1.057861, (float)1.421021, (float)1.617432,
|
||||
(float)1.108276, (float)1.312500, (float)1.501465,
|
||||
(float)0.979492, (float)1.416992, (float)1.624268,
|
||||
(float)1.276001, (float)1.661011, (float)2.007935,
|
||||
(float)0.993042, (float)1.168579, (float)1.331665,
|
||||
(float)0.778198, (float)0.944946, (float)1.235962,
|
||||
(float)1.223755, (float)1.491333, (float)1.815674,
|
||||
(float)0.852661, (float)1.350464, (float)1.722290,
|
||||
(float)1.134766, (float)1.593140, (float)1.787354,
|
||||
(float)1.051392, (float)1.339722, (float)1.531006,
|
||||
(float)0.803589, (float)1.271240, (float)1.652100,
|
||||
(float)0.755737, (float)1.143555, (float)1.639404,
|
||||
(float)0.700928, (float)0.837280, (float)1.130371,
|
||||
(float)0.942749, (float)1.197876, (float)1.669800,
|
||||
(float)0.993286, (float)1.378296, (float)1.566528,
|
||||
(float)0.801025, (float)1.095337, (float)1.298950,
|
||||
(float)0.739990, (float)1.032959, (float)1.383667,
|
||||
(float)0.845703, (float)1.072266, (float)1.543823,
|
||||
(float)0.915649, (float)1.072266, (float)1.224487,
|
||||
(float)1.021973, (float)1.226196, (float)1.481323,
|
||||
(float)0.999878, (float)1.204102, (float)1.555908,
|
||||
(float)0.722290, (float)0.913940, (float)1.340210,
|
||||
(float)0.673340, (float)0.835938, (float)1.259521,
|
||||
(float)0.832397, (float)1.208374, (float)1.394165,
|
||||
(float)0.962158, (float)1.576172, (float)1.912842,
|
||||
(float)1.166748, (float)1.370850, (float)1.556763,
|
||||
(float)0.946289, (float)1.138550, (float)1.400391,
|
||||
(float)1.035034, (float)1.218262, (float)1.386475,
|
||||
(float)1.393799, (float)1.717773, (float)2.000244,
|
||||
(float)0.972656, (float)1.260986, (float)1.760620,
|
||||
(float)1.028198, (float)1.288452, (float)1.484619,
|
||||
(float)0.773560, (float)1.258057, (float)1.756714,
|
||||
(float)1.080322, (float)1.328003, (float)1.742676,
|
||||
(float)0.823975, (float)1.450806, (float)1.917725,
|
||||
(float)0.859009, (float)1.016602, (float)1.191895,
|
||||
(float)0.843994, (float)1.131104, (float)1.645020,
|
||||
|
||||
|
||||
(float)1.189697, (float)1.702759, (float)1.894409,
|
||||
(float)1.346680, (float)1.763184, (float)2.066040,
|
||||
(float)0.980469, (float)1.253784, (float)1.441650,
|
||||
(float)1.338135, (float)1.641968, (float)1.932739,
|
||||
(float)1.223267, (float)1.424194, (float)1.626465,
|
||||
(float)0.765747, (float)1.004150, (float)1.579102,
|
||||
(float)1.042847, (float)1.269165, (float)1.647461,
|
||||
(float)0.968750, (float)1.257568, (float)1.555786,
|
||||
(float)0.826294, (float)0.993408, (float)1.275146,
|
||||
(float)0.742310, (float)0.950439, (float)1.430542,
|
||||
(float)1.054321, (float)1.439819, (float)1.828003,
|
||||
(float)1.072998, (float)1.261719, (float)1.441895,
|
||||
(float)0.859375, (float)1.036377, (float)1.314819,
|
||||
(float)0.895752, (float)1.267212, (float)1.605591,
|
||||
(float)0.805420, (float)0.962891, (float)1.142334,
|
||||
(float)0.795654, (float)1.005493, (float)1.468506,
|
||||
(float)1.105347, (float)1.313843, (float)1.584839,
|
||||
(float)0.792236, (float)1.221802, (float)1.465698,
|
||||
(float)1.170532, (float)1.467651, (float)1.664063,
|
||||
(float)0.838257, (float)1.153198, (float)1.342163,
|
||||
(float)0.968018, (float)1.198242, (float)1.391235,
|
||||
(float)1.250122, (float)1.623535, (float)1.823608,
|
||||
(float)0.711670, (float)1.058350, (float)1.512085,
|
||||
(float)1.204834, (float)1.454468, (float)1.739136,
|
||||
(float)1.137451, (float)1.421753, (float)1.620117,
|
||||
(float)0.820435, (float)1.322754, (float)1.578247,
|
||||
(float)0.798706, (float)1.005005, (float)1.213867,
|
||||
(float)0.980713, (float)1.324951, (float)1.512939,
|
||||
(float)1.112305, (float)1.438843, (float)1.735596,
|
||||
(float)1.135498, (float)1.356689, (float)1.635742,
|
||||
(float)1.101318, (float)1.387451, (float)1.686523,
|
||||
(float)0.849854, (float)1.276978, (float)1.523438,
|
||||
(float)1.377930, (float)1.627563, (float)1.858154,
|
||||
(float)0.884888, (float)1.095459, (float)1.287476,
|
||||
(float)1.289795, (float)1.505859, (float)1.756592,
|
||||
(float)0.817505, (float)1.384155, (float)1.650513,
|
||||
(float)1.446655, (float)1.702148, (float)1.931885,
|
||||
(float)0.835815, (float)1.023071, (float)1.385376,
|
||||
(float)0.916626, (float)1.139038, (float)1.335327,
|
||||
(float)0.980103, (float)1.174072, (float)1.453735,
|
||||
(float)1.705688, (float)2.153809, (float)2.398315, (float)2.743408,
|
||||
(float)1.797119, (float)2.016846, (float)2.445679, (float)2.701904,
|
||||
(float)1.990356, (float)2.219116, (float)2.576416, (float)2.813477,
|
||||
(float)1.849365, (float)2.190918, (float)2.611572, (float)2.835083,
|
||||
(float)1.657959, (float)1.854370, (float)2.159058, (float)2.726196,
|
||||
(float)1.437744, (float)1.897705, (float)2.253174, (float)2.655396,
|
||||
(float)2.028687, (float)2.247314, (float)2.542358, (float)2.875854,
|
||||
(float)1.736938, (float)1.922119, (float)2.185913, (float)2.743408,
|
||||
(float)1.521606, (float)1.870972, (float)2.526855, (float)2.786987,
|
||||
(float)1.841431, (float)2.050659, (float)2.463623, (float)2.857666,
|
||||
(float)1.590088, (float)2.067261, (float)2.427979, (float)2.794434,
|
||||
(float)1.746826, (float)2.057373, (float)2.320190, (float)2.800781,
|
||||
(float)1.734619, (float)1.940552, (float)2.306030, (float)2.826416,
|
||||
(float)1.786255, (float)2.204468, (float)2.457520, (float)2.795288,
|
||||
(float)1.189697, (float)1.702759, (float)1.894409,
|
||||
(float)1.346680, (float)1.763184, (float)2.066040,
|
||||
(float)0.980469, (float)1.253784, (float)1.441650,
|
||||
(float)1.338135, (float)1.641968, (float)1.932739,
|
||||
(float)1.223267, (float)1.424194, (float)1.626465,
|
||||
(float)0.765747, (float)1.004150, (float)1.579102,
|
||||
(float)1.042847, (float)1.269165, (float)1.647461,
|
||||
(float)0.968750, (float)1.257568, (float)1.555786,
|
||||
(float)0.826294, (float)0.993408, (float)1.275146,
|
||||
(float)0.742310, (float)0.950439, (float)1.430542,
|
||||
(float)1.054321, (float)1.439819, (float)1.828003,
|
||||
(float)1.072998, (float)1.261719, (float)1.441895,
|
||||
(float)0.859375, (float)1.036377, (float)1.314819,
|
||||
(float)0.895752, (float)1.267212, (float)1.605591,
|
||||
(float)0.805420, (float)0.962891, (float)1.142334,
|
||||
(float)0.795654, (float)1.005493, (float)1.468506,
|
||||
(float)1.105347, (float)1.313843, (float)1.584839,
|
||||
(float)0.792236, (float)1.221802, (float)1.465698,
|
||||
(float)1.170532, (float)1.467651, (float)1.664063,
|
||||
(float)0.838257, (float)1.153198, (float)1.342163,
|
||||
(float)0.968018, (float)1.198242, (float)1.391235,
|
||||
(float)1.250122, (float)1.623535, (float)1.823608,
|
||||
(float)0.711670, (float)1.058350, (float)1.512085,
|
||||
(float)1.204834, (float)1.454468, (float)1.739136,
|
||||
(float)1.137451, (float)1.421753, (float)1.620117,
|
||||
(float)0.820435, (float)1.322754, (float)1.578247,
|
||||
(float)0.798706, (float)1.005005, (float)1.213867,
|
||||
(float)0.980713, (float)1.324951, (float)1.512939,
|
||||
(float)1.112305, (float)1.438843, (float)1.735596,
|
||||
(float)1.135498, (float)1.356689, (float)1.635742,
|
||||
(float)1.101318, (float)1.387451, (float)1.686523,
|
||||
(float)0.849854, (float)1.276978, (float)1.523438,
|
||||
(float)1.377930, (float)1.627563, (float)1.858154,
|
||||
(float)0.884888, (float)1.095459, (float)1.287476,
|
||||
(float)1.289795, (float)1.505859, (float)1.756592,
|
||||
(float)0.817505, (float)1.384155, (float)1.650513,
|
||||
(float)1.446655, (float)1.702148, (float)1.931885,
|
||||
(float)0.835815, (float)1.023071, (float)1.385376,
|
||||
(float)0.916626, (float)1.139038, (float)1.335327,
|
||||
(float)0.980103, (float)1.174072, (float)1.453735,
|
||||
(float)1.705688, (float)2.153809, (float)2.398315, (float)2.743408,
|
||||
(float)1.797119, (float)2.016846, (float)2.445679, (float)2.701904,
|
||||
(float)1.990356, (float)2.219116, (float)2.576416, (float)2.813477,
|
||||
(float)1.849365, (float)2.190918, (float)2.611572, (float)2.835083,
|
||||
(float)1.657959, (float)1.854370, (float)2.159058, (float)2.726196,
|
||||
(float)1.437744, (float)1.897705, (float)2.253174, (float)2.655396,
|
||||
(float)2.028687, (float)2.247314, (float)2.542358, (float)2.875854,
|
||||
(float)1.736938, (float)1.922119, (float)2.185913, (float)2.743408,
|
||||
(float)1.521606, (float)1.870972, (float)2.526855, (float)2.786987,
|
||||
(float)1.841431, (float)2.050659, (float)2.463623, (float)2.857666,
|
||||
(float)1.590088, (float)2.067261, (float)2.427979, (float)2.794434,
|
||||
(float)1.746826, (float)2.057373, (float)2.320190, (float)2.800781,
|
||||
(float)1.734619, (float)1.940552, (float)2.306030, (float)2.826416,
|
||||
(float)1.786255, (float)2.204468, (float)2.457520, (float)2.795288,
|
||||
|
||||
|
||||
(float)1.861084, (float)2.170532, (float)2.414551, (float)2.763672,
|
||||
(float)2.001465, (float)2.307617, (float)2.552734, (float)2.811890,
|
||||
(float)1.784424, (float)2.124146, (float)2.381592, (float)2.645508,
|
||||
(float)1.888794, (float)2.135864, (float)2.418579, (float)2.861206,
|
||||
(float)2.301147, (float)2.531250, (float)2.724976, (float)2.913086,
|
||||
(float)1.837769, (float)2.051270, (float)2.261963, (float)2.553223,
|
||||
(float)2.012939, (float)2.221191, (float)2.440186, (float)2.678101,
|
||||
(float)1.429565, (float)1.858276, (float)2.582275, (float)2.845703,
|
||||
(float)1.622803, (float)1.897705, (float)2.367310, (float)2.621094,
|
||||
(float)1.581543, (float)1.960449, (float)2.515869, (float)2.736450,
|
||||
(float)1.419434, (float)1.933960, (float)2.394653, (float)2.746704,
|
||||
(float)1.721924, (float)2.059570, (float)2.421753, (float)2.769653,
|
||||
(float)1.911011, (float)2.220703, (float)2.461060, (float)2.740723,
|
||||
(float)1.581177, (float)1.860840, (float)2.516968, (float)2.874634,
|
||||
(float)1.870361, (float)2.098755, (float)2.432373, (float)2.656494,
|
||||
(float)2.059692, (float)2.279785, (float)2.495605, (float)2.729370,
|
||||
(float)1.815674, (float)2.181519, (float)2.451538, (float)2.680542,
|
||||
(float)1.407959, (float)1.768311, (float)2.343018, (float)2.668091,
|
||||
(float)2.168701, (float)2.394653, (float)2.604736, (float)2.829346,
|
||||
(float)1.636230, (float)1.865723, (float)2.329102, (float)2.824219,
|
||||
(float)1.878906, (float)2.139526, (float)2.376709, (float)2.679810,
|
||||
(float)1.765381, (float)1.971802, (float)2.195435, (float)2.586914,
|
||||
(float)2.164795, (float)2.410889, (float)2.673706, (float)2.903198,
|
||||
(float)2.071899, (float)2.331055, (float)2.645874, (float)2.907104,
|
||||
(float)2.026001, (float)2.311523, (float)2.594849, (float)2.863892,
|
||||
(float)1.948975, (float)2.180786, (float)2.514893, (float)2.797852,
|
||||
(float)1.881836, (float)2.130859, (float)2.478149, (float)2.804199,
|
||||
(float)2.238159, (float)2.452759, (float)2.652832, (float)2.868286,
|
||||
(float)1.897949, (float)2.101685, (float)2.524292, (float)2.880127,
|
||||
(float)1.856445, (float)2.074585, (float)2.541016, (float)2.791748,
|
||||
(float)1.695557, (float)2.199097, (float)2.506226, (float)2.742676,
|
||||
(float)1.612671, (float)1.877075, (float)2.435425, (float)2.732910,
|
||||
(float)1.568848, (float)1.786499, (float)2.194580, (float)2.768555,
|
||||
(float)1.953369, (float)2.164551, (float)2.486938, (float)2.874023,
|
||||
(float)1.388306, (float)1.725342, (float)2.384521, (float)2.771851,
|
||||
(float)2.115356, (float)2.337769, (float)2.592896, (float)2.864014,
|
||||
(float)1.905762, (float)2.111328, (float)2.363525, (float)2.789307,
|
||||
(float)1.882568, (float)2.332031, (float)2.598267, (float)2.827637,
|
||||
(float)1.683594, (float)2.088745, (float)2.361938, (float)2.608643,
|
||||
(float)1.874023, (float)2.182129, (float)2.536133, (float)2.766968,
|
||||
(float)1.861938, (float)2.070435, (float)2.309692, (float)2.700562,
|
||||
(float)1.722168, (float)2.107422, (float)2.477295, (float)2.837646,
|
||||
(float)1.926880, (float)2.184692, (float)2.442627, (float)2.663818,
|
||||
(float)2.123901, (float)2.337280, (float)2.553101, (float)2.777466,
|
||||
(float)1.588135, (float)1.911499, (float)2.212769, (float)2.543945,
|
||||
(float)2.053955, (float)2.370850, (float)2.712158, (float)2.939941,
|
||||
(float)2.210449, (float)2.519653, (float)2.770386, (float)2.958618,
|
||||
(float)2.199463, (float)2.474731, (float)2.718262, (float)2.919922,
|
||||
(float)1.960083, (float)2.175415, (float)2.608032, (float)2.888794,
|
||||
(float)1.953735, (float)2.185181, (float)2.428223, (float)2.809570,
|
||||
(float)1.615234, (float)2.036499, (float)2.576538, (float)2.834595,
|
||||
(float)1.621094, (float)2.028198, (float)2.431030, (float)2.664673,
|
||||
(float)1.824951, (float)2.267456, (float)2.514526, (float)2.747925,
|
||||
(float)1.994263, (float)2.229126, (float)2.475220, (float)2.833984,
|
||||
(float)1.861084, (float)2.170532, (float)2.414551, (float)2.763672,
|
||||
(float)2.001465, (float)2.307617, (float)2.552734, (float)2.811890,
|
||||
(float)1.784424, (float)2.124146, (float)2.381592, (float)2.645508,
|
||||
(float)1.888794, (float)2.135864, (float)2.418579, (float)2.861206,
|
||||
(float)2.301147, (float)2.531250, (float)2.724976, (float)2.913086,
|
||||
(float)1.837769, (float)2.051270, (float)2.261963, (float)2.553223,
|
||||
(float)2.012939, (float)2.221191, (float)2.440186, (float)2.678101,
|
||||
(float)1.429565, (float)1.858276, (float)2.582275, (float)2.845703,
|
||||
(float)1.622803, (float)1.897705, (float)2.367310, (float)2.621094,
|
||||
(float)1.581543, (float)1.960449, (float)2.515869, (float)2.736450,
|
||||
(float)1.419434, (float)1.933960, (float)2.394653, (float)2.746704,
|
||||
(float)1.721924, (float)2.059570, (float)2.421753, (float)2.769653,
|
||||
(float)1.911011, (float)2.220703, (float)2.461060, (float)2.740723,
|
||||
(float)1.581177, (float)1.860840, (float)2.516968, (float)2.874634,
|
||||
(float)1.870361, (float)2.098755, (float)2.432373, (float)2.656494,
|
||||
(float)2.059692, (float)2.279785, (float)2.495605, (float)2.729370,
|
||||
(float)1.815674, (float)2.181519, (float)2.451538, (float)2.680542,
|
||||
(float)1.407959, (float)1.768311, (float)2.343018, (float)2.668091,
|
||||
(float)2.168701, (float)2.394653, (float)2.604736, (float)2.829346,
|
||||
(float)1.636230, (float)1.865723, (float)2.329102, (float)2.824219,
|
||||
(float)1.878906, (float)2.139526, (float)2.376709, (float)2.679810,
|
||||
(float)1.765381, (float)1.971802, (float)2.195435, (float)2.586914,
|
||||
(float)2.164795, (float)2.410889, (float)2.673706, (float)2.903198,
|
||||
(float)2.071899, (float)2.331055, (float)2.645874, (float)2.907104,
|
||||
(float)2.026001, (float)2.311523, (float)2.594849, (float)2.863892,
|
||||
(float)1.948975, (float)2.180786, (float)2.514893, (float)2.797852,
|
||||
(float)1.881836, (float)2.130859, (float)2.478149, (float)2.804199,
|
||||
(float)2.238159, (float)2.452759, (float)2.652832, (float)2.868286,
|
||||
(float)1.897949, (float)2.101685, (float)2.524292, (float)2.880127,
|
||||
(float)1.856445, (float)2.074585, (float)2.541016, (float)2.791748,
|
||||
(float)1.695557, (float)2.199097, (float)2.506226, (float)2.742676,
|
||||
(float)1.612671, (float)1.877075, (float)2.435425, (float)2.732910,
|
||||
(float)1.568848, (float)1.786499, (float)2.194580, (float)2.768555,
|
||||
(float)1.953369, (float)2.164551, (float)2.486938, (float)2.874023,
|
||||
(float)1.388306, (float)1.725342, (float)2.384521, (float)2.771851,
|
||||
(float)2.115356, (float)2.337769, (float)2.592896, (float)2.864014,
|
||||
(float)1.905762, (float)2.111328, (float)2.363525, (float)2.789307,
|
||||
(float)1.882568, (float)2.332031, (float)2.598267, (float)2.827637,
|
||||
(float)1.683594, (float)2.088745, (float)2.361938, (float)2.608643,
|
||||
(float)1.874023, (float)2.182129, (float)2.536133, (float)2.766968,
|
||||
(float)1.861938, (float)2.070435, (float)2.309692, (float)2.700562,
|
||||
(float)1.722168, (float)2.107422, (float)2.477295, (float)2.837646,
|
||||
(float)1.926880, (float)2.184692, (float)2.442627, (float)2.663818,
|
||||
(float)2.123901, (float)2.337280, (float)2.553101, (float)2.777466,
|
||||
(float)1.588135, (float)1.911499, (float)2.212769, (float)2.543945,
|
||||
(float)2.053955, (float)2.370850, (float)2.712158, (float)2.939941,
|
||||
(float)2.210449, (float)2.519653, (float)2.770386, (float)2.958618,
|
||||
(float)2.199463, (float)2.474731, (float)2.718262, (float)2.919922,
|
||||
(float)1.960083, (float)2.175415, (float)2.608032, (float)2.888794,
|
||||
(float)1.953735, (float)2.185181, (float)2.428223, (float)2.809570,
|
||||
(float)1.615234, (float)2.036499, (float)2.576538, (float)2.834595,
|
||||
(float)1.621094, (float)2.028198, (float)2.431030, (float)2.664673,
|
||||
(float)1.824951, (float)2.267456, (float)2.514526, (float)2.747925,
|
||||
(float)1.994263, (float)2.229126, (float)2.475220, (float)2.833984,
|
||||
|
||||
|
||||
(float)1.746338, (float)2.011353, (float)2.588257, (float)2.826904,
|
||||
(float)1.562866, (float)2.135986, (float)2.471680, (float)2.687256,
|
||||
(float)1.748901, (float)2.083496, (float)2.460938, (float)2.686279,
|
||||
(float)1.758057, (float)2.131470, (float)2.636597, (float)2.891602,
|
||||
(float)2.071289, (float)2.299072, (float)2.550781, (float)2.814331,
|
||||
(float)1.839600, (float)2.094360, (float)2.496460, (float)2.723999,
|
||||
(float)1.882202, (float)2.088257, (float)2.636841, (float)2.923096,
|
||||
(float)1.957886, (float)2.153198, (float)2.384399, (float)2.615234,
|
||||
(float)1.992920, (float)2.351196, (float)2.654419, (float)2.889771,
|
||||
(float)2.012817, (float)2.262451, (float)2.643799, (float)2.903076,
|
||||
(float)2.025635, (float)2.254761, (float)2.508423, (float)2.784058,
|
||||
(float)2.316040, (float)2.589355, (float)2.794189, (float)2.963623,
|
||||
(float)1.741211, (float)2.279541, (float)2.578491, (float)2.816284,
|
||||
(float)1.845337, (float)2.055786, (float)2.348511, (float)2.822021,
|
||||
(float)1.679932, (float)1.926514, (float)2.499756, (float)2.835693,
|
||||
(float)1.722534, (float)1.946899, (float)2.448486, (float)2.728760,
|
||||
(float)1.829834, (float)2.043213, (float)2.580444, (float)2.867676,
|
||||
(float)1.676636, (float)2.071655, (float)2.322510, (float)2.704834,
|
||||
(float)1.791504, (float)2.113525, (float)2.469727, (float)2.784058,
|
||||
(float)1.977051, (float)2.215088, (float)2.497437, (float)2.726929,
|
||||
(float)1.800171, (float)2.106689, (float)2.357788, (float)2.738892,
|
||||
(float)1.827759, (float)2.170166, (float)2.525879, (float)2.852417,
|
||||
(float)1.918335, (float)2.132813, (float)2.488403, (float)2.728149,
|
||||
(float)1.916748, (float)2.225098, (float)2.542603, (float)2.857666,
|
||||
(float)1.761230, (float)1.976074, (float)2.507446, (float)2.884521,
|
||||
(float)2.053711, (float)2.367432, (float)2.608032, (float)2.837646,
|
||||
(float)1.595337, (float)2.000977, (float)2.307129, (float)2.578247,
|
||||
(float)1.470581, (float)2.031250, (float)2.375854, (float)2.647583,
|
||||
(float)1.801392, (float)2.128052, (float)2.399780, (float)2.822876,
|
||||
(float)1.853638, (float)2.066650, (float)2.429199, (float)2.751465,
|
||||
(float)1.956299, (float)2.163696, (float)2.394775, (float)2.734253,
|
||||
(float)1.963623, (float)2.275757, (float)2.585327, (float)2.865234,
|
||||
(float)1.887451, (float)2.105469, (float)2.331787, (float)2.587402,
|
||||
(float)2.120117, (float)2.443359, (float)2.733887, (float)2.941406,
|
||||
(float)1.506348, (float)1.766968, (float)2.400513, (float)2.851807,
|
||||
(float)1.664551, (float)1.981079, (float)2.375732, (float)2.774414,
|
||||
(float)1.720703, (float)1.978882, (float)2.391479, (float)2.640991,
|
||||
(float)1.483398, (float)1.814819, (float)2.434448, (float)2.722290,
|
||||
(float)1.769043, (float)2.136597, (float)2.563721, (float)2.774414,
|
||||
(float)1.810791, (float)2.049316, (float)2.373901, (float)2.613647,
|
||||
(float)1.788330, (float)2.005981, (float)2.359131, (float)2.723145,
|
||||
(float)1.785156, (float)1.993164, (float)2.399780, (float)2.832520,
|
||||
(float)1.695313, (float)2.022949, (float)2.522583, (float)2.745117,
|
||||
(float)1.584106, (float)1.965576, (float)2.299927, (float)2.715576,
|
||||
(float)1.894897, (float)2.249878, (float)2.655884, (float)2.897705,
|
||||
(float)1.720581, (float)1.995728, (float)2.299438, (float)2.557007,
|
||||
(float)1.619385, (float)2.173950, (float)2.574219, (float)2.787964,
|
||||
(float)1.883179, (float)2.220459, (float)2.474365, (float)2.825073,
|
||||
(float)1.447632, (float)2.045044, (float)2.555542, (float)2.744873,
|
||||
(float)1.502686, (float)2.156616, (float)2.653320, (float)2.846558,
|
||||
(float)1.711548, (float)1.944092, (float)2.282959, (float)2.685791,
|
||||
(float)1.499756, (float)1.867554, (float)2.341064, (float)2.578857,
|
||||
(float)1.916870, (float)2.135132, (float)2.568237, (float)2.826050,
|
||||
(float)1.498047, (float)1.711182, (float)2.223267, (float)2.755127,
|
||||
(float)1.746338, (float)2.011353, (float)2.588257, (float)2.826904,
|
||||
(float)1.562866, (float)2.135986, (float)2.471680, (float)2.687256,
|
||||
(float)1.748901, (float)2.083496, (float)2.460938, (float)2.686279,
|
||||
(float)1.758057, (float)2.131470, (float)2.636597, (float)2.891602,
|
||||
(float)2.071289, (float)2.299072, (float)2.550781, (float)2.814331,
|
||||
(float)1.839600, (float)2.094360, (float)2.496460, (float)2.723999,
|
||||
(float)1.882202, (float)2.088257, (float)2.636841, (float)2.923096,
|
||||
(float)1.957886, (float)2.153198, (float)2.384399, (float)2.615234,
|
||||
(float)1.992920, (float)2.351196, (float)2.654419, (float)2.889771,
|
||||
(float)2.012817, (float)2.262451, (float)2.643799, (float)2.903076,
|
||||
(float)2.025635, (float)2.254761, (float)2.508423, (float)2.784058,
|
||||
(float)2.316040, (float)2.589355, (float)2.794189, (float)2.963623,
|
||||
(float)1.741211, (float)2.279541, (float)2.578491, (float)2.816284,
|
||||
(float)1.845337, (float)2.055786, (float)2.348511, (float)2.822021,
|
||||
(float)1.679932, (float)1.926514, (float)2.499756, (float)2.835693,
|
||||
(float)1.722534, (float)1.946899, (float)2.448486, (float)2.728760,
|
||||
(float)1.829834, (float)2.043213, (float)2.580444, (float)2.867676,
|
||||
(float)1.676636, (float)2.071655, (float)2.322510, (float)2.704834,
|
||||
(float)1.791504, (float)2.113525, (float)2.469727, (float)2.784058,
|
||||
(float)1.977051, (float)2.215088, (float)2.497437, (float)2.726929,
|
||||
(float)1.800171, (float)2.106689, (float)2.357788, (float)2.738892,
|
||||
(float)1.827759, (float)2.170166, (float)2.525879, (float)2.852417,
|
||||
(float)1.918335, (float)2.132813, (float)2.488403, (float)2.728149,
|
||||
(float)1.916748, (float)2.225098, (float)2.542603, (float)2.857666,
|
||||
(float)1.761230, (float)1.976074, (float)2.507446, (float)2.884521,
|
||||
(float)2.053711, (float)2.367432, (float)2.608032, (float)2.837646,
|
||||
(float)1.595337, (float)2.000977, (float)2.307129, (float)2.578247,
|
||||
(float)1.470581, (float)2.031250, (float)2.375854, (float)2.647583,
|
||||
(float)1.801392, (float)2.128052, (float)2.399780, (float)2.822876,
|
||||
(float)1.853638, (float)2.066650, (float)2.429199, (float)2.751465,
|
||||
(float)1.956299, (float)2.163696, (float)2.394775, (float)2.734253,
|
||||
(float)1.963623, (float)2.275757, (float)2.585327, (float)2.865234,
|
||||
(float)1.887451, (float)2.105469, (float)2.331787, (float)2.587402,
|
||||
(float)2.120117, (float)2.443359, (float)2.733887, (float)2.941406,
|
||||
(float)1.506348, (float)1.766968, (float)2.400513, (float)2.851807,
|
||||
(float)1.664551, (float)1.981079, (float)2.375732, (float)2.774414,
|
||||
(float)1.720703, (float)1.978882, (float)2.391479, (float)2.640991,
|
||||
(float)1.483398, (float)1.814819, (float)2.434448, (float)2.722290,
|
||||
(float)1.769043, (float)2.136597, (float)2.563721, (float)2.774414,
|
||||
(float)1.810791, (float)2.049316, (float)2.373901, (float)2.613647,
|
||||
(float)1.788330, (float)2.005981, (float)2.359131, (float)2.723145,
|
||||
(float)1.785156, (float)1.993164, (float)2.399780, (float)2.832520,
|
||||
(float)1.695313, (float)2.022949, (float)2.522583, (float)2.745117,
|
||||
(float)1.584106, (float)1.965576, (float)2.299927, (float)2.715576,
|
||||
(float)1.894897, (float)2.249878, (float)2.655884, (float)2.897705,
|
||||
(float)1.720581, (float)1.995728, (float)2.299438, (float)2.557007,
|
||||
(float)1.619385, (float)2.173950, (float)2.574219, (float)2.787964,
|
||||
(float)1.883179, (float)2.220459, (float)2.474365, (float)2.825073,
|
||||
(float)1.447632, (float)2.045044, (float)2.555542, (float)2.744873,
|
||||
(float)1.502686, (float)2.156616, (float)2.653320, (float)2.846558,
|
||||
(float)1.711548, (float)1.944092, (float)2.282959, (float)2.685791,
|
||||
(float)1.499756, (float)1.867554, (float)2.341064, (float)2.578857,
|
||||
(float)1.916870, (float)2.135132, (float)2.568237, (float)2.826050,
|
||||
(float)1.498047, (float)1.711182, (float)2.223267, (float)2.755127,
|
||||
|
||||
|
||||
(float)1.808716, (float)1.997559, (float)2.256470, (float)2.758545,
|
||||
(float)2.088501, (float)2.402710, (float)2.667358, (float)2.890259,
|
||||
(float)1.545044, (float)1.819214, (float)2.324097, (float)2.692993,
|
||||
(float)1.796021, (float)2.012573, (float)2.505737, (float)2.784912,
|
||||
(float)1.786499, (float)2.041748, (float)2.290405, (float)2.650757,
|
||||
(float)1.938232, (float)2.264404, (float)2.529053, (float)2.796143
|
||||
};
|
||||
(float)1.808716, (float)1.997559, (float)2.256470, (float)2.758545,
|
||||
(float)2.088501, (float)2.402710, (float)2.667358, (float)2.890259,
|
||||
(float)1.545044, (float)1.819214, (float)2.324097, (float)2.692993,
|
||||
(float)1.796021, (float)2.012573, (float)2.505737, (float)2.784912,
|
||||
(float)1.786499, (float)2.041748, (float)2.290405, (float)2.650757,
|
||||
(float)1.938232, (float)2.264404, (float)2.529053, (float)2.796143
|
||||
};
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -10,65 +10,65 @@
|
||||
|
||||
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#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 */
|
||||
|
||||
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[];
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -10,27 +10,26 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include "iLBC_define.h"
|
||||
#include "createCB.h"
|
||||
#include "constants.h"
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include "iLBC_define.h"
|
||||
#include "constants.h"
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* Construct an additional codebook vector by filtering the
|
||||
* initial codebook buffer. This vector is then used to expand
|
||||
* the codebook with an additional section.
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void filteredCBvecs(
|
||||
void filteredCBvecs(
|
||||
float *cbvectors, /* (o) Codebook vectors for the
|
||||
higher section */
|
||||
float *mem, /* (i) Buffer to create codebook
|
||||
vector from */
|
||||
int lMem /* (i) Length of buffer */
|
||||
){
|
||||
){
|
||||
int j, k;
|
||||
float *pp, *pp1;
|
||||
float tempbuff2[CB_MEML+CB_FILTERLEN];
|
||||
@ -54,16 +53,16 @@ void filteredCBvecs(
|
||||
}
|
||||
pos++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* Search the augmented part of the codebook to find the best
|
||||
* measure.
|
||||
*----------------------------------------------------------------*/
|
||||
|
||||
void searchAugmentedCB(
|
||||
void searchAugmentedCB(
|
||||
int low, /* (i) Start index for the search */
|
||||
int high, /* (i) End index for the search */
|
||||
int stage, /* (i) Current stage */
|
||||
@ -79,7 +78,7 @@ void searchAugmentedCB(
|
||||
vectors */
|
||||
float *invenergy/* (o) Inv energy of augmented codebook
|
||||
vectors */
|
||||
) {
|
||||
) {
|
||||
int icount, ilow, j, tmpIndex;
|
||||
float *pp, *ppo, *ppi, *ppe, crossDot, alfa;
|
||||
float weighted, measure, nrjRecursive;
|
||||
@ -166,23 +165,23 @@ void searchAugmentedCB(
|
||||
*gain = ftmp;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* Recreate a specific codebook vector from the augmented part.
|
||||
*
|
||||
*----------------------------------------------------------------*/
|
||||
|
||||
void createAugmentedVec(
|
||||
void createAugmentedVec(
|
||||
int index, /* (i) Index for the augmented vector
|
||||
to be created */
|
||||
float *buffer, /* (i) Pointer to the end of the buffer for
|
||||
augmented codebook construction */
|
||||
float *cbVec/* (o) The construced codebook vector */
|
||||
) {
|
||||
) {
|
||||
int ilow, j;
|
||||
float *pp, *ppo, *ppi, alfa, alfa1, weighted;
|
||||
|
||||
@ -211,6 +210,6 @@ void createAugmentedVec(
|
||||
|
||||
pp = buffer - index;
|
||||
memcpy(cbVec+index,pp,sizeof(float)*(SUBL-index));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
|
||||
|
||||
@ -10,20 +10,20 @@
|
||||
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(
|
||||
void filteredCBvecs(
|
||||
float *cbvectors, /* (o) Codebook vector for the
|
||||
higher section */
|
||||
float *mem, /* (i) Buffer to create codebook
|
||||
vectors from */
|
||||
int lMem /* (i) Length of buffer */
|
||||
);
|
||||
);
|
||||
|
||||
void searchAugmentedCB(
|
||||
void searchAugmentedCB(
|
||||
int low, /* (i) Start index for the search */
|
||||
int high, /* (i) End index for the search */
|
||||
int stage, /* (i) Current stage */
|
||||
@ -40,17 +40,17 @@ void searchAugmentedCB(
|
||||
codebook vectors */
|
||||
float *invenergy/* (o) Inv energy of aug codebook
|
||||
vectors */
|
||||
);
|
||||
);
|
||||
|
||||
void createAugmentedVec(
|
||||
void createAugmentedVec(
|
||||
int index, /* (i) Index for the aug vector
|
||||
to be created */
|
||||
float *buffer, /* (i) Pointer to the end of the
|
||||
buffer for augmented codebook
|
||||
construction */
|
||||
float *cbVec /* (o) The construced codebook vector */
|
||||
);
|
||||
);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,21 +8,20 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "iLBC_define.h"
|
||||
#include "doCPLC.h"
|
||||
#include "iLBC_define.h"
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* Compute cross correlation and pitch gain for pitch prediction
|
||||
* of last subframe at given lag.
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
static void compCorr(
|
||||
void compCorr(
|
||||
float *cc, /* (o) cross correlation coefficient */
|
||||
float *gc, /* (o) gain */
|
||||
float *pm,
|
||||
@ -30,7 +29,7 @@ static void compCorr(
|
||||
int lag, /* (i) pitch lag */
|
||||
int bLen, /* (i) length of buffer */
|
||||
int sRange /* (i) correlation search length */
|
||||
){
|
||||
){
|
||||
|
||||
|
||||
int i;
|
||||
@ -64,14 +63,14 @@ static void compCorr(
|
||||
*gc = 0.0;
|
||||
*pm=0.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* Packet loss concealment routine. Conceals a residual signal
|
||||
* and LP parameters. If no packet loss, update state.
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void doThePLC(
|
||||
void doThePLC(
|
||||
float *PLCresidual, /* (o) concealed residual */
|
||||
float *PLClpc, /* (o) concealed LP parameters */
|
||||
int PLI, /* (i) packet loss indicator
|
||||
@ -81,7 +80,7 @@ void doThePLC(
|
||||
int inlag, /* (i) pitch lag */
|
||||
iLBC_Dec_Inst_t *iLBCdec_inst
|
||||
/* (i/o) decoder instance */
|
||||
){
|
||||
){
|
||||
int lag=20, randlag;
|
||||
float gain, maxcc;
|
||||
float use_gain;
|
||||
@ -252,7 +251,7 @@ void doThePLC(
|
||||
(LPC_FILTERORDER+1)*sizeof(float));
|
||||
memcpy(iLBCdec_inst->prevResidual, PLCresidual,
|
||||
iLBCdec_inst->blockl*sizeof(float));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -10,12 +10,12 @@
|
||||
|
||||
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#ifndef __iLBC_DOLPC_H
|
||||
#define __iLBC_DOLPC_H
|
||||
#ifndef __iLBC_DOLPC_H
|
||||
#define __iLBC_DOLPC_H
|
||||
|
||||
void doThePLC(
|
||||
void doThePLC(
|
||||
float *PLCresidual, /* (o) concealed residual */
|
||||
float *PLClpc, /* (o) concealed LP parameters */
|
||||
int PLI, /* (i) packet loss indicator
|
||||
@ -25,8 +25,8 @@ void doThePLC(
|
||||
int inlag, /* (i) pitch lag */
|
||||
iLBC_Dec_Inst_t *iLBCdec_inst
|
||||
/* (i/o) decoder instance */
|
||||
);
|
||||
);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
10191
libs/codec/ilbc/draft-ietf-avt-ilbc-codec-05.txt
Normal file
10191
libs/codec/ilbc/draft-ietf-avt-ilbc-codec-05.txt
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,16 +8,15 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include "iLBC_define.h"
|
||||
#include "enhancer.h"
|
||||
#include "constants.h"
|
||||
#include "filter.h"
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include "iLBC_define.h"
|
||||
#include "constants.h"
|
||||
#include "filter.h"
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
|
||||
|
||||
* Find index in array such that the array element with said
|
||||
@ -25,13 +24,13 @@
|
||||
* according to the squared-error criterion
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
static void NearestNeighbor(
|
||||
void NearestNeighbor(
|
||||
int *index, /* (o) index of array element closest
|
||||
to value */
|
||||
float *array, /* (i) data array */
|
||||
float value,/* (i) value */
|
||||
int arlength/* (i) dimension of data array */
|
||||
){
|
||||
){
|
||||
int i;
|
||||
float bestcrit,crit;
|
||||
|
||||
@ -47,19 +46,19 @@ static void NearestNeighbor(
|
||||
*index=i;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* compute cross correlation between sequences
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
static void mycorr1(
|
||||
void mycorr1(
|
||||
float* corr, /* (o) correlation of seq1 and seq2 */
|
||||
float* seq1, /* (i) first sequence */
|
||||
int dim1, /* (i) dimension first seq1 */
|
||||
const float *seq2, /* (i) second sequence */
|
||||
int dim2 /* (i) dimension seq2 */
|
||||
){
|
||||
){
|
||||
int i,j;
|
||||
|
||||
for (i=0; i<=dim1-dim2; i++) {
|
||||
@ -68,20 +67,20 @@ static void mycorr1(
|
||||
corr[i] += seq1[i+j] * seq2[j];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* upsample finite array assuming zeros outside bounds
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
|
||||
|
||||
static void enh_upsample(
|
||||
void enh_upsample(
|
||||
float* useq1, /* (o) upsampled output sequence */
|
||||
float* seq1,/* (i) unupsampled sequence */
|
||||
int dim1, /* (i) dimension seq1 */
|
||||
int hfl /* (i) polyphase filter length=2*hfl+1 */
|
||||
){
|
||||
){
|
||||
float *pu,*ps;
|
||||
int i,j,k,q,filterlength,hfl2;
|
||||
const float *polyp[ENH_UPS0]; /* pointers to
|
||||
@ -150,10 +149,10 @@ static void enh_upsample(
|
||||
pu++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* find segment starting near idata+estSegPos that has highest
|
||||
* correlation with idata+centerStartPos through
|
||||
* idata+centerStartPos+ENH_BLOCKL-1 segment is found at a
|
||||
@ -161,7 +160,7 @@ static void enh_upsample(
|
||||
* sampling rate
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
static void refiner(
|
||||
void refiner(
|
||||
float *seg, /* (o) segment array */
|
||||
float *updStartPos, /* (o) updated start point */
|
||||
float* idata, /* (i) original data buffer */
|
||||
@ -169,7 +168,7 @@ static void refiner(
|
||||
int centerStartPos, /* (i) beginning center segment */
|
||||
float estSegPos,/* (i) estimated beginning other segment */
|
||||
float period /* (i) estimated pitch period */
|
||||
){
|
||||
){
|
||||
int estSegPosRounded,searchSegStartPos,searchSegEndPos,corrdim;
|
||||
int tloc,tloc2,i,st,en,fraction;
|
||||
float vect[ENH_VECTL],corrVec[ENH_CORRDIM],maxv;
|
||||
@ -245,18 +244,18 @@ static void refiner(
|
||||
|
||||
|
||||
2*ENH_FL0+1);
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* find the smoothed output data
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
static void smath(
|
||||
void smath(
|
||||
float *odata, /* (o) smoothed output */
|
||||
float *sseq,/* (i) said second sequence of waveforms */
|
||||
int hl, /* (i) 2*hl+1 is sseq dimension */
|
||||
float alpha0/* (i) max smoothing energy fraction */
|
||||
){
|
||||
){
|
||||
int i,k;
|
||||
float w00,w10,w11,A,B,C,*psseq,err,errs;
|
||||
float surround[BLOCKL_MAX]; /* shape contributed by other than
|
||||
@ -342,13 +341,13 @@ static void smath(
|
||||
odata[i]=A*surround[i]+B*psseq[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* get the pitch-synchronous sample sequence
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
static void getsseq(
|
||||
void getsseq(
|
||||
float *sseq, /* (o) the pitch-synchronous sequence */
|
||||
float *idata, /* (i) original data */
|
||||
int idatal, /* (i) dimension of data */
|
||||
@ -360,7 +359,7 @@ static void getsseq(
|
||||
are taken */
|
||||
int periodl, /* (i) dimension period array */
|
||||
int hl /* (i) 2*hl+1 is the number of sequences */
|
||||
){
|
||||
){
|
||||
int i,centerEndPos,q;
|
||||
float blockStartPos[2*ENH_HL+1];
|
||||
int lagBlock[2*ENH_HL+1];
|
||||
@ -419,14 +418,14 @@ static void getsseq(
|
||||
memset(psseq, 0, ENH_BLOCKL*sizeof(float));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* perform enhancement on idata+centerStartPos through
|
||||
* idata+centerStartPos+ENH_BLOCKL-1
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
static void enhancer(
|
||||
void enhancer(
|
||||
float *odata, /* (o) smoothed block, dimension blockl */
|
||||
float *idata, /* (i) data buffer used for enhancing */
|
||||
int idatal, /* (i) dimension idata */
|
||||
@ -438,7 +437,7 @@ static void enhancer(
|
||||
float *plocs, /* (i) locations where period array
|
||||
values valid */
|
||||
int periodl /* (i) dimension of period and plocs */
|
||||
){
|
||||
){
|
||||
float sseq[(2*ENH_HL+1)*ENH_BLOCKL];
|
||||
|
||||
/* get said second sequence of segments */
|
||||
@ -450,17 +449,17 @@ static void enhancer(
|
||||
|
||||
smath(odata,sseq,ENH_HL,alpha0);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* cross correlation
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
float xCorrCoef(
|
||||
float xCorrCoef(
|
||||
float *target, /* (i) first array */
|
||||
float *regressor, /* (i) second array */
|
||||
int subl /* (i) dimension arrays */
|
||||
){
|
||||
){
|
||||
int i;
|
||||
float ftmp1, ftmp2;
|
||||
|
||||
@ -479,17 +478,17 @@ float xCorrCoef(
|
||||
else {
|
||||
return (float)0.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* interface for enhancer
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
int enhancerInterface(
|
||||
int enhancerInterface(
|
||||
float *out, /* (o) enhanced signal */
|
||||
float *in, /* (i) unenhanced signal */
|
||||
iLBC_Dec_Inst_t *iLBCdec_inst /* (i) buffers etc */
|
||||
){
|
||||
){
|
||||
float *enh_buf, *enh_period;
|
||||
int iblock, isample;
|
||||
int lag=0, ilag, i, ioffset;
|
||||
@ -660,6 +659,6 @@ int enhancerInterface(
|
||||
}
|
||||
|
||||
return (lag*2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,26 +8,26 @@
|
||||
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 xCorrCoef(
|
||||
float *target, /* (i) first array */
|
||||
float *regressor, /* (i) second array */
|
||||
int subl /* (i) dimension arrays */
|
||||
);
|
||||
);
|
||||
|
||||
int enhancerInterface(
|
||||
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
|
||||
|
||||
|
||||
|
17
libs/codec/ilbc/extract-cfile.awk
Normal file
17
libs/codec/ilbc/extract-cfile.awk
Normal file
@ -0,0 +1,17 @@
|
||||
BEGIN { srcname = "nothing"; }
|
||||
{ if (/^A\.[0-9][0-9]* [a-zA-Z][a-zA-Z_0-9]*\.[ch]/) {
|
||||
if (srcname != "nothing")
|
||||
close(srcname);
|
||||
srcname = $2;
|
||||
printf("creating source file %s\n", srcname);
|
||||
}else if (srcname != "nothing") {
|
||||
if (/Andersen et\. al\./ || /Internet Low Bit Rate Codec *May 04/)
|
||||
printf("skipping %s\n", $0);
|
||||
else
|
||||
print $0 >> srcname;
|
||||
}
|
||||
}
|
||||
END {
|
||||
printf("ending file %s\n", srcname);
|
||||
close(srcname);
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,18 +8,17 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
|
||||
|
||||
#include "iLBC_define.h"
|
||||
#include "filter.h"
|
||||
#include "iLBC_define.h"
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* all-pole filter
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void AllPoleFilter(
|
||||
void AllPoleFilter(
|
||||
float *InOut, /* (i/o) on entrance InOut[-orderCoef] to
|
||||
InOut[-1] contain the state of the
|
||||
filter (delayed samples). InOut[0] to
|
||||
@ -32,7 +31,7 @@ void AllPoleFilter(
|
||||
to be 1.0 */
|
||||
int lengthInOut,/* (i) number of input/output samples */
|
||||
int orderCoef /* (i) number of filter coefficients */
|
||||
){
|
||||
){
|
||||
int n,k;
|
||||
|
||||
for(n=0;n<lengthInOut;n++){
|
||||
@ -41,13 +40,13 @@ void AllPoleFilter(
|
||||
}
|
||||
InOut++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* all-zero filter
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void AllZeroFilter(
|
||||
void AllZeroFilter(
|
||||
float *In, /* (i) In[0] to In[lengthInOut-1] contain
|
||||
filter input samples */
|
||||
float *Coef,/* (i) filter coefficients (Coef[0] is assumed
|
||||
@ -58,7 +57,7 @@ void AllZeroFilter(
|
||||
contain the filter state, on exit Out[0]
|
||||
to Out[lengthInOut-1] contain filtered
|
||||
samples */
|
||||
){
|
||||
){
|
||||
int n,k;
|
||||
|
||||
for(n=0;n<lengthInOut;n++){
|
||||
@ -71,13 +70,13 @@ void AllZeroFilter(
|
||||
Out++;
|
||||
In++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* pole-zero filter
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void ZeroPoleFilter(
|
||||
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
|
||||
@ -93,22 +92,22 @@ void ZeroPoleFilter(
|
||||
contain state of all-pole section. On
|
||||
exit Out[0] to Out[lengthInOut-1]
|
||||
contain filtered samples */
|
||||
){
|
||||
){
|
||||
AllZeroFilter(In,ZeroCoef,lengthInOut,orderCoef,Out);
|
||||
AllPoleFilter(Out,PoleCoef,lengthInOut,orderCoef);
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* downsample (LP filter and decimation)
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void DownSample (
|
||||
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 */
|
||||
){
|
||||
){
|
||||
float o;
|
||||
float *Out_ptr = Out;
|
||||
float *Coef_ptr, *In_ptr;
|
||||
@ -163,6 +162,6 @@ void DownSample (
|
||||
}
|
||||
*Out_ptr++ = o;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,12 +8,12 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#ifndef __iLBC_FILTER_H
|
||||
#define __iLBC_FILTER_H
|
||||
#ifndef __iLBC_FILTER_H
|
||||
#define __iLBC_FILTER_H
|
||||
|
||||
void AllPoleFilter(
|
||||
void AllPoleFilter(
|
||||
float *InOut, /* (i/o) on entrance InOut[-orderCoef] to
|
||||
InOut[-1] contain the state of the
|
||||
filter (delayed samples). InOut[0] to
|
||||
@ -26,11 +26,11 @@ void AllPoleFilter(
|
||||
to be 1.0 */
|
||||
int lengthInOut,/* (i) number of input/output samples */
|
||||
int orderCoef /* (i) number of filter coefficients */
|
||||
);
|
||||
);
|
||||
|
||||
|
||||
|
||||
void AllZeroFilter(
|
||||
void AllZeroFilter(
|
||||
float *In, /* (i) In[0] to In[lengthInOut-1] contain
|
||||
filter input samples */
|
||||
float *Coef,/* (i) filter coefficients (Coef[0] is assumed
|
||||
@ -41,9 +41,9 @@ void AllZeroFilter(
|
||||
contain the filter state, on exit Out[0]
|
||||
to Out[lengthInOut-1] contain filtered
|
||||
samples */
|
||||
);
|
||||
);
|
||||
|
||||
void ZeroPoleFilter(
|
||||
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 */
|
||||
@ -58,16 +58,16 @@ void ZeroPoleFilter(
|
||||
contain state of all-pole section. On
|
||||
exit Out[0] to Out[lengthInOut-1]
|
||||
contain filtered samples */
|
||||
);
|
||||
);
|
||||
|
||||
void DownSample (
|
||||
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
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -10,24 +10,23 @@
|
||||
|
||||
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include "constants.h"
|
||||
#include "gainquant.h"
|
||||
#include "filter.h"
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include "constants.h"
|
||||
#include "filter.h"
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* quantizer for the gain in the gain-shape coding of residual
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
float gainquant(/* (o) quantized gain value */
|
||||
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 */
|
||||
){
|
||||
){
|
||||
int i, tindex;
|
||||
float minmeasure,measure, *cb, scale;
|
||||
|
||||
@ -68,18 +67,18 @@ float gainquant(/* (o) quantized gain value */
|
||||
|
||||
|
||||
return scale*cb[tindex];
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* decoder for quantized gains in the gain-shape coding of
|
||||
* residual
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
float gaindequant( /* (o) quantized gain value */
|
||||
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 scale;
|
||||
|
||||
/* obtain correct scale factor */
|
||||
@ -102,6 +101,6 @@ float gaindequant( /* (o) quantized gain value */
|
||||
}
|
||||
|
||||
return 0.0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,24 +8,24 @@
|
||||
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 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 */
|
||||
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
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,24 +8,23 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include "iLBC_define.h"
|
||||
#include "getCBvec.h"
|
||||
#include "constants.h"
|
||||
#include <string.h>
|
||||
#include "iLBC_define.h"
|
||||
#include "constants.h"
|
||||
#include <string.h>
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* Construct codebook vector for given index.
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void getCBvec(
|
||||
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 */
|
||||
){
|
||||
){
|
||||
int j, k, n, memInd, sFilt;
|
||||
float tmpbuf[CB_MEML];
|
||||
int base_size;
|
||||
@ -176,6 +175,6 @@ void getCBvec(
|
||||
(cbveclen-ihigh)*sizeof(float));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,21 +8,21 @@
|
||||
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(
|
||||
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
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,25 +8,24 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include <math.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "iLBC_define.h"
|
||||
#include "helpfun.h"
|
||||
#include "constants.h"
|
||||
#include "iLBC_define.h"
|
||||
#include "constants.h"
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* calculation of auto correlation
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void autocorr(
|
||||
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 */
|
||||
){
|
||||
){
|
||||
int lag, n;
|
||||
float sum;
|
||||
|
||||
@ -37,38 +36,38 @@ void autocorr(
|
||||
}
|
||||
r[lag] = sum;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* window multiplication
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void window(
|
||||
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 */
|
||||
){
|
||||
){
|
||||
int i;
|
||||
|
||||
for (i = 0; i < N; i++) {
|
||||
z[i] = x[i] * y[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* levinson-durbin solution for lpc coefficients
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void levdurb(
|
||||
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 sum, alpha;
|
||||
int m, m_h, i;
|
||||
|
||||
@ -100,13 +99,13 @@ void levdurb(
|
||||
a[m+1] = k[m];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* interpolation between vectors
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void interpolate(
|
||||
void interpolate(
|
||||
float *out, /* (o) the interpolated vector */
|
||||
float *in1, /* (i) the first vector for the
|
||||
interpolation */
|
||||
@ -114,7 +113,7 @@ void interpolate(
|
||||
interpolation */
|
||||
float coef, /* (i) interpolation weights */
|
||||
int length /* (i) length of all vectors */
|
||||
){
|
||||
){
|
||||
int i;
|
||||
float invcoef;
|
||||
|
||||
@ -122,20 +121,20 @@ void interpolate(
|
||||
for (i = 0; i < length; i++) {
|
||||
out[i] = coef * in1[i] + invcoef * in2[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* lpc bandwidth expansion
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void bwexpand(
|
||||
void bwexpand(
|
||||
float *out, /* (o) the bandwidth expanded lpc
|
||||
coefficients */
|
||||
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 */
|
||||
){
|
||||
){
|
||||
int i;
|
||||
float chirp;
|
||||
|
||||
@ -146,22 +145,22 @@ void bwexpand(
|
||||
out[i] = chirp * in[i];
|
||||
chirp *= coef;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* vector quantization
|
||||
|
||||
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void vq(
|
||||
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 */
|
||||
){
|
||||
){
|
||||
int i, j;
|
||||
int pos, minindex;
|
||||
float dist, tmp, mindist;
|
||||
@ -187,13 +186,13 @@ void vq(
|
||||
Xq[i] = CB[minindex*dim + i];
|
||||
}
|
||||
*index = minindex;
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* split vector quantization
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void SplitVQ(
|
||||
void SplitVQ(
|
||||
float *qX, /* (o) the quantized vector */
|
||||
int *index, /* (o) a vector of indexes for all vector
|
||||
codebooks in the split */
|
||||
@ -202,7 +201,7 @@ void SplitVQ(
|
||||
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 */
|
||||
){
|
||||
){
|
||||
int cb_pos, X_pos, i;
|
||||
|
||||
cb_pos = 0;
|
||||
@ -215,19 +214,19 @@ void SplitVQ(
|
||||
X_pos += dim[i];
|
||||
cb_pos += dim[i] * cbsize[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* scalar quantization
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void sort_sq(
|
||||
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 i;
|
||||
|
||||
if (x <= cb[0]) {
|
||||
@ -247,19 +246,19 @@ void sort_sq(
|
||||
*xq = cb[i - 1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* check for stability of lsf coefficients
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
int LSF_check( /* (o) 1 for stable lsf vectors and 0 for
|
||||
int LSF_check( /* (o) 1 for stable lsf vectors and 0 for
|
||||
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
|
||||
table */
|
||||
){
|
||||
){
|
||||
int k,n,m, Nit=2, change=0,pos;
|
||||
float tmp;
|
||||
|
||||
@ -303,6 +302,6 @@ int LSF_check( /* (o) 1 for stable lsf vectors and 0 for
|
||||
}
|
||||
|
||||
return change;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,37 +8,37 @@
|
||||
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(
|
||||
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(
|
||||
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(
|
||||
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 */
|
||||
);
|
||||
);
|
||||
|
||||
void interpolate(
|
||||
void interpolate(
|
||||
float *out, /* (o) the interpolated vector */
|
||||
float *in1, /* (i) the first vector for the
|
||||
interpolation */
|
||||
@ -46,27 +46,27 @@ void interpolate(
|
||||
interpolation */
|
||||
float coef, /* (i) interpolation weights */
|
||||
int length /* (i) length of all vectors */
|
||||
);
|
||||
);
|
||||
|
||||
void bwexpand(
|
||||
void bwexpand(
|
||||
float *out, /* (o) the bandwidth expanded lpc
|
||||
coefficients */
|
||||
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(
|
||||
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(
|
||||
void SplitVQ(
|
||||
float *qX, /* (o) the quantized vector */
|
||||
int *index, /* (o) a vector of indexes for all vector
|
||||
codebooks in the split */
|
||||
@ -75,10 +75,10 @@ void SplitVQ(
|
||||
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(
|
||||
void sort_sq(
|
||||
float *xq, /* (o) the quantized value */
|
||||
int *index, /* (o) the quantization index */
|
||||
float x, /* (i) the value to quantize */
|
||||
@ -86,16 +86,16 @@ void sort_sq(
|
||||
|
||||
|
||||
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
|
||||
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
|
||||
table */
|
||||
);
|
||||
);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,21 +8,20 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include "constants.h"
|
||||
#include "hpInput.h"
|
||||
#include "constants.h"
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* Input high-pass filter
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void hpInput(
|
||||
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 */
|
||||
){
|
||||
){
|
||||
int i;
|
||||
float *pi, *po;
|
||||
|
||||
@ -55,6 +54,6 @@ void hpInput(
|
||||
mem[2] = *po;
|
||||
po++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,20 +8,20 @@
|
||||
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(
|
||||
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
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -10,20 +10,20 @@
|
||||
|
||||
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include "constants.h"
|
||||
#include "hpOutput.h"
|
||||
/*----------------------------------------------------------------*
|
||||
#include "constants.h"
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
* Output high-pass filter
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void hpOutput(
|
||||
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 */
|
||||
){
|
||||
){
|
||||
int i;
|
||||
float *pi, *po;
|
||||
|
||||
@ -54,6 +54,6 @@ void hpOutput(
|
||||
mem[2] = *po;
|
||||
po++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,18 +8,18 @@
|
||||
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(
|
||||
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
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,24 +8,23 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include <math.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "iLBC_define.h"
|
||||
#include "iCBConstruct.h"
|
||||
#include "gainquant.h"
|
||||
#include "getCBvec.h"
|
||||
#include "iLBC_define.h"
|
||||
#include "gainquant.h"
|
||||
#include "getCBvec.h"
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* Convert the codebook indexes to make the search easier
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
|
||||
|
||||
void index_conv_enc(
|
||||
void index_conv_enc(
|
||||
int *index /* (i/o) Codebook indexes */
|
||||
){
|
||||
){
|
||||
int k;
|
||||
|
||||
for (k=1; k<CB_NSTAGES; k++) {
|
||||
@ -38,11 +37,11 @@ void index_conv_enc(
|
||||
/* ERROR */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void index_conv_dec(
|
||||
void index_conv_dec(
|
||||
int *index /* (i/o) Codebook indexes */
|
||||
){
|
||||
){
|
||||
int k;
|
||||
|
||||
for (k=1; k<CB_NSTAGES; k++) {
|
||||
@ -55,13 +54,13 @@ void index_conv_dec(
|
||||
/* ERROR */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* Construct decoded vector from codebook and gains.
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void iCBConstruct(
|
||||
void iCBConstruct(
|
||||
float *decvector, /* (o) Decoded vector */
|
||||
int *index, /* (i) Codebook indices */
|
||||
int *gain_index,/* (i) Gain quantization indices */
|
||||
@ -69,7 +68,7 @@ void iCBConstruct(
|
||||
int lMem, /* (i) Length of buffer */
|
||||
int veclen, /* (i) Length of vector */
|
||||
int nStages /* (i) Number of codebook stages */
|
||||
){
|
||||
){
|
||||
int j,k;
|
||||
float gain[CB_NSTAGES];
|
||||
float cbvec[SUBL];
|
||||
@ -103,6 +102,6 @@ void iCBConstruct(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -10,20 +10,20 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#ifndef __iLBC_ICBCONSTRUCT_H
|
||||
#define __iLBC_ICBCONSTRUCT_H
|
||||
#ifndef __iLBC_ICBCONSTRUCT_H
|
||||
#define __iLBC_ICBCONSTRUCT_H
|
||||
|
||||
void index_conv_enc(
|
||||
void index_conv_enc(
|
||||
int *index /* (i/o) Codebook indexes */
|
||||
);
|
||||
);
|
||||
|
||||
void index_conv_dec(
|
||||
void index_conv_dec(
|
||||
int *index /* (i/o) Codebook indexes */
|
||||
);
|
||||
);
|
||||
|
||||
void iCBConstruct(
|
||||
void iCBConstruct(
|
||||
float *decvector, /* (o) Decoded vector */
|
||||
int *index, /* (i) Codebook indices */
|
||||
int *gain_index,/* (i) Gain quantization indices */
|
||||
@ -31,8 +31,8 @@ void iCBConstruct(
|
||||
int lMem, /* (i) Length of buffer */
|
||||
int veclen, /* (i) Length of vector */
|
||||
int nStages /* (i) Number of codebook stages */
|
||||
);
|
||||
);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,23 +8,22 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "iLBC_define.h"
|
||||
#include "iCBSearch.h"
|
||||
#include "gainquant.h"
|
||||
#include "createCB.h"
|
||||
#include "filter.h"
|
||||
#include "constants.h"
|
||||
#include "iLBC_define.h"
|
||||
#include "gainquant.h"
|
||||
#include "createCB.h"
|
||||
#include "filter.h"
|
||||
#include "constants.h"
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* Search routine for codebook encoding and gain quantization.
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void iCBSearch(
|
||||
void iCBSearch(
|
||||
iLBC_Enc_Inst_t *iLBCenc_inst,
|
||||
/* (i) the encoder state structure */
|
||||
int *index, /* (o) Codebook indices */
|
||||
@ -37,7 +36,7 @@ void iCBSearch(
|
||||
float *weightDenum, /* (i) weighting filter coefficients */
|
||||
float *weightState, /* (i) weighting filter state */
|
||||
int block /* (i) the sub-block number */
|
||||
){
|
||||
){
|
||||
int i, j, icount, stage, best_index, range, counter;
|
||||
float max_measure, gain, measure, crossDot, ftmp;
|
||||
float gains[CB_NSTAGES];
|
||||
@ -122,8 +121,7 @@ void iCBSearch(
|
||||
*ppe=0.0;
|
||||
pp=buf+LPC_FILTERORDER+lMem-lTarget;
|
||||
for (j=0; j<lTarget; j++) {
|
||||
*ppe+=(*pp)*(*pp);
|
||||
pp++;
|
||||
*ppe+=(*pp)*(*pp++);
|
||||
}
|
||||
|
||||
if (*ppe>0.0) {
|
||||
@ -305,8 +303,7 @@ void iCBSearch(
|
||||
|
||||
pp=cbvectors+lMem-lTarget;
|
||||
for (j=0; j<lTarget; j++) {
|
||||
*ppe+=(*pp)*(*pp);
|
||||
pp++;
|
||||
*ppe+=(*pp)*(*pp++);
|
||||
}
|
||||
|
||||
ppi = cbvectors + lMem - 1 - lTarget;
|
||||
@ -475,6 +472,6 @@ void iCBSearch(
|
||||
}
|
||||
}
|
||||
gain_index[0]=j;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,12 +8,12 @@
|
||||
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
|
||||
|
||||
void iCBSearch(
|
||||
void iCBSearch(
|
||||
iLBC_Enc_Inst_t *iLBCenc_inst,
|
||||
/* (i) the encoder state structure */
|
||||
int *index, /* (o) Codebook indices */
|
||||
@ -28,8 +28,8 @@ void iCBSearch(
|
||||
|
||||
float *weightState, /* (i) weighting filter state */
|
||||
int block /* (i) the sub-block number */
|
||||
);
|
||||
);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,37 +8,36 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "iLBC_define.h"
|
||||
#include "iLBC_decode.h"
|
||||
#include "StateConstructW.h"
|
||||
#include "LPCdecode.h"
|
||||
#include "iCBConstruct.h"
|
||||
#include "doCPLC.h"
|
||||
#include "helpfun.h"
|
||||
#include "constants.h"
|
||||
#include "packing.h"
|
||||
#include "string.h"
|
||||
#include "enhancer.h"
|
||||
#include "hpOutput.h"
|
||||
#include "syntFilter.h"
|
||||
#include "iLBC_define.h"
|
||||
#include "StateConstructW.h"
|
||||
#include "LPCdecode.h"
|
||||
#include "iCBConstruct.h"
|
||||
#include "doCPLC.h"
|
||||
#include "helpfun.h"
|
||||
#include "constants.h"
|
||||
#include "packing.h"
|
||||
#include "string.h"
|
||||
#include "enhancer.h"
|
||||
#include "hpOutput.h"
|
||||
#include "syntFilter.h"
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* Initiation of decoder instance.
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
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
|
||||
0 to run without
|
||||
enhancer */
|
||||
){
|
||||
){
|
||||
int i;
|
||||
|
||||
iLBCdec_inst->mode = mode;
|
||||
@ -103,15 +102,15 @@ short initDecode( /* (o) Number of decoded
|
||||
iLBCdec_inst->prev_enh_pl = 0;
|
||||
|
||||
return (iLBCdec_inst->blockl);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* frame residual decoder function (subrutine to iLBC_decode)
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
static void Decode(
|
||||
void Decode(
|
||||
iLBC_Dec_Inst_t *iLBCdec_inst, /* (i/o) the decoder state
|
||||
structure */
|
||||
float *decresidual, /* (o) decoded residual frame */
|
||||
@ -137,7 +136,7 @@ static void Decode(
|
||||
of start state comes
|
||||
first 0 if that part
|
||||
comes last */
|
||||
){
|
||||
){
|
||||
float reverseDecresidual[BLOCKL_MAX], mem[CB_MEML];
|
||||
int k, meml_gotten, Nfor, Nback, i;
|
||||
int diff, start_pos;
|
||||
@ -241,7 +240,7 @@ static void Decode(
|
||||
|
||||
/* update memory */
|
||||
|
||||
memmove(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
|
||||
memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
|
||||
memcpy(mem+CB_MEML-SUBL,
|
||||
&decresidual[(start+1+subframe)*SUBL],
|
||||
SUBL*sizeof(float));
|
||||
@ -286,7 +285,7 @@ static void Decode(
|
||||
|
||||
/* update memory */
|
||||
|
||||
memmove(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
|
||||
memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
|
||||
memcpy(mem+CB_MEML-SUBL,
|
||||
&reverseDecresidual[subframe*SUBL],
|
||||
SUBL*sizeof(float));
|
||||
@ -300,20 +299,20 @@ static void Decode(
|
||||
decresidual[SUBL*Nback - i - 1] =
|
||||
reverseDecresidual[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* main decoder function
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void iLBC_decode(
|
||||
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,
|
||||
1: normal */
|
||||
){
|
||||
){
|
||||
float data[BLOCKL_MAX];
|
||||
float lsfdeq[LPC_FILTERORDER*LPC_N_MAX];
|
||||
float PLCresidual[BLOCKL_MAX], PLClpc[LPC_FILTERORDER + 1];
|
||||
@ -614,6 +613,6 @@ void iLBC_decode(
|
||||
if (mode==0) { /* PLC was used */
|
||||
iLBCdec_inst->prev_enh_pl=1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,33 +8,33 @@
|
||||
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
|
||||
0 to run without
|
||||
enhancer */
|
||||
);
|
||||
);
|
||||
|
||||
void iLBC_decode(
|
||||
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,
|
||||
1: normal */
|
||||
);
|
||||
);
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,108 +8,110 @@
|
||||
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 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 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
|
||||
|
||||
/* 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 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 */
|
||||
#define LSF_NUMBER_OF_STEPS 4
|
||||
#define LPC_HALFORDER (LPC_FILTERORDER/2)
|
||||
|
||||
#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
|
||||
/* cb settings */
|
||||
|
||||
/* enhancer */
|
||||
#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 ENH_BLOCKL 80 /* block length */
|
||||
#define ENH_BLOCKL_HALF (ENH_BLOCKL/2)
|
||||
#define ENH_HL 3 /* 2*ENH_HL+1 is number blocks
|
||||
/* 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
|
||||
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_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_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 +
|
||||
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
|
||||
|
||||
/* type definition encoder instance */
|
||||
typedef struct iLBC_ULP_Inst_t_ {
|
||||
#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];
|
||||
@ -119,10 +121,10 @@ typedef struct iLBC_ULP_Inst_t_ {
|
||||
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;
|
||||
} iLBC_ULP_Inst_t;
|
||||
|
||||
/* type definition encoder instance */
|
||||
typedef struct iLBC_Enc_Inst_t_ {
|
||||
/* type definition encoder instance */
|
||||
typedef struct iLBC_Enc_Inst_t_ {
|
||||
|
||||
/* flag for frame size mode */
|
||||
int mode;
|
||||
@ -149,10 +151,11 @@ typedef struct iLBC_Enc_Inst_t_ {
|
||||
/* 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 */
|
||||
@ -194,8 +197,8 @@ typedef struct iLBC_Dec_Inst_t_ {
|
||||
float enh_buf[ENH_BUFL];
|
||||
float enh_period[ENH_NBLOCKS_TOT];
|
||||
|
||||
} iLBC_Dec_Inst_t;
|
||||
} iLBC_Dec_Inst_t;
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,36 +8,35 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "iLBC_define.h"
|
||||
#include "iLBC_encode.h"
|
||||
#include "LPCencode.h"
|
||||
#include "FrameClassify.h"
|
||||
#include "StateSearchW.h"
|
||||
#include "StateConstructW.h"
|
||||
#include "helpfun.h"
|
||||
#include "constants.h"
|
||||
#include "packing.h"
|
||||
#include "iCBSearch.h"
|
||||
#include "iCBConstruct.h"
|
||||
#include "hpInput.h"
|
||||
#include "anaFilter.h"
|
||||
#include "syntFilter.h"
|
||||
#include "iLBC_define.h"
|
||||
#include "LPCencode.h"
|
||||
#include "FrameClassify.h"
|
||||
#include "StateSearchW.h"
|
||||
#include "StateConstructW.h"
|
||||
#include "helpfun.h"
|
||||
#include "constants.h"
|
||||
#include "packing.h"
|
||||
#include "iCBSearch.h"
|
||||
#include "iCBConstruct.h"
|
||||
#include "hpInput.h"
|
||||
#include "anaFilter.h"
|
||||
#include "syntFilter.h"
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* Initiation of encoder instance.
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
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 */
|
||||
){
|
||||
){
|
||||
iLBCenc_inst->mode = mode;
|
||||
if (mode==30) {
|
||||
iLBCenc_inst->blockl = BLOCKL_30MS;
|
||||
@ -78,19 +77,19 @@ short initEncode( /* (o) Number of bytes
|
||||
memset((*iLBCenc_inst).hpimem, 0, 4*sizeof(float));
|
||||
|
||||
return (iLBCenc_inst->no_of_bytes);
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* main encoder function
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void iLBC_encode(
|
||||
void iLBC_encode(
|
||||
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
|
||||
state */
|
||||
){
|
||||
){
|
||||
|
||||
float data[BLOCKL_MAX];
|
||||
float residual[BLOCKL_MAX], reverseResidual[BLOCKL_MAX];
|
||||
@ -294,7 +293,7 @@ void iLBC_encode(
|
||||
|
||||
/* update memory */
|
||||
|
||||
memmove(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
|
||||
memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
|
||||
memcpy(mem+CB_MEML-SUBL,
|
||||
&decresidual[(start+1+subframe)*SUBL],
|
||||
SUBL*sizeof(float));
|
||||
@ -364,7 +363,7 @@ void iLBC_encode(
|
||||
|
||||
/* update memory */
|
||||
|
||||
memmove(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
|
||||
memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
|
||||
memcpy(mem+CB_MEML-SUBL,
|
||||
&reverseDecresidual[subframe*SUBL],
|
||||
SUBL*sizeof(float));
|
||||
@ -508,7 +507,7 @@ void iLBC_encode(
|
||||
/* set the last bit to zero (otherwise the decoder
|
||||
will treat it as a lost frame) */
|
||||
dopack( &pbytes, 0, 1, &pos);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,20 +8,20 @@
|
||||
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 */
|
||||
);
|
||||
);
|
||||
|
||||
void iLBC_encode(
|
||||
void iLBC_encode(
|
||||
|
||||
|
||||
unsigned char *bytes, /* (o) encoded data bits iLBC */
|
||||
@ -29,9 +29,9 @@ void iLBC_encode(
|
||||
encode */
|
||||
iLBC_Enc_Inst_t *iLBCenc_inst /* (i/o) the general encoder
|
||||
state */
|
||||
);
|
||||
);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,22 +8,21 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "iLBC_define.h"
|
||||
#include "lsf.h"
|
||||
#include "iLBC_define.h"
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* conversion from lpc coefficients to lsf coefficients
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void a2lsf(
|
||||
void a2lsf(
|
||||
float *freq,/* (o) lsf coefficients */
|
||||
float *a /* (i) lpc coefficients */
|
||||
){
|
||||
){
|
||||
float steps[LSF_NUMBER_OF_STEPS] =
|
||||
{(float)0.00635, (float)0.003175, (float)0.0015875,
|
||||
(float)0.00079375};
|
||||
@ -153,16 +152,16 @@ void a2lsf(
|
||||
for (i = 0; i<LPC_FILTERORDER; i++) {
|
||||
freq[i] = freq[i] * TWO_PI;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* conversion from lsf coefficients to lpc coefficients
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void lsf2a(
|
||||
void lsf2a(
|
||||
float *a_coef, /* (o) lpc coefficients */
|
||||
float *freq /* (i) lsf coefficients */
|
||||
){
|
||||
){
|
||||
int i, j;
|
||||
float hlp;
|
||||
float p[LPC_HALFORDER], q[LPC_HALFORDER];
|
||||
@ -259,6 +258,6 @@ void lsf2a(
|
||||
a_coef[0] = 1.0;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -10,21 +10,21 @@
|
||||
|
||||
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#ifndef __iLBC_LSF_H
|
||||
#define __iLBC_LSF_H
|
||||
#ifndef __iLBC_LSF_H
|
||||
#define __iLBC_LSF_H
|
||||
|
||||
void a2lsf(
|
||||
void a2lsf(
|
||||
float *freq,/* (o) lsf coefficients */
|
||||
float *a /* (i) lpc coefficients */
|
||||
);
|
||||
);
|
||||
|
||||
void lsf2a(
|
||||
void lsf2a(
|
||||
float *a_coef, /* (o) lpc coefficients */
|
||||
float *freq /* (i) lsf coefficients */
|
||||
);
|
||||
);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,23 +8,22 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "iLBC_define.h"
|
||||
#include "constants.h"
|
||||
#include "helpfun.h"
|
||||
#include "packing.h"
|
||||
#include "string.h"
|
||||
#include "iLBC_define.h"
|
||||
#include "constants.h"
|
||||
#include "helpfun.h"
|
||||
#include "string.h"
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* splitting an integer into first most significant bits and
|
||||
* remaining least significant bits
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void packsplit(
|
||||
void packsplit(
|
||||
int *index, /* (i) the value to split */
|
||||
int *firstpart, /* (o) the value specified by most
|
||||
significant bits */
|
||||
@ -34,36 +33,36 @@ void packsplit(
|
||||
significant part */
|
||||
int bitno_total /* (i) number of bits in full range
|
||||
of value */
|
||||
){
|
||||
){
|
||||
int bitno_rest = bitno_total-bitno_firstpart;
|
||||
|
||||
|
||||
|
||||
*firstpart = *index>>(bitno_rest);
|
||||
*rest = *index-(*firstpart<<(bitno_rest));
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* combining a value corresponding to msb's with a value
|
||||
* corresponding to lsb's
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void packcombine(
|
||||
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
|
||||
lsb part */
|
||||
){
|
||||
){
|
||||
*index = *index<<bitno_rest;
|
||||
*index += rest;
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* packing of bits into bitstream, i.e., vector of bytes
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void dopack(
|
||||
void dopack(
|
||||
unsigned char **bitstream, /* (i/o) on entrance pointer to
|
||||
place in bitstream to pack
|
||||
new data, on exit pointer
|
||||
@ -74,7 +73,7 @@ void dopack(
|
||||
value will fit within */
|
||||
int *pos /* (i/o) write position in the
|
||||
current byte */
|
||||
){
|
||||
){
|
||||
int posLeft;
|
||||
|
||||
/* Clear the bits before starting in a new byte */
|
||||
@ -112,13 +111,13 @@ void dopack(
|
||||
bitno-=posLeft;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* unpacking of bits from bitstream, i.e., vector of bytes
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void unpack(
|
||||
void unpack(
|
||||
unsigned char **bitstream, /* (i/o) on entrance pointer to
|
||||
place in bitstream to
|
||||
unpack new data from, on
|
||||
@ -130,7 +129,7 @@ void unpack(
|
||||
represent the value */
|
||||
int *pos /* (i/o) read position in the
|
||||
current byte */
|
||||
){
|
||||
){
|
||||
int BitsLeft;
|
||||
|
||||
*index=0;
|
||||
@ -170,6 +169,6 @@ void unpack(
|
||||
bitno-=BitsLeft;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,12 +8,12 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#ifndef __PACKING_H
|
||||
#define __PACKING_H
|
||||
#ifndef __PACKING_H
|
||||
#define __PACKING_H
|
||||
|
||||
void packsplit(
|
||||
void packsplit(
|
||||
int *index, /* (i) the value to split */
|
||||
int *firstpart, /* (o) the value specified by most
|
||||
significant bits */
|
||||
@ -23,17 +23,17 @@ void packsplit(
|
||||
significant part */
|
||||
int bitno_total /* (i) number of bits in full range
|
||||
of value */
|
||||
);
|
||||
);
|
||||
|
||||
void packcombine(
|
||||
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
|
||||
lsb part */
|
||||
);
|
||||
);
|
||||
|
||||
void dopack(
|
||||
void dopack(
|
||||
unsigned char **bitstream, /* (i/o) on entrance pointer to
|
||||
place in bitstream to pack
|
||||
new data, on exit pointer
|
||||
@ -44,9 +44,9 @@ void dopack(
|
||||
value will fit within */
|
||||
int *pos /* (i/o) write position in the
|
||||
current byte */
|
||||
);
|
||||
);
|
||||
|
||||
void unpack(
|
||||
void unpack(
|
||||
unsigned char **bitstream, /* (i/o) on entrance pointer to
|
||||
|
||||
|
||||
@ -60,8 +60,8 @@ void unpack(
|
||||
represent the value */
|
||||
int *pos /* (i/o) read position in the
|
||||
current byte */
|
||||
);
|
||||
);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,21 +8,20 @@
|
||||
Copyright (C) The Internet Society (2004).
|
||||
All Rights Reserved.
|
||||
|
||||
******************************************************************/
|
||||
******************************************************************/
|
||||
|
||||
#include "iLBC_define.h"
|
||||
#include "syntFilter.h"
|
||||
#include "iLBC_define.h"
|
||||
|
||||
/*----------------------------------------------------------------*
|
||||
/*----------------------------------------------------------------*
|
||||
* LP synthesis filter.
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
void syntFilter(
|
||||
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 */
|
||||
){
|
||||
){
|
||||
int i, j;
|
||||
float *po, *pi, *pa, *pm;
|
||||
|
||||
@ -61,7 +60,7 @@ void syntFilter(
|
||||
|
||||
memcpy(mem, &Out[len-LPC_FILTERORDER],
|
||||
LPC_FILTERORDER*sizeof(float));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/******************************************************************
|
||||
/******************************************************************
|
||||
|
||||
iLBC Speech Coder ANSI-C Source Code
|
||||
|
||||
@ -8,20 +8,20 @@
|
||||
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(
|
||||
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
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# default C compiler
|
||||
CC?= gcc
|
||||
CC= gcc
|
||||
|
||||
#
|
||||
# These definitions for CFLAGS and LIB_TARGET_DIR are used when one
|
||||
@ -14,62 +14,57 @@ CC?= gcc
|
||||
# definitions.
|
||||
#
|
||||
|
||||
LIB_TARGET_DIR = .
|
||||
LIB_TARGET_DIR = ..
|
||||
|
||||
#
|
||||
# -I$(LIB_TARGET_DIR) option needed so that #include "machine.h"
|
||||
# directives can find the machine.h file.
|
||||
#
|
||||
|
||||
WARNINGS = -Wall -Wno-comment -Wno-error
|
||||
CFLAGS += $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS)
|
||||
ifneq (${OSARCH},CYGWIN)
|
||||
CFLAGS += -fPIC
|
||||
endif
|
||||
#CFLAGS+= $(shell if uname -m | grep -q 86; then echo "-mpentium" ; fi)
|
||||
|
||||
#fix for PPC processors and ALPHA, And UltraSparc too
|
||||
ifneq ($(OSARCH),Darwin)
|
||||
ifneq ($(findstring BSD,${OSARCH}),BSD)
|
||||
ifneq ($(PROC),ppc)
|
||||
ifneq ($(PROC),x86_64)
|
||||
ifneq ($(PROC),alpha)
|
||||
#The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
|
||||
#This works for even old (2.96) versions of gcc and provides a small boost either way.
|
||||
#A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesn.t support it.
|
||||
#So we go lowest common available by gcc and go a step down, still a step up from
|
||||
#the default as we now have a better instruction set to work with. - Belgarath
|
||||
ifeq ($(PROC),ultrasparc)
|
||||
CFLAGS+= -mtune=$(PROC) -mcpu=v8 -O3 -fomit-frame-pointer
|
||||
else
|
||||
ifneq ($(OSARCH),SunOS)
|
||||
ifneq ($(OSARCH),arm)
|
||||
# CFLAGS+= -march=$(PROC)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
WARNINGS = -Wall
|
||||
CFLAGS = -O3 -I$(LIB_TARGET_DIR) $(WARNINGS)
|
||||
|
||||
LIB = $(LIB_TARGET_DIR)/liblpc10.a
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: $(LIB)
|
||||
ranlib $(LIB)
|
||||
|
||||
OBJ= f2clib.o analys.o bsynz.o chanwr.o dcbias.o decode.o \
|
||||
deemp.o difmag.o dyptrk.o encode.o energy.o ham84.o \
|
||||
hp100.o invert.o irc2pc.o ivfilt.o lpcdec.o lpcenc.o \
|
||||
lpcini.o lpfilt.o median.o mload.o onset.o pitsyn.o \
|
||||
placea.o placev.o preemp.o prepro.o random.o rcchk.o \
|
||||
synths.o tbdm.o voicin.o vparms.o
|
||||
|
||||
$(LIB): $(OBJ)
|
||||
$(AR) cr $@ $(OBJ)
|
||||
ranlib $@
|
||||
$(LIB): $(LIB)(f2clib.o) \
|
||||
$(LIB)(analys.o) \
|
||||
$(LIB)(bsynz.o) \
|
||||
$(LIB)(chanwr.o) \
|
||||
$(LIB)(dcbias.o) \
|
||||
$(LIB)(decode.o) \
|
||||
$(LIB)(deemp.o) \
|
||||
$(LIB)(difmag.o) \
|
||||
$(LIB)(dyptrk.o) \
|
||||
$(LIB)(encode.o) \
|
||||
$(LIB)(energy.o) \
|
||||
$(LIB)(ham84.o) \
|
||||
$(LIB)(hp100.o) \
|
||||
$(LIB)(invert.o) \
|
||||
$(LIB)(irc2pc.o) \
|
||||
$(LIB)(ivfilt.o) \
|
||||
$(LIB)(lpcdec.o) \
|
||||
$(LIB)(lpcenc.o) \
|
||||
$(LIB)(lpcini.o) \
|
||||
$(LIB)(lpfilt.o) \
|
||||
$(LIB)(median.o) \
|
||||
$(LIB)(mload.o) \
|
||||
$(LIB)(onset.o) \
|
||||
$(LIB)(pitsyn.o) \
|
||||
$(LIB)(placea.o) \
|
||||
$(LIB)(placev.o) \
|
||||
$(LIB)(preemp.o) \
|
||||
$(LIB)(prepro.o) \
|
||||
$(LIB)(random.o) \
|
||||
$(LIB)(rcchk.o) \
|
||||
$(LIB)(synths.o) \
|
||||
$(LIB)(tbdm.o) \
|
||||
$(LIB)(voicin.o) \
|
||||
$(LIB)(vparms.o)
|
||||
|
||||
clean:
|
||||
-rm -f *.o $(LIB)
|
||||
-rm -f *.o
|
||||
|
@ -1,20 +1,14 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.16 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: analys.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.15 2003/09/19 01:20:22 markster
|
||||
Code cleanups (bug #66)
|
||||
Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
|
||||
Revision 1.2 2003/09/19 01:20:22 markster
|
||||
Code cleanups (bug #66)
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.2 1996/08/20 20:16:01 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -30,8 +24,6 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int analys_(real *speech, integer *voice, integer *pitch, real *rms, real *rc, struct lpc10_encoder_state *st);
|
||||
/* comlen contrl_ 12 */
|
||||
@ -60,6 +52,8 @@ extern int analys_(real *speech, integer *voice, integer *pitch, real *rms, real
|
||||
-lf2c -lm (in that order)
|
||||
*/
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
/* Common Block Declarations */
|
||||
|
||||
extern struct {
|
||||
@ -87,21 +81,15 @@ static integer c__1 = 1;
|
||||
|
||||
/* ANALYS Version 55 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.16 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.15 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* $Log: analys.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.2 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:16:01 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -240,7 +228,11 @@ static integer c__1 = 1;
|
||||
extern /* Subroutine */ int onset_(real *, integer *, integer *, integer *
|
||||
, integer *, integer *, integer *, struct lpc10_encoder_state *);
|
||||
integer *osptr;
|
||||
extern int dcbias_(integer *, real *, real *);
|
||||
extern /* Subroutine */ placea_(integer *, integer *
|
||||
, integer *, integer *, integer *, integer *, integer *, integer *
|
||||
, integer *), dcbias_(integer *, real *, real *), placev_(integer
|
||||
*, integer *, integer *, integer *, integer *, integer *, integer
|
||||
*, integer *, integer *, integer *, integer *);
|
||||
integer ipitch;
|
||||
integer *obound;
|
||||
extern /* Subroutine */ int preemp_(real *, real *, integer *, real *,
|
||||
@ -259,21 +251,15 @@ static integer c__1 = 1;
|
||||
*, integer *, integer *, struct lpc10_encoder_state *);
|
||||
real phi[100] /* was [10][10] */, psi[10];
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.16 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.15 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* $Log: analys.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.2 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:16:01 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -299,21 +285,15 @@ static integer c__1 = 1;
|
||||
/* LPC Configuration parameters: */
|
||||
/* Frame size, Prediction order, Pitch period */
|
||||
/* Arguments to ANALYS */
|
||||
/* $Log$
|
||||
* Revision 1.16 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.15 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* $Log: analys.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.2 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:16:01 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -508,10 +488,10 @@ static integer c__1 = 1;
|
||||
voibuf[0] = voibuf[2];
|
||||
voibuf[1] = voibuf[3];
|
||||
for (i__ = 1; i__ <= 2; ++i__) {
|
||||
vwin[(i__ << 1) - 2] = vwin[((i__ + 1) << 1) - 2] - contrl_1.lframe;
|
||||
vwin[(i__ << 1) - 1] = vwin[((i__ + 1) << 1) - 1] - contrl_1.lframe;
|
||||
awin[(i__ << 1) - 2] = awin[((i__ + 1) << 1) - 2] - contrl_1.lframe;
|
||||
awin[(i__ << 1) - 1] = awin[((i__ + 1) << 1) - 1] - contrl_1.lframe;
|
||||
vwin[(i__ << 1) - 2] = vwin[(i__ + (1 << 1)) - 2] - contrl_1.lframe;
|
||||
vwin[(i__ << 1) - 1] = vwin[(i__ + (1 << 1)) - 1] - contrl_1.lframe;
|
||||
awin[(i__ << 1) - 2] = awin[(i__ + (1 << 1)) - 2] - contrl_1.lframe;
|
||||
awin[(i__ << 1) - 1] = awin[(i__ + (1 << 1)) - 1] - contrl_1.lframe;
|
||||
/* EWIN(*,J) is unused for J .NE. AF, so the following shift is
|
||||
*/
|
||||
/* unnecessary. It also causes error messages when the C versio
|
||||
@ -524,7 +504,7 @@ n */
|
||||
/* EWIN(2,I) = EWIN(2,I+1) - LFRAME */
|
||||
obound[i__ - 1] = obound[i__];
|
||||
voibuf[i__ * 2] = voibuf[(i__ + 1) * 2];
|
||||
voibuf[(i__ << 1) + 1] = voibuf[((i__ + 1) << 1) + 1];
|
||||
voibuf[(i__ << 1) + 1] = voibuf[(i__ + (1 << 1)) + 1];
|
||||
rmsbuf[i__ - 1] = rmsbuf[i__];
|
||||
i__1 = contrl_1.order;
|
||||
for (j = 1; j <= i__1; ++j) {
|
||||
|
@ -1,17 +1,14 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: bsynz.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:14 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.2 1996/08/20 20:18:55 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -27,6 +24,12 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int bsynz_(real *coef, integer *ip, integer *iv, real *sout, real *rms, real *ratio, real *g2pass, struct lpc10_decoder_state *st);
|
||||
/* comlen contrl_ 12 */
|
||||
/*:ref: random_ 4 0 */
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -34,12 +37,6 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int bsynz_(real *coef, integer *ip, integer *iv, real *sout, real *rms, real *ratio, real *g2pass, struct lpc10_decoder_state *st);
|
||||
/* comlen contrl_ 12 */
|
||||
/*:ref: random_ 4 0 */
|
||||
#endif
|
||||
|
||||
/* Common Block Declarations */
|
||||
|
||||
extern struct {
|
||||
@ -53,18 +50,15 @@ extern struct {
|
||||
|
||||
/* BSYNZ Version 54 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: bsynz.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:18:55 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -155,18 +149,15 @@ extern struct {
|
||||
real xy, sum, ssq;
|
||||
real lpi0, hpi0;
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: bsynz.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:18:55 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -192,18 +183,15 @@ extern struct {
|
||||
/* LPC Configuration parameters: */
|
||||
/* Frame size, Prediction order, Pitch period */
|
||||
/* Arguments */
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: bsynz.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:18:55 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
|
@ -1,17 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: chanwr.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:14 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.2 1996/08/20 20:20:24 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -24,6 +18,11 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int chanwr_(integer *order, integer *ipitv, integer *irms, integer *irc, integer *ibits, struct lpc10_encoder_state *st);
|
||||
extern int chanrd_(integer *order, integer *ipitv, integer *irms, integer *irc, integer *ibits);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -35,18 +34,12 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
/* CHANL Version 49 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: chanwr.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:20:24 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
|
@ -1,17 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: dcbias.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:14 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:40:23 jaf
|
||||
* Initial revision
|
||||
@ -19,6 +13,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int dcbias_(integer *len, real *speech, real *sigout);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -26,26 +24,16 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int dcbias_(integer *len, real *speech, real *sigout);
|
||||
#endif
|
||||
|
||||
/* ********************************************************************* */
|
||||
|
||||
/* DCBIAS Version 50 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: dcbias.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:40:23 jaf
|
||||
* Initial revision
|
||||
|
@ -1,20 +1,14 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.16 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: decode_.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.15 2003/09/19 01:20:22 markster
|
||||
Code cleanups (bug #66)
|
||||
Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
|
||||
Revision 1.2 2003/09/19 01:20:22 markster
|
||||
Code cleanups (bug #66)
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.2 1996/08/20 20:22:39 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -30,13 +24,6 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
*/
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int decode_(integer *ipitv, integer *irms, integer *irc, integer *voice, integer *pitch, real *rms, real *rc, struct lpc10_decoder_state *st);
|
||||
/* comlen contrl_ 12 */
|
||||
@ -44,6 +31,13 @@ extern int decode_(integer *ipitv, integer *irms, integer *irc, integer *voice,
|
||||
/*:ref: median_ 4 3 4 4 4 */
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
*/
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
/* Common Block Declarations */
|
||||
|
||||
extern struct {
|
||||
@ -61,21 +55,15 @@ static integer c__2 = 2;
|
||||
|
||||
/* DECODE Version 54 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.16 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.15 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* $Log: decode_.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.2 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:22:39 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -205,21 +193,15 @@ static integer c__2 = 2;
|
||||
extern integer median_(integer *, integer *, integer *);
|
||||
integer ishift, errcnt, lsb;
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.16 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.15 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* $Log: decode_.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.2 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:22:39 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -245,21 +227,15 @@ static integer c__2 = 2;
|
||||
/* LPC Configuration parameters: */
|
||||
/* Frame size, Prediction order, Pitch period */
|
||||
/* Arguments */
|
||||
/* $Log$
|
||||
* Revision 1.16 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.15 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* $Log: decode_.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.2 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:22:39 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -542,9 +518,9 @@ static integer c__2 = 2;
|
||||
}
|
||||
for (i__ = 1; i__ <= 6; ++i__) {
|
||||
if ((i__1 = drc[i__ * 3 - 2] - drc[i__ * 3 - 3], (real) abs(i__1))
|
||||
>= corth[ixcor + ((i__ + 2) << 2) - 5] && (i__2 = drc[i__ *
|
||||
>= corth[ixcor + (i__ + (2 << 2)) - 5] && (i__2 = drc[i__ *
|
||||
3 - 2] - drc[i__ * 3 - 1], (real) abs(i__2)) >= corth[
|
||||
ixcor + ((i__ + 2) << 2) - 5]) {
|
||||
ixcor + (i__ + (2 << 2)) - 5]) {
|
||||
irc[i__] = median_(&drc[i__ * 3 - 1], &drc[i__ * 3 - 2], &drc[
|
||||
i__ * 3 - 3]);
|
||||
}
|
||||
|
@ -1,17 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: deemp.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:14 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.2 1996/08/20 20:23:46 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -27,6 +21,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int deemp_(real *x, integer *n, struct lpc10_decoder_state *st);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -34,26 +32,16 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int deemp_(real *x, integer *n, struct lpc10_decoder_state *st);
|
||||
#endif
|
||||
|
||||
/* ***************************************************************** */
|
||||
|
||||
/* DEEMP Version 48 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: deemp.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:23:46 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
|
@ -1,17 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: difmag.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:14 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:32:31 jaf
|
||||
* Initial revision
|
||||
@ -19,6 +13,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int difmag_(real *speech, integer *lpita, integer *tau, integer *ltau, integer *maxlag, real *amdf, integer *minptr, integer *maxptr);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -26,26 +24,16 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int difmag_(real *speech, integer *lpita, integer *tau, integer *ltau, integer *maxlag, real *amdf, integer *minptr, integer *maxptr);
|
||||
#endif
|
||||
|
||||
/* ********************************************************************** */
|
||||
|
||||
/* DIFMAG Version 49 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: difmag.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:32:31 jaf
|
||||
* Initial revision
|
||||
|
@ -1,17 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: dyptrk.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.2 1996/08/20 20:25:29 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -27,6 +21,11 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int dyptrk_(real *amdf, integer *ltau, integer *minptr, integer *voice, integer *pitch, integer *midx, struct lpc10_encoder_state *st);
|
||||
/* comlen contrl_ 12 */
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -34,11 +33,6 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int dyptrk_(real *amdf, integer *ltau, integer *minptr, integer *voice, integer *pitch, integer *midx, struct lpc10_encoder_state *st);
|
||||
/* comlen contrl_ 12 */
|
||||
#endif
|
||||
|
||||
/* Common Block Declarations */
|
||||
|
||||
extern struct {
|
||||
@ -52,18 +46,12 @@ extern struct {
|
||||
|
||||
/* DYPTRK Version 52 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: dyptrk.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:25:29 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -147,18 +135,12 @@ extern struct {
|
||||
real alpha, minsc, maxsc;
|
||||
|
||||
/* Arguments */
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: dyptrk.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:25:29 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
|
@ -1,17 +1,14 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: encode_.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:32:21 jaf
|
||||
* Initial revision
|
||||
@ -19,6 +16,11 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int encode_(integer *voice, integer *pitch, real *rms, real *rc, integer *ipitch, integer *irms, integer *irc);
|
||||
/* comlen contrl_ 12 */
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -26,11 +28,6 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int encode_(integer *voice, integer *pitch, real *rms, real *rc, integer *ipitch, integer *irms, integer *irc);
|
||||
/* comlen contrl_ 12 */
|
||||
#endif
|
||||
|
||||
/* Common Block Declarations */
|
||||
|
||||
extern struct {
|
||||
@ -48,18 +45,15 @@ static integer c__2 = 2;
|
||||
|
||||
/* ENCODE Version 54 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: encode_.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:32:21 jaf
|
||||
* Initial revision
|
||||
@ -139,18 +133,15 @@ static integer c__2 = 2;
|
||||
/* Local variables */
|
||||
integer idel, nbit, i__, j, i2, i3, mrk;
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: encode_.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:32:21 jaf
|
||||
* Initial revision
|
||||
@ -168,18 +159,15 @@ static integer c__2 = 2;
|
||||
/* LPC Configuration parameters: */
|
||||
/* Frame size, Prediction order, Pitch period */
|
||||
/* Arguments */
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: encode_.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:32:21 jaf
|
||||
* Initial revision
|
||||
|
@ -1,17 +1,14 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: energy.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:32:17 jaf
|
||||
* Initial revision
|
||||
@ -19,6 +16,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int energy_(integer *len, real *speech, real *rms);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -26,26 +27,19 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int energy_(integer *len, real *speech, real *rms);
|
||||
#endif
|
||||
|
||||
/* ********************************************************************* */
|
||||
|
||||
/* ENERGY Version 50 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: energy.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:32:17 jaf
|
||||
* Initial revision
|
||||
|
@ -1,17 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: f2c.h,v $
|
||||
Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.2 1996/08/20 20:26:28 jaf
|
||||
* Any typedef defining a type that was used in lpc10_encoder_state or
|
||||
@ -215,17 +209,17 @@ typedef shortlogical (*K_fp)(...);
|
||||
typedef /* Character */ VOID (*H_fp)(...);
|
||||
typedef /* Subroutine */ int (*S_fp)(...);
|
||||
#else
|
||||
typedef int /* Unknown procedure type */ (*U_fp)(VOID);
|
||||
typedef shortint (*J_fp)(VOID);
|
||||
typedef integer (*I_fp)(VOID);
|
||||
typedef real (*R_fp)(VOID);
|
||||
typedef doublereal (*D_fp)(VOID), (*E_fp)(VOID);
|
||||
typedef /* Complex */ VOID (*C_fp)(VOID);
|
||||
typedef /* Double Complex */ VOID (*Z_fp)(VOID);
|
||||
typedef logical (*L_fp)(VOID);
|
||||
typedef shortlogical (*K_fp)(VOID);
|
||||
typedef /* Character */ VOID (*H_fp)(VOID);
|
||||
typedef /* Subroutine */ int (*S_fp)(VOID);
|
||||
typedef int /* Unknown procedure type */ (*U_fp)();
|
||||
typedef shortint (*J_fp)();
|
||||
typedef integer (*I_fp)();
|
||||
typedef real (*R_fp)();
|
||||
typedef doublereal (*D_fp)(), (*E_fp)();
|
||||
typedef /* Complex */ VOID (*C_fp)();
|
||||
typedef /* Double Complex */ VOID (*Z_fp)();
|
||||
typedef logical (*L_fp)();
|
||||
typedef shortlogical (*K_fp)();
|
||||
typedef /* Character */ VOID (*H_fp)();
|
||||
typedef /* Subroutine */ int (*S_fp)();
|
||||
#endif
|
||||
/* E_fp is for real functions when -R is not specified */
|
||||
typedef VOID C_f; /* complex function */
|
||||
@ -255,71 +249,4 @@ typedef doublereal E_f; /* real function with -R not specified */
|
||||
#undef unix
|
||||
#undef vax
|
||||
#endif
|
||||
|
||||
#ifdef KR_headers
|
||||
extern integer pow_ii(ap, bp);
|
||||
extern double r_sign(a,b);
|
||||
extern integer i_nint(x);
|
||||
#else
|
||||
extern integer pow_ii(integer *ap, integer *bp);
|
||||
extern double r_sign(real *a, real *b);
|
||||
extern integer i_nint(real *x);
|
||||
|
||||
#endif
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int bsynz_(real *coef, integer *ip, integer *iv,
|
||||
real *sout, real *rms, real *ratio, real *g2pass,
|
||||
struct lpc10_decoder_state *st);
|
||||
extern int chanwr_(integer *order, integer *ipitv, integer *irms,
|
||||
integer *irc, integer *ibits, struct lpc10_encoder_state *st);
|
||||
extern int chanrd_(integer *order, integer *ipitv, integer *irms,
|
||||
integer *irc, integer *ibits);
|
||||
extern int chanwr_0_(int n__, integer *order, integer *ipitv,
|
||||
integer *irms, integer *irc, integer *ibits,
|
||||
struct lpc10_encoder_state *st);
|
||||
extern int dcbias_(integer *len, real *speech, real *sigout);
|
||||
extern int decode_(integer *ipitv, integer *irms, integer *irc,
|
||||
integer *voice, integer *pitch, real *rms,
|
||||
real *rc, struct lpc10_decoder_state *st);
|
||||
extern int deemp_(real *x, integer *n, struct lpc10_decoder_state *st);
|
||||
extern int difmag_(real *speech, integer *lpita, integer *tau, integer *ltau,
|
||||
integer *maxlag, real *amdf, integer *minptr, integer *maxptr);
|
||||
extern int dyptrk_(real *amdf, integer *ltau, integer *
|
||||
minptr, integer *voice, integer *pitch, integer *midx,
|
||||
struct lpc10_encoder_state *st);
|
||||
extern int encode_(integer *voice, integer *pitch, real *rms, real *rc,
|
||||
integer *ipitch, integer *irms, integer *irc);
|
||||
extern int energy_(integer *len, real *speech, real *rms);
|
||||
extern int ham84_(integer *input, integer *output, integer *errcnt);
|
||||
extern int hp100_(real *speech, integer *start, integer *end,
|
||||
struct lpc10_encoder_state *st);
|
||||
extern int inithp100_(void);
|
||||
extern int invert_(integer *order, real *phi, real *psi, real *rc);
|
||||
extern int irc2pc_(real *rc, real *pc, integer *order, real *gprime, real *g2pass);
|
||||
extern int ivfilt_(real *lpbuf, real *ivbuf, integer *len, integer *nsamp, real *ivrc);
|
||||
extern int lpcdec_(integer *bits, real *speech);
|
||||
extern int initlpcdec_(void);
|
||||
extern int lpcenc_(real *speech, integer *bits);
|
||||
extern int initlpcenc_(void);
|
||||
extern int lpfilt_(real *inbuf, real *lpbuf, integer *len, integer *nsamp);
|
||||
extern integer median_(integer *d1, integer *d2, integer *d3);
|
||||
extern int mload_(integer *order, integer *awins, integer *awinf, real *speech, real *phi, real *psi);
|
||||
extern int onset_(real *pebuf, integer *osbuf, integer *osptr, integer *oslen, integer *sbufl, integer *sbufh, integer *lframe, struct lpc10_encoder_state *st);
|
||||
extern int pitsyn_(integer *order, integer *voice, integer *pitch, real *rms, real *rc, integer *lframe, integer *ivuv, integer *ipiti, real *rmsi, real *rci, integer *nout, real *ratio, struct lpc10_decoder_state *st);
|
||||
extern int placea_(integer *ipitch, integer *voibuf, integer *obound, integer *af, integer *vwin, integer *awin, integer *ewin, integer *lframe, integer *maxwin);
|
||||
extern int placev_(integer *osbuf, integer *osptr, integer *oslen, integer *obound, integer *vwin, integer *af, integer *lframe, integer *minwin, integer *maxwin, integer *dvwinl, integer *dvwinh);
|
||||
extern int preemp_(real *inbuf, real *pebuf, integer *nsamp, real *coef, real *z__);
|
||||
extern int prepro_(real *speech, integer *length,
|
||||
struct lpc10_encoder_state *st);
|
||||
extern int decode_(integer *ipitv, integer *irms, integer *irc, integer *voice, integer *pitch, real *rms, real *rc, struct lpc10_decoder_state *st);
|
||||
extern integer random_(struct lpc10_decoder_state *st);
|
||||
extern int rcchk_(integer *order, real *rc1f, real *rc2f);
|
||||
extern int synths_(integer *voice, integer *pitch, real *rms, real *rc, real *speech, integer *k, struct lpc10_decoder_state *st);
|
||||
extern int tbdm_(real *speech, integer *lpita, integer *tau, integer *ltau, real *amdf, integer *minptr, integer *maxptr, integer *mintau);
|
||||
extern int voicin_(integer *vwin, real *inbuf, real *lpbuf, integer *buflim, integer *half, real *minamd, real *maxamd, integer *mintau, real *ivrc, integer *obound, integer *voibuf, integer *af, struct lpc10_encoder_state *st);
|
||||
extern int vparms_(integer *vwin, real *inbuf, real *lpbuf, integer *buflim, integer *half, real *dither, integer *mintau, integer *zc, integer *lbe, integer *fbe, real *qs, real *rc1, real *ar_b__, real *ar_f__);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* ! defined F2C_INCLUDE */
|
||||
|
@ -1,14 +1,20 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
$Log: f2clib.c,v $
|
||||
Revision 1.2 2004/05/05 13:25:38 rjongbloed
|
||||
Fixed clearly incorrect code (dived by zero) found with an MSVC warning
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.3 2004/02/17 09:21:45 csoutheren
|
||||
Fix for GM bug 134591
|
||||
|
||||
Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:32:10 jaf
|
||||
* Initial revision
|
||||
@ -40,7 +46,7 @@ integer pow_ii(integer *ap, integer *bp)
|
||||
if (n == 0 || x == 1)
|
||||
return 1;
|
||||
if (x != -1)
|
||||
return x == 0 ? 0 : 1/x;
|
||||
return x != 0 ? 1/x : 0;
|
||||
n = -n;
|
||||
}
|
||||
u = n;
|
||||
@ -80,6 +86,6 @@ integer i_nint(x) real *x;
|
||||
integer i_nint(real *x)
|
||||
#endif
|
||||
{
|
||||
return( (integer)((*x)>=0 ?
|
||||
floor(*x + .5) : -floor(.5 - *x)) );
|
||||
return (integer)( (*x)>=0 ?
|
||||
floor(*x + .5) : -(floor(.5 - *x)) );
|
||||
}
|
||||
|
@ -1,17 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: ham84.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:32:07 jaf
|
||||
* Initial revision
|
||||
@ -19,6 +13,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int ham84_(integer *input, integer *output, integer *errcnt);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -26,26 +24,16 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int ham84_(integer *input, integer *output, integer *errcnt);
|
||||
#endif
|
||||
|
||||
/* ***************************************************************** */
|
||||
|
||||
/* HAM84 Version 45G */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: ham84.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:32:07 jaf
|
||||
* Initial revision
|
||||
|
@ -1,17 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: hp100.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.2 1996/08/20 20:28:05 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -27,6 +21,12 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int hp100_(real *speech, integer *start, integer *end,
|
||||
struct lpc10_encoder_state *st);
|
||||
extern int inithp100_(void);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -34,28 +34,16 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int hp100_(real *speech, integer *start, integer *end,
|
||||
struct lpc10_encoder_state *st);
|
||||
extern int inithp100_(void);
|
||||
#endif
|
||||
|
||||
/* ********************************************************************* */
|
||||
|
||||
/* HP100 Version 55 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: hp100.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:28:05 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
|
@ -1,17 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: invert.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:32:00 jaf
|
||||
* Initial revision
|
||||
@ -19,6 +13,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int invert_(integer *order, real *phi, real *psi, real *rc);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -26,26 +24,16 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int invert_(integer *order, real *phi, real *psi, real *rc);
|
||||
#endif
|
||||
|
||||
/* **************************************************************** */
|
||||
|
||||
/* INVERT Version 45G */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: invert.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:32:00 jaf
|
||||
* Initial revision
|
||||
@ -102,18 +90,12 @@ extern int invert_(integer *order, real *phi, real *psi, real *rc);
|
||||
real v[100] /* was [10][10] */;
|
||||
|
||||
/* Arguments */
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: invert.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:32:00 jaf
|
||||
* Initial revision
|
||||
|
@ -1,17 +1,14 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: irc2pc.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:31:56 jaf
|
||||
* Initial revision
|
||||
@ -19,6 +16,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int irc2pc_(real *rc, real *pc, integer *order, real *gprime, real *g2pass);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -26,26 +27,19 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int irc2pc_(real *rc, real *pc, integer *order, real *gprime, real *g2pass);
|
||||
#endif
|
||||
|
||||
/* ***************************************************************** */
|
||||
|
||||
/* IRC2PC Version 48 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: irc2pc.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:31:56 jaf
|
||||
* Initial revision
|
||||
@ -93,18 +87,15 @@ extern int irc2pc_(real *rc, real *pc, integer *order, real *gprime, real *g2pas
|
||||
integer i__, j;
|
||||
|
||||
/* Arguments */
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: irc2pc.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:31:56 jaf
|
||||
* Initial revision
|
||||
@ -132,7 +123,7 @@ extern int irc2pc_(real *rc, real *pc, integer *order, real *gprime, real *g2pas
|
||||
for (i__ = 1; i__ <= i__1; ++i__) {
|
||||
*g2pass *= 1.f - rc[i__] * rc[i__];
|
||||
}
|
||||
*g2pass = *gprime * (real)sqrt(*g2pass);
|
||||
*g2pass = (real)(*gprime * sqrt(*g2pass));
|
||||
pc[1] = rc[1];
|
||||
i__1 = *order;
|
||||
for (i__ = 2; i__ <= i__1; ++i__) {
|
||||
|
@ -1,20 +1,14 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.16 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: ivfilt.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.15 2003/09/19 01:20:22 markster
|
||||
Code cleanups (bug #66)
|
||||
Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
|
||||
Revision 1.2 2003/09/19 01:20:22 markster
|
||||
Code cleanups (bug #66)
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:31:53 jaf
|
||||
* Initial revision
|
||||
@ -22,6 +16,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int ivfilt_(real *lpbuf, real *ivbuf, integer *len, integer *nsamp, real *ivrc);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -29,29 +27,19 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int ivfilt_(real *lpbuf, real *ivbuf, integer *len, integer *nsamp, real *ivrc);
|
||||
#endif
|
||||
|
||||
/* ********************************************************************* */
|
||||
|
||||
/* IVFILT Version 48 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.16 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.15 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* $Log: ivfilt.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.2 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:31:53 jaf
|
||||
* Initial revision
|
||||
@ -109,7 +97,7 @@ extern int ivfilt_(real *lpbuf, real *ivbuf, integer *len, integer *nsamp, real
|
||||
/* Function Body */
|
||||
for (i__ = 1; i__ <= 3; ++i__) {
|
||||
r__[i__ - 1] = 0.f;
|
||||
k = (i__ - 1) << 2;
|
||||
k = i__ - (1 << 2);
|
||||
i__1 = *len;
|
||||
for (j = (i__ << 2) + *len - *nsamp; j <= i__1; j += 2) {
|
||||
r__[i__ - 1] += lpbuf[j] * lpbuf[j - k];
|
||||
|
@ -4,6 +4,7 @@
|
||||
Version="8.00"
|
||||
Name="liblpc10"
|
||||
ProjectGUID="{FF1D238A-9D59-4850-838E-78182E05736B}"
|
||||
RootNamespace="liblpc10"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
@ -38,7 +39,7 @@
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_LIB;P_R_O_T_O_T_Y_P_E_S"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
@ -98,7 +99,7 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;P_R_O_T_O_T_Y_P_E_S"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
|
@ -1,26 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.18 2004/08/31 13:32:11 markster
|
||||
Merge NetBSD and Courtesty tone with modifications (bug #2329)
|
||||
$Log: lpc10.h,v $
|
||||
Revision 1.1 2004/05/04 11:30:49 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.17 2003/10/26 18:50:49 markster
|
||||
Make it build and run on MacOS X
|
||||
|
||||
Revision 1.3 2003/10/26 18:50:49 markster
|
||||
Make it build and run on MacOS X
|
||||
|
||||
Revision 1.2 2003/04/23 19:13:35 markster
|
||||
More OpenBSD patches
|
||||
|
||||
Revision 1.1.1.2 2003/03/16 22:37:30 matteo
|
||||
dom mar 16 23:37:23 CET 2003
|
||||
|
||||
Revision 1.2 2003/03/16 16:09:48 markster
|
||||
Mere James's cleanups for fewer build warnings
|
||||
|
||||
Revision 1.1 2000/01/05 00:20:06 markster
|
||||
Add broken lpc10 code... It's not too far from working I don't think...
|
||||
Revision 1.1 2000/06/05 04:45:11 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:47:31 jaf
|
||||
* Initial revision
|
||||
@ -35,36 +20,8 @@ Add broken lpc10 code... It's not too far from working I don't think...
|
||||
#define LPC10_BITS_IN_COMPRESSED_FRAME 54
|
||||
|
||||
|
||||
/*
|
||||
|
||||
The "#if defined"'s in this file are by no means intended to be
|
||||
complete. They are what Nautilus uses, which has been successfully
|
||||
compiled under DOS with the Microsoft C compiler, and under a few
|
||||
versions of Unix with the GNU C compiler.
|
||||
|
||||
*/
|
||||
|
||||
#if defined(unix) || defined(__unix__) || defined(__NetBSD__)
|
||||
typedef short INT16;
|
||||
typedef int INT32;
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(__MSDOS__) || defined(MSDOS)
|
||||
typedef int INT16;
|
||||
typedef long INT32;
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__)
|
||||
typedef short INT16;
|
||||
typedef int INT32;
|
||||
#endif
|
||||
|
||||
#if defined(WIN32) && defined(_MSC_VER)
|
||||
typedef __int16 INT16;
|
||||
typedef __int32 INT32;
|
||||
#pragma warning(disable: 4005)
|
||||
#endif
|
||||
|
||||
|
||||
/* The initial values for every member of this structure is 0, except
|
||||
@ -243,11 +200,11 @@ struct lpc10_decoder_state {
|
||||
|
||||
*/
|
||||
|
||||
struct lpc10_encoder_state * create_lpc10_encoder_state (void);
|
||||
struct lpc10_encoder_state * create_lpc10_encoder_state ();
|
||||
void init_lpc10_encoder_state (struct lpc10_encoder_state *st);
|
||||
int lpc10_encode (real *speech, INT32 *bits, struct lpc10_encoder_state *st);
|
||||
|
||||
struct lpc10_decoder_state * create_lpc10_decoder_state (void);
|
||||
struct lpc10_decoder_state * create_lpc10_decoder_state ();
|
||||
void init_lpc10_decoder_state (struct lpc10_decoder_state *st);
|
||||
int lpc10_decode (INT32 *bits, real *speech, struct lpc10_decoder_state *st);
|
||||
|
||||
|
@ -1,17 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: lpcdec.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.2 1996/08/20 20:30:11 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -30,13 +24,6 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
*/
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int lpcdec_(integer *bits, real *speech);
|
||||
extern int initlpcdec_(void);
|
||||
@ -48,6 +35,13 @@ extern int initlpcdec_(void);
|
||||
/*:ref: initsynths_ 14 0 */
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
*/
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
/* Common Block Declarations */
|
||||
|
||||
extern struct {
|
||||
@ -63,18 +57,12 @@ static integer c__10 = 10;
|
||||
|
||||
/* ***************************************************************** */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: lpcdec.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:30:11 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -124,18 +112,12 @@ static integer c__10 = 10;
|
||||
integer irc[10], len;
|
||||
real rms;
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: lpcdec.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:30:11 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -164,18 +146,12 @@ static integer c__10 = 10;
|
||||
/* LPC Configuration parameters: */
|
||||
/* Frame size, Prediction order, Pitch period */
|
||||
/* Arguments */
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: lpcdec.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:30:11 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
|
@ -1,17 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: lpcenc.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.2 1996/08/20 20:31:21 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -30,13 +24,6 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
*/
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int lpcenc_(real *speech, integer *bits);
|
||||
extern int initlpcenc_(void);
|
||||
@ -48,6 +35,13 @@ extern int initlpcenc_(void);
|
||||
/*:ref: initanalys_ 14 0 */
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
*/
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
/* Table of constant values */
|
||||
|
||||
static integer c__180 = 180;
|
||||
@ -55,18 +49,12 @@ static integer c__10 = 10;
|
||||
|
||||
/* ***************************************************************** */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: lpcenc.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:31:21 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -120,18 +108,12 @@ static integer c__10 = 10;
|
||||
real rms;
|
||||
|
||||
/* Arguments */
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: lpcenc.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:31:21 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
|
@ -1,23 +1,17 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.18 2003/10/21 18:08:11 markster
|
||||
Fix include order
|
||||
$Log: lpcini.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.5 2003/10/21 18:08:11 markster
|
||||
Fix include order
|
||||
Revision 1.3 2002/10/10 05:29:04 robertj
|
||||
Removed non-ansi-C comments to maximise portability, thanks Martijn Roest
|
||||
|
||||
Revision 1.4 2003/10/21 02:57:29 markster
|
||||
FreeBSD patch, take 2
|
||||
Revision 1.2 2001/02/24 14:00:10 rogerh
|
||||
Select the correct header file for malloc (stdlib.h or malloc.h)
|
||||
|
||||
Revision 1.3 2003/10/16 21:11:30 martinp
|
||||
Revert the previous patch since it's braking compilation
|
||||
|
||||
Revision 1.1 2003/02/12 13:59:15 matteo
|
||||
Initial revision
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.2 1996/08/20 20:35:41 jaf
|
||||
* Added functions for allocating and initializing lpc10_encoder_state
|
||||
@ -41,9 +35,19 @@ extern int lpcini_(void);
|
||||
-lf2c -lm (in that order)
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "f2c.h"
|
||||
|
||||
/* malloc is now defined in stdlib.h in serveral systems */
|
||||
#ifdef HAS_STDLIB_H
|
||||
# include <stdlib.h>
|
||||
#else
|
||||
# ifdef HAS_MALLOC_H
|
||||
# include <malloc.h>
|
||||
# else
|
||||
extern char * malloc();
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Common Block Declarations */
|
||||
|
||||
struct {
|
||||
@ -55,24 +59,18 @@ struct {
|
||||
|
||||
/* ***************************************************************** */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.18 2003/10/21 18:08:11 markster
|
||||
* Fix include order
|
||||
*
|
||||
/* Revision 1.5 2003/10/21 18:08:11 markster
|
||||
/* Fix include order
|
||||
/* $Log: lpcini.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.4 2003/10/21 02:57:29 markster
|
||||
/* FreeBSD patch, take 2
|
||||
/* Revision 1.3 2002/10/10 05:29:04 robertj
|
||||
/* Removed non-ansi-C comments to maximise portability, thanks Martijn Roest
|
||||
/*
|
||||
/* Revision 1.3 2003/10/16 21:11:30 martinp
|
||||
/* Revert the previous patch since it's braking compilation
|
||||
/* Revision 1.2 2001/02/24 14:00:10 rogerh
|
||||
/* Select the correct header file for malloc (stdlib.h or malloc.h)
|
||||
/*
|
||||
/* Revision 1.1 2003/02/12 13:59:15 matteo
|
||||
/* Initial revision
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:35:41 jaf
|
||||
* Added functions for allocating and initializing lpc10_encoder_state
|
||||
@ -93,24 +91,18 @@ struct {
|
||||
/* Subroutine */ int lpcini_(void)
|
||||
{
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.18 2003/10/21 18:08:11 markster
|
||||
* Fix include order
|
||||
*
|
||||
/* Revision 1.5 2003/10/21 18:08:11 markster
|
||||
/* Fix include order
|
||||
/* $Log: lpcini.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.4 2003/10/21 02:57:29 markster
|
||||
/* FreeBSD patch, take 2
|
||||
/* Revision 1.3 2002/10/10 05:29:04 robertj
|
||||
/* Removed non-ansi-C comments to maximise portability, thanks Martijn Roest
|
||||
/*
|
||||
/* Revision 1.3 2003/10/16 21:11:30 martinp
|
||||
/* Revert the previous patch since it's braking compilation
|
||||
/* Revision 1.2 2001/02/24 14:00:10 rogerh
|
||||
/* Select the correct header file for malloc (stdlib.h or malloc.h)
|
||||
/*
|
||||
/* Revision 1.1 2003/02/12 13:59:15 matteo
|
||||
/* Initial revision
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:35:41 jaf
|
||||
* Added functions for allocating and initializing lpc10_encoder_state
|
||||
@ -131,24 +123,18 @@ struct {
|
||||
|
||||
/* LPC Configuration parameters: */
|
||||
/* Frame size, Prediction order, Pitch period */
|
||||
/* $Log$
|
||||
* Revision 1.18 2003/10/21 18:08:11 markster
|
||||
* Fix include order
|
||||
*
|
||||
/* Revision 1.5 2003/10/21 18:08:11 markster
|
||||
/* Fix include order
|
||||
/* $Log: lpcini.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.4 2003/10/21 02:57:29 markster
|
||||
/* FreeBSD patch, take 2
|
||||
/* Revision 1.3 2002/10/10 05:29:04 robertj
|
||||
/* Removed non-ansi-C comments to maximise portability, thanks Martijn Roest
|
||||
/*
|
||||
/* Revision 1.3 2003/10/16 21:11:30 martinp
|
||||
/* Revert the previous patch since it's braking compilation
|
||||
/* Revision 1.2 2001/02/24 14:00:10 rogerh
|
||||
/* Select the correct header file for malloc (stdlib.h or malloc.h)
|
||||
/*
|
||||
/* Revision 1.1 2003/02/12 13:59:15 matteo
|
||||
/* Initial revision
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:35:41 jaf
|
||||
* Added functions for allocating and initializing lpc10_encoder_state
|
||||
|
@ -1,17 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: lpfilt.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:31:35 jaf
|
||||
* Initial revision
|
||||
@ -19,6 +13,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int lpfilt_(real *inbuf, real *lpbuf, integer *len, integer *nsamp);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -26,26 +24,16 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int lpfilt_(real *inbuf, real *lpbuf, integer *len, integer *nsamp);
|
||||
#endif
|
||||
|
||||
/* *********************************************************************** */
|
||||
|
||||
/* LPFILT Version 55 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: lpfilt.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:31:35 jaf
|
||||
* Initial revision
|
||||
|
@ -1,17 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: median.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:31:31 jaf
|
||||
* Initial revision
|
||||
@ -19,6 +13,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern integer median_(integer *d1, integer *d2, integer *d3);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -26,26 +24,16 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern integer median_(integer *d1, integer *d2, integer *d3);
|
||||
#endif
|
||||
|
||||
/* ********************************************************************* */
|
||||
|
||||
/* MEDIAN Version 45G */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: median.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:31:31 jaf
|
||||
* Initial revision
|
||||
|
@ -1,17 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: mload.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:31:25 jaf
|
||||
* Initial revision
|
||||
@ -19,6 +13,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int mload_(integer *order, integer *awins, integer *awinf, real *speech, real *phi, real *psi);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -26,26 +24,16 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int mload_(integer *order, integer *awins, integer *awinf, real *speech, real *phi, real *psi);
|
||||
#endif
|
||||
|
||||
/* ***************************************************************** */
|
||||
|
||||
/* MLOAD Version 48 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: mload.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:31:25 jaf
|
||||
* Initial revision
|
||||
|
@ -1,17 +1,14 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: onset.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.2 1996/08/20 20:37:55 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -27,6 +24,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int onset_(real *pebuf, integer *osbuf, integer *osptr, integer *oslen, integer *sbufl, integer *sbufh, integer *lframe, struct lpc10_encoder_state *st);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -34,10 +35,6 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int onset_(real *pebuf, integer *osbuf, integer *osptr, integer *oslen, integer *sbufl, integer *sbufh, integer *lframe, struct lpc10_encoder_state *st);
|
||||
#endif
|
||||
|
||||
/* Table of constant values */
|
||||
|
||||
static real c_b2 = 1.f;
|
||||
@ -46,18 +43,15 @@ static real c_b2 = 1.f;
|
||||
|
||||
/* ONSET Version 49 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: onset.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:37:55 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -154,18 +148,15 @@ static real c_b2 = 1.f;
|
||||
real *fpc;
|
||||
|
||||
/* Arguments */
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: onset.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:37:55 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
|
@ -1,20 +1,14 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.16 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: pitsyn.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.15 2003/11/23 22:14:32 markster
|
||||
Various warning cleanups
|
||||
Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.2 1996/08/20 20:40:12 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -30,6 +24,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int pitsyn_(integer *order, integer *voice, integer *pitch, real *rms, real *rc, integer *lframe, integer *ivuv, integer *ipiti, real *rmsi, real *rci, integer *nout, real *ratio, struct lpc10_decoder_state *st);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -37,29 +35,19 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int pitsyn_(integer *order, integer *voice, integer *pitch, real *rms, real *rc, integer *lframe, integer *ivuv, integer *ipiti, real *rmsi, real *rci, integer *nout, real *ratio, struct lpc10_decoder_state *st);
|
||||
#endif
|
||||
|
||||
/* ***************************************************************** */
|
||||
|
||||
/* PITSYN Version 53 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.16 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.15 2003/11/23 22:14:32 markster
|
||||
/* Various warning cleanups
|
||||
/* $Log: pitsyn.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:40:12 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -140,7 +128,7 @@ extern int pitsyn_(integer *order, integer *voice, integer *pitch, real *rms, re
|
||||
logical *first;
|
||||
|
||||
/* System generated locals */
|
||||
integer rci_dim1 = 0, rci_offset, i__1, i__2;
|
||||
integer rci_dim1, rci_offset, i__1, i__2;
|
||||
real r__1;
|
||||
|
||||
/* Builtin functions */
|
||||
@ -160,21 +148,15 @@ extern int pitsyn_(integer *order, integer *voice, integer *pitch, real *rms, re
|
||||
real xxy;
|
||||
|
||||
/* Arguments */
|
||||
/* $Log$
|
||||
* Revision 1.16 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.15 2003/11/23 22:14:32 markster
|
||||
/* Various warning cleanups
|
||||
/* $Log: pitsyn.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:40:12 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
|
@ -1,23 +1,14 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.16 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: placea.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.15 2003/09/19 01:20:22 markster
|
||||
Code cleanups (bug #66)
|
||||
Revision 1.2 2001/10/16 21:21:14 yurik
|
||||
Removed warnings on Windows CE. Submitted by Jehan Bing, jehan@bravobrava.com
|
||||
|
||||
Revision 1.2 2003/09/19 01:20:22 markster
|
||||
Code cleanups (bug #66)
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.3 2001/04/12 21:27:53 markh
|
||||
app_record now supports wildcards of sort so your output file is not overwritten every time it's run. File.h got a documentation update on the ast_fileexists to include the return call. Watch out for the placea.c placev.c code, it's updates have not been tested yet. Just a few parenthesis to make it compile nicer on newer gcc versions with all the -W flags set.
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:31:07 jaf
|
||||
* Initial revision
|
||||
@ -25,6 +16,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int placea_(integer *ipitch, integer *voibuf, integer *obound, integer *af, integer *vwin, integer *awin, integer *ewin, integer *lframe, integer *maxwin);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -32,32 +27,19 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int placea_(integer *ipitch, integer *voibuf, integer *obound, integer *af, integer *vwin, integer *awin, integer *ewin, integer *lframe, integer *maxwin);
|
||||
#endif
|
||||
|
||||
/* *********************************************************************** */
|
||||
|
||||
/* PLACEA Version 48 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.16 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.15 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* $Log: placea.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.2 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* Revision 1.2 2001/10/16 21:21:14 yurik
|
||||
/* Removed warnings on Windows CE. Submitted by Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.3 2001/04/12 21:27:53 markh
|
||||
/* app_record now supports wildcards of sort so your output file is not overwritten every time it's run. File.h got a documentation update on the ast_fileexists to include the return call. Watch out for the placea.c placev.c code, it's updates have not been tested yet. Just a few parenthesis to make it compile nicer on newer gcc versions with all the -W flags set.
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:31:07 jaf
|
||||
* Initial revision
|
||||
@ -170,7 +152,7 @@ extern int placea_(integer *ipitch, integer *voibuf, integer *obound, integer *a
|
||||
allv = allv && voibuf[(*af << 1) + 1] == 1;
|
||||
allv = allv && voibuf[(*af << 1) + 2] == 1;
|
||||
winv = voibuf[(*af << 1) + 1] == 1 || voibuf[(*af << 1) + 2] == 1;
|
||||
if (allv || (winv && *obound == 0)) {
|
||||
if (allv || winv && *obound == 0) {
|
||||
/* APHASE: Phase synchronous window placement. */
|
||||
/* Get minimum lower index of the window. */
|
||||
i__ = (lrange + *ipitch - 1 - awin[((*af - 1) << 1) + 1]) / *ipitch;
|
||||
|
@ -1,20 +1,14 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: placev.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
Revision 1.2 2001/10/16 21:21:14 yurik
|
||||
Removed warnings on Windows CE. Submitted by Jehan Bing, jehan@bravobrava.com
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.3 2001/04/12 21:27:53 markh
|
||||
app_record now supports wildcards of sort so your output file is not overwritten every time it's run. File.h got a documentation update on the ast_fileexists to include the return call. Watch out for the placea.c placev.c code, it's updates have not been tested yet. Just a few parenthesis to make it compile nicer on newer gcc versions with all the -W flags set.
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:31:02 jaf
|
||||
* Initial revision
|
||||
@ -22,6 +16,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int placev_(integer *osbuf, integer *osptr, integer *oslen, integer *obound, integer *vwin, integer *af, integer *lframe, integer *minwin, integer *maxwin, integer *dvwinl, integer *dvwinh);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -29,29 +27,19 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int placev_(integer *osbuf, integer *osptr, integer *oslen, integer *obound, integer *vwin, integer *af, integer *lframe, integer *minwin, integer *maxwin, integer *dvwinl, integer *dvwinh);
|
||||
#endif
|
||||
|
||||
/* ****************************************************************** */
|
||||
|
||||
/* PLACEV Version 48 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: placev.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* Revision 1.2 2001/10/16 21:21:14 yurik
|
||||
/* Removed warnings on Windows CE. Submitted by Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.3 2001/04/12 21:27:53 markh
|
||||
/* app_record now supports wildcards of sort so your output file is not overwritten every time it's run. File.h got a documentation update on the ast_fileexists to include the return call. Watch out for the placea.c placev.c code, it's updates have not been tested yet. Just a few parenthesis to make it compile nicer on newer gcc versions with all the -W flags set.
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:31:02 jaf
|
||||
* Initial revision
|
||||
|
@ -1,17 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: preemp.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:30:58 jaf
|
||||
* Initial revision
|
||||
@ -19,6 +13,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int preemp_(real *inbuf, real *pebuf, integer *nsamp, real *coef, real *z__);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -26,26 +24,16 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int preemp_(real *inbuf, real *pebuf, integer *nsamp, real *coef, real *z__);
|
||||
#endif
|
||||
|
||||
/* ******************************************************************* */
|
||||
|
||||
/* PREEMP Version 55 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: preemp.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:30:58 jaf
|
||||
* Initial revision
|
||||
|
@ -1,17 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: prepro.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.2 1996/08/20 20:40:51 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -24,7 +18,15 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
* Revision 1.1 1996/08/19 22:30:54 jaf
|
||||
* Initial revision
|
||||
*
|
||||
*/
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int prepro_(real *speech, integer *length,
|
||||
struct lpc10_encoder_state *st)
|
||||
/*:ref: hp100_ 14 3 6 4 4 */
|
||||
/*:ref: inithp100_ 14 0 */
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
@ -33,13 +35,6 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int prepro_(real *speech, integer *length,
|
||||
struct lpc10_encoder_state *st);
|
||||
/*:ref: hp100_ 14 3 6 4 4 */
|
||||
/*:ref: inithp100_ 14 0 */
|
||||
#endif
|
||||
|
||||
/* Table of constant values */
|
||||
|
||||
static integer c__1 = 1;
|
||||
@ -48,18 +43,12 @@ static integer c__1 = 1;
|
||||
|
||||
/* PREPRO Version 48 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: prepro.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:40:51 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
|
@ -1,17 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: random.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.2 1996/08/20 20:41:32 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -27,6 +21,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern integer random_(struct lpc10_decoder_state *st);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -34,26 +32,16 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern integer random_(struct lpc10_decoder_state *st);
|
||||
#endif
|
||||
|
||||
/* ********************************************************************** */
|
||||
|
||||
/* RANDOM Version 49 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: random.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:41:32 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
|
@ -1,17 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: rcchk.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:30:41 jaf
|
||||
* Initial revision
|
||||
@ -19,6 +13,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int rcchk_(integer *order, real *rc1f, real *rc2f);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -26,26 +24,16 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int rcchk_(integer *order, real *rc1f, real *rc2f);
|
||||
#endif
|
||||
|
||||
/* ********************************************************************* */
|
||||
|
||||
/* RCCHK Version 45G */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: rcchk.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:30:41 jaf
|
||||
* Initial revision
|
||||
|
@ -1,20 +1,11 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.16 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: synths.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.15 2003/09/27 02:45:37 markster
|
||||
Fix various compiler warnings (bug #322)
|
||||
|
||||
Revision 1.2 2003/09/27 02:45:37 markster
|
||||
Fix various compiler warnings (bug #322)
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.2 1996/08/20 20:42:59 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -30,13 +21,6 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
*/
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int synths_(integer *voice, integer *pitch, real *rms, real *rc, real *speech, integer *k, struct lpc10_decoder_state *st);
|
||||
/* comlen contrl_ 12 */
|
||||
@ -49,6 +33,13 @@ extern int synths_(integer *voice, integer *pitch, real *rms, real *rc, real *sp
|
||||
/*:ref: initdeemp_ 14 0 */
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
*/
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
/* Common Block Declarations */
|
||||
|
||||
extern struct {
|
||||
@ -66,21 +57,12 @@ static real c_b2 = .7f;
|
||||
|
||||
/* SYNTHS Version 54 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.16 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.15 2003/09/27 02:45:37 markster
|
||||
/* Fix various compiler warnings (bug #322)
|
||||
/* $Log: synths.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.2 2003/09/27 02:45:37 markster
|
||||
/* Fix various compiler warnings (bug #322)
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:42:59 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -185,6 +167,9 @@ static real c_b2 = .7f;
|
||||
extern /* Subroutine */ int deemp_(real *, integer *, struct lpc10_decoder_state *);
|
||||
real ratio;
|
||||
integer ipiti[16];
|
||||
extern /* Subroutine */ bsynz_(real *, integer *,
|
||||
integer *, real *, real *, real *, real *, struct lpc10_decoder_state *), irc2pc_(real *, real *
|
||||
, integer *, real *, real *);
|
||||
real g2pass;
|
||||
real pc[10];
|
||||
extern /* Subroutine */ int pitsyn_(integer *, integer *, integer *, real
|
||||
@ -192,21 +177,12 @@ static real c_b2 = .7f;
|
||||
integer *, real *, struct lpc10_decoder_state *);
|
||||
real rci[160] /* was [10][16] */;
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.16 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.15 2003/09/27 02:45:37 markster
|
||||
/* Fix various compiler warnings (bug #322)
|
||||
/* $Log: synths.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.2 2003/09/27 02:45:37 markster
|
||||
/* Fix various compiler warnings (bug #322)
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:42:59 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -232,21 +208,12 @@ static real c_b2 = .7f;
|
||||
/* LPC Configuration parameters: */
|
||||
/* Frame size, Prediction order, Pitch period */
|
||||
/* Arguments */
|
||||
/* $Log$
|
||||
* Revision 1.16 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.15 2003/09/27 02:45:37 markster
|
||||
/* Fix various compiler warnings (bug #322)
|
||||
/* $Log: synths.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.2 2003/09/27 02:45:37 markster
|
||||
/* Fix various compiler warnings (bug #322)
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:42:59 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
|
@ -1,17 +1,14 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: tbdm.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:40 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:30:26 jaf
|
||||
* Initial revision
|
||||
@ -19,6 +16,11 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int tbdm_(real *speech, integer *lpita, integer *tau, integer *ltau, real *amdf, integer *minptr, integer *maxptr, integer *mintau);
|
||||
/*:ref: difmag_ 14 8 6 4 4 4 4 6 4 4 */
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -26,27 +28,19 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int tbdm_(real *speech, integer *lpita, integer *tau, integer *ltau, real *amdf, integer *minptr, integer *maxptr, integer *mintau);
|
||||
/*:ref: difmag_ 14 8 6 4 4 4 4 6 4 4 */
|
||||
#endif
|
||||
|
||||
/* ********************************************************************** */
|
||||
|
||||
/* TBDM Version 49 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: tbdm.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:40 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:30:26 jaf
|
||||
* Initial revision
|
||||
|
@ -1,20 +1,14 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.16 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: voicin.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.15 2003/11/23 22:14:32 markster
|
||||
Various warning cleanups
|
||||
Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:40 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.2 1996/08/20 20:45:00 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -30,6 +24,12 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int voicin_(integer *vwin, real *inbuf, real *lpbuf, integer *buflim, integer *half, real *minamd, real *maxamd, integer *mintau, real *ivrc, integer *obound, integer *voibuf, integer *af, struct lpc10_encoder_state *st);
|
||||
/* comlen contrl_ 12 */
|
||||
/*:ref: vparms_ 14 14 4 6 6 4 4 6 4 4 4 4 6 6 6 6 */
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -37,12 +37,6 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int voicin_(integer *vwin, real *inbuf, real *lpbuf, integer *buflim, integer *half, real *minamd, real *maxamd, integer *mintau, real *ivrc, integer *obound, integer *voibuf, integer *af, struct lpc10_encoder_state *st);
|
||||
/* comlen contrl_ 12 */
|
||||
/*:ref: vparms_ 14 14 4 6 6 4 4 6 4 4 4 4 6 6 6 6 */
|
||||
#endif
|
||||
|
||||
/* Common Block Declarations */
|
||||
|
||||
extern struct {
|
||||
@ -56,21 +50,15 @@ extern struct {
|
||||
|
||||
/* VOICIN Version 52 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.16 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.15 2003/11/23 22:14:32 markster
|
||||
/* Various warning cleanups
|
||||
/* $Log: voicin.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:40 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:45:00 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@ -277,7 +265,7 @@ s*/
|
||||
;
|
||||
|
||||
/* System generated locals */
|
||||
integer inbuf_offset = 0, lpbuf_offset = 0, i__1, i__2;
|
||||
integer inbuf_offset, lpbuf_offset, i__1, i__2;
|
||||
real r__1, r__2;
|
||||
|
||||
/* Builtin functions */
|
||||
@ -307,21 +295,15 @@ s*/
|
||||
|
||||
/* Global Variables: */
|
||||
/* Arguments */
|
||||
/* $Log$
|
||||
* Revision 1.16 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.15 2003/11/23 22:14:32 markster
|
||||
/* Various warning cleanups
|
||||
/* $Log: voicin.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:40 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:45:00 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
|
@ -1,17 +1,14 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: vparms.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:40 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.1 1996/08/19 22:30:04 jaf
|
||||
* Initial revision
|
||||
@ -19,6 +16,10 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int vparms_(integer *vwin, real *inbuf, real *lpbuf, integer *buflim, integer *half, real *dither, integer *mintau, integer *zc, integer *lbe, integer *fbe, real *qs, real *rc1, real *ar_b__, real *ar_f__);
|
||||
#endif
|
||||
|
||||
/* -- translated by f2c (version 19951025).
|
||||
You must link the resulting object file with the libraries:
|
||||
-lf2c -lm (in that order)
|
||||
@ -26,10 +27,6 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int vparms_(integer *vwin, real *inbuf, real *lpbuf, integer *buflim, integer *half, real *dither, integer *mintau, integer *zc, integer *lbe, integer *fbe, real *qs, real *rc1, real *ar_b__, real *ar_f__);
|
||||
#endif
|
||||
|
||||
/* Table of constant values */
|
||||
|
||||
static real c_b2 = 1.f;
|
||||
@ -38,18 +35,15 @@ static real c_b2 = 1.f;
|
||||
|
||||
/* VPARMS Version 50 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.15 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.14 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* $Log: vparms.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:43 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:40 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.1 1996/08/19 22:30:04 jaf
|
||||
* Initial revision
|
||||
|
Loading…
x
Reference in New Issue
Block a user