StateSearchW.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /******************************************************************
  2. iLBC Speech Coder ANSI-C Source Code
  3. StateSearchW.h
  4. Copyright (C) The Internet Society (2004).
  5. All Rights Reserved.
  6. ******************************************************************/
  7. #ifndef __iLBC_STATESEARCHW_H
  8. #define __iLBC_STATESEARCHW_H
  9. void AbsQuantW(
  10. iLBC_Enc_Inst_t *iLBCenc_inst,
  11. /* (i) Encoder instance */
  12. float *in, /* (i) vector to encode */
  13. float *syntDenum, /* (i) denominator of synthesis filter */
  14. float *weightDenum, /* (i) denominator of weighting filter */
  15. int *out, /* (o) vector of quantizer indexes */
  16. int len, /* (i) length of vector to encode and
  17. vector of quantizer indexes */
  18. int state_first /* (i) position of start state in the
  19. 80 vec */
  20. );
  21. void StateSearchW(
  22. iLBC_Enc_Inst_t *iLBCenc_inst,
  23. /* (i) Encoder instance */
  24. float *residual,/* (i) target residual vector */
  25. float *syntDenum, /* (i) lpc synthesis filter */
  26. float *weightDenum, /* (i) weighting filter denuminator */
  27. int *idxForMax, /* (o) quantizer index for maximum
  28. amplitude */
  29. int *idxVec, /* (o) vector of quantization indexes */
  30. int len, /* (i) length of all vectors */
  31. int state_first /* (i) position of start state in the
  32. 80 vec */
  33. );
  34. #endif