diff options
Diffstat (limited to 'thirdparties/win32/include/BroadVoice16')
10 files changed, 196 insertions, 196 deletions
diff --git a/thirdparties/win32/include/BroadVoice16/bv16/bv16.h b/thirdparties/win32/include/BroadVoice16/bv16/bv16.h index 90f7973..685a476 100755 --- a/thirdparties/win32/include/BroadVoice16/bv16/bv16.h +++ b/thirdparties/win32/include/BroadVoice16/bv16/bv16.h @@ -20,28 +20,28 @@ /***************************************************************************** - bv16.h : + bv16.h : $Log$ ******************************************************************************/ void Reset_BV16_Encoder( -struct BV16_Encoder_State *cs); + struct BV16_Encoder_State *cs); void BV16_Encode( -struct BV16_Bit_Stream *bs, -struct BV16_Encoder_State *cs, -Word16 *inx); + struct BV16_Bit_Stream *bs, + struct BV16_Encoder_State *cs, + Word16 *inx); void Reset_BV16_Decoder( -struct BV16_Decoder_State *ds); + struct BV16_Decoder_State *ds); void BV16_Decode( -struct BV16_Bit_Stream *bs, -struct BV16_Decoder_State *ds, -Word16 *xq); + struct BV16_Bit_Stream *bs, + struct BV16_Decoder_State *ds, + Word16 *xq); void BV16_PLC( -struct BV16_Decoder_State *ds, -Word16 *x); + struct BV16_Decoder_State *ds, + Word16 *x); diff --git a/thirdparties/win32/include/BroadVoice16/bv16/bv16cnst.h b/thirdparties/win32/include/BroadVoice16/bv16/bv16cnst.h index bd07214..b2a2eb0 100755 --- a/thirdparties/win32/include/BroadVoice16/bv16/bv16cnst.h +++ b/thirdparties/win32/include/BroadVoice16/bv16/bv16cnst.h @@ -37,7 +37,7 @@ #define MAXPP1 (MAXPP+1)/* MAXimum Pitch Period + 1 */ /* Quantization parameters */ -#define VDIM 4 /* excitation vector dimension */ +#define VDIM 4 /* excitation vector dimension */ #define CBSZ 16 /* excitation codebook size */ #define PPCBSZ 32 /* pitch predictor codebook size */ #define LGPORDER 8 /* Log-Gain Predictor OODER */ @@ -120,7 +120,7 @@ #define M2 MAXPPD1 #define HDECF (DECF/2) -/* Front-end 150 Hz highpass filter */ +/* Front-end 150 Hz highpass filter */ #define HPO 2 /* High-pass filter order */ /* LPC weighting filter */ diff --git a/thirdparties/win32/include/BroadVoice16/bv16/bv16externs.h b/thirdparties/win32/include/BroadVoice16/bv16/bv16externs.h index 6d7ce95..6bc8f3e 100755 --- a/thirdparties/win32/include/BroadVoice16/bv16/bv16externs.h +++ b/thirdparties/win32/include/BroadVoice16/bv16/bv16externs.h @@ -60,98 +60,98 @@ extern Word16 cccb[]; /* Function Prototypes */ Word32 estlevel( -Word32 lg, -Word32 *level, -Word32 *lmax, -Word32 *lmin, -Word32 *lmean, -Word32 *x1, -Word16 ngfae, -Word16 nggalgc, -Word16 *estl_alpha_min); /* Q15 */ + Word32 lg, + Word32 *level, + Word32 *lmax, + Word32 *lmin, + Word32 *lmean, + Word32 *x1, + Word16 ngfae, + Word16 nggalgc, + Word16 *estl_alpha_min); /* Q15 */ void excdec_w_synth( -Word16 *xq, /* (o) Q0 quantized signal vector */ -Word16 *ltsym, /* (i/o) Q16 quantized excitation signal vector */ -Word16 *stsym, /* (i/o) Q0 short-term predictor memory */ -Word16 *idx, /* (o) quantizer codebook index for uq[] vector */ -Word16 *b, /* (i) Q15 coefficient of 3-tap pitch predictor */ -Word16 *cb, /* (i) Q0 codebook */ -Word16 pp, /* pitch period (# of 8 kHz samples) */ -Word16 *aq, /* (i) Q12 short-term predictor coefficients */ -Word16 gain_exp, /* gain_exp of current sub-frame */ -Word32 *EE + Word16 *xq, /* (o) Q0 quantized signal vector */ + Word16 *ltsym, /* (i/o) Q16 quantized excitation signal vector */ + Word16 *stsym, /* (i/o) Q0 short-term predictor memory */ + Word16 *idx, /* (o) quantizer codebook index for uq[] vector */ + Word16 *b, /* (i) Q15 coefficient of 3-tap pitch predictor */ + Word16 *cb, /* (i) Q0 codebook */ + Word16 pp, /* pitch period (# of 8 kHz samples) */ + Word16 *aq, /* (i) Q12 short-term predictor coefficients */ + Word16 gain_exp, /* gain_exp of current sub-frame */ + Word32 *EE ); Word32 gaindec( -Word32 *lgq, /* Q25 */ -Word16 gidx, -Word16 *lgpm, /* Q11 */ -Word32 *prevlg, /* Q25 */ -Word32 level, /* Q25 */ -Word16 *nggalgc, -Word32 *lg_el); + Word32 *lgq, /* Q25 */ + Word16 gidx, + Word16 *lgpm, /* Q11 */ + Word32 *prevlg, /* Q25 */ + Word32 level, /* Q25 */ + Word16 *nggalgc, + Word32 *lg_el); void gainplc(Word32 E, Word16 *lgeqm, Word32 *lgqm); void lspdec( -Word16 *lspq, /* Q15 */ -Word16 *lspidx, -Word16 *lsppm, /* Q15 */ -Word16 *lspqlast); + Word16 *lspq, /* Q15 */ + Word16 *lspidx, + Word16 *lsppm, /* Q15 */ + Word16 *lspqlast); void lspdecplc( -Word16 *lspq, /* Q15 */ -Word16 *lsppm); /* Q15 */ + Word16 *lspq, /* Q15 */ + Word16 *lsppm); /* Q15 */ Word16 coarsepitch( -Word16 *xw, /* (i) Q1 weighted low-band signal frame */ -struct BV16_Encoder_State *c); /* (i/o) coder state */ + Word16 *xw, /* (i) Q1 weighted low-band signal frame */ + struct BV16_Encoder_State *c); /* (i/o) coder state */ Word16 refinepitch( -Word16 *x, -Word16 cpp, -Word16 *ppt); + Word16 *x, + Word16 cpp, + Word16 *ppt); Word16 pitchtapquan( -Word16 *x, -Word16 pp, -Word16 *b, -Word32 *re); + Word16 *x, + Word16 pp, + Word16 *b, + Word32 *re); void excquan( -Word16 *idx, /* quantizer codebook index for uq[] vector */ -Word16 *s, /* (i) Q0 input signal vector */ -Word16 *aq, /* (i) Q12 noise feedback filter coefficient array */ -Word16 *fsz, /* (i) Q12 short-term noise feedback filter - numerator */ -Word16 *fsp, /* (i) Q12 short-term noise feedback filter - denominator */ -Word16 *b, /* (i) Q15 coefficient of 3-tap pitch predictor */ -Word16 beta, /* (i) Q13 coefficient of pitch feedback filter */ -Word16 *stsym, /* (i/o) Q0 filter memory */ -Word16 *ltsym, /* (i/0) Q0 long-term synthesis filter memory */ -Word16 *ltnfm, /* (i/o) Q0 long-term noise feedback filter memory */ -Word16 *stnfz, /* (i/o) Q0 filter memory */ -Word16 *stnfp, /* (i/o) Q0 filter memory */ -Word16 *cb, /* (i) scalar quantizer codebook - normalized by gain_exp */ -Word16 pp, /* pitch period (# of 8 kHz samples) */ -Word16 gain_exp + Word16 *idx, /* quantizer codebook index for uq[] vector */ + Word16 *s, /* (i) Q0 input signal vector */ + Word16 *aq, /* (i) Q12 noise feedback filter coefficient array */ + Word16 *fsz, /* (i) Q12 short-term noise feedback filter - numerator */ + Word16 *fsp, /* (i) Q12 short-term noise feedback filter - denominator */ + Word16 *b, /* (i) Q15 coefficient of 3-tap pitch predictor */ + Word16 beta, /* (i) Q13 coefficient of pitch feedback filter */ + Word16 *stsym, /* (i/o) Q0 filter memory */ + Word16 *ltsym, /* (i/0) Q0 long-term synthesis filter memory */ + Word16 *ltnfm, /* (i/o) Q0 long-term noise feedback filter memory */ + Word16 *stnfz, /* (i/o) Q0 filter memory */ + Word16 *stnfp, /* (i/o) Q0 filter memory */ + Word16 *cb, /* (i) scalar quantizer codebook - normalized by gain_exp */ + Word16 pp, /* pitch period (# of 8 kHz samples) */ + Word16 gain_exp ); Word16 gainquan( -Word32 *gainq, /* Q18 */ -Word32 *ee, /* Q3 */ -Word16 *lgpm, /* Q11 */ -Word32 *prevlg, /* Q25 */ -Word32 level); /* Q25 */ + Word32 *gainq, /* Q18 */ + Word32 *ee, /* Q3 */ + Word16 *lgpm, /* Q11 */ + Word32 *prevlg, /* Q25 */ + Word32 level); /* Q25 */ void lspquan( -Word16 *lspq, -Word16 *lspidx, -Word16 *lsp, -Word16 *lsppm); + Word16 *lspq, + Word16 *lspidx, + Word16 *lsp, + Word16 *lsppm); void preprocess( -struct BV16_Encoder_State *cs, -Word16 *output, /* (o) Q0 output signal, less factor 1.5 */ -Word16 *input, /* (i) Q0 input signal */ -Word16 N); /* length of signal */ + struct BV16_Encoder_State *cs, + Word16 *output, /* (o) Q0 output signal, less factor 1.5 */ + Word16 *input, /* (i) Q0 input signal */ + Word16 N); /* length of signal */ diff --git a/thirdparties/win32/include/BroadVoice16/bv16/bv16strct.h b/thirdparties/win32/include/BroadVoice16/bv16/bv16strct.h index d0877cb..974f8fe 100755 --- a/thirdparties/win32/include/BroadVoice16/bv16/bv16strct.h +++ b/thirdparties/win32/include/BroadVoice16/bv16/bv16strct.h @@ -29,66 +29,66 @@ #define BV16STRCT_H struct BV16_Decoder_State { -Word16 stsym[LPCO]; -Word16 ltsym[LTMOFF]; -Word16 xq[XQOFF]; -Word16 lsppm[LPCO*LSPPORDER]; -Word16 lgpm[LGPORDER]; -Word16 lsplast[LPCO]; -Word32 prevlg[2]; -Word32 lmax; -Word32 lmin; -Word32 lmean; -Word32 x1; -Word32 level; -Word16 pp_last; -Word16 cfecount; -Word16 ngfae; -Word16 bq_last[3]; -Word16 nggalgc; -Word16 estl_alpha_min; -UWord32 idum; -Word16 per; /* Q15 */ -Word32 E; -Word16 atplc[LPCO+1]; -Word16 ma_a; -Word16 b_prv[2]; -Word16 pp_prv; + Word16 stsym[LPCO]; + Word16 ltsym[LTMOFF]; + Word16 xq[XQOFF]; + Word16 lsppm[LPCO*LSPPORDER]; + Word16 lgpm[LGPORDER]; + Word16 lsplast[LPCO]; + Word32 prevlg[2]; + Word32 lmax; + Word32 lmin; + Word32 lmean; + Word32 x1; + Word32 level; + Word16 pp_last; + Word16 cfecount; + Word16 ngfae; + Word16 bq_last[3]; + Word16 nggalgc; + Word16 estl_alpha_min; + UWord32 idum; + Word16 per; /* Q15 */ + Word32 E; + Word16 atplc[LPCO+1]; + Word16 ma_a; + Word16 b_prv[2]; + Word16 pp_prv; }; struct BV16_Encoder_State { -Word32 prevlg[2]; -Word32 lmax; -Word32 lmin; -Word32 lmean; -Word32 x1; -Word32 level; -Word16 x[XOFF]; /* Signal memory */ -Word16 xwd[XDOFF]; /* Memory of DECF:1 decimated version of xw() */ -Word16 xwd_exp; /* or block floating-point in coarptch.c */ -Word16 dq[XOFF]; /* Q0 - Quantized short-term pred error */ -Word16 dfm_h[DFO]; /* Decimated xwd() filter memory */ -Word16 dfm_l[DFO]; -Word16 stwpm[LPCO]; /* Q0 - Short-term weighting all-pole filter memory */ -Word16 stsym[LPCO]; /* Q0 - Short-term synthesis filter memory */ -Word16 stnfz[NSTORDER]; /* Q0 - Short-term noise feedback filter memory - zero section */ -Word16 stnfp[NSTORDER]; /* Q0 - Short-term noise feedback filter memory - pole section */ -Word16 ltnfm[MAXPP1]; /* Q0 - Long-term noise feedback filter memory */ -Word16 lsplast[LPCO]; -Word16 lsppm[LPCO*LSPPORDER]; /* Q15 - LSP Predictor Memory */ -Word16 lgpm[LGPORDER]; /* Q11 - Log-Gain Predictor Memory */ -Word16 cpplast; /* Pitch period pf the previous frame */ -Word16 hpfzm[HPO]; -Word16 hpfpm[2*HPO]; -Word16 old_A[1+LPCO]; /* Q12 - LPC of previous frame */ + Word32 prevlg[2]; + Word32 lmax; + Word32 lmin; + Word32 lmean; + Word32 x1; + Word32 level; + Word16 x[XOFF]; /* Signal memory */ + Word16 xwd[XDOFF]; /* Memory of DECF:1 decimated version of xw() */ + Word16 xwd_exp; /* or block floating-point in coarptch.c */ + Word16 dq[XOFF]; /* Q0 - Quantized short-term pred error */ + Word16 dfm_h[DFO]; /* Decimated xwd() filter memory */ + Word16 dfm_l[DFO]; + Word16 stwpm[LPCO]; /* Q0 - Short-term weighting all-pole filter memory */ + Word16 stsym[LPCO]; /* Q0 - Short-term synthesis filter memory */ + Word16 stnfz[NSTORDER]; /* Q0 - Short-term noise feedback filter memory - zero section */ + Word16 stnfp[NSTORDER]; /* Q0 - Short-term noise feedback filter memory - pole section */ + Word16 ltnfm[MAXPP1]; /* Q0 - Long-term noise feedback filter memory */ + Word16 lsplast[LPCO]; + Word16 lsppm[LPCO*LSPPORDER]; /* Q15 - LSP Predictor Memory */ + Word16 lgpm[LGPORDER]; /* Q11 - Log-Gain Predictor Memory */ + Word16 cpplast; /* Pitch period pf the previous frame */ + Word16 hpfzm[HPO]; + Word16 hpfpm[2*HPO]; + Word16 old_A[1+LPCO]; /* Q12 - LPC of previous frame */ }; struct BV16_Bit_Stream { -Word16 lspidx[2]; -Word16 ppidx; -Word16 bqidx; -Word16 gidx; -Word16 qvidx[FRSZ/VDIM]; + Word16 lspidx[2]; + Word16 ppidx; + Word16 bqidx; + Word16 gidx; + Word16 qvidx[FRSZ/VDIM]; }; #endif /* BV16STRCT_H */ diff --git a/thirdparties/win32/include/BroadVoice16/bv16/g192.h b/thirdparties/win32/include/BroadVoice16/bv16/g192.h index c1562c2..bd6fe0a 100755 --- a/thirdparties/win32/include/BroadVoice16/bv16/g192.h +++ b/thirdparties/win32/include/BroadVoice16/bv16/g192.h @@ -20,7 +20,7 @@ /***************************************************************************** - g192.h : BV16 G.192 + g192.h : BV16 G.192 $Log$ ******************************************************************************/ diff --git a/thirdparties/win32/include/BroadVoice16/bv16/postfilt.h b/thirdparties/win32/include/BroadVoice16/bv16/postfilt.h index 5054148..b1fcbd3 100755 --- a/thirdparties/win32/include/BroadVoice16/bv16/postfilt.h +++ b/thirdparties/win32/include/BroadVoice16/bv16/postfilt.h @@ -26,9 +26,9 @@ ******************************************************************************/ void postfilter( -Word16 *s, /* input : quantized speech signal */ -Word16 pp, /* input : pitch period */ -Word16 *ma_a, -Word16 *b_prv, -Word16 *pp_prv, -Word16 *e); /* output: enhanced speech signal */ + Word16 *s, /* input : quantized speech signal */ + Word16 pp, /* input : pitch period */ + Word16 *ma_a, + Word16 *b_prv, + Word16 *pp_prv, + Word16 *e); /* output: enhanced speech signal */ diff --git a/thirdparties/win32/include/BroadVoice16/bvcommon/bvcommon.h b/thirdparties/win32/include/BroadVoice16/bvcommon/bvcommon.h index 4b285a3..dd9636b 100755 --- a/thirdparties/win32/include/BroadVoice16/bvcommon/bvcommon.h +++ b/thirdparties/win32/include/BroadVoice16/bvcommon/bvcommon.h @@ -56,73 +56,73 @@ extern Word16 pp9cb[]; /* Function prototypes */ void azfilter( - Word16 a[], /* (i) Q12 : prediction coefficients */ - Word16 m, /* (i) : LPC order */ - Word16 x[], /* (i) Q0 : input signal samples, incl. past */ - Word16 y[], /* (o) Q0 : filtered output signal */ - Word16 lg /* (i) : size of filtering */ - ); + Word16 a[], /* (i) Q12 : prediction coefficients */ + Word16 m, /* (i) : LPC order */ + Word16 x[], /* (i) Q0 : input signal samples, incl. past */ + Word16 y[], /* (o) Q0 : filtered output signal */ + Word16 lg /* (i) : size of filtering */ +); void apfilter( - Word16 a[], /* (i) Q12 : prediction coefficients */ - Word16 m, /* (i) : LPC order */ - Word16 x[], /* (i) Q0 : input signal */ - Word16 y[], /* (o) Q0 : output signal */ - Word16 lg, /* (i) : size of filtering */ - Word16 mem[], /* (i/o) Q0: filter memory */ - Word16 update /* (i) : memory update flag */ - ); + Word16 a[], /* (i) Q12 : prediction coefficients */ + Word16 m, /* (i) : LPC order */ + Word16 x[], /* (i) Q0 : input signal */ + Word16 y[], /* (o) Q0 : output signal */ + Word16 lg, /* (i) : size of filtering */ + Word16 mem[], /* (i/o) Q0: filter memory */ + Word16 update /* (i) : memory update flag */ +); void lsp2a( -Word16 lsp[], /* (i) Q15 : line spectral frequencies */ -Word16 a[]); /* (o) Q12 : predictor coefficients (order = 10) */ + Word16 lsp[], /* (i) Q15 : line spectral frequencies */ + Word16 a[]); /* (o) Q12 : predictor coefficients (order = 10) */ void stblz_lsp( -Word16 *lsp, /* Q15 */ -Word16 order); + Word16 *lsp, /* Q15 */ + Word16 order); Word16 stblchck( -Word16 *x, -Word16 vdim); + Word16 *x, + Word16 vdim); void a2lsp( -Word16 a[], /* (i) Q12 : predictor coefficients */ -Word16 lsp[], /* (o) Q15 : line spectral frequencies */ -Word16 old_lsp[]); /* (i) : old lsp[] (in case not found 10 roots) */ + Word16 a[], /* (i) Q12 : predictor coefficients */ + Word16 lsp[], /* (o) Q15 : line spectral frequencies */ + Word16 old_lsp[]); /* (i) : old lsp[] (in case not found 10 roots) */ void Autocorr( - Word32 r[], /* (o) : Autocorrelations */ - Word16 x[], /* (i) : Input signal */ - Word16 window[],/* (i) : LPC Analysis window */ - Word16 l_window,/* (i) : window length */ - Word16 m); /* (i) : LPC order */ + Word32 r[], /* (o) : Autocorrelations */ + Word16 x[], /* (i) : Input signal */ + Word16 window[],/* (i) : LPC Analysis window */ + Word16 l_window,/* (i) : window length */ + Word16 m); /* (i) : LPC order */ void Spectral_Smoothing( -Word16 m, /* (i) : LPC order */ -Word32 rl[], /* (i/o) : Autocorrelations lags */ -Word16 lag_h[], /* (i) : SST coefficients (msb) */ -Word16 lag_l[]); /* (i) : SST coefficients (lsb) */ + Word16 m, /* (i) : LPC order */ + Word32 rl[], /* (i/o) : Autocorrelations lags */ + Word16 lag_h[], /* (i) : SST coefficients (msb) */ + Word16 lag_l[]); /* (i) : SST coefficients (lsb) */ void Levinson( - Word32 r32[], /* (i) : r32[] double precision vector of autocorrelation coefficients */ - Word16 a[], /* (o) : a[] in Q12 - LPC coefficients */ - Word16 old_a[], /* (i/o): old_a[] in Q12 - previous LPC coefficients */ - Word16 m); /* (i) : LPC order */ + Word32 r32[], /* (i) : r32[] double precision vector of autocorrelation coefficients */ + Word16 a[], /* (o) : a[] in Q12 - LPC coefficients */ + Word16 old_a[], /* (i/o): old_a[] in Q12 - previous LPC coefficients */ + Word16 m); /* (i) : LPC order */ void pp3dec( -Word16 idx, -Word16 *b); + Word16 idx, + Word16 *b); void vqdec( -Word16 *xq, -Word16 idx, -Word16 *cb, -Word16 vdim); + Word16 *xq, + Word16 idx, + Word16 *cb, + Word16 vdim); #ifdef _MSC_VER #include "math.h" static __inline double round(double val) -{ +{ return floor(val + 0.5); } #endif diff --git a/thirdparties/win32/include/BroadVoice16/bvcommon/mathutil.h b/thirdparties/win32/include/BroadVoice16/bvcommon/mathutil.h index 17198cd..7f6c353 100755 --- a/thirdparties/win32/include/BroadVoice16/bvcommon/mathutil.h +++ b/thirdparties/win32/include/BroadVoice16/bvcommon/mathutil.h @@ -20,21 +20,21 @@ /***************************************************************************** - fixmath.h : Common Fixed-Point Library: + fixmath.h : Common Fixed-Point Library: $Log$ ******************************************************************************/ Word32 Pow2( /* Q0 output */ - Word16 int_comp, /* Q0 Integer part */ - Word16 frac_comp /* Q15 frac_compal part */ - ); + Word16 int_comp, /* Q0 Integer part */ + Word16 frac_comp /* Q15 frac_compal part */ +); void Log2( - Word32 x, /* (i) input */ - Word16 *int_comp, /* Q0 integer part */ - Word16 *frac_comp /* Q15 fractional part */ - ); + Word32 x, /* (i) input */ + Word16 *int_comp, /* Q0 integer part */ + Word16 *frac_comp /* Q15 fractional part */ +); void sqrt_i(Word16 x_man, Word16 x_exp, Word16 *y_man, Word16 *y_exp); Word16 sqrts(Word16 x); diff --git a/thirdparties/win32/include/BroadVoice16/bvcommon/typedef.h b/thirdparties/win32/include/BroadVoice16/bvcommon/typedef.h index 769f372..d8f378e 100755 --- a/thirdparties/win32/include/BroadVoice16/bvcommon/typedef.h +++ b/thirdparties/win32/include/BroadVoice16/bvcommon/typedef.h @@ -20,7 +20,7 @@ /***************************************************************************** - typedef.h : Common Fixed-Point Library: + typedef.h : Common Fixed-Point Library: $Log$ ******************************************************************************/ diff --git a/thirdparties/win32/include/BroadVoice16/bvcommon/utility.h b/thirdparties/win32/include/BroadVoice16/bvcommon/utility.h index c0a3cfe..49aafa4 100755 --- a/thirdparties/win32/include/BroadVoice16/bvcommon/utility.h +++ b/thirdparties/win32/include/BroadVoice16/bvcommon/utility.h @@ -20,7 +20,7 @@ /***************************************************************************** - utility.h : Common Fixed-Point Library: + utility.h : Common Fixed-Point Library: $Log$ ******************************************************************************/ |