post_pro.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 : post_pro.h
  11. * Purpose : Postprocessing of output speech.
  12. *
  13. * - 2nd order high pass filtering with cut
  14. * off frequency at 60 Hz.
  15. * - Multiplication of output by two.
  16. *
  17. ********************************************************************************
  18. */
  19. #ifndef post_pro_h
  20. #define post_pro_h "$Id $"
  21. /*
  22. ********************************************************************************
  23. * INCLUDE FILES
  24. ********************************************************************************
  25. */
  26. #include "typedef.h"
  27. /*
  28. ********************************************************************************
  29. * LOCAL VARIABLES AND TABLES
  30. ********************************************************************************
  31. */
  32. /*
  33. ********************************************************************************
  34. * DEFINITION OF DATA TYPES
  35. ********************************************************************************
  36. */
  37. typedef struct {
  38. Word16 y2_hi;
  39. Word16 y2_lo;
  40. Word16 y1_hi;
  41. Word16 y1_lo;
  42. Word16 x0;
  43. Word16 x1;
  44. } Post_ProcessState;
  45. /*
  46. ********************************************************************************
  47. * DECLARATION OF PROTOTYPES
  48. ********************************************************************************
  49. */
  50. int Post_Process_init (Post_ProcessState **st);
  51. /* initialize one instance of the Post processing state.
  52. Stores pointer to filter status struct in *st. This pointer has to
  53. be passed to Post_Process in each call.
  54. returns 0 on success
  55. */
  56. int Post_Process_reset (Post_ProcessState *st);
  57. /* reset of Post processing state (i.e. set state memory to zero)
  58. returns 0 on success
  59. */
  60. void Post_Process_exit (Post_ProcessState **st);
  61. /* de-initialize Post processing state (i.e. free status struct)
  62. stores NULL in *st
  63. */
  64. int Post_Process (
  65. Post_ProcessState *st, /* i/o : post process state */
  66. Word16 signal[], /* i/o : signal */
  67. Word16 lg /* i : lenght of signal */
  68. );
  69. #endif