spstproc.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 : subframePostProc.h
  11. * Purpose : Subframe post processing
  12. *
  13. ********************************************************************************
  14. */
  15. #ifndef spstproc_h
  16. #define spstproc_h "$Id $"
  17. /*
  18. ********************************************************************************
  19. * INCLUDE FILES
  20. ********************************************************************************
  21. */
  22. #include "typedef.h"
  23. #include "mode.h"
  24. /*
  25. ********************************************************************************
  26. * LOCAL VARIABLES AND TABLES
  27. ********************************************************************************
  28. */
  29. /*
  30. ********************************************************************************
  31. * PUBLIC PROGRAM CODE
  32. ********************************************************************************
  33. */
  34. int subframePostProc(
  35. Word16 *speech, /* i : speech segment */
  36. enum Mode mode, /* i : coder mode */
  37. Word16 i_subfr, /* i : Subframe nr */
  38. Word16 gain_pit, /* i : Pitch gain Q14 */
  39. Word16 gain_code, /* i : Decoded innovation gain */
  40. Word16 *Aq, /* i : A(z) quantized for the 4 subframes */
  41. Word16 synth[], /* i : Local snthesis */
  42. Word16 xn[], /* i : Target vector for pitch search */
  43. Word16 code[], /* i : Fixed codebook exitation */
  44. Word16 y1[], /* i : Filtered adaptive exitation */
  45. Word16 y2[], /* i : Filtered fixed codebook excitation */
  46. Word16 *mem_syn, /* i/o : memory of synthesis filter */
  47. Word16 *mem_err, /* o : pointer to error signal */
  48. Word16 *mem_w0, /* o : memory of weighting filter */
  49. Word16 *exc, /* o : long term prediction residual */
  50. Word16 *sharp /* o : pitch sharpening value */
  51. );
  52. #endif