summaryrefslogtreecommitdiffstats
path: root/branches/1.0/thirdparties/win32/include/g729b
diff options
context:
space:
mode:
Diffstat (limited to 'branches/1.0/thirdparties/win32/include/g729b')
-rw-r--r--branches/1.0/thirdparties/win32/include/g729b/basic_op.h63
-rw-r--r--branches/1.0/thirdparties/win32/include/g729b/dtx.h99
-rw-r--r--branches/1.0/thirdparties/win32/include/g729b/ld8a.h629
-rw-r--r--branches/1.0/thirdparties/win32/include/g729b/octet.h20
-rw-r--r--branches/1.0/thirdparties/win32/include/g729b/oper_32b.h17
-rw-r--r--branches/1.0/thirdparties/win32/include/g729b/sid.h23
-rw-r--r--branches/1.0/thirdparties/win32/include/g729b/tab_dtx.h28
-rw-r--r--branches/1.0/thirdparties/win32/include/g729b/tab_ld8a.h52
-rw-r--r--branches/1.0/thirdparties/win32/include/g729b/typedef.h35
-rw-r--r--branches/1.0/thirdparties/win32/include/g729b/vad.h30
10 files changed, 0 insertions, 996 deletions
diff --git a/branches/1.0/thirdparties/win32/include/g729b/basic_op.h b/branches/1.0/thirdparties/win32/include/g729b/basic_op.h
deleted file mode 100644
index 2bdbac2..0000000
--- a/branches/1.0/thirdparties/win32/include/g729b/basic_op.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/*___________________________________________________________________________
- | |
- | Constants and Globals |
- |___________________________________________________________________________|
-*/
-extern Flag Overflow;
-extern Flag Carry;
-
-#define MAX_32 (Word32)0x7fffffffL
-#define MIN_32 (Word32)0x80000000L
-
-#define MAX_16 (Word16)0x7fff
-#define MIN_16 (Word16)0x8000
-
-
-/*___________________________________________________________________________
- | |
- | Operators prototypes |
- |___________________________________________________________________________|
-*/
-
-Word16 sature(Word32 L_var1); /* Limit to 16 bits, 1 */
-Word16 add(Word16 var1, Word16 var2); /* Short add, 1 */
-Word16 sub(Word16 var1, Word16 var2); /* Short sub, 1 */
-Word16 abs_s(Word16 var1); /* Short abs, 1 */
-Word16 shl(Word16 var1, Word16 var2); /* Short shift left, 1 */
-Word16 shr(Word16 var1, Word16 var2); /* Short shift right, 1 */
-Word16 mult(Word16 var1, Word16 var2); /* Short mult, 1 */
-Word32 L_mult(Word16 var1, Word16 var2); /* Long mult, 1 */
-Word16 negate(Word16 var1); /* Short negate, 1 */
-Word16 extract_h(Word32 L_var1); /* Extract high, 1 */
-Word16 extract_l(Word32 L_var1); /* Extract low, 1 */
-Word16 round(Word32 L_var1); /* Round, 1 */
-Word32 L_mac(Word32 L_var3, Word16 var1, Word16 var2); /* Mac, 1 */
-Word32 L_msu(Word32 L_var3, Word16 var1, Word16 var2); /* Msu, 1 */
-Word32 L_macNs(Word32 L_var3, Word16 var1, Word16 var2);/* Mac without sat, 1*/
-Word32 L_msuNs(Word32 L_var3, Word16 var1, Word16 var2);/* Msu without sat, 1*/
-
-Word32 L_add(Word32 L_var1, Word32 L_var2); /* Long add, 2 */
-Word32 L_sub(Word32 L_var1, Word32 L_var2); /* Long sub, 2 */
-Word32 L_add_c(Word32 L_var1, Word32 L_var2); /*Long add with c, 2 */
-Word32 L_sub_c(Word32 L_var1, Word32 L_var2); /*Long sub with c, 2 */
-Word32 L_negate(Word32 L_var1); /* Long negate, 2 */
-Word16 mult_r(Word16 var1, Word16 var2); /* Mult with round, 2 */
-Word32 L_shl(Word32 L_var1, Word16 var2); /* Long shift left, 2 */
-Word32 L_shr(Word32 L_var1, Word16 var2); /* Long shift right, 2 */
-Word16 shr_r(Word16 var1, Word16 var2);/* Shift right with round, 2 */
-Word16 mac_r(Word32 L_var3, Word16 var1, Word16 var2);/* Mac with rounding, 2*/
-Word16 msu_r(Word32 L_var3, Word16 var1, Word16 var2);/* Msu with rounding, 2*/
-Word32 L_deposit_h(Word16 var1); /* 16 bit var1 -> MSB, 2 */
-Word32 L_deposit_l(Word16 var1); /* 16 bit var1 -> LSB, 2 */
-
-Word32 L_shr_r(Word32 L_var1, Word16 var2);/* Long shift right with round, 3*/
-Word32 L_abs(Word32 L_var1); /* Long abs, 3 */
-
-Word32 L_sat(Word32 L_var1); /* Long saturation, 4 */
-
-Word16 norm_s(Word16 var1); /* Short norm, 15 */
-
-Word16 div_s(Word16 var1, Word16 var2); /* Short division, 18 */
-
-Word16 norm_l(Word32 L_var1); /* Long norm, 30 */
-
diff --git a/branches/1.0/thirdparties/win32/include/g729b/dtx.h b/branches/1.0/thirdparties/win32/include/g729b/dtx.h
deleted file mode 100644
index 7b15017..0000000
--- a/branches/1.0/thirdparties/win32/include/g729b/dtx.h
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- ITU-T G.729A Annex B ANSI-C Source Code
- Version 1.3 Last modified: August 1997
- Copyright (c) 1996, France Telecom, Rockwell International,
- Universite de Sherbrooke.
- All rights reserved.
-*/
-
-/*--------------------------------------------------------------------------*
- * Prototypes for DTX/CNG *
- *--------------------------------------------------------------------------*/
-
-/* Encoder DTX/CNG functions */
-void Init_Cod_cng(void);
-void Cod_cng(
- Word16 *exc, /* (i/o) : excitation array */
- Word16 pastVad, /* (i) : previous VAD decision */
- Word16 *lsp_old_q, /* (i/o) : previous quantized lsp */
- Word16 *Aq, /* (o) : set of interpolated LPC coefficients */
- Word16 *ana, /* (o) : coded SID parameters */
- Word16 freq_prev[MA_NP][M],
- /* (i/o) : previous LPS for quantization */
- Word16 *seed /* (i/o) : random generator seed */
-);
-void Update_cng(
- Word16 *r_h, /* (i) : MSB of frame autocorrelation */
- Word16 exp_r, /* (i) : scaling factor associated */
- Word16 Vad /* (i) : current Vad decision */
-);
-
-/* SID gain Quantization */
-void Qua_Sidgain(
- Word16 *ener, /* (i) array of energies */
- Word16 *sh_ener, /* (i) corresponding scaling factors */
- Word16 nb_ener, /* (i) number of energies or */
- Word16 *enerq, /* (o) decoded energies in dB */
- Word16 *idx /* (o) SID gain quantization index */
-);
-
-/* CNG excitation generation */
-void Calc_exc_rand(
- Word16 cur_gain, /* (i) : target sample gain */
- Word16 *exc, /* (i/o) : excitation array */
- Word16 *seed, /* (i) : current Vad decision */
- Flag flag_cod /* (i) : encoder/decoder flag */
-);
-
-/* SID LSP Quantization */
-void Get_freq_prev(Word16 x[MA_NP][M]);
-void Update_freq_prev(Word16 x[MA_NP][M]);
-void Get_decfreq_prev(Word16 x[MA_NP][M]);
-void Update_decfreq_prev(Word16 x[MA_NP][M]);
-
-/* Decoder CNG generation */
-void Init_Dec_cng(void);
-void Dec_cng(
- Word16 past_ftyp, /* (i) : past frame type */
- Word16 sid_sav, /* (i) : energy to recover SID gain */
- Word16 sh_sid_sav, /* (i) : corresponding scaling factor */
- Word16 *parm, /* (i) : coded SID parameters */
- Word16 *exc, /* (i/o) : excitation array */
- Word16 *lsp_old, /* (i/o) : previous lsp */
- Word16 *A_t, /* (o) : set of interpolated LPC coefficients */
- Word16 *seed, /* (i/o) : random generator seed */
- Word16 freq_prev[MA_NP][M]
- /* (i/o) : previous LPS for quantization */
-);
-Word16 read_frame(FILE *f_serial, Word16 *parm);
-
-/*--------------------------------------------------------------------------*
- * Constants for DTX/CNG *
- *--------------------------------------------------------------------------*/
-
-/* DTX constants */
-#define FLAG_COD (Flag)1
-#define FLAG_DEC (Flag)0
-#define INIT_SEED 11111
-#define FR_SID_MIN 3
-#define NB_SUMACF 3
-#define NB_CURACF 2
-#define NB_GAIN 2
-#define FRAC_THRESH1 4855
-#define FRAC_THRESH2 3161
-#define A_GAIN0 28672
-
-#define SIZ_SUMACF (NB_SUMACF * MP1)
-#define SIZ_ACF (NB_CURACF * MP1)
-#define A_GAIN1 4096 /* 32768L - A_GAIN0 */
-
-#define RATE_8000 80 /* Full rate (8000 bit/s) */
-#define RATE_SID 15 /* SID */
-#define RATE_0 0 /* 0 bit/s rate */
-
-/* CNG excitation generation constant */
- /* alpha = 0.5 */
-#define FRAC1 19043 /* (sqrt(40)xalpha/2 - 1) * 32768 */
-#define K0 24576 /* (1 - alpha ** 2) in Q15 */
-#define G_MAX 5000
-
diff --git a/branches/1.0/thirdparties/win32/include/g729b/ld8a.h b/branches/1.0/thirdparties/win32/include/g729b/ld8a.h
deleted file mode 100644
index 784d88d..0000000
--- a/branches/1.0/thirdparties/win32/include/g729b/ld8a.h
+++ /dev/null
@@ -1,629 +0,0 @@
-/*
- ITU-T G.729A Speech Coder with Annex B ANSI-C Source Code
- Version 1.3 Last modified: August 1997
-
- Copyright (c) 1996,
- AT&T, France Telecom, NTT, Universite de Sherbrooke, Lucent Technologies,
- Rockwell International
- All rights reserved.
-*/
-
-/*---------------------------------------------------------------*
- * LD8A.H *
- * ~~~~~~ *
- * Function prototypes and constants use for G.729A 8kb/s coder. *
- * *
- *---------------------------------------------------------------*/
-
-/*--------------------------------------------------------------------------*
- * Codec constant parameters (coder, decoder, and postfilter) *
- *--------------------------------------------------------------------------*/
-
-#define L_TOTAL 240 /* Total size of speech buffer. */
-#define L_WINDOW 240 /* Window size in LP analysis. */
-#define L_NEXT 40 /* Lookahead in LP analysis. */
-#define L_FRAME 80 /* Frame size. */
-#define L_SUBFR 40 /* Subframe size. */
-#define M 10 /* Order of LP filter. */
-#define MP1 (M+1) /* Order of LP filter + 1 */
-#define PIT_MIN 20 /* Minimum pitch lag. */
-#define PIT_MAX 143 /* Maximum pitch lag. */
-#define L_INTERPOL (10+1) /* Length of filter for interpolation. */
-#define GAMMA1 24576 /* Bandwitdh factor = 0.75 in Q15 */
-
-#define PRM_SIZE 11 /* Size of vector of analysis parameters. */
-#define SERIAL_SIZE (80+2) /* bfi+ number of speech bits */
-
-#define SHARPMAX 13017 /* Maximum value of pitch sharpening 0.8 Q14 */
-#define SHARPMIN 3277 /* Minimum value of pitch sharpening 0.2 Q14 */
-
-
-/*-------------------------------*
- * Mathematic functions. *
- *-------------------------------*/
-
-Word32 Inv_sqrt( /* (o) Q30 : output value (range: 0<=val<1) */
- Word32 L_x /* (i) Q0 : input value (range: 0<=val<=7fffffff) */
-);
-
-void Log2(
- Word32 L_x, /* (i) Q0 : input value */
- Word16 *exponent, /* (o) Q0 : Integer part of Log2. (range: 0<=val<=30) */
- Word16 *fraction /* (o) Q15: Fractionnal part of Log2. (range: 0<=val<1) */
-);
-
-Word32 Pow2( /* (o) Q0 : result (range: 0<=val<=0x7fffffff) */
- Word16 exponent, /* (i) Q0 : Integer part. (range: 0<=val<=30) */
- Word16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */
-);
-
-/*-------------------------------*
- * Pre and post-process. *
- *-------------------------------*/
-
-void Init_Pre_Process(void);
-void Init_Post_Process(void);
-
-void Pre_Process(
- Word16 signal[], /* Input/output signal */
- Word16 lg /* Length of signal */
-);
-
-void Post_Process(
- Word16 signal[], /* Input/output signal */
- Word16 lg /* Length of signal */
-);
-
-/*----------------------------------*
- * Main coder and decoder functions *
- *----------------------------------*/
-
-void Init_Coder_ld8a(void);
-
-void Coder_ld8a(
- Word16 ana[], /* output : Analysis parameters */
- Word16 frame,
- Word16 vad_enable
-);
-
-void Init_Decod_ld8a(void);
-
-void Decod_ld8a(
- Word16 parm[], /* (i) : vector of synthesis parameters
- parm[0] = bad frame indicator (bfi) */
- Word16 synth[], /* (o) : synthesis speech */
- Word16 A_t[], /* (o) : decoded LP filter in 2 subframes */
- Word16 *T2, /* (o) : decoded pitch lag in 2 subframes */
- Word16 *Vad /* (o) : VAD */
-);
-
-/*-------------------------------*
- * LPC analysis and filtering. *
- *-------------------------------*/
-
-void Autocorr(
- Word16 x[], /* (i) : Input signal */
- Word16 m, /* (i) : LPC order */
- Word16 r_h[], /* (o) : Autocorrelations (msb) */
- Word16 r_l[], /* (o) : Autocorrelations (lsb) */
- Word16 *exp_R0
-);
-
-void Lag_window(
- Word16 m, /* (i) : LPC order */
- Word16 r_h[], /* (i/o) : Autocorrelations (msb) */
- Word16 r_l[] /* (i/o) : Autocorrelations (lsb) */
-);
-
-void Levinson(
- Word16 Rh[], /* (i) : Rh[m+1] Vector of autocorrelations (msb) */
- Word16 Rl[], /* (i) : Rl[m+1] Vector of autocorrelations (lsb) */
- Word16 A[], /* (o) Q12 : A[m] LPC coefficients (m = 10) */
- Word16 rc[], /* (o) Q15 : rc[M] Relection coefficients. */
- Word16 *Err /* (o) : Residual energy */
-);
-
-void Az_lsp(
- Word16 a[], /* (i) Q12 : predictor coefficients */
- Word16 lsp[], /* (o) Q15 : line spectral pairs */
- Word16 old_lsp[] /* (i) : old lsp[] (in case not found 10 roots) */
-);
-
-void Lsp_Az(
- Word16 lsp[], /* (i) Q15 : line spectral frequencies */
- Word16 a[] /* (o) Q12 : predictor coefficients (order = 10) */
-);
-
-void Lsf_lsp(
- Word16 lsf[], /* (i) Q15 : lsf[m] normalized (range: 0.0<=val<=0.5) */
- Word16 lsp[], /* (o) Q15 : lsp[m] (range: -1<=val<1) */
- Word16 m /* (i) : LPC order */
-);
-
-void Lsp_lsf(
- Word16 lsp[], /* (i) Q15 : lsp[m] (range: -1<=val<1) */
- Word16 lsf[], /* (o) Q15 : lsf[m] normalized (range: 0.0<=val<=0.5) */
- Word16 m /* (i) : LPC order */
-);
-
-void Int_qlpc(
- Word16 lsp_old[], /* input : LSP vector of past frame */
- Word16 lsp_new[], /* input : LSP vector of present frame */
- Word16 Az[] /* output: interpolated Az() for the 2 subframes */
-);
-
-void Weight_Az(
- Word16 a[], /* (i) Q12 : a[m+1] LPC coefficients */
- Word16 gamma, /* (i) Q15 : Spectral expansion factor. */
- Word16 m, /* (i) : LPC order. */
- Word16 ap[] /* (o) Q12 : Spectral expanded LPC coefficients */
-);
-
-void Residu(
- Word16 a[], /* (i) Q12 : prediction coefficients */
- Word16 x[], /* (i) : speech (values x[-m..-1] are needed (m=10) */
- Word16 y[], /* (o) : residual signal */
- Word16 lg /* (i) : size of filtering */
-);
-
-void Syn_filt(
- Word16 a[], /* (i) Q12 : a[m+1] prediction coefficients (m=10) */
- Word16 x[], /* (i) : input signal */
- Word16 y[], /* (o) : output signal */
- Word16 lg, /* (i) : size of filtering */
- Word16 mem[], /* (i/o) : memory associated with this filtering. */
- Word16 update /* (i) : 0=no update, 1=update of memory. */
-);
-
-void Convolve(
- Word16 x[], /* (i) : input vector */
- Word16 h[], /* (i) Q12 : impulse response */
- Word16 y[], /* (o) : output vector */
- Word16 L /* (i) : vector size */
-);
-
-/*--------------------------------------------------------------------------*
- * LTP constant parameters *
- *--------------------------------------------------------------------------*/
-
-#define UP_SAMP 3
-#define L_INTER10 10
-#define FIR_SIZE_SYN (UP_SAMP*L_INTER10+1)
-
-/*-----------------------*
- * Pitch functions. *
- *-----------------------*/
-
-Word16 Pitch_ol_fast( /* output: open loop pitch lag */
- Word16 signal[], /* input : signal used to compute the open loop pitch */
- /* signal[-pit_max] to signal[-1] should be known */
- Word16 pit_max, /* input : maximum pitch lag */
- Word16 L_frame /* input : length of frame to compute pitch */
-);
-
-Word16 Pitch_fr3_fast(/* (o) : pitch period. */
- Word16 exc[], /* (i) : excitation buffer */
- Word16 xn[], /* (i) : target vector */
- Word16 h[], /* (i) Q12 : impulse response of filters. */
- Word16 L_subfr, /* (i) : Length of subframe */
- Word16 t0_min, /* (i) : minimum value in the searched range. */
- Word16 t0_max, /* (i) : maximum value in the searched range. */
- Word16 i_subfr, /* (i) : indicator for first subframe. */
- Word16 *pit_frac /* (o) : chosen fraction. */
-);
-
-Word16 G_pitch( /* (o) Q14 : Gain of pitch lag saturated to 1.2 */
- Word16 xn[], /* (i) : Pitch target. */
- Word16 y1[], /* (i) : Filtered adaptive codebook. */
- Word16 g_coeff[], /* (i) : Correlations need for gain quantization. */
- Word16 L_subfr /* (i) : Length of subframe. */
-);
-
-Word16 Enc_lag3( /* output: Return index of encoding */
- Word16 T0, /* input : Pitch delay */
- Word16 T0_frac, /* input : Fractional pitch delay */
- Word16 *T0_min, /* in/out: Minimum search delay */
- Word16 *T0_max, /* in/out: Maximum search delay */
- Word16 pit_min, /* input : Minimum pitch delay */
- Word16 pit_max, /* input : Maximum pitch delay */
- Word16 pit_flag /* input : Flag for 1st subframe */
-);
-
-void Dec_lag3( /* output: return integer pitch lag */
- Word16 index, /* input : received pitch index */
- Word16 pit_min, /* input : minimum pitch lag */
- Word16 pit_max, /* input : maximum pitch lag */
- Word16 i_subfr, /* input : subframe flag */
- Word16 *T0, /* output: integer part of pitch lag */
- Word16 *T0_frac /* output: fractional part of pitch lag */
-);
-
-Word16 Interpol_3( /* (o) : interpolated value */
- Word16 *x, /* (i) : input vector */
- Word16 frac /* (i) : fraction */
-);
-
-void Pred_lt_3(
- Word16 exc[], /* in/out: excitation buffer */
- Word16 T0, /* input : integer pitch lag */
- Word16 frac, /* input : fraction of lag */
- Word16 L_subfr /* input : subframe size */
-);
-
-Word16 Parity_Pitch( /* output: parity bit (XOR of 6 MSB bits) */
- Word16 pitch_index /* input : index for which parity to compute */
-);
-
-Word16 Check_Parity_Pitch( /* output: 0 = no error, 1= error */
- Word16 pitch_index, /* input : index of parameter */
- Word16 parity /* input : parity bit */
-);
-
-void Cor_h_X(
- Word16 h[], /* (i) Q12 :Impulse response of filters */
- Word16 X[], /* (i) :Target vector */
- Word16 D[] /* (o) :Correlations between h[] and D[] */
- /* Normalized to 13 bits */
-);
-
-/*-----------------------*
- * Innovative codebook. *
- *-----------------------*/
-
-#define DIM_RR 616 /* size of correlation matrix */
-#define NB_POS 8 /* Number of positions for each pulse */
-#define STEP 5 /* Step betweem position of the same pulse. */
-#define MSIZE 64 /* Size of vectors for cross-correlation between 2 pulses*/
-
-/* The following constants are Q15 fractions.
- These fractions is used to keep maximum precision on "alp" sum */
-
-#define _1_2 (Word16)(16384)
-#define _1_4 (Word16)( 8192)
-#define _1_8 (Word16)( 4096)
-#define _1_16 (Word16)( 2048)
-
-Word16 ACELP_Code_A( /* (o) :index of pulses positions */
- Word16 x[], /* (i) :Target vector */
- Word16 h[], /* (i) Q12 :Inpulse response of filters */
- Word16 T0, /* (i) :Pitch lag */
- Word16 pitch_sharp, /* (i) Q14 :Last quantized pitch gain */
- Word16 code[], /* (o) Q13 :Innovative codebook */
- Word16 y[], /* (o) Q12 :Filtered innovative codebook */
- Word16 *sign /* (o) :Signs of 4 pulses */
-);
-
-void Decod_ACELP(
- Word16 sign, /* (i) : signs of 4 pulses. */
- Word16 index, /* (i) : Positions of the 4 pulses. */
- Word16 cod[] /* (o) Q13 : algebraic (fixed) codebook excitation */
-);
-/*--------------------------------------------------------------------------*
- * LSP constant parameters *
- *--------------------------------------------------------------------------*/
-
-#define NC 5 /* NC = M/2 */
-#define MA_NP 4 /* MA prediction order for LSP */
-#define MODE 2 /* number of modes for MA prediction */
-#define NC0_B 7 /* number of first stage bits */
-#define NC1_B 5 /* number of second stage bits */
-#define NC0 (1<<NC0_B)
-#define NC1 (1<<NC1_B)
-
-#define L_LIMIT 40 /* Q13:0.005 */
-#define M_LIMIT 25681 /* Q13:3.135 */
-
-#define GAP1 10 /* Q13 */
-#define GAP2 5 /* Q13 */
-#define GAP3 321 /* Q13 */
-#define GRID_POINTS 50
-
-#define PI04 ((Word16)1029) /* Q13 pi*0.04 */
-#define PI92 ((Word16)23677) /* Q13 pi*0.92 */
-#define CONST10 ((Word16)10*(1<<11)) /* Q11 10.0 */
-#define CONST12 ((Word16)19661) /* Q14 1.2 */
-
-/*-------------------------------*
- * LSP VQ functions. *
- *-------------------------------*/
-
-void Lsf_lsp2(
- Word16 lsf[], /* (i) Q13 : lsf[m] (range: 0.0<=val<PI) */
- Word16 lsp[], /* (o) Q15 : lsp[m] (range: -1<=val<1) */
- Word16 m /* (i) : LPC order */
-);
-
-void Lsp_lsf2(
- Word16 lsp[], /* (i) Q15 : lsp[m] (range: -1<=val<1) */
- Word16 lsf[], /* (o) Q13 : lsf[m] (range: 0.0<=val<PI) */
- Word16 m /* (i) : LPC order */
-);
-
-void Qua_lsp(
- Word16 lsp[], /* (i) Q15 : Unquantized LSP */
- Word16 lsp_q[], /* (o) Q15 : Quantized LSP */
- Word16 ana[] /* (o) : indexes */
-);
-
-void Get_wegt(
- Word16 flsp[], /* Q13 */
- Word16 wegt[] /* Q11 -> normalized */
-);
-
-void Lsp_encw_reset(
- void
-);
-
-void Lsp_qua_cs(
- Word16 flsp_in[M], /* Q13 */
- Word16 lspq_out[M], /* Q13 */
- Word16 *code
-);
-
-void Lsp_expand_1(
- Word16 buf[], /* Q13 */
- Word16 gap /* Q13 */
-);
-
-void Lsp_expand_2(
- Word16 buf[], /* Q13 */
- Word16 gap /* Q13 */
-);
-
-void Lsp_expand_1_2(
- Word16 buf[], /* Q13 */
- Word16 gap /* Q13 */
-);
-
-void Lsp_get_quant(
- Word16 lspcb1[][M], /* Q13 */
- Word16 lspcb2[][M], /* Q13 */
- Word16 code0,
- Word16 code1,
- Word16 code2,
- Word16 fg[][M], /* Q15 */
- Word16 freq_prev[][M], /* Q13 */
- Word16 lspq[], /* Q13 */
- Word16 fg_sum[] /* Q15 */
-);
-
-void Lsp_get_tdist(
- Word16 wegt[], /* normalized */
- Word16 buf[], /* Q13 */
- Word32 *L_tdist, /* Q27 */
- Word16 rbuf[], /* Q13 */
- Word16 fg_sum[] /* Q15 */
-);
-
-void Lsp_last_select(
- Word32 L_tdist[], /* Q27 */
- Word16 *mode_index
-);
-
-void Lsp_pre_select(
- Word16 rbuf[], /* Q13 */
- Word16 lspcb1[][M], /* Q13 */
- Word16 *cand
-);
-
-void Lsp_select_1(
- Word16 rbuf[], /* Q13 */
- Word16 lspcb1[], /* Q13 */
- Word16 wegt[], /* normalized */
- Word16 lspcb2[][M], /* Q13 */
- Word16 *index
-);
-
-void Lsp_select_2(
- Word16 rbuf[], /* Q13 */
- Word16 lspcb1[], /* Q13 */
- Word16 wegt[], /* normalized */
- Word16 lspcb2[][M], /* Q13 */
- Word16 *index
-);
-
-void Lsp_stability(
- Word16 buf[] /* Q13 */
-);
-
-void Relspwed(
- Word16 lsp[], /* Q13 */
- Word16 wegt[], /* normalized */
- Word16 lspq[], /* Q13 */
- Word16 lspcb1[][M], /* Q13 */
- Word16 lspcb2[][M], /* Q13 */
- Word16 fg[MODE][MA_NP][M], /* Q15 */
- Word16 freq_prev[MA_NP][M], /* Q13 */
- Word16 fg_sum[MODE][M], /* Q15 */
- Word16 fg_sum_inv[MODE][M], /* Q12 */
- Word16 code_ana[]
-);
-
-void D_lsp(
- Word16 prm[], /* (i) : indexes of the selected LSP */
- Word16 lsp_q[], /* (o) Q15 : Quantized LSP parameters */
- Word16 erase /* (i) : frame erase information */
-);
-
-void Lsp_decw_reset(
- void
-);
-
-void Lsp_iqua_cs(
- Word16 prm[], /* input : codes of the selected LSP*/
- Word16 lsp_q[], /* output: Quantized LSP parameters*/
- Word16 erase /* input : frame erase information */
-);
-
-void Lsp_prev_compose(
- Word16 lsp_ele[], /* Q13 */
- Word16 lsp[], /* Q13 */
- Word16 fg[][M], /* Q15 */
- Word16 freq_prev[][M], /* Q13 */
- Word16 fg_sum[] /* Q15 */
-);
-
-void Lsp_prev_extract(
- Word16 lsp[M], /* Q13 */
- Word16 lsp_ele[M], /* Q13 */
- Word16 fg[MA_NP][M], /* Q15 */
- Word16 freq_prev[MA_NP][M], /* Q13 */
- Word16 fg_sum_inv[M] /* Q12 */
-);
-
-void Lsp_prev_update(
- Word16 lsp_ele[M], /* Q13 */
- Word16 freq_prev[MA_NP][M] /* Q13 */
-);
-
-/*-------------------------------*
- * gain VQ constants. *
- *-------------------------------*/
-
-#define NCODE1_B 3 /* number of Codebook-bit */
-#define NCODE2_B 4 /* number of Codebook-bit */
-#define NCODE1 (1<<NCODE1_B) /* Codebook 1 size */
-#define NCODE2 (1<<NCODE2_B) /* Codebook 2 size */
-#define NCAN1 4 /* Pre-selecting order for #1 */
-#define NCAN2 8 /* Pre-selecting order for #2 */
-#define INV_COEF -17103 /* Q19 */
-
-/*--------------------------------------------------------------------------*
- * gain VQ functions. *
- *--------------------------------------------------------------------------*/
-
-Word16 Qua_gain(
- Word16 code[], /* (i) Q13 : Innovative vector. */
- Word16 g_coeff[], /* (i) : Correlations <xn y1> -2<y1 y1> */
- /* <y2,y2>, -2<xn,y2>, 2<y1,y2> */
- Word16 exp_coeff[],/* (i) : Q-Format g_coeff[] */
- Word16 L_subfr, /* (i) : Subframe length. */
- Word16 *gain_pit, /* (o) Q14 : Pitch gain. */
- Word16 *gain_cod, /* (o) Q1 : Code gain. */
- Word16 tameflag /* (i) : flag set to 1 if taming is needed */
-);
-
-void Dec_gain(
- Word16 index, /* (i) : Index of quantization. */
- Word16 code[], /* (i) Q13 : Innovative vector. */
- Word16 L_subfr, /* (i) : Subframe length. */
- Word16 bfi, /* (i) : Bad frame indicator */
- Word16 *gain_pit, /* (o) Q14 : Pitch gain. */
- Word16 *gain_cod /* (o) Q1 : Code gain. */
-);
-
-void Gain_predict(
- Word16 past_qua_en[],/* (i) Q10 :Past quantized energies */
- Word16 code[], /* (i) Q13 : Innovative vector. */
- Word16 L_subfr, /* (i) : Subframe length. */
- Word16 *gcode0, /* (o) Qxx : Predicted codebook gain */
- Word16 *exp_gcode0 /* (o) : Q-Format(gcode0) */
-);
-
-void Gain_update(
- Word16 past_qua_en[],/* (i) Q10 :Past quantized energies */
- Word32 L_gbk12 /* (i) Q13 : gbk1[indice1][1]+gbk2[indice2][1] */
-);
-
-void Gain_update_erasure(
- Word16 past_qua_en[]/* (i) Q10 :Past quantized energies */
-);
-
-void Corr_xy2(
- Word16 xn[], /* (i) Q0 :Target vector. */
- Word16 y1[], /* (i) Q0 :Adaptive codebook. */
- Word16 y2[], /* (i) Q12 :Filtered innovative vector. */
- Word16 g_coeff[], /* (o) Q[exp]:Correlations between xn,y1,y2 */
- Word16 exp_g_coeff[] /* (o) :Q-format of g_coeff[] */
-);
-
-/*-----------------------*
- * Bitstream function *
- *-----------------------*/
-
-void prm2bits_ld8k(Word16 prm[], Word16 bits[]);
-void bits2prm_ld8k(Word16 bits[], Word16 prm[]);
-#define BIT_0 (short)0x007f /* definition of zero-bit in bit-stream */
-#define BIT_1 (short)0x0081 /* definition of one-bit in bit-stream */
-#define SYNC_WORD (short)0x6b21 /* definition of frame erasure flag */
-#define SIZE_WORD (short)80 /* number of speech bits */
-
-
-/*-----------------------------------*
- * Post-filter functions. *
- *-----------------------------------*/
-
-#define L_H 22 /* size of truncated impulse response of A(z/g1)/A(z/g2) */
-
-#define GAMMAP 16384 /* 0.5 (Q15) */
-#define INV_GAMMAP 21845 /* 1/(1+GAMMAP) (Q15) */
-#define GAMMAP_2 10923 /* GAMMAP/(1+GAMMAP) (Q15) */
-
-#define GAMMA2_PST 18022 /* Formant postfilt factor (numerator) 0.55 Q15 */
-#define GAMMA1_PST 22938 /* Formant postfilt factor (denominator) 0.70 Q15 */
-
-#define MU 26214 /* Factor for tilt compensation filter 0.8 Q15 */
-#define AGC_FAC 29491 /* Factor for automatic gain control 0.9 Q15 */
-#define AGC_FAC1 (Word16)(32767 - AGC_FAC) /* 1-AGC_FAC in Q15 */
-
-
-void Init_Post_Filter(void);
-
-void Post_Filter(
- Word16 *syn, /* in/out: synthesis speech (postfiltered is output) */
- Word16 *Az_4, /* input : interpolated LPC parameters in all subframes */
- Word16 *T, /* input : decoded pitch lags in all subframes */
- Word16 Vad
-);
-
-void pit_pst_filt(
- Word16 *signal, /* (i) : input signal */
- Word16 *scal_sig, /* (i) : input signal (scaled, divided by 4) */
- Word16 t0_min, /* (i) : minimum value in the searched range */
- Word16 t0_max, /* (i) : maximum value in the searched range */
- Word16 L_subfr, /* (i) : size of filtering */
- Word16 *signal_pst /* (o) : harmonically postfiltered signal */
-);
-
-void preemphasis(
- Word16 *signal, /* (i/o) : input signal overwritten by the output */
- Word16 g, /* (i) Q15 : preemphasis coefficient */
- Word16 L /* (i) : size of filtering */
-);
-
-void agc(
- Word16 *sig_in, /* (i) : postfilter input signal */
- Word16 *sig_out, /* (i/o) : postfilter output signal */
- Word16 l_trm /* (i) : subframe size */
-);
-
-/*--------------------------------------------------------------------------*
- * Constants and prototypes for taming procedure. *
- *--------------------------------------------------------------------------*/
-
-#define GPCLIP 15564 /* Maximum pitch gain if taming is needed Q14*/
-#define GPCLIP2 481 /* Maximum pitch gain if taming is needed Q9 */
-#define GP0999 16383 /* Maximum pitch gain if taming is needed */
-#define L_THRESH_ERR 983040000L /* Error threshold taming 16384. * 60000. */
-
-void Init_exc_err(void);
-void update_exc_err(Word16 gain_pit, Word16 t0);
-Word16 test_err(Word16 t0, Word16 t0_frac);
-
-/*--------------------------------------------------------------------------*
- * Prototypes for auxiliary functions. *
- *--------------------------------------------------------------------------*/
-
-void Copy(
- Word16 x[], /* (i) : input vector */
- Word16 y[], /* (o) : output vector */
- Word16 L /* (i) : vector length */
-);
-
-void Set_zero(
- Word16 x[], /* (o) : vector to clear */
- Word16 L /* (i) : length of vector */
-);
-
-Word16 Random(Word16 *seed);
-
diff --git a/branches/1.0/thirdparties/win32/include/g729b/octet.h b/branches/1.0/thirdparties/win32/include/g729b/octet.h
deleted file mode 100644
index a96d173..0000000
--- a/branches/1.0/thirdparties/win32/include/g729b/octet.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- ITU-T G.729A Annex B ANSI-C Source Code
- Version 1.3 Last modified: August 1997
- Copyright (c) 1996, France Telecom, Rockwell International,
- Universite de Sherbrooke.
- All rights reserved.
-*/
-
-/* Definition for Octet Transmission mode */
-/* When Annex B is used for transmission systems that operate on octet boundary,
- an extra bit (with value zero) will be packed at the end of a SID bit stream.
- This will change the number of bits in a SID bit stream from 15 bits to
- 16 bits (i.e., 2 bytes).
-*/
-
-#define OCTET_TX_MODE
-#define RATE_SID_OCTET 16 /* number of bits in Octet Transmission mode */
-
-
-
diff --git a/branches/1.0/thirdparties/win32/include/g729b/oper_32b.h b/branches/1.0/thirdparties/win32/include/g729b/oper_32b.h
deleted file mode 100644
index dbb8ebe..0000000
--- a/branches/1.0/thirdparties/win32/include/g729b/oper_32b.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- ITU-T G.729A Speech Coder ANSI-C Source Code
- Version 1.1 Last modified: September 1996
-
- Copyright (c) 1996,
- AT&T, France Telecom, NTT, Universite de Sherbrooke, Lucent Technologies
- All rights reserved.
-*/
-
-/* Double precision operations */
-
-void L_Extract(Word32 L_32, Word16 *hi, Word16 *lo);
-Word32 L_Comp(Word16 hi, Word16 lo);
-Word32 Mpy_32(Word16 hi1, Word16 lo1, Word16 hi2, Word16 lo2);
-Word32 Mpy_32_16(Word16 hi, Word16 lo, Word16 n);
-Word32 Div_32(Word32 L_num, Word16 denom_hi, Word16 denom_lo);
-
diff --git a/branches/1.0/thirdparties/win32/include/g729b/sid.h b/branches/1.0/thirdparties/win32/include/g729b/sid.h
deleted file mode 100644
index 477e1ea..0000000
--- a/branches/1.0/thirdparties/win32/include/g729b/sid.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- ITU-T G.729A Annex B ANSI-C Source Code
- Version 1.3 Last modified: August 1997
- Copyright (c) 1996, France Telecom, Rockwell International,
- Universite de Sherbrooke.
- All rights reserved.
-*/
-
-#define TRUE 1
-#define FALSE 0
-#define sqr(a) ((a)*(a))
-#define R_LSFQ 10
-
-void Init_lsfq_noise(void);
-void lsfq_noise(Word16 *lsp_new, Word16 *lspq,
- Word16 freq_prev[MA_NP][M], Word16 *idx);
-void sid_lsfq_decode(Word16 *index, Word16 *lspq,
- Word16 freq_prev[MA_NP][M]);
-
-
-
-
-
diff --git a/branches/1.0/thirdparties/win32/include/g729b/tab_dtx.h b/branches/1.0/thirdparties/win32/include/g729b/tab_dtx.h
deleted file mode 100644
index 08711fc..0000000
--- a/branches/1.0/thirdparties/win32/include/g729b/tab_dtx.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- ITU-T G.729A Annex B ANSI-C Source Code
- Version 1.3 Last modified: August 1997
- Copyright (c) 1996, France Telecom, Rockwell International,
- Universite de Sherbrooke.
- All rights reserved.
-*/
-
-/* VAD constants */
-extern Word16 lbf_corr[NP+1];
-extern Word16 shift_fx[33];
-extern Word16 factor_fx[33];
-
-/* SID LSF quantization */
-extern Word16 noise_fg[MODE][MA_NP][M];
-extern Word16 noise_fg_sum[MODE][M];
-extern Word16 noise_fg_sum_inv[MODE][M];
-extern Word16 PtrTab_1[32];
-extern Word16 PtrTab_2[2][16];
-extern Word16 Mp[MODE];
-
-/* SID gain quantization */
-extern Word16 fact[NB_GAIN+1];
-extern Word16 marg[NB_GAIN+1];
-extern Word16 tab_Sidgain[32];
-
-
-
diff --git a/branches/1.0/thirdparties/win32/include/g729b/tab_ld8a.h b/branches/1.0/thirdparties/win32/include/g729b/tab_ld8a.h
deleted file mode 100644
index c2d9cc6..0000000
--- a/branches/1.0/thirdparties/win32/include/g729b/tab_ld8a.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- ITU-T G.729A Speech Coder with Annex B ANSI-C Source Code
- Version 1.3 Last modified: August 1997
-
- Copyright (c) 1996,
- AT&T, France Telecom, NTT, Universite de Sherbrooke, Lucent Technologies,
- Rockwell International
- All rights reserved.
-*/
-
-extern Word16 hamwindow[L_WINDOW];
-extern Word16 lag_h[M+2];
-extern Word16 lag_l[M+2];
-extern Word16 table[65];
-extern Word16 slope[64];
-extern Word16 table2[64];
-extern Word16 slope_cos[64];
-extern Word16 slope_acos[64];
-extern Word16 lspcb1[NC0][M];
-extern Word16 lspcb2[NC1][M];
-extern Word16 fg[2][MA_NP][M];
-extern Word16 fg_sum[2][M];
-extern Word16 fg_sum_inv[2][M];
-extern Word16 grid[GRID_POINTS+1];
-extern Word16 freq_prev_reset[M];
-extern Word16 inter_3l[FIR_SIZE_SYN];
-extern Word16 pred[4];
-extern Word16 gbk1[NCODE1][2];
-extern Word16 gbk2[NCODE2][2];
-extern Word16 map1[NCODE1];
-extern Word16 map2[NCODE2];
-extern Word16 coef[2][2];
-extern Word32 L_coef[2][2];
-extern Word16 thr1[NCODE1-NCAN1];
-extern Word16 thr2[NCODE2-NCAN2];
-extern Word16 imap1[NCODE1];
-extern Word16 imap2[NCODE2];
-extern Word16 b100[3];
-extern Word16 a100[3];
-extern Word16 b140[3];
-extern Word16 a140[3];
-extern Word16 bitsno[PRM_SIZE];
-extern Word16 bitsno2[4];
-extern Word16 tabpow[33];
-extern Word16 tablog[33];
-extern Word16 tabsqr[49];
-extern Word16 tab_zone[PIT_MAX+L_INTERPOL-1];
-
-
-
-
-
diff --git a/branches/1.0/thirdparties/win32/include/g729b/typedef.h b/branches/1.0/thirdparties/win32/include/g729b/typedef.h
deleted file mode 100644
index 7408f8f..0000000
--- a/branches/1.0/thirdparties/win32/include/g729b/typedef.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- ITU-T G.729A Speech Coder ANSI-C Source Code
- Version 1.1 Last modified: September 1996
-
- Copyright (c) 1996,
- AT&T, France Telecom, NTT, Universite de Sherbrooke, Lucent Technologies
- All rights reserved.
-*/
-
-/* WARNING: Make sure that the proper flags are defined for your system */
-
-/*
- Types definitions
-*/
-
-#if defined(__BORLANDC__) || defined (__WATCOMC__) || defined(_MSC_VER) || defined(__ZTC__) || defined(__HIGHC__)
-typedef long int Word32 ;
-typedef short int Word16 ;
-typedef short int Flag ;
-#elif defined( __sun)
-typedef short Word16;
-typedef long Word32;
-typedef int Flag;
-#elif defined(__unix__) || defined(__unix)
-typedef short Word16;
-typedef int Word32;
-typedef int Flag;
-#elif defined(VMS) || defined(__VMS)
-typedef short Word16;
-typedef long Word32;
-typedef int Flag;
-#else
-#error COMPILER NOT TESTED typedef.h needs to be updated, see readme
-#endif
-
diff --git a/branches/1.0/thirdparties/win32/include/g729b/vad.h b/branches/1.0/thirdparties/win32/include/g729b/vad.h
deleted file mode 100644
index c598e9b..0000000
--- a/branches/1.0/thirdparties/win32/include/g729b/vad.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- ITU-T G.729A Annex B ANSI-C Source Code
- Version 1.3 Last modified: August 1997
- Copyright (c) 1996, France Telecom, Rockwell International,
- Universite de Sherbrooke.
- All rights reserved.
-*/
-
-#define NP 12 /* Increased LPC order */
-#define NOISE 0
-#define VOICE 1
-#define INIT_FRAME 32
-#define INIT_COUNT 20
-#define ZC_START 120
-#define ZC_END 200
-
-void vad_init(void);
-
-void vad(
- Word16 rc,
- Word16 *lsf,
- Word16 *r_h,
- Word16 *r_l,
- Word16 exp_R0,
- Word16 *sigpp,
- Word16 frm_count,
- Word16 prev_marker,
- Word16 pprev_marker,
- Word16 *marker);
-
OpenPOWER on IntegriCloud