dec_gain.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 : dec_gain.h
  11. * Purpose : Decode the pitch and codebook gains
  12. *
  13. ********************************************************************************
  14. */
  15. #ifndef dec_gain_h
  16. #define dec_gain_h "$Id $"
  17. /*
  18. ********************************************************************************
  19. * INCLUDE FILES
  20. ********************************************************************************
  21. */
  22. #include "typedef.h"
  23. #include "gc_pred.h"
  24. #include "mode.h"
  25. /*
  26. ********************************************************************************
  27. * DECLARATION OF PROTOTYPES
  28. ********************************************************************************
  29. */
  30. /*************************************************************************
  31. *
  32. * FUNCTION: Dec_gain()
  33. *
  34. * PURPOSE: Decode the pitch and codebook gains
  35. *
  36. ************************************************************************/
  37. void Dec_gain(
  38. gc_predState *pred_state, /* i/o: MA predictor state */
  39. enum Mode mode, /* i : AMR mode */
  40. Word16 index, /* i : index of quantization. */
  41. Word16 code[], /* i : Innovative vector. */
  42. Word16 evenSubfr, /* i : Flag for even subframes */
  43. Word16 * gain_pit, /* o : Pitch gain. */
  44. Word16 * gain_cod /* o : Code gain. */
  45. );
  46. #endif