spreproc.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 : spreproc.h
  11. * Purpose : Subframe preprocessing
  12. *
  13. ********************************************************************************
  14. */
  15. #ifndef spreproc_h
  16. #define spreproc_h "$Id $"
  17. /*
  18. ********************************************************************************
  19. * INCLUDE FILES
  20. ********************************************************************************
  21. */
  22. #include "cnst.h"
  23. #include "mode.h"
  24. #include "typedef.h"
  25. /*
  26. ********************************************************************************
  27. * DECLARATION OF PROTOTYPES
  28. ********************************************************************************
  29. */
  30. int subframePreProc(
  31. enum Mode mode, /* i : coder mode */
  32. const Word16 gamma1[], /* i : spectral exp. factor 1 */
  33. const Word16 gamma1_12k2[],/* i : spectral exp. factor 1 for EFR */
  34. const Word16 gamma2[], /* i : spectral exp. factor 2 */
  35. Word16 *A, /* i : A(z) unquantized for the 4 subframes */
  36. Word16 *Aq, /* i : A(z) quantized for the 4 subframes */
  37. Word16 *speech, /* i : speech segment */
  38. Word16 *mem_err, /* i : pointer to error signal */
  39. Word16 *mem_w0, /* i : memory of weighting filter */
  40. Word16 *zero, /* i : pointer to zero vector */
  41. Word16 ai_zero[], /* o : history of weighted synth. filter */
  42. Word16 exc[], /* o : long term prediction residual */
  43. Word16 h1[], /* o : impulse response */
  44. Word16 xn[], /* o : target vector for pitch search */
  45. Word16 res2[], /* o : long term prediction residual */
  46. Word16 error[] /* o : error of LPC synthesis filter */
  47. );
  48. #endif