codebookdt.c 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /* THIS IS A GENERATED FILE. Edit generate_codebook.c and its input */
  2. /*
  3. * This intermediary file and the files that used to create it are under
  4. * The LGPL. See the file COPYING.
  5. */
  6. #include "defines.h"
  7. /* codebook/lspdt1.txt */
  8. static const float codes0[] = {
  9. -75,
  10. -50,
  11. -25,
  12. 0,
  13. 25,
  14. 50,
  15. 75,
  16. 100
  17. };
  18. /* codebook/lspdt2.txt */
  19. static const float codes1[] = {
  20. -75,
  21. -50,
  22. -25,
  23. 0,
  24. 25,
  25. 50,
  26. 75,
  27. 100
  28. };
  29. /* codebook/lspdt3.txt */
  30. static const float codes2[] = {
  31. -50,
  32. 0,
  33. 50,
  34. 100
  35. };
  36. /* codebook/lspdt4.txt */
  37. static const float codes3[] = {
  38. -50,
  39. 0,
  40. 50,
  41. 100
  42. };
  43. /* codebook/lspdt5.txt */
  44. static const float codes4[] = {
  45. -50,
  46. 0,
  47. 50,
  48. 100
  49. };
  50. /* codebook/lspdt6.txt */
  51. static const float codes5[] = {
  52. -50,
  53. 0,
  54. 50,
  55. 100
  56. };
  57. /* codebook/lspdt7.txt */
  58. static const float codes6[] = {
  59. -50,
  60. 50
  61. };
  62. /* codebook/lspdt8.txt */
  63. static const float codes7[] = {
  64. -50,
  65. 50
  66. };
  67. /* codebook/lspdt9.txt */
  68. static const float codes8[] = {
  69. -50,
  70. 50
  71. };
  72. /* codebook/lspdt10.txt */
  73. static const float codes9[] = {
  74. -50,
  75. 50
  76. };
  77. const struct lsp_codebook lsp_cbdt[] = {
  78. /* codebook/lspdt1.txt */
  79. {
  80. 1,
  81. 3,
  82. 8,
  83. codes0
  84. },
  85. /* codebook/lspdt2.txt */
  86. {
  87. 1,
  88. 3,
  89. 8,
  90. codes1
  91. },
  92. /* codebook/lspdt3.txt */
  93. {
  94. 1,
  95. 2,
  96. 4,
  97. codes2
  98. },
  99. /* codebook/lspdt4.txt */
  100. {
  101. 1,
  102. 2,
  103. 4,
  104. codes3
  105. },
  106. /* codebook/lspdt5.txt */
  107. {
  108. 1,
  109. 2,
  110. 4,
  111. codes4
  112. },
  113. /* codebook/lspdt6.txt */
  114. {
  115. 1,
  116. 2,
  117. 4,
  118. codes5
  119. },
  120. /* codebook/lspdt7.txt */
  121. {
  122. 1,
  123. 1,
  124. 2,
  125. codes6
  126. },
  127. /* codebook/lspdt8.txt */
  128. {
  129. 1,
  130. 1,
  131. 2,
  132. codes7
  133. },
  134. /* codebook/lspdt9.txt */
  135. {
  136. 1,
  137. 1,
  138. 2,
  139. codes8
  140. },
  141. /* codebook/lspdt10.txt */
  142. {
  143. 1,
  144. 1,
  145. 2,
  146. codes9
  147. },
  148. { 0, 0, 0, 0 }
  149. };