hp_max.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 : hp_max.h
  11. * Purpose : Find the maximum correlation of scal_sig[] in a given
  12. * delay range.
  13. *
  14. ********************************************************************************
  15. */
  16. #ifndef hp_max_h
  17. #define hp_max_h "$Id $"
  18. /*
  19. ********************************************************************************
  20. * INCLUDE FILES
  21. ********************************************************************************
  22. */
  23. #include "typedef.h"
  24. /*
  25. ********************************************************************************
  26. * DECLARATION OF PROTOTYPES
  27. ********************************************************************************
  28. */
  29. /*************************************************************************
  30. *
  31. * FUNCTION: hp_max
  32. *
  33. * PURPOSE: Find the maximum high-pass filtered correlation of
  34. * signal scal_sig[] in a given delay range.
  35. *
  36. * DESCRIPTION:
  37. * The correlation is given by
  38. * corr[t] = <scal_sig[n],scal_sig[n-t]>, t=lag_min,...,lag_max
  39. * The functions outputs the maximum high-pass filtered correlation
  40. * after normalization.
  41. *
  42. *************************************************************************/
  43. Word16 hp_max (
  44. Word32 corr[], /* i : correlation vector. */
  45. Word16 scal_sig[], /* i : scaled signal. */
  46. Word16 L_frame, /* i : length of frame to compute pitch */
  47. Word16 lag_max, /* i : maximum lag */
  48. Word16 lag_min, /* i : minimum lag */
  49. Word16 *cor_hp_max /* o : max high-pass filtered norm. correlation */
  50. );
  51. #endif