d_gain_p.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 : d_gain_p.h
  11. * Purpose : Decodes the pitch gain using the received index.
  12. *
  13. ********************************************************************************
  14. */
  15. #ifndef d_gain_p_h
  16. #define d_gain_p_h "$Id $"
  17. /*
  18. ********************************************************************************
  19. * INCLUDE FILES
  20. ********************************************************************************
  21. */
  22. #include "typedef.h"
  23. #include "mode.h"
  24. /*
  25. **************************************************************************
  26. *
  27. * Function : d_gain_pitch
  28. * Purpose : Decodes the pitch gain using the received index.
  29. * Description : In case of no frame erasure, the gain is obtained
  30. * from the quantization table at the given index;
  31. * otherwise, a downscaled past gain is used.
  32. * Returns : Quantized pitch gain
  33. *
  34. **************************************************************************
  35. */
  36. Word16 d_gain_pitch ( /* return value: gain (Q14) */
  37. enum Mode mode, /* i : AMR mode */
  38. Word16 index /* i : index of quantization */
  39. );
  40. #endif