summaryrefslogtreecommitdiffstats
path: root/thirdparties/android/common/include/g729b/dtx.h
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparties/android/common/include/g729b/dtx.h')
-rwxr-xr-xthirdparties/android/common/include/g729b/dtx.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/thirdparties/android/common/include/g729b/dtx.h b/thirdparties/android/common/include/g729b/dtx.h
index d0cc6ac..c8af076 100755
--- a/thirdparties/android/common/include/g729b/dtx.h
+++ b/thirdparties/android/common/include/g729b/dtx.h
@@ -13,36 +13,36 @@
/* 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 */
+ 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 */
+ 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 */
+ 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 */
+ 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 */
@@ -54,16 +54,16 @@ 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 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);
@@ -92,7 +92,7 @@ Word16 read_frame(FILE *f_serial, Word16 *parm);
#define RATE_0 0 /* 0 bit/s rate */
/* CNG excitation generation constant */
- /* alpha = 0.5 */
+/* alpha = 0.5 */
#define FRAC1 19043 /* (sqrt(40)xalpha/2 - 1) * 32768 */
#define K0 24576 /* (1 - alpha ** 2) in Q15 */
#define G_MAX 5000
OpenPOWER on IntegriCloud