q_gain_p.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 : q_gain_p.h
  11. * Purpose : Scalar quantization of the pitch gain
  12. *
  13. ********************************************************************************
  14. */
  15. #ifndef q_gain_p_h
  16. #define q_gain_p_h "$Id $"
  17. /*
  18. ********************************************************************************
  19. * INCLUDE FILES
  20. ********************************************************************************
  21. */
  22. #include "typedef.h"
  23. #include "mode.h"
  24. /*
  25. ********************************************************************************
  26. * DEFINITION OF DATA TYPES
  27. ********************************************************************************
  28. */
  29. /*
  30. ********************************************************************************
  31. * DECLARATION OF PROTOTYPES
  32. ********************************************************************************
  33. */
  34. Word16 q_gain_pitch ( /* Return index of quantization */
  35. enum Mode mode, /* i : AMR mode */
  36. Word16 gp_limit, /* i : pitch gain limit */
  37. Word16 *gain, /* i/o: Pitch gain (unquant/quant), Q14 */
  38. Word16 gain_cand[], /* o : pitch gain candidates (3), MR795 only, Q14 */
  39. Word16 gain_cind[] /* o : pitch gain cand. indices (3),MR795 only, Q0 */
  40. );
  41. #endif