enc_lag3.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 : enc_lag3.h
  11. * Purpose : Encoding of fractional pitch lag with 1/3 resolution.
  12. *
  13. ********************************************************************************
  14. */
  15. #ifndef enc_lag3_h
  16. #define enc_lag3_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. Word16
  34. Enc_lag3( /* o : Return index of encoding */
  35. Word16 T0, /* i : Pitch delay */
  36. Word16 T0_frac, /* i : Fractional pitch delay */
  37. Word16 T0_prev, /* i : Integer pitch delay of last subframe */
  38. Word16 T0_min, /* i : minimum of search range */
  39. Word16 T0_max, /* i : maximum of search range */
  40. Word16 delta_flag, /* i : Flag for 1st (or 3rd) subframe */
  41. Word16 flag4 /* i : Flag for encoding with 4 bits */
  42. );
  43. #endif