grid.tab 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 : pow2.c
  11. * Purpose : Table for az_lsf()
  12. * $Id $
  13. *
  14. ********************************************************************************
  15. */
  16. /*-------------------------------------------------------------*
  17. * Table for az_lsf() *
  18. * *
  19. * grid[0] = 1.0; *
  20. * grid[grid_points+1] = -1.0; *
  21. * for (i = 1; i < grid_points; i++) *
  22. * grid[i] = cos((6.283185307*i)/(2.0*grid_points)); *
  23. * *
  24. *-------------------------------------------------------------*/
  25. #define grid_points 60
  26. static const Word16 grid[grid_points + 1] =
  27. {
  28. 32760, 32723, 32588, 32364, 32051, 31651,
  29. 31164, 30591, 29935, 29196, 28377, 27481,
  30. 26509, 25465, 24351, 23170, 21926, 20621,
  31. 19260, 17846, 16384, 14876, 13327, 11743,
  32. 10125, 8480, 6812, 5126, 3425, 1714,
  33. 0, -1714, -3425, -5126, -6812, -8480,
  34. -10125, -11743, -13327, -14876, -16384, -17846,
  35. -19260, -20621, -21926, -23170, -24351, -25465,
  36. -26509, -27481, -28377, -29196, -29935, -30591,
  37. -31164, -31651, -32051, -32364, -32588, -32723,
  38. -32760
  39. };