g_pitch.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 : g_pitch.h
  11. * Purpose : Compute the pitch (adaptive codebook) gain.
  12. *
  13. ********************************************************************************
  14. */
  15. #ifndef g_pitch_h
  16. #define g_pitch_h "$Id $"
  17. /*
  18. ********************************************************************************
  19. * INCLUDE FILES
  20. ********************************************************************************
  21. */
  22. #include "typedef.h"
  23. #include "mode.h"
  24. /*
  25. ********************************************************************************
  26. * DECLARATION OF PROTOTYPES
  27. ********************************************************************************
  28. */
  29. Word16 G_pitch ( /* o : Gain of pitch lag saturated to 1.2 */
  30. enum Mode mode, /* i : AMR mode */
  31. Word16 xn[], /* i : Pitch target. */
  32. Word16 y1[], /* i : Filtered adaptive codebook. */
  33. Word16 g_coeff[], /* i : Correlations need for gain quantization.
  34. (7.4 only). Pass NULL if not needed */
  35. Word16 L_subfr /* i : Length of subframe. */
  36. );
  37. #endif