cor_h.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 : cor_h.h
  11. * Purpose : correlation functions for codebook search
  12. *
  13. *****************************************************************************
  14. */
  15. /*
  16. *****************************************************************************
  17. * MODULE INCLUDE FILE AND VERSION ID
  18. *****************************************************************************
  19. */
  20. #ifndef cor_h_h
  21. #define cor_h_h "@(#)$Id $"
  22. /*
  23. *****************************************************************************
  24. * INCLUDE FILES
  25. *****************************************************************************
  26. */
  27. #include "typedef.h"
  28. #include "cnst.h"
  29. /*
  30. *****************************************************************************
  31. * DECLARATION OF PROTOTYPES
  32. *****************************************************************************
  33. */
  34. void cor_h_x_ex (
  35. Word16 h[], /* (i) : impulse response of weighted synthesis filter */
  36. Word16 x[], /* (i) : target */
  37. Word16 dn[], /* (o) : correlation between target and h[] */
  38. Word16 sf /* (i) : scaling factor: 2 for 12.2, 1 for 7.4 */
  39. );
  40. void cor_h_x2 (
  41. Word16 h[], /* (i) : impulse response of weighted synthesis filter */
  42. Word16 x[], /* (i) : target */
  43. Word16 dn[], /* (o) : correlation between target and h[] */
  44. Word16 sf, /* (i) : scaling factor: 2 for 12.2, 1 for 7.4 */
  45. Word16 nb_track,/* (i) : the number of ACB tracks */
  46. Word16 step /* (i) : step size from one pulse position to the next
  47. in one track */
  48. );
  49. void cor_h (
  50. Word16 h[], /* (i) : impulse response of weighted synthesis filter */
  51. Word16 sign[], /* (i) : sign of d[n] */
  52. Word16 rr[][L_CODE] /* (o) : matrix of autocorrelation */
  53. );
  54. #endif