createCB.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /******************************************************************
  2. iLBC Speech Coder ANSI-C Source Code
  3. createCB.h
  4. Copyright (C) The Internet Society (2004).
  5. All Rights Reserved.
  6. ******************************************************************/
  7. #ifndef __iLBC_CREATECB_H
  8. #define __iLBC_CREATECB_H
  9. void filteredCBvecs(
  10. float *cbvectors, /* (o) Codebook vector for the
  11. higher section */
  12. float *mem, /* (i) Buffer to create codebook
  13. vectors from */
  14. int lMem /* (i) Length of buffer */
  15. );
  16. void searchAugmentedCB(
  17. int low, /* (i) Start index for the search */
  18. int high, /* (i) End index for the search */
  19. int stage, /* (i) Current stage */
  20. int startIndex, /* (i) CB index for the first
  21. augmented vector */
  22. float *target, /* (i) Target vector for encoding */
  23. float *buffer, /* (i) Pointer to the end of the
  24. buffer for augmented codebook
  25. construction */
  26. float *max_measure, /* (i/o) Currently maximum measure */
  27. int *best_index,/* (o) Currently the best index */
  28. float *gain, /* (o) Currently the best gain */
  29. float *energy, /* (o) Energy of augmented
  30. codebook vectors */
  31. float *invenergy/* (o) Inv energy of aug codebook
  32. vectors */
  33. );
  34. void createAugmentedVec(
  35. int index, /* (i) Index for the aug vector
  36. to be created */
  37. float *buffer, /* (i) Pointer to the end of the
  38. buffer for augmented codebook
  39. construction */
  40. float *cbVec /* (o) The construced codebook vector */
  41. );
  42. #endif