ulaw.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. static unsigned char ulaw_dsp[] = {
  2. 3, 7, 11, 15, 19, 23, 27, 31,
  3. 35, 39, 43, 47, 51, 55, 59, 63,
  4. 66, 68, 70, 72, 74, 76, 78, 80,
  5. 82, 84, 86, 88, 90, 92, 94, 96,
  6. 98, 99, 100, 101, 102, 103, 104, 105,
  7. 106, 107, 108, 109, 110, 111, 112, 113,
  8. 113, 114, 114, 115, 115, 116, 116, 117,
  9. 117, 118, 118, 119, 119, 120, 120, 121,
  10. 121, 121, 122, 122, 122, 122, 123, 123,
  11. 123, 123, 124, 124, 124, 124, 125, 125,
  12. 125, 125, 125, 125, 126, 126, 126, 126,
  13. 126, 126, 126, 126, 127, 127, 127, 127,
  14. 127, 127, 127, 127, 127, 127, 127, 127,
  15. 128, 128, 128, 128, 128, 128, 128, 128,
  16. 128, 128, 128, 128, 128, 128, 128, 128,
  17. 128, 128, 128, 128, 128, 128, 128, 128,
  18. 253, 249, 245, 241, 237, 233, 229, 225,
  19. 221, 217, 213, 209, 205, 201, 197, 193,
  20. 190, 188, 186, 184, 182, 180, 178, 176,
  21. 174, 172, 170, 168, 166, 164, 162, 160,
  22. 158, 157, 156, 155, 154, 153, 152, 151,
  23. 150, 149, 148, 147, 146, 145, 144, 143,
  24. 143, 142, 142, 141, 141, 140, 140, 139,
  25. 139, 138, 138, 137, 137, 136, 136, 135,
  26. 135, 135, 134, 134, 134, 134, 133, 133,
  27. 133, 133, 132, 132, 132, 132, 131, 131,
  28. 131, 131, 131, 131, 130, 130, 130, 130,
  29. 130, 130, 130, 130, 129, 129, 129, 129,
  30. 129, 129, 129, 129, 129, 129, 129, 129,
  31. 128, 128, 128, 128, 128, 128, 128, 128,
  32. 128, 128, 128, 128, 128, 128, 128, 128,
  33. 128, 128, 128, 128, 128, 128, 128, 128,
  34. };
  35. static unsigned char dsp_ulaw[] = {
  36. 0, 0, 0, 0, 0, 1, 1, 1,
  37. 1, 2, 2, 2, 2, 3, 3, 3,
  38. 3, 4, 4, 4, 4, 5, 5, 5,
  39. 5, 6, 6, 6, 6, 7, 7, 7,
  40. 7, 8, 8, 8, 8, 9, 9, 9,
  41. 9, 10, 10, 10, 10, 11, 11, 11,
  42. 11, 12, 12, 12, 12, 13, 13, 13,
  43. 13, 14, 14, 14, 14, 15, 15, 15,
  44. 15, 16, 16, 17, 17, 18, 18, 19,
  45. 19, 20, 20, 21, 21, 22, 22, 23,
  46. 23, 24, 24, 25, 25, 26, 26, 27,
  47. 27, 28, 28, 29, 29, 30, 30, 31,
  48. 31, 32, 33, 34, 35, 36, 37, 38,
  49. 39, 40, 41, 42, 43, 44, 45, 46,
  50. 47, 49, 51, 53, 55, 57, 59, 61,
  51. 63, 66, 70, 74, 78, 84, 92, 104,
  52. 254, 231, 219, 211, 205, 201, 197, 193,
  53. 190, 188, 186, 184, 182, 180, 178, 176,
  54. 175, 174, 173, 172, 171, 170, 169, 168,
  55. 167, 166, 165, 164, 163, 162, 161, 160,
  56. 159, 159, 158, 158, 157, 157, 156, 156,
  57. 155, 155, 154, 154, 153, 153, 152, 152,
  58. 151, 151, 150, 150, 149, 149, 148, 148,
  59. 147, 147, 146, 146, 145, 145, 144, 144,
  60. 143, 143, 143, 143, 142, 142, 142, 142,
  61. 141, 141, 141, 141, 140, 140, 140, 140,
  62. 139, 139, 139, 139, 138, 138, 138, 138,
  63. 137, 137, 137, 137, 136, 136, 136, 136,
  64. 135, 135, 135, 135, 134, 134, 134, 134,
  65. 133, 133, 133, 133, 132, 132, 132, 132,
  66. 131, 131, 131, 131, 130, 130, 130, 130,
  67. 129, 129, 129, 129, 128, 128, 128, 128,
  68. };