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

Symbian

开发平台:

Visual C++

  1. /*
  2.  *===================================================================
  3.  *  3GPP AMR Wideband Floating-point Speech Codec
  4.  *===================================================================
  5.  */
  6. #ifndef ENC_GAIN_H
  7. #define ENC_GAIN_H
  8. #include "typedef.h"
  9. void E_GAIN_clip_init(Float32 mem[]);
  10. Word32 E_GAIN_clip_test(Float32 mem[]);
  11. void E_GAIN_clip_isf_test(Float32 isf[], Float32 mem[]);
  12. void E_GAIN_clip_pit_test(Float32 gain_pit, Float32 mem[]);
  13. void E_GAIN_lp_decim2(Float32 x[], Word32 l, Float32 *mem);
  14. Word32 E_GAIN_olag_median(Word32 prev_ol_lag, Word32 old_ol_lag[5]);
  15. Word32 E_GAIN_open_loop_search(Float32 *wsp, Word32 L_min, Word32 L_max,
  16.                                Word32 nFrame, Word32 L_0, Float32 *gain,
  17.                                Float32 *mem, Float32 hp_old_wsp[],
  18.                                UWord8 weight_flg);
  19. Word32 E_GAIN_closed_loop_search(Float32 exc[], Float32 xn[], Float32 h[],
  20.                                  Word32 t0_min, Word32 t0_max,
  21.                                  Word32 *pit_frac, Word32 i_subfr,
  22.                                  Word32 t0_fr2, Word32 t0_fr1);
  23. void E_GAIN_adaptive_codebook_excitation(Word16 exc[], Word16 T0, Word32 frac,
  24.                                          Word16 L_subfr);
  25. void E_GAIN_pitch_sharpening(Word16 *x, Word16 pit_lag);
  26. void E_GAIN_f_pitch_sharpening(Float32 *x, Word32 pit_lag);
  27. Word32 E_GAIN_voice_factor(Word16 exc[], Word16 Q_exc, Word16 gain_pit,
  28.                            Word16 code[], Word16 gain_code);
  29. #endif