dec_gain.h
上传用户:dangjiwu
上传日期:2013-07-19
资源大小:42019k
文件大小:1k
- /*
- *===================================================================
- * 3GPP AMR Wideband Floating-point Speech Codec
- *===================================================================
- */
- #ifndef DEC_GAIN_H
- #define DEC_GAIN_H
- #include "typedef.h"
- void D_GAIN_init(Word16 *mem);
- void D_GAIN_decode(Word16 index, Word16 nbits, Word16 code[], Word16 *gain_pit,
- Word32 *gain_cod, Word16 bfi, Word16 prev_bfi,
- Word16 state, Word16 unusable_frame, Word16 vad_hist,
- Word16 *mem);
- void D_GAIN_adaptive_control(Word16 *sig_in, Word16 *sig_out, Word16 l_trm);
- void D_GAIN_lag_concealment_init(Word16 lag_hist[]);
- void D_GAIN_lag_concealment(Word16 gain_hist[], Word16 lag_hist[], Word32 *T0,
- Word16 *old_T0, Word16 *seed,
- Word16 unusable_frame);
- void D_GAIN_adaptive_codebook_excitation(Word16 exc[], Word32 T0, Word32 frac);
- void D_GAIN_pitch_sharpening(Word16 *x, Word32 pit_lag, Word16 sharp);
- Word16 D_GAIN_find_voice_factor(Word16 exc[], Word16 Q_exc, Word16 gain_pit,
- Word16 code[], Word16 gain_code,
- Word16 L_subfr);
- #endif