set_sign.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 : set_sign.h
  11. * Purpose : Builds sign vector according to "dn[]" and "cn[]".
  12. *
  13. ********************************************************************************
  14. */
  15. /*
  16. ********************************************************************************
  17. * MODULE INCLUDE FILE AND VERSION ID
  18. ********************************************************************************
  19. */
  20. #ifndef set_sign_h
  21. #define set_sign_h "@(#)$Id $"
  22. /*
  23. ********************************************************************************
  24. * INCLUDE FILES
  25. ********************************************************************************
  26. */
  27. #include "typedef.h"
  28. /*
  29. ********************************************************************************
  30. * DECLARATION OF PROTOTYPES
  31. ********************************************************************************
  32. */
  33. void set_sign(Word16 dn[], /* i/o : correlation between target and h[] */
  34. Word16 sign[], /* o : sign of dn[] */
  35. Word16 dn2[], /* o : maximum of correlation in each track. */
  36. Word16 n /* i : # of maximum correlations in dn2[] */
  37. );
  38. void set_sign12k2 (
  39. Word16 dn[], /* i/o : correlation between target and h[] */
  40. Word16 cn[], /* i : residual after long term prediction */
  41. Word16 sign[], /* o : sign of d[n] */
  42. Word16 pos_max[], /* o : position of maximum correlation */
  43. Word16 nb_track, /* i : number of tracks tracks */
  44. Word16 ipos[], /* o : starting position for each pulse */
  45. Word16 step /* i : the step size in the tracks */
  46. );
  47. #endif