You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

227 lines
6.9KB

  1. // Copyright 2015 Olivier Gillet.
  2. //
  3. // Author: Olivier Gillet (ol.gillet@gmail.com)
  4. //
  5. // Permission is hereby granted, free of charge, to any person obtaining a copy
  6. // of this software and associated documentation files (the "Software"), to deal
  7. // in the Software without restriction, including without limitation the rights
  8. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  9. // copies of the Software, and to permit persons to whom the Software is
  10. // furnished to do so, subject to the following conditions:
  11. //
  12. // The above copyright notice and this permission notice shall be included in
  13. // all copies or substantial portions of the Software.
  14. //
  15. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  18. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  20. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  21. // THE SOFTWARE.
  22. //
  23. // See http://creativecommons.org/licenses/MIT/ for more information.
  24. //
  25. // -----------------------------------------------------------------------------
  26. //
  27. // Resources definitions.
  28. //
  29. // Automatically generated with:
  30. // make resources
  31. #ifndef MARBLES_RESOURCES_H_
  32. #define MARBLES_RESOURCES_H_
  33. #include "stmlib/stmlib.h"
  34. namespace marbles {
  35. typedef uint8_t ResourceId;
  36. extern const float* lookup_table_table[];
  37. extern const float* distributions_table[];
  38. extern const float lut_raised_cosine[];
  39. extern const float lut_sine[];
  40. extern const float lut_logit[];
  41. extern const float dist_icdf_0_0[];
  42. extern const float dist_icdf_0_1[];
  43. extern const float dist_icdf_0_2[];
  44. extern const float dist_icdf_0_3[];
  45. extern const float dist_icdf_0_4[];
  46. extern const float dist_icdf_0_5[];
  47. extern const float dist_icdf_0_6[];
  48. extern const float dist_icdf_0_7[];
  49. extern const float dist_icdf_0_8[];
  50. extern const float dist_icdf_1_0[];
  51. extern const float dist_icdf_1_1[];
  52. extern const float dist_icdf_1_2[];
  53. extern const float dist_icdf_1_3[];
  54. extern const float dist_icdf_1_4[];
  55. extern const float dist_icdf_1_5[];
  56. extern const float dist_icdf_1_6[];
  57. extern const float dist_icdf_1_7[];
  58. extern const float dist_icdf_1_8[];
  59. extern const float dist_icdf_2_0[];
  60. extern const float dist_icdf_2_1[];
  61. extern const float dist_icdf_2_2[];
  62. extern const float dist_icdf_2_3[];
  63. extern const float dist_icdf_2_4[];
  64. extern const float dist_icdf_2_5[];
  65. extern const float dist_icdf_2_6[];
  66. extern const float dist_icdf_2_7[];
  67. extern const float dist_icdf_2_8[];
  68. extern const float dist_icdf_3_0[];
  69. extern const float dist_icdf_3_1[];
  70. extern const float dist_icdf_3_2[];
  71. extern const float dist_icdf_3_3[];
  72. extern const float dist_icdf_3_4[];
  73. extern const float dist_icdf_3_5[];
  74. extern const float dist_icdf_3_6[];
  75. extern const float dist_icdf_3_7[];
  76. extern const float dist_icdf_3_8[];
  77. extern const float dist_icdf_4_0[];
  78. extern const float dist_icdf_4_1[];
  79. extern const float dist_icdf_4_2[];
  80. extern const float dist_icdf_4_3[];
  81. extern const float dist_icdf_4_4[];
  82. extern const float dist_icdf_4_5[];
  83. extern const float dist_icdf_4_6[];
  84. extern const float dist_icdf_4_7[];
  85. extern const float dist_icdf_4_8[];
  86. #define LUT_RAISED_COSINE 0
  87. #define LUT_RAISED_COSINE_SIZE 257
  88. #define LUT_SINE 1
  89. #define LUT_SINE_SIZE 257
  90. #define LUT_LOGIT 2
  91. #define LUT_LOGIT_SIZE 257
  92. #define DIST_ICDF_0_0 0
  93. #define DIST_ICDF_0_0_SIZE 387
  94. #define DIST_ICDF_0_1 1
  95. #define DIST_ICDF_0_1_SIZE 387
  96. #define DIST_ICDF_0_2 2
  97. #define DIST_ICDF_0_2_SIZE 387
  98. #define DIST_ICDF_0_3 3
  99. #define DIST_ICDF_0_3_SIZE 387
  100. #define DIST_ICDF_0_4 4
  101. #define DIST_ICDF_0_4_SIZE 387
  102. #define DIST_ICDF_0_5 5
  103. #define DIST_ICDF_0_5_SIZE 387
  104. #define DIST_ICDF_0_6 6
  105. #define DIST_ICDF_0_6_SIZE 387
  106. #define DIST_ICDF_0_7 7
  107. #define DIST_ICDF_0_7_SIZE 387
  108. #define DIST_ICDF_0_8 8
  109. #define DIST_ICDF_0_8_SIZE 387
  110. #define DIST_ICDF_0_8_GUARD 9
  111. #define DIST_ICDF_0_8_GUARD_SIZE 387
  112. #define DIST_ICDF_1_0 10
  113. #define DIST_ICDF_1_0_SIZE 387
  114. #define DIST_ICDF_1_1 11
  115. #define DIST_ICDF_1_1_SIZE 387
  116. #define DIST_ICDF_1_2 12
  117. #define DIST_ICDF_1_2_SIZE 387
  118. #define DIST_ICDF_1_3 13
  119. #define DIST_ICDF_1_3_SIZE 387
  120. #define DIST_ICDF_1_4 14
  121. #define DIST_ICDF_1_4_SIZE 387
  122. #define DIST_ICDF_1_5 15
  123. #define DIST_ICDF_1_5_SIZE 387
  124. #define DIST_ICDF_1_6 16
  125. #define DIST_ICDF_1_6_SIZE 387
  126. #define DIST_ICDF_1_7 17
  127. #define DIST_ICDF_1_7_SIZE 387
  128. #define DIST_ICDF_1_8 18
  129. #define DIST_ICDF_1_8_SIZE 387
  130. #define DIST_ICDF_1_8_GUARD 19
  131. #define DIST_ICDF_1_8_GUARD_SIZE 387
  132. #define DIST_ICDF_2_0 20
  133. #define DIST_ICDF_2_0_SIZE 387
  134. #define DIST_ICDF_2_1 21
  135. #define DIST_ICDF_2_1_SIZE 387
  136. #define DIST_ICDF_2_2 22
  137. #define DIST_ICDF_2_2_SIZE 387
  138. #define DIST_ICDF_2_3 23
  139. #define DIST_ICDF_2_3_SIZE 387
  140. #define DIST_ICDF_2_4 24
  141. #define DIST_ICDF_2_4_SIZE 387
  142. #define DIST_ICDF_2_5 25
  143. #define DIST_ICDF_2_5_SIZE 387
  144. #define DIST_ICDF_2_6 26
  145. #define DIST_ICDF_2_6_SIZE 387
  146. #define DIST_ICDF_2_7 27
  147. #define DIST_ICDF_2_7_SIZE 387
  148. #define DIST_ICDF_2_8 28
  149. #define DIST_ICDF_2_8_SIZE 387
  150. #define DIST_ICDF_2_8_GUARD 29
  151. #define DIST_ICDF_2_8_GUARD_SIZE 387
  152. #define DIST_ICDF_3_0 30
  153. #define DIST_ICDF_3_0_SIZE 387
  154. #define DIST_ICDF_3_1 31
  155. #define DIST_ICDF_3_1_SIZE 387
  156. #define DIST_ICDF_3_2 32
  157. #define DIST_ICDF_3_2_SIZE 387
  158. #define DIST_ICDF_3_3 33
  159. #define DIST_ICDF_3_3_SIZE 387
  160. #define DIST_ICDF_3_4 34
  161. #define DIST_ICDF_3_4_SIZE 387
  162. #define DIST_ICDF_3_5 35
  163. #define DIST_ICDF_3_5_SIZE 387
  164. #define DIST_ICDF_3_6 36
  165. #define DIST_ICDF_3_6_SIZE 387
  166. #define DIST_ICDF_3_7 37
  167. #define DIST_ICDF_3_7_SIZE 387
  168. #define DIST_ICDF_3_8 38
  169. #define DIST_ICDF_3_8_SIZE 387
  170. #define DIST_ICDF_3_8_GUARD 39
  171. #define DIST_ICDF_3_8_GUARD_SIZE 387
  172. #define DIST_ICDF_4_0 40
  173. #define DIST_ICDF_4_0_SIZE 387
  174. #define DIST_ICDF_4_1 41
  175. #define DIST_ICDF_4_1_SIZE 387
  176. #define DIST_ICDF_4_2 42
  177. #define DIST_ICDF_4_2_SIZE 387
  178. #define DIST_ICDF_4_3 43
  179. #define DIST_ICDF_4_3_SIZE 387
  180. #define DIST_ICDF_4_4 44
  181. #define DIST_ICDF_4_4_SIZE 387
  182. #define DIST_ICDF_4_5 45
  183. #define DIST_ICDF_4_5_SIZE 387
  184. #define DIST_ICDF_4_6 46
  185. #define DIST_ICDF_4_6_SIZE 387
  186. #define DIST_ICDF_4_7 47
  187. #define DIST_ICDF_4_7_SIZE 387
  188. #define DIST_ICDF_4_8 48
  189. #define DIST_ICDF_4_8_SIZE 387
  190. #define DIST_ICDF_4_8_GUARD 49
  191. #define DIST_ICDF_4_8_GUARD_SIZE 387
  192. #define DIST_ICDF_4_0_GUARD 50
  193. #define DIST_ICDF_4_0_GUARD_SIZE 387
  194. #define DIST_ICDF_4_1_GUARD 51
  195. #define DIST_ICDF_4_1_GUARD_SIZE 387
  196. #define DIST_ICDF_4_2_GUARD 52
  197. #define DIST_ICDF_4_2_GUARD_SIZE 387
  198. #define DIST_ICDF_4_3_GUARD 53
  199. #define DIST_ICDF_4_3_GUARD_SIZE 387
  200. #define DIST_ICDF_4_4_GUARD 54
  201. #define DIST_ICDF_4_4_GUARD_SIZE 387
  202. #define DIST_ICDF_4_5_GUARD 55
  203. #define DIST_ICDF_4_5_GUARD_SIZE 387
  204. #define DIST_ICDF_4_6_GUARD 56
  205. #define DIST_ICDF_4_6_GUARD_SIZE 387
  206. #define DIST_ICDF_4_7_GUARD 57
  207. #define DIST_ICDF_4_7_GUARD_SIZE 387
  208. #define DIST__ICDF_4_8_GUARD 58
  209. #define DIST__ICDF_4_8_GUARD_SIZE 387
  210. #define DIST_ICDF_4_8_GUARD_GUARD 59
  211. #define DIST_ICDF_4_8_GUARD_GUARD_SIZE 387
  212. } // namespace marbles
  213. #endif // MARBLES_RESOURCES_H_