ex_ctrl.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 : ex_ctrl.h
  11. * Purpose : Excitation Control module in background noise
  12. *
  13. ********************************************************************************
  14. */
  15. #ifndef ex_ctrl_h
  16. #define ex_ctrl_h "$Id $"
  17. /*
  18. ********************************************************************************
  19. * INCLUDE FILES
  20. ********************************************************************************
  21. */
  22. #include "typedef.h"
  23. #include "cnst.h"
  24. /*
  25. ********************************************************************************
  26. * LOCAL VARIABLES AND TABLES
  27. ********************************************************************************
  28. */
  29. #define L_ENERGYHIST 60
  30. /*
  31. ********************************************************************************
  32. * DEFINITION OF DATA TYPES
  33. ********************************************************************************
  34. */
  35. /*
  36. ********************************************************************************
  37. * DECLARATION OF PROTOTYPES
  38. ********************************************************************************
  39. */
  40. /*
  41. **************************************************************************
  42. *
  43. * Function : Ex_ctrl
  44. * Purpose : Charaterice synthesis speech and detect background noise
  45. * Returns : background noise decision; 0 = bgn, 1 = no bgn
  46. *
  47. **************************************************************************
  48. */
  49. Word16 Ex_ctrl (Word16 excitation[], /*i/o: Current subframe excitation */
  50. Word16 excEnergy, /* i : Exc. Energy, sqrt(totEx*totEx)*/
  51. Word16 exEnergyHist[], /* i : History of subframe energies */
  52. Word16 voicedHangover, /* i : # of fr. after last voiced fr.*/
  53. Word16 prevBFI, /* i : Set i previous BFI */
  54. Word16 carefulFlag /* i : Restrict dymamic in scaling */
  55. );
  56. #endif