Leaked source code of windows server 2003
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.

413 lines
25 KiB

  1. //
  2. // Color Look Up Table (cLUTs) used to convert UYVY to RGB8
  3. //
  4. unsigned char const PalTable[] = {
  5. 0, 0, 0, PC_NOCOLLAPSE, // 0
  6. 128, 0, 0, PC_NOCOLLAPSE, // 1
  7. 0, 128, 0, PC_NOCOLLAPSE, // 2
  8. 128, 128, 0, PC_NOCOLLAPSE, // 3
  9. 0, 0, 128, PC_NOCOLLAPSE, // 4
  10. 128, 0, 128, PC_NOCOLLAPSE, // 5
  11. 0, 128, 128, PC_NOCOLLAPSE, // 6
  12. 192, 192, 192, PC_NOCOLLAPSE, // 7
  13. 192, 220, 192, PC_NOCOLLAPSE, // 8
  14. 166, 202, 240, PC_NOCOLLAPSE, // 9
  15. 0, 0, 0, PC_NOCOLLAPSE, // 10
  16. 0, 0, 0, PC_NOCOLLAPSE, // 11
  17. 0, 0, 0, PC_NOCOLLAPSE, // 12
  18. 0, 0, 0, PC_NOCOLLAPSE, // 13
  19. 0, 0, 0, PC_NOCOLLAPSE, // 14
  20. 0, 0, 0, PC_NOCOLLAPSE, // 15
  21. 0, 67, 0, PC_NOCOLLAPSE, // 16
  22. 0, 41, 0, PC_NOCOLLAPSE, // 17
  23. 35, 15, 0, PC_NOCOLLAPSE, // 18
  24. 86, 0, 0, PC_NOCOLLAPSE, // 19
  25. 0, 55, 0, PC_NOCOLLAPSE, // 20
  26. 0, 29, 0, PC_NOCOLLAPSE, // 21
  27. 35, 3, 0, PC_NOCOLLAPSE, // 22
  28. 86, 0, 0, PC_NOCOLLAPSE, // 23
  29. 0, 42, 42, PC_NOCOLLAPSE, // 24
  30. 0, 16, 42, PC_NOCOLLAPSE, // 25
  31. 35, 0, 42, PC_NOCOLLAPSE, // 26
  32. 86, 0, 42, PC_NOCOLLAPSE, // 27
  33. 0, 30, 106, PC_NOCOLLAPSE, // 28
  34. 0, 4, 106, PC_NOCOLLAPSE, // 29
  35. 35, 0, 106, PC_NOCOLLAPSE, // 30
  36. 86, 0, 106, PC_NOCOLLAPSE, // 31
  37. 0, 86, 0, PC_NOCOLLAPSE, // 32
  38. 2, 60, 0, PC_NOCOLLAPSE, // 33
  39. 53, 34, 0, PC_NOCOLLAPSE, // 34
  40. 105, 8, 0, PC_NOCOLLAPSE, // 35
  41. 0, 73, 0, PC_NOCOLLAPSE, // 36
  42. 2, 47, 0, PC_NOCOLLAPSE, // 37
  43. 53, 21, 0, PC_NOCOLLAPSE, // 38
  44. 105, 0, 0, PC_NOCOLLAPSE, // 39
  45. 0, 61, 60, PC_NOCOLLAPSE, // 40
  46. 2, 35, 60, PC_NOCOLLAPSE, // 41
  47. 53, 9, 60, PC_NOCOLLAPSE, // 42
  48. 105, 0, 60, PC_NOCOLLAPSE, // 43
  49. 0, 48, 125, PC_NOCOLLAPSE, // 44
  50. 2, 22, 125, PC_NOCOLLAPSE, // 45
  51. 53, 0, 125, PC_NOCOLLAPSE, // 46
  52. 105, 0, 125, PC_NOCOLLAPSE, // 47
  53. 0, 104, 0, PC_NOCOLLAPSE, // 48
  54. 21, 78, 0, PC_NOCOLLAPSE, // 49
  55. 72, 52, 0, PC_NOCOLLAPSE, // 50
  56. 123, 26, 0, PC_NOCOLLAPSE, // 51
  57. 0, 92, 14, PC_NOCOLLAPSE, // 52
  58. 21, 66, 14, PC_NOCOLLAPSE, // 53
  59. 72, 40, 14, PC_NOCOLLAPSE, // 54
  60. 123, 14, 14, PC_NOCOLLAPSE, // 55
  61. 0, 79, 79, PC_NOCOLLAPSE, // 56
  62. 21, 53, 79, PC_NOCOLLAPSE, // 57
  63. 72, 27, 79, PC_NOCOLLAPSE, // 58
  64. 123, 1, 79, PC_NOCOLLAPSE, // 59
  65. 0, 67, 143, PC_NOCOLLAPSE, // 60
  66. 21, 41, 143, PC_NOCOLLAPSE, // 61
  67. 72, 15, 143, PC_NOCOLLAPSE, // 62
  68. 123, 0, 143, PC_NOCOLLAPSE, // 63
  69. 0, 123, 0, PC_NOCOLLAPSE, // 64
  70. 40, 97, 0, PC_NOCOLLAPSE, // 65
  71. 91, 71, 0, PC_NOCOLLAPSE, // 66
  72. 142, 45, 0, PC_NOCOLLAPSE, // 67
  73. 0, 110, 33, PC_NOCOLLAPSE, // 68
  74. 40, 84, 33, PC_NOCOLLAPSE, // 69
  75. 91, 58, 33, PC_NOCOLLAPSE, // 70
  76. 142, 32, 33, PC_NOCOLLAPSE, // 71
  77. 0, 98, 97, PC_NOCOLLAPSE, // 72
  78. 40, 72, 97, PC_NOCOLLAPSE, // 73
  79. 91, 46, 97, PC_NOCOLLAPSE, // 74
  80. 142, 20, 97, PC_NOCOLLAPSE, // 75
  81. 0, 85, 162, PC_NOCOLLAPSE, // 76
  82. 40, 59, 162, PC_NOCOLLAPSE, // 77
  83. 91, 33, 162, PC_NOCOLLAPSE, // 78
  84. 142, 7, 162, PC_NOCOLLAPSE, // 79
  85. 7, 142, 0, PC_NOCOLLAPSE, // 80
  86. 58, 116, 0, PC_NOCOLLAPSE, // 81
  87. 109, 90, 0, PC_NOCOLLAPSE, // 82
  88. 160, 64, 0, PC_NOCOLLAPSE, // 83
  89. 7, 129, 52, PC_NOCOLLAPSE, // 84
  90. 58, 103, 52, PC_NOCOLLAPSE, // 85
  91. 109, 77, 52, PC_NOCOLLAPSE, // 86
  92. 160, 51, 52, PC_NOCOLLAPSE, // 87
  93. 7, 117, 116, PC_NOCOLLAPSE, // 88
  94. 58, 91, 116, PC_NOCOLLAPSE, // 89
  95. 109, 65, 116, PC_NOCOLLAPSE, // 90
  96. 160, 39, 116, PC_NOCOLLAPSE, // 91
  97. 7, 104, 181, PC_NOCOLLAPSE, // 92
  98. 58, 78, 181, PC_NOCOLLAPSE, // 93
  99. 109, 52, 181, PC_NOCOLLAPSE, // 94
  100. 160, 26, 181, PC_NOCOLLAPSE, // 95
  101. 26, 160, 6, PC_NOCOLLAPSE, // 96
  102. 77, 134, 6, PC_NOCOLLAPSE, // 97
  103. 128, 108, 6, PC_NOCOLLAPSE, // 98
  104. 179, 82, 6, PC_NOCOLLAPSE, // 99
  105. 26, 148, 70, PC_NOCOLLAPSE, // 100
  106. 77, 122, 70, PC_NOCOLLAPSE, // 101
  107. 128, 96, 70, PC_NOCOLLAPSE, // 102
  108. 179, 70, 70, PC_NOCOLLAPSE, // 103
  109. 26, 135, 135, PC_NOCOLLAPSE, // 104
  110. 77, 109, 135, PC_NOCOLLAPSE, // 105
  111. 128, 83, 135, PC_NOCOLLAPSE, // 106
  112. 179, 57, 135, PC_NOCOLLAPSE, // 107
  113. 26, 123, 199, PC_NOCOLLAPSE, // 108
  114. 77, 97, 199, PC_NOCOLLAPSE, // 109
  115. 128, 71, 199, PC_NOCOLLAPSE, // 110
  116. 179, 45, 199, PC_NOCOLLAPSE, // 111
  117. 44, 179, 24, PC_NOCOLLAPSE, // 112
  118. 96, 153, 24, PC_NOCOLLAPSE, // 113
  119. 147, 127, 24, PC_NOCOLLAPSE, // 114
  120. 198, 101, 24, PC_NOCOLLAPSE, // 115
  121. 44, 166, 89, PC_NOCOLLAPSE, // 116
  122. 96, 140, 89, PC_NOCOLLAPSE, // 117
  123. 147, 114, 89, PC_NOCOLLAPSE, // 118
  124. 198, 88, 89, PC_NOCOLLAPSE, // 119
  125. 44, 154, 153, PC_NOCOLLAPSE, // 120
  126. 96, 128, 153, PC_NOCOLLAPSE, // 121
  127. 147, 102, 153, PC_NOCOLLAPSE, // 122
  128. 198, 76, 153, PC_NOCOLLAPSE, // 123
  129. 44, 141, 218, PC_NOCOLLAPSE, // 124
  130. 96, 115, 218, PC_NOCOLLAPSE, // 125
  131. 147, 89, 218, PC_NOCOLLAPSE, // 126
  132. 198, 63, 218, PC_NOCOLLAPSE, // 127
  133. 63, 198, 43, PC_NOCOLLAPSE, // 128
  134. 114, 172, 43, PC_NOCOLLAPSE, // 129
  135. 165, 146, 43, PC_NOCOLLAPSE, // 130
  136. 216, 120, 43, PC_NOCOLLAPSE, // 131
  137. 63, 185, 107, PC_NOCOLLAPSE, // 132
  138. 114, 159, 107, PC_NOCOLLAPSE, // 133
  139. 165, 133, 107, PC_NOCOLLAPSE, // 134
  140. 216, 107, 107, PC_NOCOLLAPSE, // 135
  141. 63, 172, 172, PC_NOCOLLAPSE, // 136
  142. 114, 146, 172, PC_NOCOLLAPSE, // 137
  143. 165, 120, 172, PC_NOCOLLAPSE, // 138
  144. 216, 94, 172, PC_NOCOLLAPSE, // 139
  145. 63, 160, 237, PC_NOCOLLAPSE, // 140
  146. 114, 134, 237, PC_NOCOLLAPSE, // 141
  147. 165, 108, 237, PC_NOCOLLAPSE, // 142
  148. 216, 82, 237, PC_NOCOLLAPSE, // 143
  149. 82, 216, 62, PC_NOCOLLAPSE, // 144
  150. 133, 190, 62, PC_NOCOLLAPSE, // 145
  151. 184, 164, 62, PC_NOCOLLAPSE, // 146
  152. 235, 138, 62, PC_NOCOLLAPSE, // 147
  153. 82, 204, 126, PC_NOCOLLAPSE, // 148
  154. 133, 178, 126, PC_NOCOLLAPSE, // 149
  155. 184, 152, 126, PC_NOCOLLAPSE, // 150
  156. 235, 126, 126, PC_NOCOLLAPSE, // 151
  157. 82, 191, 191, PC_NOCOLLAPSE, // 152
  158. 133, 165, 191, PC_NOCOLLAPSE, // 153
  159. 184, 139, 191, PC_NOCOLLAPSE, // 154
  160. 235, 113, 191, PC_NOCOLLAPSE, // 155
  161. 82, 179, 255, PC_NOCOLLAPSE, // 156
  162. 133, 153, 255, PC_NOCOLLAPSE, // 157
  163. 184, 127, 255, PC_NOCOLLAPSE, // 158
  164. 235, 101, 255, PC_NOCOLLAPSE, // 159
  165. 100, 235, 80, PC_NOCOLLAPSE, // 160
  166. 151, 209, 80, PC_NOCOLLAPSE, // 161
  167. 203, 183, 80, PC_NOCOLLAPSE, // 162
  168. 254, 157, 80, PC_NOCOLLAPSE, // 163
  169. 100, 222, 145, PC_NOCOLLAPSE, // 164
  170. 151, 196, 145, PC_NOCOLLAPSE, // 165
  171. 203, 170, 145, PC_NOCOLLAPSE, // 166
  172. 254, 144, 145, PC_NOCOLLAPSE, // 167
  173. 100, 210, 209, PC_NOCOLLAPSE, // 168
  174. 151, 184, 209, PC_NOCOLLAPSE, // 169
  175. 203, 158, 209, PC_NOCOLLAPSE, // 170
  176. 254, 132, 209, PC_NOCOLLAPSE, // 171
  177. 100, 197, 255, PC_NOCOLLAPSE, // 172
  178. 151, 171, 255, PC_NOCOLLAPSE, // 173
  179. 203, 145, 255, PC_NOCOLLAPSE, // 174
  180. 254, 119, 255, PC_NOCOLLAPSE, // 175
  181. 119, 253, 99, PC_NOCOLLAPSE, // 176
  182. 170, 227, 99, PC_NOCOLLAPSE, // 177
  183. 221, 201, 99, PC_NOCOLLAPSE, // 178
  184. 255, 175, 99, PC_NOCOLLAPSE, // 179
  185. 119, 241, 163, PC_NOCOLLAPSE, // 180
  186. 170, 215, 163, PC_NOCOLLAPSE, // 181
  187. 221, 189, 163, PC_NOCOLLAPSE, // 182
  188. 255, 163, 163, PC_NOCOLLAPSE, // 183
  189. 119, 228, 228, PC_NOCOLLAPSE, // 184
  190. 170, 202, 228, PC_NOCOLLAPSE, // 185
  191. 221, 176, 228, PC_NOCOLLAPSE, // 186
  192. 255, 150, 228, PC_NOCOLLAPSE, // 187
  193. 119, 216, 255, PC_NOCOLLAPSE, // 188
  194. 170, 190, 255, PC_NOCOLLAPSE, // 189
  195. 221, 164, 255, PC_NOCOLLAPSE, // 190
  196. 255, 138, 255, PC_NOCOLLAPSE, // 191
  197. 138, 255, 117, PC_NOCOLLAPSE, // 192
  198. 189, 246, 117, PC_NOCOLLAPSE, // 193
  199. 240, 220, 117, PC_NOCOLLAPSE, // 194
  200. 255, 194, 117, PC_NOCOLLAPSE, // 195
  201. 138, 255, 182, PC_NOCOLLAPSE, // 196
  202. 189, 234, 182, PC_NOCOLLAPSE, // 197
  203. 240, 208, 182, PC_NOCOLLAPSE, // 198
  204. 255, 181, 182, PC_NOCOLLAPSE, // 199
  205. 138, 247, 247, PC_NOCOLLAPSE, // 200
  206. 189, 221, 247, PC_NOCOLLAPSE, // 201
  207. 240, 195, 247, PC_NOCOLLAPSE, // 202
  208. 255, 169, 247, PC_NOCOLLAPSE, // 203
  209. 138, 234, 255, PC_NOCOLLAPSE, // 204
  210. 189, 208, 255, PC_NOCOLLAPSE, // 205
  211. 240, 182, 255, PC_NOCOLLAPSE, // 206
  212. 255, 156, 255, PC_NOCOLLAPSE, // 207
  213. 156, 255, 136, PC_NOCOLLAPSE, // 208
  214. 207, 255, 136, PC_NOCOLLAPSE, // 209
  215. 255, 239, 136, PC_NOCOLLAPSE, // 210
  216. 255, 213, 136, PC_NOCOLLAPSE, // 211
  217. 156, 255, 201, PC_NOCOLLAPSE, // 212
  218. 207, 252, 201, PC_NOCOLLAPSE, // 213
  219. 255, 226, 201, PC_NOCOLLAPSE, // 214
  220. 255, 200, 201, PC_NOCOLLAPSE, // 215
  221. 156, 255, 255, PC_NOCOLLAPSE, // 216
  222. 207, 240, 255, PC_NOCOLLAPSE, // 217
  223. 255, 214, 255, PC_NOCOLLAPSE, // 218
  224. 255, 188, 255, PC_NOCOLLAPSE, // 219
  225. 156, 253, 255, PC_NOCOLLAPSE, // 220
  226. 207, 227, 255, PC_NOCOLLAPSE, // 221
  227. 255, 201, 255, PC_NOCOLLAPSE, // 222
  228. 255, 175, 255, PC_NOCOLLAPSE, // 223
  229. 175, 255, 155, PC_NOCOLLAPSE, // 224
  230. 226, 255, 155, PC_NOCOLLAPSE, // 225
  231. 255, 255, 155, PC_NOCOLLAPSE, // 226
  232. 255, 231, 155, PC_NOCOLLAPSE, // 227
  233. 175, 255, 219, PC_NOCOLLAPSE, // 228
  234. 226, 255, 219, PC_NOCOLLAPSE, // 229
  235. 255, 245, 219, PC_NOCOLLAPSE, // 230
  236. 255, 219, 219, PC_NOCOLLAPSE, // 231
  237. 175, 255, 255, PC_NOCOLLAPSE, // 232
  238. 226, 255, 255, PC_NOCOLLAPSE, // 233
  239. 255, 232, 255, PC_NOCOLLAPSE, // 234
  240. 255, 206, 255, PC_NOCOLLAPSE, // 235
  241. 175, 255, 255, PC_NOCOLLAPSE, // 236
  242. 226, 246, 255, PC_NOCOLLAPSE, // 237
  243. 255, 220, 255, PC_NOCOLLAPSE, // 238
  244. 255, 194, 255, PC_NOCOLLAPSE, // 239
  245. 0, 0, 0, PC_NOCOLLAPSE, // 240
  246. 0, 0, 0, PC_NOCOLLAPSE, // 241
  247. 0, 0, 0, PC_NOCOLLAPSE, // 242
  248. 0, 0, 0, PC_NOCOLLAPSE, // 243
  249. 0, 0, 0, PC_NOCOLLAPSE, // 244
  250. 0, 0, 0, PC_NOCOLLAPSE, // 245
  251. 255, 251, 240, PC_NOCOLLAPSE, // 246
  252. 160, 160, 164, PC_NOCOLLAPSE, // 247
  253. 128, 128, 128, PC_NOCOLLAPSE, // 248
  254. 255, 0, 0, PC_NOCOLLAPSE, // 249
  255. 0, 255, 0, PC_NOCOLLAPSE, // 250
  256. 255, 255, 0, PC_NOCOLLAPSE, // 251
  257. 0, 0, 255, PC_NOCOLLAPSE, // 252
  258. 255, 0, 255, PC_NOCOLLAPSE, // 253
  259. 0, 255, 255, PC_NOCOLLAPSE, // 254
  260. 255, 255, 255, PC_NOCOLLAPSE // 255
  261. };
  262. unsigned long yLUT_0[272] = {
  263. 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, // 00
  264. 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, // 01
  265. 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, // 02
  266. 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, // 03
  267. 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010, // 04
  268. 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, // 05
  269. 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000030, 0x00000030, 0x00000030, 0x00000030, // 06
  270. 0x00000030, 0x00000030, 0x00000030, 0x00000030, 0x00000030, 0x00000030, 0x00000030, 0x00000030, // 07
  271. 0x00000030, 0x00000030, 0x00000030, 0x00000030, 0x00000040, 0x00000040, 0x00000040, 0x00000040, // 08
  272. 0x00000040, 0x00000040, 0x00000040, 0x00000040, 0x00000040, 0x00000040, 0x00000040, 0x00000040, // 10
  273. 0x00000040, 0x00000040, 0x00000040, 0x00000040, 0x00000050, 0x00000050, 0x00000050, 0x00000050, // 11
  274. 0x00000050, 0x00000050, 0x00000050, 0x00000050, 0x00000050, 0x00000050, 0x00000050, 0x00000050, // 12
  275. 0x00000050, 0x00000050, 0x00000050, 0x00000050, 0x00000060, 0x00000060, 0x00000060, 0x00000060, // 13
  276. 0x00000060, 0x00000060, 0x00000060, 0x00000060, 0x00000060, 0x00000060, 0x00000060, 0x00000060, // 14
  277. 0x00000060, 0x00000060, 0x00000060, 0x00000060, 0x00000070, 0x00000070, 0x00000070, 0x00000070, // 15
  278. 0x00000070, 0x00000070, 0x00000070, 0x00000070, 0x00000070, 0x00000070, 0x00000070, 0x00000070, // 16
  279. 0x00000070, 0x00000070, 0x00000070, 0x00000070, 0x00000080, 0x00000080, 0x00000080, 0x00000080, // 17
  280. 0x00000080, 0x00000080, 0x00000080, 0x00000080, 0x00000080, 0x00000080, 0x00000080, 0x00000080, // 18
  281. 0x00000080, 0x00000080, 0x00000080, 0x00000080, 0x00000090, 0x00000090, 0x00000090, 0x00000090, // 19
  282. 0x00000090, 0x00000090, 0x00000090, 0x00000090, 0x00000090, 0x00000090, 0x00000090, 0x00000090, // 20
  283. 0x00000090, 0x00000090, 0x00000090, 0x00000090, 0x000000A0, 0x000000A0, 0x000000A0, 0x000000A0, // 21
  284. 0x000000A0, 0x000000A0, 0x000000A0, 0x000000A0, 0x000000A0, 0x000000A0, 0x000000A0, 0x000000A0, // 22
  285. 0x000000A0, 0x000000A0, 0x000000A0, 0x000000A0, 0x000000B0, 0x000000B0, 0x000000B0, 0x000000B0, // 23
  286. 0x000000B0, 0x000000B0, 0x000000B0, 0x000000B0, 0x000000B0, 0x000000B0, 0x000000B0, 0x000000B0, // 24
  287. 0x000000B0, 0x000000B0, 0x000000B0, 0x000000B0, 0x000000C0, 0x000000C0, 0x000000C0, 0x000000C0, // 25
  288. 0x000000C0, 0x000000C0, 0x000000C0, 0x000000C0, 0x000000C0, 0x000000C0, 0x000000C0, 0x000000C0, // 26
  289. 0x000000C0, 0x000000C0, 0x000000C0, 0x000000C0, 0x000000D0, 0x000000D0, 0x000000D0, 0x000000D0, // 27
  290. 0x000000D0, 0x000000D0, 0x000000D0, 0x000000D0, 0x000000D0, 0x000000D0, 0x000000D0, 0x000000D0, // 28
  291. 0x000000D0, 0x000000D0, 0x000000D0, 0x000000D0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, // 29
  292. 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, // 30
  293. 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, // 31
  294. 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, // 32
  295. 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, // 33
  296. 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0, 0x000000E0 // 34
  297. };
  298. unsigned long yLUT_1[272] = {
  299. 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, // 00
  300. 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, // 01
  301. 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, // 02
  302. 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, // 03
  303. 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, 0x00001000, // 04
  304. 0x00002000, 0x00002000, 0x00002000, 0x00002000, 0x00002000, 0x00002000, 0x00002000, 0x00002000, // 05
  305. 0x00002000, 0x00002000, 0x00002000, 0x00002000, 0x00003000, 0x00003000, 0x00003000, 0x00003000, // 06
  306. 0x00003000, 0x00003000, 0x00003000, 0x00003000, 0x00003000, 0x00003000, 0x00003000, 0x00003000, // 07
  307. 0x00003000, 0x00003000, 0x00003000, 0x00003000, 0x00004000, 0x00004000, 0x00004000, 0x00004000, // 08
  308. 0x00004000, 0x00004000, 0x00004000, 0x00004000, 0x00004000, 0x00004000, 0x00004000, 0x00004000, // 10
  309. 0x00004000, 0x00004000, 0x00004000, 0x00004000, 0x00005000, 0x00005000, 0x00005000, 0x00005000, // 11
  310. 0x00005000, 0x00005000, 0x00005000, 0x00005000, 0x00005000, 0x00005000, 0x00005000, 0x00005000, // 12
  311. 0x00005000, 0x00005000, 0x00005000, 0x00005000, 0x00006000, 0x00006000, 0x00006000, 0x00006000, // 13
  312. 0x00006000, 0x00006000, 0x00006000, 0x00006000, 0x00006000, 0x00006000, 0x00006000, 0x00006000, // 14
  313. 0x00006000, 0x00006000, 0x00006000, 0x00006000, 0x00007000, 0x00007000, 0x00007000, 0x00007000, // 15
  314. 0x00007000, 0x00007000, 0x00007000, 0x00007000, 0x00007000, 0x00007000, 0x00007000, 0x00007000, // 16
  315. 0x00007000, 0x00007000, 0x00007000, 0x00007000, 0x00008000, 0x00008000, 0x00008000, 0x00008000, // 17
  316. 0x00008000, 0x00008000, 0x00008000, 0x00008000, 0x00008000, 0x00008000, 0x00008000, 0x00008000, // 18
  317. 0x00008000, 0x00008000, 0x00008000, 0x00008000, 0x00009000, 0x00009000, 0x00009000, 0x00009000, // 19
  318. 0x00009000, 0x00009000, 0x00009000, 0x00009000, 0x00009000, 0x00009000, 0x00009000, 0x00009000, // 20
  319. 0x00009000, 0x00009000, 0x00009000, 0x00009000, 0x0000A000, 0x0000A000, 0x0000A000, 0x0000A000, // 21
  320. 0x0000A000, 0x0000A000, 0x0000A000, 0x0000A000, 0x0000A000, 0x0000A000, 0x0000A000, 0x0000A000, // 22
  321. 0x0000A000, 0x0000A000, 0x0000A000, 0x0000A000, 0x0000B000, 0x0000B000, 0x0000B000, 0x0000B000, // 23
  322. 0x0000B000, 0x0000B000, 0x0000B000, 0x0000B000, 0x0000B000, 0x0000B000, 0x0000B000, 0x0000B000, // 24
  323. 0x0000B000, 0x0000B000, 0x0000B000, 0x0000B000, 0x0000C000, 0x0000C000, 0x0000C000, 0x0000C000, // 25
  324. 0x0000C000, 0x0000C000, 0x0000C000, 0x0000C000, 0x0000C000, 0x0000C000, 0x0000C000, 0x0000C000, // 26
  325. 0x0000C000, 0x0000C000, 0x0000C000, 0x0000C000, 0x0000D000, 0x0000D000, 0x0000D000, 0x0000D000, // 27
  326. 0x0000D000, 0x0000D000, 0x0000D000, 0x0000D000, 0x0000D000, 0x0000D000, 0x0000D000, 0x0000D000, // 28
  327. 0x0000D000, 0x0000D000, 0x0000D000, 0x0000D000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, // 29
  328. 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, // 30
  329. 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, // 31
  330. 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, // 32
  331. 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, // 33
  332. 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000, 0x0000E000 // 34
  333. };
  334. unsigned long cLUT_R0[260] = {
  335. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  336. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  337. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  338. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  339. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  340. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  341. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  342. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  343. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  344. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  345. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  346. 0x00010000, 0x00010000, 0x00010000, 0x00010000, 0x00010000, 0x00010000, 0x00010000, 0x00010000,
  347. 0x00010100, 0x00010100, 0x00010100, 0x00010100, 0x00010100, 0x00010100, 0x00010100, 0x00010100,
  348. 0x01010100, 0x01010100, 0x01010100, 0x01010100, 0x01010100, 0x01010100, 0x01010100, 0x01010100,
  349. 0x01010101, 0x01010101, 0x01010101, 0x01010101, 0x01010101, 0x01010101, 0x01010101, 0x01010101,
  350. 0x01020101, 0x01020101, 0x01020101, 0x01020101, 0x01020101, 0x01020101, 0x01020101, 0x01020101,
  351. 0x01020201, 0x01020201, 0x01020201, 0x01020201, 0x01020201, 0x01020201, 0x01020201, 0x01020201,
  352. 0x02020201, 0x02020201, 0x02020201, 0x02020201, 0x02020201, 0x02020201, 0x02020201, 0x02020201,
  353. 0x02020202, 0x02020202, 0x02020202, 0x02020202, 0x02020202, 0x02020202, 0x02020202, 0x02020202,
  354. 0x02030202, 0x02030202, 0x02030202, 0x02030202, 0x02030202, 0x02030202, 0x02030202, 0x02030202,
  355. 0x02030302, 0x02030302, 0x02030302, 0x02030302, 0x02030302, 0x02030302, 0x02030302, 0x02030302,
  356. 0x03030302, 0x03030302, 0x03030302, 0x03030302, 0x03030302, 0x03030302, 0x03030302, 0x03030302,
  357. 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303,
  358. 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303,
  359. 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303,
  360. 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303,
  361. 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303,
  362. 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303,
  363. 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303,
  364. 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303,
  365. 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303,
  366. 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303, 0x03030303,
  367. 0x03030303, 0x03030303, 0x03030303, 0x03030303
  368. };
  369. unsigned long cLUT_B0[260] = {
  370. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  371. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  372. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  373. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  374. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  375. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  376. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  377. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  378. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  379. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  380. 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  381. 0x00040000, 0x00040000, 0x00040000, 0x00040000, 0x00040000, 0x00040000, 0x00040000, 0x00040000,
  382. 0x00040400, 0x00040400, 0x00040400, 0x00040400, 0x00040400, 0x00040400, 0x00040400, 0x00040400,
  383. 0x04040400, 0x04040400, 0x04040400, 0x04040400, 0x04040400, 0x04040400, 0x04040400, 0x04040400,
  384. 0x04040404, 0x04040404, 0x04040404, 0x04040404, 0x04040404, 0x04040404, 0x04040404, 0x04040404,
  385. 0x04080404, 0x04080404, 0x04080404, 0x04080404, 0x04080404, 0x04080404, 0x04080404, 0x04080404,
  386. 0x04080804, 0x04080804, 0x04080804, 0x04080804, 0x04080804, 0x04080804, 0x04080804, 0x04080804,
  387. 0x08080804, 0x08080804, 0x08080804, 0x08080804, 0x08080804, 0x08080804, 0x08080804, 0x08080804,
  388. 0x08080808, 0x08080808, 0x08080808, 0x08080808, 0x08080808, 0x08080808, 0x08080808, 0x08080808,
  389. 0x080C0808, 0x080C0808, 0x080C0808, 0x080C0808, 0x080C0808, 0x080C0808, 0x080C0808, 0x080C0808,
  390. 0x080C0C08, 0x080C0C08, 0x080C0C08, 0x080C0C08, 0x080C0C08, 0x080C0C08, 0x080C0C08, 0x080C0C08,
  391. 0x0C0C0C08, 0x0C0C0C08, 0x0C0C0C08, 0x0C0C0C08, 0x0C0C0C08, 0x0C0C0C08, 0x0C0C0C08, 0x0C0C0C08,
  392. 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C,
  393. 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C,
  394. 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C,
  395. 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C,
  396. 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C,
  397. 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C,
  398. 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C,
  399. 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C,
  400. 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C,
  401. 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C,
  402. 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C, 0x0C0C0C0C
  403. };