int_lsf.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 : int_lsf.h
  11. * Purpose : Interpolates the LSFs
  12. *
  13. ********************************************************************************
  14. */
  15. #ifndef int_lsf_h
  16. #define int_lsf_h "$Id $"
  17. /*
  18. ********************************************************************************
  19. * INCLUDE FILES
  20. ********************************************************************************
  21. */
  22. #include "typedef.h"
  23. /*
  24. ********************************************************************************
  25. * DEFINITION OF DATA TYPES
  26. ********************************************************************************
  27. */
  28. /*
  29. ********************************************************************************
  30. * DECLARATION OF PROTOTYPES
  31. ********************************************************************************
  32. */
  33. /*
  34. **************************************************************************
  35. *
  36. * Function : Int_lsf
  37. * Purpose : Interpolates the LSFs for selected subframe
  38. * Description : The 20 ms speech frame is divided into 4 subframes.
  39. * The LSFs are interpolated at the 1st, 2nd and 3rd
  40. * subframe and only forwarded at the 4th subframe.
  41. *
  42. * |------|------|------|------|
  43. * sf1 sf2 sf3 sf4
  44. * F0 F1
  45. *
  46. * sf1: 3/4 F0 + 1/4 F1 sf3: 1/4 F0 + 3/4 F1
  47. * sf2: 1/2 F0 + 1/2 F1 sf4: F1
  48. * Returns : void
  49. *
  50. **************************************************************************
  51. */
  52. void Int_lsf (
  53. Word16 lsf_old[], /* i : LSF vector at the 4th SF of past frame */
  54. Word16 lsf_new[], /* i : LSF vector at the 4th SF of present frame */
  55. Word16 i_subfr, /* i : Pointer to current sf (equal to 0,40,80 or 120) */
  56. Word16 lsf_out[] /* o : interpolated LSF parameters for current sf */
  57. );
  58. #endif