dec_util.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_UTIL_H
  7. #define DEC_UTIL_H
  8. #include "typedef.h"
  9. #include "dec_main.h"
  10. Word16 D_UTIL_random(Word16 *seed);
  11. Word32 D_UTIL_pow2(Word16 exponant, Word16 fraction);
  12. Word16 D_UTIL_norm_l (Word32 L_var1);
  13. Word16 D_UTIL_norm_s (Word16 var1);
  14. Word32 D_UTIL_dot_product12(Word16 x[], Word16 y[], Word16 lg, Word16 *exp);
  15. void D_UTIL_normalised_inverse_sqrt(Word32 *frac, Word16 *exp);
  16. Word32 D_UTIL_inverse_sqrt(Word32 L_x);
  17. void D_UTIL_log2(Word32 L_x, Word16 *exponent, Word16 *fraction);
  18. void D_UTIL_l_extract(Word32 L_32, Word16 *hi, Word16 *lo);
  19. Word32 D_UTIL_mpy_32_16 (Word16 hi, Word16 lo, Word16 n);
  20. Word32 D_UTIL_mpy_32 (Word16 hi1, Word16 lo1, Word16 hi2, Word16 lo2);
  21. Word16 D_UTIL_saturate(Word32 inp);
  22. void D_UTIL_signal_up_scale(Word16 x[], Word16 lg, Word16 exp);
  23. void D_UTIL_signal_down_scale(Word16 x[], Word16 lg, Word16 exp);
  24. void D_UTIL_dec_synthesis(Word16 Aq[], Word16 exc[], Word16 Q_new,
  25.                           Word16 synth16k[], Word16 prms, Word16 HfIsf[],
  26.                           Word16 mode, Word16 newDTXState, Word16 bfi,
  27.                           Decoder_State *st);
  28. void D_UTIL_preemph(Word16 x[], Word16 mu, Word16 lg, Word16 *mem);
  29. #endif