iCBSearch.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /******************************************************************
  2. iLBC Speech Coder ANSI-C Source Code
  3. iCBSearch.h
  4. Copyright (C) The Internet Society (2004).
  5. All Rights Reserved.
  6. ******************************************************************/
  7. #ifndef __iLBC_ICBSEARCH_H
  8. #define __iLBC_ICBSEARCH_H
  9. void iCBSearch(
  10. iLBC_Enc_Inst_t *iLBCenc_inst,
  11. /* (i) the encoder state structure */
  12. int *index, /* (o) Codebook indices */
  13. int *gain_index,/* (o) Gain quantization indices */
  14. float *intarget,/* (i) Target vector for encoding */
  15. float *mem, /* (i) Buffer for codebook construction */
  16. int lMem, /* (i) Length of buffer */
  17. int lTarget, /* (i) Length of vector */
  18. int nStages, /* (i) Number of codebook stages */
  19. float *weightDenum, /* (i) weighting filter coefficients */
  20. float *weightState, /* (i) weighting filter state */
  21. int block /* (i) the sub-block number */
  22. );
  23. #endif