static_modes_fixed.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  1. /* The contents of this file was automatically generated by dump_modes.c
  2. with arguments: 48000 960
  3. It contains static definitions for some pre-defined modes. */
  4. #include "modes.h"
  5. #include "rate.h"
  6. #ifndef DEF_WINDOW120
  7. #define DEF_WINDOW120
  8. static const opus_val16 window120[120] = {
  9. 2, 20, 55, 108, 178,
  10. 266, 372, 494, 635, 792,
  11. 966, 1157, 1365, 1590, 1831,
  12. 2089, 2362, 2651, 2956, 3276,
  13. 3611, 3961, 4325, 4703, 5094,
  14. 5499, 5916, 6346, 6788, 7241,
  15. 7705, 8179, 8663, 9156, 9657,
  16. 10167, 10684, 11207, 11736, 12271,
  17. 12810, 13353, 13899, 14447, 14997,
  18. 15547, 16098, 16648, 17197, 17744,
  19. 18287, 18827, 19363, 19893, 20418,
  20. 20936, 21447, 21950, 22445, 22931,
  21. 23407, 23874, 24330, 24774, 25208,
  22. 25629, 26039, 26435, 26819, 27190,
  23. 27548, 27893, 28224, 28541, 28845,
  24. 29135, 29411, 29674, 29924, 30160,
  25. 30384, 30594, 30792, 30977, 31151,
  26. 31313, 31463, 31602, 31731, 31849,
  27. 31958, 32057, 32148, 32229, 32303,
  28. 32370, 32429, 32481, 32528, 32568,
  29. 32604, 32634, 32661, 32683, 32701,
  30. 32717, 32729, 32740, 32748, 32754,
  31. 32758, 32762, 32764, 32766, 32767,
  32. 32767, 32767, 32767, 32767, 32767,
  33. };
  34. #endif
  35. #ifndef DEF_LOGN400
  36. #define DEF_LOGN400
  37. static const opus_int16 logN400[21] = {
  38. 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 8, 8, 16, 16, 16, 21, 21, 24, 29, 34, 36, };
  39. #endif
  40. #ifndef DEF_PULSE_CACHE50
  41. #define DEF_PULSE_CACHE50
  42. static const opus_int16 cache_index50[105] = {
  43. -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, 0, 0, 41, 41, 41,
  44. 82, 82, 123, 164, 200, 222, 0, 0, 0, 0, 0, 0, 0, 0, 41,
  45. 41, 41, 41, 123, 123, 123, 164, 164, 240, 266, 283, 295, 41, 41, 41,
  46. 41, 41, 41, 41, 41, 123, 123, 123, 123, 240, 240, 240, 266, 266, 305,
  47. 318, 328, 336, 123, 123, 123, 123, 123, 123, 123, 123, 240, 240, 240, 240,
  48. 305, 305, 305, 318, 318, 343, 351, 358, 364, 240, 240, 240, 240, 240, 240,
  49. 240, 240, 305, 305, 305, 305, 343, 343, 343, 351, 351, 370, 376, 382, 387,
  50. };
  51. static const unsigned char cache_bits50[392] = {
  52. 40, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
  53. 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
  54. 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 40, 15, 23, 28,
  55. 31, 34, 36, 38, 39, 41, 42, 43, 44, 45, 46, 47, 47, 49, 50,
  56. 51, 52, 53, 54, 55, 55, 57, 58, 59, 60, 61, 62, 63, 63, 65,
  57. 66, 67, 68, 69, 70, 71, 71, 40, 20, 33, 41, 48, 53, 57, 61,
  58. 64, 66, 69, 71, 73, 75, 76, 78, 80, 82, 85, 87, 89, 91, 92,
  59. 94, 96, 98, 101, 103, 105, 107, 108, 110, 112, 114, 117, 119, 121, 123,
  60. 124, 126, 128, 40, 23, 39, 51, 60, 67, 73, 79, 83, 87, 91, 94,
  61. 97, 100, 102, 105, 107, 111, 115, 118, 121, 124, 126, 129, 131, 135, 139,
  62. 142, 145, 148, 150, 153, 155, 159, 163, 166, 169, 172, 174, 177, 179, 35,
  63. 28, 49, 65, 78, 89, 99, 107, 114, 120, 126, 132, 136, 141, 145, 149,
  64. 153, 159, 165, 171, 176, 180, 185, 189, 192, 199, 205, 211, 216, 220, 225,
  65. 229, 232, 239, 245, 251, 21, 33, 58, 79, 97, 112, 125, 137, 148, 157,
  66. 166, 174, 182, 189, 195, 201, 207, 217, 227, 235, 243, 251, 17, 35, 63,
  67. 86, 106, 123, 139, 152, 165, 177, 187, 197, 206, 214, 222, 230, 237, 250,
  68. 25, 31, 55, 75, 91, 105, 117, 128, 138, 146, 154, 161, 168, 174, 180,
  69. 185, 190, 200, 208, 215, 222, 229, 235, 240, 245, 255, 16, 36, 65, 89,
  70. 110, 128, 144, 159, 173, 185, 196, 207, 217, 226, 234, 242, 250, 11, 41,
  71. 74, 103, 128, 151, 172, 191, 209, 225, 241, 255, 9, 43, 79, 110, 138,
  72. 163, 186, 207, 227, 246, 12, 39, 71, 99, 123, 144, 164, 182, 198, 214,
  73. 228, 241, 253, 9, 44, 81, 113, 142, 168, 192, 214, 235, 255, 7, 49,
  74. 90, 127, 160, 191, 220, 247, 6, 51, 95, 134, 170, 203, 234, 7, 47,
  75. 87, 123, 155, 184, 212, 237, 6, 52, 97, 137, 174, 208, 240, 5, 57,
  76. 106, 151, 192, 231, 5, 59, 111, 158, 202, 243, 5, 55, 103, 147, 187,
  77. 224, 5, 60, 113, 161, 206, 248, 4, 65, 122, 175, 224, 4, 67, 127,
  78. 182, 234, };
  79. static const unsigned char cache_caps50[168] = {
  80. 224, 224, 224, 224, 224, 224, 224, 224, 160, 160, 160, 160, 185, 185, 185,
  81. 178, 178, 168, 134, 61, 37, 224, 224, 224, 224, 224, 224, 224, 224, 240,
  82. 240, 240, 240, 207, 207, 207, 198, 198, 183, 144, 66, 40, 160, 160, 160,
  83. 160, 160, 160, 160, 160, 185, 185, 185, 185, 193, 193, 193, 183, 183, 172,
  84. 138, 64, 38, 240, 240, 240, 240, 240, 240, 240, 240, 207, 207, 207, 207,
  85. 204, 204, 204, 193, 193, 180, 143, 66, 40, 185, 185, 185, 185, 185, 185,
  86. 185, 185, 193, 193, 193, 193, 193, 193, 193, 183, 183, 172, 138, 65, 39,
  87. 207, 207, 207, 207, 207, 207, 207, 207, 204, 204, 204, 204, 201, 201, 201,
  88. 188, 188, 176, 141, 66, 40, 193, 193, 193, 193, 193, 193, 193, 193, 193,
  89. 193, 193, 193, 194, 194, 194, 184, 184, 173, 139, 65, 39, 204, 204, 204,
  90. 204, 204, 204, 204, 204, 201, 201, 201, 201, 198, 198, 198, 187, 187, 175,
  91. 140, 66, 40, };
  92. #endif
  93. #ifndef FFT_TWIDDLES48000_960
  94. #define FFT_TWIDDLES48000_960
  95. static const kiss_twiddle_cpx fft_twiddles48000_960[480] = {
  96. {32767, 0}, {32766, -429},
  97. {32757, -858}, {32743, -1287},
  98. {32724, -1715}, {32698, -2143},
  99. {32667, -2570}, {32631, -2998},
  100. {32588, -3425}, {32541, -3851},
  101. {32488, -4277}, {32429, -4701},
  102. {32364, -5125}, {32295, -5548},
  103. {32219, -5971}, {32138, -6393},
  104. {32051, -6813}, {31960, -7231},
  105. {31863, -7650}, {31760, -8067},
  106. {31652, -8481}, {31539, -8895},
  107. {31419, -9306}, {31294, -9716},
  108. {31165, -10126}, {31030, -10532},
  109. {30889, -10937}, {30743, -11340},
  110. {30592, -11741}, {30436, -12141},
  111. {30274, -12540}, {30107, -12935},
  112. {29936, -13328}, {29758, -13718},
  113. {29577, -14107}, {29390, -14493},
  114. {29197, -14875}, {29000, -15257},
  115. {28797, -15635}, {28590, -16010},
  116. {28379, -16384}, {28162, -16753},
  117. {27940, -17119}, {27714, -17484},
  118. {27482, -17845}, {27246, -18205},
  119. {27006, -18560}, {26760, -18911},
  120. {26510, -19260}, {26257, -19606},
  121. {25997, -19947}, {25734, -20286},
  122. {25466, -20621}, {25194, -20952},
  123. {24918, -21281}, {24637, -21605},
  124. {24353, -21926}, {24063, -22242},
  125. {23770, -22555}, {23473, -22865},
  126. {23171, -23171}, {22866, -23472},
  127. {22557, -23769}, {22244, -24063},
  128. {21927, -24352}, {21606, -24636},
  129. {21282, -24917}, {20954, -25194},
  130. {20622, -25465}, {20288, -25733},
  131. {19949, -25997}, {19607, -26255},
  132. {19261, -26509}, {18914, -26760},
  133. {18561, -27004}, {18205, -27246},
  134. {17846, -27481}, {17485, -27713},
  135. {17122, -27940}, {16755, -28162},
  136. {16385, -28378}, {16012, -28590},
  137. {15636, -28797}, {15258, -28999},
  138. {14878, -29197}, {14494, -29389},
  139. {14108, -29576}, {13720, -29757},
  140. {13329, -29934}, {12937, -30107},
  141. {12540, -30274}, {12142, -30435},
  142. {11744, -30592}, {11342, -30743},
  143. {10939, -30889}, {10534, -31030},
  144. {10127, -31164}, {9718, -31294},
  145. {9307, -31418}, {8895, -31537},
  146. {8482, -31652}, {8067, -31759},
  147. {7650, -31862}, {7233, -31960},
  148. {6815, -32051}, {6393, -32138},
  149. {5973, -32219}, {5549, -32294},
  150. {5127, -32364}, {4703, -32429},
  151. {4278, -32487}, {3852, -32541},
  152. {3426, -32588}, {2999, -32630},
  153. {2572, -32667}, {2144, -32698},
  154. {1716, -32724}, {1287, -32742},
  155. {860, -32757}, {430, -32766},
  156. {0, -32767}, {-429, -32766},
  157. {-858, -32757}, {-1287, -32743},
  158. {-1715, -32724}, {-2143, -32698},
  159. {-2570, -32667}, {-2998, -32631},
  160. {-3425, -32588}, {-3851, -32541},
  161. {-4277, -32488}, {-4701, -32429},
  162. {-5125, -32364}, {-5548, -32295},
  163. {-5971, -32219}, {-6393, -32138},
  164. {-6813, -32051}, {-7231, -31960},
  165. {-7650, -31863}, {-8067, -31760},
  166. {-8481, -31652}, {-8895, -31539},
  167. {-9306, -31419}, {-9716, -31294},
  168. {-10126, -31165}, {-10532, -31030},
  169. {-10937, -30889}, {-11340, -30743},
  170. {-11741, -30592}, {-12141, -30436},
  171. {-12540, -30274}, {-12935, -30107},
  172. {-13328, -29936}, {-13718, -29758},
  173. {-14107, -29577}, {-14493, -29390},
  174. {-14875, -29197}, {-15257, -29000},
  175. {-15635, -28797}, {-16010, -28590},
  176. {-16384, -28379}, {-16753, -28162},
  177. {-17119, -27940}, {-17484, -27714},
  178. {-17845, -27482}, {-18205, -27246},
  179. {-18560, -27006}, {-18911, -26760},
  180. {-19260, -26510}, {-19606, -26257},
  181. {-19947, -25997}, {-20286, -25734},
  182. {-20621, -25466}, {-20952, -25194},
  183. {-21281, -24918}, {-21605, -24637},
  184. {-21926, -24353}, {-22242, -24063},
  185. {-22555, -23770}, {-22865, -23473},
  186. {-23171, -23171}, {-23472, -22866},
  187. {-23769, -22557}, {-24063, -22244},
  188. {-24352, -21927}, {-24636, -21606},
  189. {-24917, -21282}, {-25194, -20954},
  190. {-25465, -20622}, {-25733, -20288},
  191. {-25997, -19949}, {-26255, -19607},
  192. {-26509, -19261}, {-26760, -18914},
  193. {-27004, -18561}, {-27246, -18205},
  194. {-27481, -17846}, {-27713, -17485},
  195. {-27940, -17122}, {-28162, -16755},
  196. {-28378, -16385}, {-28590, -16012},
  197. {-28797, -15636}, {-28999, -15258},
  198. {-29197, -14878}, {-29389, -14494},
  199. {-29576, -14108}, {-29757, -13720},
  200. {-29934, -13329}, {-30107, -12937},
  201. {-30274, -12540}, {-30435, -12142},
  202. {-30592, -11744}, {-30743, -11342},
  203. {-30889, -10939}, {-31030, -10534},
  204. {-31164, -10127}, {-31294, -9718},
  205. {-31418, -9307}, {-31537, -8895},
  206. {-31652, -8482}, {-31759, -8067},
  207. {-31862, -7650}, {-31960, -7233},
  208. {-32051, -6815}, {-32138, -6393},
  209. {-32219, -5973}, {-32294, -5549},
  210. {-32364, -5127}, {-32429, -4703},
  211. {-32487, -4278}, {-32541, -3852},
  212. {-32588, -3426}, {-32630, -2999},
  213. {-32667, -2572}, {-32698, -2144},
  214. {-32724, -1716}, {-32742, -1287},
  215. {-32757, -860}, {-32766, -430},
  216. {-32767, 0}, {-32766, 429},
  217. {-32757, 858}, {-32743, 1287},
  218. {-32724, 1715}, {-32698, 2143},
  219. {-32667, 2570}, {-32631, 2998},
  220. {-32588, 3425}, {-32541, 3851},
  221. {-32488, 4277}, {-32429, 4701},
  222. {-32364, 5125}, {-32295, 5548},
  223. {-32219, 5971}, {-32138, 6393},
  224. {-32051, 6813}, {-31960, 7231},
  225. {-31863, 7650}, {-31760, 8067},
  226. {-31652, 8481}, {-31539, 8895},
  227. {-31419, 9306}, {-31294, 9716},
  228. {-31165, 10126}, {-31030, 10532},
  229. {-30889, 10937}, {-30743, 11340},
  230. {-30592, 11741}, {-30436, 12141},
  231. {-30274, 12540}, {-30107, 12935},
  232. {-29936, 13328}, {-29758, 13718},
  233. {-29577, 14107}, {-29390, 14493},
  234. {-29197, 14875}, {-29000, 15257},
  235. {-28797, 15635}, {-28590, 16010},
  236. {-28379, 16384}, {-28162, 16753},
  237. {-27940, 17119}, {-27714, 17484},
  238. {-27482, 17845}, {-27246, 18205},
  239. {-27006, 18560}, {-26760, 18911},
  240. {-26510, 19260}, {-26257, 19606},
  241. {-25997, 19947}, {-25734, 20286},
  242. {-25466, 20621}, {-25194, 20952},
  243. {-24918, 21281}, {-24637, 21605},
  244. {-24353, 21926}, {-24063, 22242},
  245. {-23770, 22555}, {-23473, 22865},
  246. {-23171, 23171}, {-22866, 23472},
  247. {-22557, 23769}, {-22244, 24063},
  248. {-21927, 24352}, {-21606, 24636},
  249. {-21282, 24917}, {-20954, 25194},
  250. {-20622, 25465}, {-20288, 25733},
  251. {-19949, 25997}, {-19607, 26255},
  252. {-19261, 26509}, {-18914, 26760},
  253. {-18561, 27004}, {-18205, 27246},
  254. {-17846, 27481}, {-17485, 27713},
  255. {-17122, 27940}, {-16755, 28162},
  256. {-16385, 28378}, {-16012, 28590},
  257. {-15636, 28797}, {-15258, 28999},
  258. {-14878, 29197}, {-14494, 29389},
  259. {-14108, 29576}, {-13720, 29757},
  260. {-13329, 29934}, {-12937, 30107},
  261. {-12540, 30274}, {-12142, 30435},
  262. {-11744, 30592}, {-11342, 30743},
  263. {-10939, 30889}, {-10534, 31030},
  264. {-10127, 31164}, {-9718, 31294},
  265. {-9307, 31418}, {-8895, 31537},
  266. {-8482, 31652}, {-8067, 31759},
  267. {-7650, 31862}, {-7233, 31960},
  268. {-6815, 32051}, {-6393, 32138},
  269. {-5973, 32219}, {-5549, 32294},
  270. {-5127, 32364}, {-4703, 32429},
  271. {-4278, 32487}, {-3852, 32541},
  272. {-3426, 32588}, {-2999, 32630},
  273. {-2572, 32667}, {-2144, 32698},
  274. {-1716, 32724}, {-1287, 32742},
  275. {-860, 32757}, {-430, 32766},
  276. {0, 32767}, {429, 32766},
  277. {858, 32757}, {1287, 32743},
  278. {1715, 32724}, {2143, 32698},
  279. {2570, 32667}, {2998, 32631},
  280. {3425, 32588}, {3851, 32541},
  281. {4277, 32488}, {4701, 32429},
  282. {5125, 32364}, {5548, 32295},
  283. {5971, 32219}, {6393, 32138},
  284. {6813, 32051}, {7231, 31960},
  285. {7650, 31863}, {8067, 31760},
  286. {8481, 31652}, {8895, 31539},
  287. {9306, 31419}, {9716, 31294},
  288. {10126, 31165}, {10532, 31030},
  289. {10937, 30889}, {11340, 30743},
  290. {11741, 30592}, {12141, 30436},
  291. {12540, 30274}, {12935, 30107},
  292. {13328, 29936}, {13718, 29758},
  293. {14107, 29577}, {14493, 29390},
  294. {14875, 29197}, {15257, 29000},
  295. {15635, 28797}, {16010, 28590},
  296. {16384, 28379}, {16753, 28162},
  297. {17119, 27940}, {17484, 27714},
  298. {17845, 27482}, {18205, 27246},
  299. {18560, 27006}, {18911, 26760},
  300. {19260, 26510}, {19606, 26257},
  301. {19947, 25997}, {20286, 25734},
  302. {20621, 25466}, {20952, 25194},
  303. {21281, 24918}, {21605, 24637},
  304. {21926, 24353}, {22242, 24063},
  305. {22555, 23770}, {22865, 23473},
  306. {23171, 23171}, {23472, 22866},
  307. {23769, 22557}, {24063, 22244},
  308. {24352, 21927}, {24636, 21606},
  309. {24917, 21282}, {25194, 20954},
  310. {25465, 20622}, {25733, 20288},
  311. {25997, 19949}, {26255, 19607},
  312. {26509, 19261}, {26760, 18914},
  313. {27004, 18561}, {27246, 18205},
  314. {27481, 17846}, {27713, 17485},
  315. {27940, 17122}, {28162, 16755},
  316. {28378, 16385}, {28590, 16012},
  317. {28797, 15636}, {28999, 15258},
  318. {29197, 14878}, {29389, 14494},
  319. {29576, 14108}, {29757, 13720},
  320. {29934, 13329}, {30107, 12937},
  321. {30274, 12540}, {30435, 12142},
  322. {30592, 11744}, {30743, 11342},
  323. {30889, 10939}, {31030, 10534},
  324. {31164, 10127}, {31294, 9718},
  325. {31418, 9307}, {31537, 8895},
  326. {31652, 8482}, {31759, 8067},
  327. {31862, 7650}, {31960, 7233},
  328. {32051, 6815}, {32138, 6393},
  329. {32219, 5973}, {32294, 5549},
  330. {32364, 5127}, {32429, 4703},
  331. {32487, 4278}, {32541, 3852},
  332. {32588, 3426}, {32630, 2999},
  333. {32667, 2572}, {32698, 2144},
  334. {32724, 1716}, {32742, 1287},
  335. {32757, 860}, {32766, 430},
  336. };
  337. #ifndef FFT_BITREV480
  338. #define FFT_BITREV480
  339. static const opus_int16 fft_bitrev480[480] = {
  340. 0, 120, 240, 360, 30, 150, 270, 390, 60, 180, 300, 420, 90, 210, 330,
  341. 450, 15, 135, 255, 375, 45, 165, 285, 405, 75, 195, 315, 435, 105, 225,
  342. 345, 465, 5, 125, 245, 365, 35, 155, 275, 395, 65, 185, 305, 425, 95,
  343. 215, 335, 455, 20, 140, 260, 380, 50, 170, 290, 410, 80, 200, 320, 440,
  344. 110, 230, 350, 470, 10, 130, 250, 370, 40, 160, 280, 400, 70, 190, 310,
  345. 430, 100, 220, 340, 460, 25, 145, 265, 385, 55, 175, 295, 415, 85, 205,
  346. 325, 445, 115, 235, 355, 475, 1, 121, 241, 361, 31, 151, 271, 391, 61,
  347. 181, 301, 421, 91, 211, 331, 451, 16, 136, 256, 376, 46, 166, 286, 406,
  348. 76, 196, 316, 436, 106, 226, 346, 466, 6, 126, 246, 366, 36, 156, 276,
  349. 396, 66, 186, 306, 426, 96, 216, 336, 456, 21, 141, 261, 381, 51, 171,
  350. 291, 411, 81, 201, 321, 441, 111, 231, 351, 471, 11, 131, 251, 371, 41,
  351. 161, 281, 401, 71, 191, 311, 431, 101, 221, 341, 461, 26, 146, 266, 386,
  352. 56, 176, 296, 416, 86, 206, 326, 446, 116, 236, 356, 476, 2, 122, 242,
  353. 362, 32, 152, 272, 392, 62, 182, 302, 422, 92, 212, 332, 452, 17, 137,
  354. 257, 377, 47, 167, 287, 407, 77, 197, 317, 437, 107, 227, 347, 467, 7,
  355. 127, 247, 367, 37, 157, 277, 397, 67, 187, 307, 427, 97, 217, 337, 457,
  356. 22, 142, 262, 382, 52, 172, 292, 412, 82, 202, 322, 442, 112, 232, 352,
  357. 472, 12, 132, 252, 372, 42, 162, 282, 402, 72, 192, 312, 432, 102, 222,
  358. 342, 462, 27, 147, 267, 387, 57, 177, 297, 417, 87, 207, 327, 447, 117,
  359. 237, 357, 477, 3, 123, 243, 363, 33, 153, 273, 393, 63, 183, 303, 423,
  360. 93, 213, 333, 453, 18, 138, 258, 378, 48, 168, 288, 408, 78, 198, 318,
  361. 438, 108, 228, 348, 468, 8, 128, 248, 368, 38, 158, 278, 398, 68, 188,
  362. 308, 428, 98, 218, 338, 458, 23, 143, 263, 383, 53, 173, 293, 413, 83,
  363. 203, 323, 443, 113, 233, 353, 473, 13, 133, 253, 373, 43, 163, 283, 403,
  364. 73, 193, 313, 433, 103, 223, 343, 463, 28, 148, 268, 388, 58, 178, 298,
  365. 418, 88, 208, 328, 448, 118, 238, 358, 478, 4, 124, 244, 364, 34, 154,
  366. 274, 394, 64, 184, 304, 424, 94, 214, 334, 454, 19, 139, 259, 379, 49,
  367. 169, 289, 409, 79, 199, 319, 439, 109, 229, 349, 469, 9, 129, 249, 369,
  368. 39, 159, 279, 399, 69, 189, 309, 429, 99, 219, 339, 459, 24, 144, 264,
  369. 384, 54, 174, 294, 414, 84, 204, 324, 444, 114, 234, 354, 474, 14, 134,
  370. 254, 374, 44, 164, 284, 404, 74, 194, 314, 434, 104, 224, 344, 464, 29,
  371. 149, 269, 389, 59, 179, 299, 419, 89, 209, 329, 449, 119, 239, 359, 479,
  372. };
  373. #endif
  374. #ifndef FFT_BITREV240
  375. #define FFT_BITREV240
  376. static const opus_int16 fft_bitrev240[240] = {
  377. 0, 60, 120, 180, 15, 75, 135, 195, 30, 90, 150, 210, 45, 105, 165,
  378. 225, 5, 65, 125, 185, 20, 80, 140, 200, 35, 95, 155, 215, 50, 110,
  379. 170, 230, 10, 70, 130, 190, 25, 85, 145, 205, 40, 100, 160, 220, 55,
  380. 115, 175, 235, 1, 61, 121, 181, 16, 76, 136, 196, 31, 91, 151, 211,
  381. 46, 106, 166, 226, 6, 66, 126, 186, 21, 81, 141, 201, 36, 96, 156,
  382. 216, 51, 111, 171, 231, 11, 71, 131, 191, 26, 86, 146, 206, 41, 101,
  383. 161, 221, 56, 116, 176, 236, 2, 62, 122, 182, 17, 77, 137, 197, 32,
  384. 92, 152, 212, 47, 107, 167, 227, 7, 67, 127, 187, 22, 82, 142, 202,
  385. 37, 97, 157, 217, 52, 112, 172, 232, 12, 72, 132, 192, 27, 87, 147,
  386. 207, 42, 102, 162, 222, 57, 117, 177, 237, 3, 63, 123, 183, 18, 78,
  387. 138, 198, 33, 93, 153, 213, 48, 108, 168, 228, 8, 68, 128, 188, 23,
  388. 83, 143, 203, 38, 98, 158, 218, 53, 113, 173, 233, 13, 73, 133, 193,
  389. 28, 88, 148, 208, 43, 103, 163, 223, 58, 118, 178, 238, 4, 64, 124,
  390. 184, 19, 79, 139, 199, 34, 94, 154, 214, 49, 109, 169, 229, 9, 69,
  391. 129, 189, 24, 84, 144, 204, 39, 99, 159, 219, 54, 114, 174, 234, 14,
  392. 74, 134, 194, 29, 89, 149, 209, 44, 104, 164, 224, 59, 119, 179, 239,
  393. };
  394. #endif
  395. #ifndef FFT_BITREV120
  396. #define FFT_BITREV120
  397. static const opus_int16 fft_bitrev120[120] = {
  398. 0, 30, 60, 90, 15, 45, 75, 105, 5, 35, 65, 95, 20, 50, 80,
  399. 110, 10, 40, 70, 100, 25, 55, 85, 115, 1, 31, 61, 91, 16, 46,
  400. 76, 106, 6, 36, 66, 96, 21, 51, 81, 111, 11, 41, 71, 101, 26,
  401. 56, 86, 116, 2, 32, 62, 92, 17, 47, 77, 107, 7, 37, 67, 97,
  402. 22, 52, 82, 112, 12, 42, 72, 102, 27, 57, 87, 117, 3, 33, 63,
  403. 93, 18, 48, 78, 108, 8, 38, 68, 98, 23, 53, 83, 113, 13, 43,
  404. 73, 103, 28, 58, 88, 118, 4, 34, 64, 94, 19, 49, 79, 109, 9,
  405. 39, 69, 99, 24, 54, 84, 114, 14, 44, 74, 104, 29, 59, 89, 119,
  406. };
  407. #endif
  408. #ifndef FFT_BITREV60
  409. #define FFT_BITREV60
  410. static const opus_int16 fft_bitrev60[60] = {
  411. 0, 15, 30, 45, 5, 20, 35, 50, 10, 25, 40, 55, 1, 16, 31,
  412. 46, 6, 21, 36, 51, 11, 26, 41, 56, 2, 17, 32, 47, 7, 22,
  413. 37, 52, 12, 27, 42, 57, 3, 18, 33, 48, 8, 23, 38, 53, 13,
  414. 28, 43, 58, 4, 19, 34, 49, 9, 24, 39, 54, 14, 29, 44, 59,
  415. };
  416. #endif
  417. #ifndef FFT_STATE48000_960_0
  418. #define FFT_STATE48000_960_0
  419. static const kiss_fft_state fft_state48000_960_0 = {
  420. 480, /* nfft */
  421. -1, /* shift */
  422. {4, 120, 4, 30, 2, 15, 3, 5, 5, 1, 0, 0, 0, 0, 0, 0, }, /* factors */
  423. fft_bitrev480, /* bitrev */
  424. fft_twiddles48000_960, /* bitrev */
  425. };
  426. #endif
  427. #ifndef FFT_STATE48000_960_1
  428. #define FFT_STATE48000_960_1
  429. static const kiss_fft_state fft_state48000_960_1 = {
  430. 240, /* nfft */
  431. 1, /* shift */
  432. {4, 60, 4, 15, 3, 5, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, }, /* factors */
  433. fft_bitrev240, /* bitrev */
  434. fft_twiddles48000_960, /* bitrev */
  435. };
  436. #endif
  437. #ifndef FFT_STATE48000_960_2
  438. #define FFT_STATE48000_960_2
  439. static const kiss_fft_state fft_state48000_960_2 = {
  440. 120, /* nfft */
  441. 2, /* shift */
  442. {4, 30, 2, 15, 3, 5, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, }, /* factors */
  443. fft_bitrev120, /* bitrev */
  444. fft_twiddles48000_960, /* bitrev */
  445. };
  446. #endif
  447. #ifndef FFT_STATE48000_960_3
  448. #define FFT_STATE48000_960_3
  449. static const kiss_fft_state fft_state48000_960_3 = {
  450. 60, /* nfft */
  451. 3, /* shift */
  452. {4, 15, 3, 5, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, /* factors */
  453. fft_bitrev60, /* bitrev */
  454. fft_twiddles48000_960, /* bitrev */
  455. };
  456. #endif
  457. #endif
  458. #ifndef MDCT_TWIDDLES960
  459. #define MDCT_TWIDDLES960
  460. static const opus_val16 mdct_twiddles960[481] = {
  461. 32767, 32767, 32767, 32767, 32766,
  462. 32763, 32762, 32759, 32757, 32753,
  463. 32751, 32747, 32743, 32738, 32733,
  464. 32729, 32724, 32717, 32711, 32705,
  465. 32698, 32690, 32683, 32676, 32667,
  466. 32658, 32650, 32640, 32631, 32620,
  467. 32610, 32599, 32588, 32577, 32566,
  468. 32554, 32541, 32528, 32515, 32502,
  469. 32487, 32474, 32459, 32444, 32429,
  470. 32413, 32397, 32381, 32364, 32348,
  471. 32331, 32313, 32294, 32277, 32257,
  472. 32239, 32219, 32200, 32180, 32159,
  473. 32138, 32118, 32096, 32074, 32051,
  474. 32029, 32006, 31984, 31960, 31936,
  475. 31912, 31888, 31863, 31837, 31812,
  476. 31786, 31760, 31734, 31707, 31679,
  477. 31652, 31624, 31596, 31567, 31539,
  478. 31508, 31479, 31450, 31419, 31388,
  479. 31357, 31326, 31294, 31262, 31230,
  480. 31198, 31164, 31131, 31097, 31063,
  481. 31030, 30994, 30959, 30924, 30889,
  482. 30853, 30816, 30779, 30743, 30705,
  483. 30668, 30629, 30592, 30553, 30515,
  484. 30475, 30435, 30396, 30356, 30315,
  485. 30274, 30233, 30191, 30149, 30107,
  486. 30065, 30022, 29979, 29936, 29891,
  487. 29847, 29803, 29758, 29713, 29668,
  488. 29622, 29577, 29529, 29483, 29436,
  489. 29390, 29341, 29293, 29246, 29197,
  490. 29148, 29098, 29050, 29000, 28949,
  491. 28899, 28848, 28797, 28746, 28694,
  492. 28642, 28590, 28537, 28485, 28432,
  493. 28378, 28324, 28271, 28217, 28162,
  494. 28106, 28051, 27995, 27940, 27884,
  495. 27827, 27770, 27713, 27657, 27598,
  496. 27540, 27481, 27423, 27365, 27305,
  497. 27246, 27187, 27126, 27066, 27006,
  498. 26945, 26883, 26822, 26760, 26698,
  499. 26636, 26574, 26510, 26448, 26383,
  500. 26320, 26257, 26191, 26127, 26062,
  501. 25997, 25931, 25866, 25800, 25734,
  502. 25667, 25601, 25533, 25466, 25398,
  503. 25330, 25262, 25194, 25125, 25056,
  504. 24987, 24917, 24848, 24778, 24707,
  505. 24636, 24566, 24495, 24424, 24352,
  506. 24280, 24208, 24135, 24063, 23990,
  507. 23917, 23842, 23769, 23695, 23622,
  508. 23546, 23472, 23398, 23322, 23246,
  509. 23171, 23095, 23018, 22942, 22866,
  510. 22788, 22711, 22634, 22557, 22478,
  511. 22400, 22322, 22244, 22165, 22085,
  512. 22006, 21927, 21846, 21766, 21687,
  513. 21606, 21524, 21443, 21363, 21282,
  514. 21199, 21118, 21035, 20954, 20870,
  515. 20788, 20705, 20621, 20538, 20455,
  516. 20371, 20286, 20202, 20118, 20034,
  517. 19947, 19863, 19777, 19692, 19606,
  518. 19520, 19434, 19347, 19260, 19174,
  519. 19088, 18999, 18911, 18825, 18737,
  520. 18648, 18560, 18472, 18384, 18294,
  521. 18205, 18116, 18025, 17936, 17846,
  522. 17757, 17666, 17576, 17485, 17395,
  523. 17303, 17212, 17122, 17030, 16937,
  524. 16846, 16755, 16662, 16569, 16477,
  525. 16385, 16291, 16198, 16105, 16012,
  526. 15917, 15824, 15730, 15636, 15541,
  527. 15447, 15352, 15257, 15162, 15067,
  528. 14973, 14875, 14781, 14685, 14589,
  529. 14493, 14396, 14300, 14204, 14107,
  530. 14010, 13914, 13815, 13718, 13621,
  531. 13524, 13425, 13328, 13230, 13133,
  532. 13033, 12935, 12836, 12738, 12638,
  533. 12540, 12441, 12341, 12241, 12142,
  534. 12044, 11943, 11843, 11744, 11643,
  535. 11542, 11442, 11342, 11241, 11139,
  536. 11039, 10939, 10836, 10736, 10635,
  537. 10534, 10431, 10330, 10228, 10127,
  538. 10024, 9921, 9820, 9718, 9614,
  539. 9512, 9410, 9306, 9204, 9101,
  540. 8998, 8895, 8791, 8689, 8585,
  541. 8481, 8377, 8274, 8171, 8067,
  542. 7962, 7858, 7753, 7650, 7545,
  543. 7441, 7336, 7231, 7129, 7023,
  544. 6917, 6813, 6709, 6604, 6498,
  545. 6393, 6288, 6182, 6077, 5973,
  546. 5867, 5760, 5656, 5549, 5445,
  547. 5339, 5232, 5127, 5022, 4914,
  548. 4809, 4703, 4596, 4490, 4384,
  549. 4278, 4171, 4065, 3958, 3852,
  550. 3745, 3640, 3532, 3426, 3318,
  551. 3212, 3106, 2998, 2891, 2786,
  552. 2679, 2570, 2465, 2358, 2251,
  553. 2143, 2037, 1929, 1823, 1715,
  554. 1609, 1501, 1393, 1287, 1180,
  555. 1073, 964, 858, 751, 644,
  556. 535, 429, 322, 214, 107,
  557. 0, };
  558. #endif
  559. static const CELTMode mode48000_960_120 = {
  560. 48000, /* Fs */
  561. 120, /* overlap */
  562. 21, /* nbEBands */
  563. 21, /* effEBands */
  564. {27853, 0, 4096, 8192, }, /* preemph */
  565. eband5ms, /* eBands */
  566. 3, /* maxLM */
  567. 8, /* nbShortMdcts */
  568. 120, /* shortMdctSize */
  569. 11, /* nbAllocVectors */
  570. band_allocation, /* allocVectors */
  571. logN400, /* logN */
  572. window120, /* window */
  573. {1920, 3, {&fft_state48000_960_0, &fft_state48000_960_1, &fft_state48000_960_2, &fft_state48000_960_3, }, mdct_twiddles960}, /* mdct */
  574. {392, cache_index50, cache_bits50, cache_caps50}, /* cache */
  575. };
  576. /* List of all the available modes */
  577. #define TOTAL_MODES 1
  578. static const CELTMode * const static_mode_list[TOTAL_MODES] = {
  579. &mode48000_960_120,
  580. };