codebookd.c 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  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/dlsp1.txt */
  8. static const float codes0[] = {
  9. 25,
  10. 50,
  11. 75,
  12. 100,
  13. 125,
  14. 150,
  15. 175,
  16. 200,
  17. 225,
  18. 250,
  19. 275,
  20. 300,
  21. 325,
  22. 350,
  23. 375,
  24. 400,
  25. 425,
  26. 450,
  27. 475,
  28. 500,
  29. 525,
  30. 550,
  31. 575,
  32. 600,
  33. 625,
  34. 650,
  35. 675,
  36. 700,
  37. 725,
  38. 750,
  39. 775,
  40. 800
  41. };
  42. /* codebook/dlsp2.txt */
  43. static const float codes1[] = {
  44. 25,
  45. 50,
  46. 75,
  47. 100,
  48. 125,
  49. 150,
  50. 175,
  51. 200,
  52. 225,
  53. 250,
  54. 275,
  55. 300,
  56. 325,
  57. 350,
  58. 375,
  59. 400,
  60. 425,
  61. 450,
  62. 475,
  63. 500,
  64. 525,
  65. 550,
  66. 575,
  67. 600,
  68. 625,
  69. 650,
  70. 675,
  71. 700,
  72. 725,
  73. 750,
  74. 775,
  75. 800
  76. };
  77. /* codebook/dlsp3.txt */
  78. static const float codes2[] = {
  79. 25,
  80. 50,
  81. 75,
  82. 100,
  83. 125,
  84. 150,
  85. 175,
  86. 200,
  87. 225,
  88. 250,
  89. 275,
  90. 300,
  91. 325,
  92. 350,
  93. 375,
  94. 400,
  95. 425,
  96. 450,
  97. 475,
  98. 500,
  99. 525,
  100. 550,
  101. 575,
  102. 600,
  103. 625,
  104. 650,
  105. 675,
  106. 700,
  107. 725,
  108. 750,
  109. 775,
  110. 800
  111. };
  112. /* codebook/dlsp4.txt */
  113. static const float codes3[] = {
  114. 25,
  115. 50,
  116. 75,
  117. 100,
  118. 125,
  119. 150,
  120. 175,
  121. 200,
  122. 250,
  123. 300,
  124. 350,
  125. 400,
  126. 450,
  127. 500,
  128. 550,
  129. 600,
  130. 650,
  131. 700,
  132. 750,
  133. 800,
  134. 850,
  135. 900,
  136. 950,
  137. 1000,
  138. 1050,
  139. 1100,
  140. 1150,
  141. 1200,
  142. 1250,
  143. 1300,
  144. 1350,
  145. 1400
  146. };
  147. /* codebook/dlsp5.txt */
  148. static const float codes4[] = {
  149. 25,
  150. 50,
  151. 75,
  152. 100,
  153. 125,
  154. 150,
  155. 175,
  156. 200,
  157. 250,
  158. 300,
  159. 350,
  160. 400,
  161. 450,
  162. 500,
  163. 550,
  164. 600,
  165. 650,
  166. 700,
  167. 750,
  168. 800,
  169. 850,
  170. 900,
  171. 950,
  172. 1000,
  173. 1050,
  174. 1100,
  175. 1150,
  176. 1200,
  177. 1250,
  178. 1300,
  179. 1350,
  180. 1400
  181. };
  182. /* codebook/dlsp6.txt */
  183. static const float codes5[] = {
  184. 25,
  185. 50,
  186. 75,
  187. 100,
  188. 125,
  189. 150,
  190. 175,
  191. 200,
  192. 250,
  193. 300,
  194. 350,
  195. 400,
  196. 450,
  197. 500,
  198. 550,
  199. 600,
  200. 650,
  201. 700,
  202. 750,
  203. 800,
  204. 850,
  205. 900,
  206. 950,
  207. 1000,
  208. 1050,
  209. 1100,
  210. 1150,
  211. 1200,
  212. 1250,
  213. 1300,
  214. 1350,
  215. 1400
  216. };
  217. /* codebook/dlsp7.txt */
  218. static const float codes6[] = {
  219. 25,
  220. 50,
  221. 75,
  222. 100,
  223. 125,
  224. 150,
  225. 175,
  226. 200,
  227. 225,
  228. 250,
  229. 275,
  230. 300,
  231. 325,
  232. 350,
  233. 375,
  234. 400,
  235. 425,
  236. 450,
  237. 475,
  238. 500,
  239. 525,
  240. 550,
  241. 575,
  242. 600,
  243. 625,
  244. 650,
  245. 675,
  246. 700,
  247. 725,
  248. 750,
  249. 775,
  250. 800
  251. };
  252. /* codebook/dlsp8.txt */
  253. static const float codes7[] = {
  254. 25,
  255. 50,
  256. 75,
  257. 100,
  258. 125,
  259. 150,
  260. 175,
  261. 200,
  262. 225,
  263. 250,
  264. 275,
  265. 300,
  266. 325,
  267. 350,
  268. 375,
  269. 400,
  270. 425,
  271. 450,
  272. 475,
  273. 500,
  274. 525,
  275. 550,
  276. 575,
  277. 600,
  278. 625,
  279. 650,
  280. 675,
  281. 700,
  282. 725,
  283. 750,
  284. 775,
  285. 800
  286. };
  287. /* codebook/dlsp9.txt */
  288. static const float codes8[] = {
  289. 25,
  290. 50,
  291. 75,
  292. 100,
  293. 125,
  294. 150,
  295. 175,
  296. 200,
  297. 225,
  298. 250,
  299. 275,
  300. 300,
  301. 325,
  302. 350,
  303. 375,
  304. 400,
  305. 425,
  306. 450,
  307. 475,
  308. 500,
  309. 525,
  310. 550,
  311. 575,
  312. 600,
  313. 625,
  314. 650,
  315. 675,
  316. 700,
  317. 725,
  318. 750,
  319. 775,
  320. 800
  321. };
  322. /* codebook/dlsp10.txt */
  323. static const float codes9[] = {
  324. 25,
  325. 50,
  326. 75,
  327. 100,
  328. 125,
  329. 150,
  330. 175,
  331. 200,
  332. 225,
  333. 250,
  334. 275,
  335. 300,
  336. 325,
  337. 350,
  338. 375,
  339. 400,
  340. 425,
  341. 450,
  342. 475,
  343. 500,
  344. 525,
  345. 550,
  346. 575,
  347. 600,
  348. 625,
  349. 650,
  350. 675,
  351. 700,
  352. 725,
  353. 750,
  354. 775,
  355. 800
  356. };
  357. const struct lsp_codebook lsp_cbd[] = {
  358. /* codebook/dlsp1.txt */
  359. {
  360. 1,
  361. 5,
  362. 32,
  363. codes0
  364. },
  365. /* codebook/dlsp2.txt */
  366. {
  367. 1,
  368. 5,
  369. 32,
  370. codes1
  371. },
  372. /* codebook/dlsp3.txt */
  373. {
  374. 1,
  375. 5,
  376. 32,
  377. codes2
  378. },
  379. /* codebook/dlsp4.txt */
  380. {
  381. 1,
  382. 5,
  383. 32,
  384. codes3
  385. },
  386. /* codebook/dlsp5.txt */
  387. {
  388. 1,
  389. 5,
  390. 32,
  391. codes4
  392. },
  393. /* codebook/dlsp6.txt */
  394. {
  395. 1,
  396. 5,
  397. 32,
  398. codes5
  399. },
  400. /* codebook/dlsp7.txt */
  401. {
  402. 1,
  403. 5,
  404. 32,
  405. codes6
  406. },
  407. /* codebook/dlsp8.txt */
  408. {
  409. 1,
  410. 5,
  411. 32,
  412. codes7
  413. },
  414. /* codebook/dlsp9.txt */
  415. {
  416. 1,
  417. 5,
  418. 32,
  419. codes8
  420. },
  421. /* codebook/dlsp10.txt */
  422. {
  423. 1,
  424. 5,
  425. 32,
  426. codes9
  427. },
  428. { 0, 0, 0, 0 }
  429. };