pre_proc.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 : pre_proc.h
  11. * Purpose : Preprocessing of input speech.
  12. *
  13. ********************************************************************************
  14. */
  15. #ifndef pre_proc_h
  16. #define pre_proc_h "$Id $"
  17. /*
  18. ********************************************************************************
  19. * INCLUDE FILES
  20. ********************************************************************************
  21. */
  22. #include "typedef.h"
  23. /*
  24. ********************************************************************************
  25. * LOCAL VARIABLES AND TABLES
  26. ********************************************************************************
  27. */
  28. /*
  29. ********************************************************************************
  30. * DEFINITION OF DATA TYPES
  31. ********************************************************************************
  32. */
  33. typedef struct {
  34. Word16 y2_hi;
  35. Word16 y2_lo;
  36. Word16 y1_hi;
  37. Word16 y1_lo;
  38. Word16 x0;
  39. Word16 x1;
  40. } Pre_ProcessState;
  41. /*
  42. ********************************************************************************
  43. * DECLARATION OF PROTOTYPES
  44. ********************************************************************************
  45. */
  46. int Pre_Process_init (Pre_ProcessState **st);
  47. /* initialize one instance of the pre processing state.
  48. Stores pointer to filter status struct in *st. This pointer has to
  49. be passed to Pre_Process in each call.
  50. returns 0 on success
  51. */
  52. int Pre_Process_reset (Pre_ProcessState *st);
  53. /* reset of pre processing state (i.e. set state memory to zero)
  54. returns 0 on success
  55. */
  56. void Pre_Process_exit (Pre_ProcessState **st);
  57. /* de-initialize pre processing state (i.e. free status struct)
  58. stores NULL in *st
  59. */
  60. int Pre_Process (
  61. Pre_ProcessState *st,
  62. Word16 signal[], /* Input/output signal */
  63. Word16 lg /* Lenght of signal */
  64. );
  65. #endif