ulaw.h 3.2 KB

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