constants.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /******************************************************************
  2. iLBC Speech Coder ANSI-C Source Code
  3. constants.h
  4. Copyright (c) 2001,
  5. Global IP Sound AB.
  6. All rights reserved.
  7. ******************************************************************/
  8. #ifndef __iLBC_CONSTANTS_H
  9. #define __iLBC_CONSTANTS_H
  10. #include "iLBC_define.h"
  11. /* bit allocation */
  12. extern int lsf_bitsTbl[];
  13. extern int start_bitsTbl;
  14. extern int scale_bitsTbl;
  15. extern int state_bitsTbl;
  16. extern int cb_bitsTbl[5][CB_NSTAGES];
  17. extern int search_rangeTbl[5][CB_NSTAGES];
  18. extern int gain_bitsTbl[];
  19. /* ULP bit allocation */
  20. extern int ulp_lsf_bitsTbl[6][ULP_CLASSES+2];
  21. extern int ulp_start_bitsTbl[];
  22. extern int ulp_startfirst_bitsTbl[];
  23. extern int ulp_scale_bitsTbl[];
  24. extern int ulp_state_bitsTbl[];
  25. extern int ulp_extra_cb_indexTbl[CB_NSTAGES][ULP_CLASSES+2];
  26. extern int ulp_extra_cb_gainTbl[CB_NSTAGES][ULP_CLASSES+2];
  27. extern int ulp_cb_indexTbl[NASUB][CB_NSTAGES][ULP_CLASSES+2];
  28. extern int ulp_cb_gainTbl[NASUB][CB_NSTAGES][ULP_CLASSES+2];
  29. /* high pass filters */
  30. extern float hpi_zero_coefsTbl[];
  31. extern float hpi_pole_coefsTbl[];
  32. extern float hpo_zero_coefsTbl[];
  33. extern float hpo_pole_coefsTbl[];
  34. /* low pass filters */
  35. extern float lpFilt_coefsTbl[];
  36. /* LPC analysis and quantization */
  37. extern float lpc_winTbl[];
  38. extern float lpc_asymwinTbl[];
  39. extern float lpc_lagwinTbl[];
  40. extern float lsfCbTbl[];
  41. extern float lsfmeanTbl[];
  42. extern int dim_lsfCbTbl[];
  43. extern int size_lsfCbTbl[];
  44. extern float lsf_weightTbl[];
  45. /* state quantization tables */
  46. extern float state_sq3Tbl[];
  47. extern float state_frgqTbl[];
  48. /* gain quantization tables */
  49. extern float gain_sq3Tbl[];
  50. extern float gain_sq4Tbl[];
  51. extern float gain_sq5Tbl[];
  52. /* adaptive codebook definitions */
  53. extern int memLfTbl[];
  54. extern int stMemLTbl;
  55. extern float cbfiltersTbl[CB_FILTERLEN];
  56. /* enhancer definitions */
  57. extern float polyphaserTbl[];
  58. extern float enh_plocsTbl[];
  59. #endif