calc_cor.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. ********************************************************************************
  3. *
  4. * GSM AMR-NB speech codec R98 Version 7.6.0 December 12, 2001
  5. * R99 Version 3.3.0
  6. * REL-4 Version 4.1.0
  7. *
  8. ********************************************************************************
  9. *
  10. * File : calc_cor.h
  11. * Purpose : Calculate all correlations for prior the OL LTP
  12. *
  13. ********************************************************************************
  14. */
  15. #ifndef calc_cor_h
  16. #define calc_cor_h "$Id $"
  17. /*
  18. ********************************************************************************
  19. * INCLUDE FILES
  20. ********************************************************************************
  21. */
  22. #include "typedef.h"
  23. /*
  24. ********************************************************************************
  25. * DECLARATION OF PROTOTYPES
  26. ********************************************************************************
  27. */
  28. /*************************************************************************
  29. *
  30. * FUNCTION: comp_corr
  31. *
  32. * PURPOSE: Calculate all correlations of scal_sig[] in a given delay
  33. * range.
  34. *
  35. * DESCRIPTION:
  36. * The correlation is given by
  37. * cor[t] = <scal_sig[n], scal_sig[n-t]>, t=lag_min,...,lag_max
  38. * The functions outputs all correlations in the given range
  39. *
  40. *************************************************************************/
  41. void comp_corr (Word16 scal_sig[], /* i : scaled signal. */
  42. Word16 L_frame, /* i : length of frame to compute pitch */
  43. Word16 lag_max, /* i : maximum lag */
  44. Word16 lag_min, /* i : minimum lag */
  45. Word32 corr[] /* o : correlation of selected lag */
  46. );
  47. #endif