codebook.c 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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/lsp1.txt */
  8. static const float codes0[] = {
  9. 225,
  10. 250,
  11. 275,
  12. 300,
  13. 325,
  14. 350,
  15. 375,
  16. 400,
  17. 425,
  18. 450,
  19. 475,
  20. 500,
  21. 525,
  22. 550,
  23. 575,
  24. 600
  25. };
  26. /* codebook/lsp2.txt */
  27. static const float codes1[] = {
  28. 325,
  29. 350,
  30. 375,
  31. 400,
  32. 425,
  33. 450,
  34. 475,
  35. 500,
  36. 525,
  37. 550,
  38. 575,
  39. 600,
  40. 625,
  41. 650,
  42. 675,
  43. 700
  44. };
  45. /* codebook/lsp3.txt */
  46. static const float codes2[] = {
  47. 500,
  48. 550,
  49. 600,
  50. 650,
  51. 700,
  52. 750,
  53. 800,
  54. 850,
  55. 900,
  56. 950,
  57. 1000,
  58. 1050,
  59. 1100,
  60. 1150,
  61. 1200,
  62. 1250
  63. };
  64. /* codebook/lsp4.txt */
  65. static const float codes3[] = {
  66. 700,
  67. 800,
  68. 900,
  69. 1000,
  70. 1100,
  71. 1200,
  72. 1300,
  73. 1400,
  74. 1500,
  75. 1600,
  76. 1700,
  77. 1800,
  78. 1900,
  79. 2000,
  80. 2100,
  81. 2200
  82. };
  83. /* codebook/lsp5.txt */
  84. static const float codes4[] = {
  85. 950,
  86. 1050,
  87. 1150,
  88. 1250,
  89. 1350,
  90. 1450,
  91. 1550,
  92. 1650,
  93. 1750,
  94. 1850,
  95. 1950,
  96. 2050,
  97. 2150,
  98. 2250,
  99. 2350,
  100. 2450
  101. };
  102. /* codebook/lsp6.txt */
  103. static const float codes5[] = {
  104. 1100,
  105. 1200,
  106. 1300,
  107. 1400,
  108. 1500,
  109. 1600,
  110. 1700,
  111. 1800,
  112. 1900,
  113. 2000,
  114. 2100,
  115. 2200,
  116. 2300,
  117. 2400,
  118. 2500,
  119. 2600
  120. };
  121. /* codebook/lsp7.txt */
  122. static const float codes6[] = {
  123. 1500,
  124. 1600,
  125. 1700,
  126. 1800,
  127. 1900,
  128. 2000,
  129. 2100,
  130. 2200,
  131. 2300,
  132. 2400,
  133. 2500,
  134. 2600,
  135. 2700,
  136. 2800,
  137. 2900,
  138. 3000
  139. };
  140. /* codebook/lsp8.txt */
  141. static const float codes7[] = {
  142. 2300,
  143. 2400,
  144. 2500,
  145. 2600,
  146. 2700,
  147. 2800,
  148. 2900,
  149. 3000
  150. };
  151. /* codebook/lsp9.txt */
  152. static const float codes8[] = {
  153. 2500,
  154. 2600,
  155. 2700,
  156. 2800,
  157. 2900,
  158. 3000,
  159. 3100,
  160. 3200
  161. };
  162. /* codebook/lsp10.txt */
  163. static const float codes9[] = {
  164. 2900,
  165. 3100,
  166. 3300,
  167. 3500
  168. };
  169. const struct lsp_codebook lsp_cb[] = {
  170. /* codebook/lsp1.txt */
  171. {
  172. 1,
  173. 4,
  174. 16,
  175. codes0
  176. },
  177. /* codebook/lsp2.txt */
  178. {
  179. 1,
  180. 4,
  181. 16,
  182. codes1
  183. },
  184. /* codebook/lsp3.txt */
  185. {
  186. 1,
  187. 4,
  188. 16,
  189. codes2
  190. },
  191. /* codebook/lsp4.txt */
  192. {
  193. 1,
  194. 4,
  195. 16,
  196. codes3
  197. },
  198. /* codebook/lsp5.txt */
  199. {
  200. 1,
  201. 4,
  202. 16,
  203. codes4
  204. },
  205. /* codebook/lsp6.txt */
  206. {
  207. 1,
  208. 4,
  209. 16,
  210. codes5
  211. },
  212. /* codebook/lsp7.txt */
  213. {
  214. 1,
  215. 4,
  216. 16,
  217. codes6
  218. },
  219. /* codebook/lsp8.txt */
  220. {
  221. 1,
  222. 3,
  223. 8,
  224. codes7
  225. },
  226. /* codebook/lsp9.txt */
  227. {
  228. 1,
  229. 3,
  230. 8,
  231. codes8
  232. },
  233. /* codebook/lsp10.txt */
  234. {
  235. 1,
  236. 2,
  237. 4,
  238. codes9
  239. },
  240. { 0, 0, 0, 0 }
  241. };