dec_gain.h
上传用户:dangjiwu
上传日期:2013-07-19
资源大小:42019k
文件大小:1k
源码类别:

Symbian

开发平台:

Visual C++

  1. /*
  2.  *===================================================================
  3.  *  3GPP AMR Wideband Floating-point Speech Codec
  4.  *===================================================================
  5.  */
  6. #ifndef DEC_GAIN_H
  7. #define DEC_GAIN_H
  8. #include "typedef.h"
  9. void D_GAIN_init(Word16 *mem);
  10. void D_GAIN_decode(Word16 index, Word16 nbits, Word16 code[], Word16 *gain_pit,
  11.                    Word32 *gain_cod, Word16 bfi, Word16 prev_bfi,
  12.                    Word16 state, Word16 unusable_frame, Word16 vad_hist,
  13.                    Word16 *mem);
  14. void D_GAIN_adaptive_control(Word16 *sig_in, Word16 *sig_out, Word16 l_trm);
  15. void D_GAIN_lag_concealment_init(Word16 lag_hist[]);
  16. void D_GAIN_lag_concealment(Word16 gain_hist[], Word16 lag_hist[], Word32 *T0,
  17.                             Word16 *old_T0, Word16 *seed,
  18.                             Word16 unusable_frame);
  19. void D_GAIN_adaptive_codebook_excitation(Word16 exc[], Word32 T0, Word32 frac);
  20. void D_GAIN_pitch_sharpening(Word16 *x, Word32 pit_lag, Word16 sharp);
  21. Word16 D_GAIN_find_voice_factor(Word16 exc[], Word16 Q_exc, Word16 gain_pit,
  22.                                Word16 code[], Word16 gain_code,
  23.                                Word16 L_subfr);
  24. #endif