Advertisement
dominus

Untitled

Oct 31st, 2011
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 94.99 KB | None | 0 0
  1. Index: graphics/scalers/hq2xScaler.cpp
  2. ===================================================================
  3. --- graphics/scalers/hq2xScaler.cpp (Revision 2497)
  4. +++ graphics/scalers/hq2xScaler.cpp (Arbeitskopie)
  5. @@ -76,6 +76,38 @@
  6.  
  7. }
  8.  
  9. + static inline void Interp3(uint8 * pc, uintS c1, uintS c2)
  10. + {
  11. +
  12. + uint8 rgba1[4];
  13. + uint8 rgba2[4];
  14. + uint8 res[4];
  15. +
  16. + Manip::split(c1,rgba1[0], rgba1[1], rgba1[2], rgba1[3]);
  17. + Manip::split(c2,rgba2[0], rgba2[1], rgba2[2], rgba2[3]);
  18. +
  19. + for (int i=0; i<4; i++) res[i]=(rgba1[i]*7+rgba2[i])>>3;
  20. +
  21. + *reinterpret_cast<uintX*>(pc) = Manip::merge(res[0],res[1],res[2],res[3]);
  22. + }
  23. +
  24. + static inline void Interp4(uint8 * pc, uintS c1, uintS c2, uintS c3)
  25. + {
  26. + uint8 rgba1[4];
  27. + uint8 rgba2[4];
  28. + uint8 rgba3[4];
  29. + uint8 res[4];
  30. +
  31. + Manip::split(c1,rgba1[0], rgba1[1], rgba1[2], rgba1[3]);
  32. + Manip::split(c2,rgba2[0], rgba2[1], rgba2[2], rgba2[3]);
  33. + Manip::split(c3,rgba3[0], rgba3[1], rgba3[2], rgba3[3]);
  34. +
  35. + for (int i=0; i<4; i++) res[i]=(rgba1[i]*2+rgba2[i]+rgba3[i]*7)>>4;
  36. +
  37. + *reinterpret_cast<uintX*>(pc) = Manip::merge(res[0],res[1],res[2],res[3]);
  38. +
  39. + }
  40. +
  41. static inline void Interp5(uint8 * pc, uintS c1, uintS c2)
  42. {
  43. // *((int*)pc) = (c1+c2) >> 1;
  44. @@ -174,55 +206,60 @@
  45. }
  46.  
  47.  
  48. -#define PIXEL00_0 *(reinterpret_cast<uintX*>(pOut)) = Manip::copy(c32[5]);
  49. -#define PIXEL00_10 Interp1(pOut, c32[5], c32[1]);
  50. -#define PIXEL00_11 Interp1(pOut, c32[5], c32[4]);
  51. -#define PIXEL00_12 Interp1(pOut, c32[5], c32[2]);
  52. -#define PIXEL00_20 Interp2(pOut, c32[5], c32[4], c32[2]);
  53. -#define PIXEL00_21 Interp2(pOut, c32[5], c32[1], c32[2]);
  54. -#define PIXEL00_22 Interp2(pOut, c32[5], c32[1], c32[4]);
  55. -#define PIXEL00_60 Interp6(pOut, c32[5], c32[2], c32[4]);
  56. -#define PIXEL00_61 Interp6(pOut, c32[5], c32[4], c32[2]);
  57. -#define PIXEL00_70 Interp7(pOut, c32[5], c32[4], c32[2]);
  58. -#define PIXEL00_90 Interp9(pOut, c32[5], c32[4], c32[2]);
  59. -#define PIXEL00_100 Interp10(pOut, c32[5], c32[4], c32[2]);
  60. -#define PIXEL01_0 *(reinterpret_cast<uintX*>(pOut+sizeof(uintX))) = Manip::copy(c32[5]);
  61. -#define PIXEL01_10 Interp1(pOut+sizeof(uintX), c32[5], c32[3]);
  62. -#define PIXEL01_11 Interp1(pOut+sizeof(uintX), c32[5], c32[2]);
  63. -#define PIXEL01_12 Interp1(pOut+sizeof(uintX), c32[5], c32[6]);
  64. -#define PIXEL01_20 Interp2(pOut+sizeof(uintX), c32[5], c32[2], c32[6]);
  65. -#define PIXEL01_21 Interp2(pOut+sizeof(uintX), c32[5], c32[3], c32[6]);
  66. -#define PIXEL01_22 Interp2(pOut+sizeof(uintX), c32[5], c32[3], c32[2]);
  67. -#define PIXEL01_60 Interp6(pOut+sizeof(uintX), c32[5], c32[6], c32[2]);
  68. -#define PIXEL01_61 Interp6(pOut+sizeof(uintX), c32[5], c32[2], c32[6]);
  69. -#define PIXEL01_70 Interp7(pOut+sizeof(uintX), c32[5], c32[2], c32[6]);
  70. -#define PIXEL01_90 Interp9(pOut+sizeof(uintX), c32[5], c32[2], c32[6]);
  71. -#define PIXEL01_100 Interp10(pOut+sizeof(uintX), c32[5], c32[2], c32[6]);
  72. -#define PIXEL10_0 *(reinterpret_cast<uintX*>(pOut+BpL)) = Manip::copy(c32[5]);
  73. -#define PIXEL10_10 Interp1(pOut+BpL, c32[5], c32[7]);
  74. -#define PIXEL10_11 Interp1(pOut+BpL, c32[5], c32[8]);
  75. -#define PIXEL10_12 Interp1(pOut+BpL, c32[5], c32[4]);
  76. -#define PIXEL10_20 Interp2(pOut+BpL, c32[5], c32[8], c32[4]);
  77. -#define PIXEL10_21 Interp2(pOut+BpL, c32[5], c32[7], c32[4]);
  78. -#define PIXEL10_22 Interp2(pOut+BpL, c32[5], c32[7], c32[8]);
  79. -#define PIXEL10_60 Interp6(pOut+BpL, c32[5], c32[4], c32[8]);
  80. -#define PIXEL10_61 Interp6(pOut+BpL, c32[5], c32[8], c32[4]);
  81. -#define PIXEL10_70 Interp7(pOut+BpL, c32[5], c32[8], c32[4]);
  82. -#define PIXEL10_90 Interp9(pOut+BpL, c32[5], c32[8], c32[4]);
  83. -#define PIXEL10_100 Interp10(pOut+BpL, c32[5], c32[8], c32[4]);
  84. -#define PIXEL11_0 *(reinterpret_cast<uintX*>(pOut+BpL+sizeof(uintX))) = Manip::copy(c32[5]);
  85. -#define PIXEL11_10 Interp1(pOut+BpL+sizeof(uintX), c32[5], c32[9]);
  86. -#define PIXEL11_11 Interp1(pOut+BpL+sizeof(uintX), c32[5], c32[6]);
  87. -#define PIXEL11_12 Interp1(pOut+BpL+sizeof(uintX), c32[5], c32[8]);
  88. -#define PIXEL11_20 Interp2(pOut+BpL+sizeof(uintX), c32[5], c32[6], c32[8]);
  89. -#define PIXEL11_21 Interp2(pOut+BpL+sizeof(uintX), c32[5], c32[9], c32[8]);
  90. -#define PIXEL11_22 Interp2(pOut+BpL+sizeof(uintX), c32[5], c32[9], c32[6]);
  91. -#define PIXEL11_60 Interp6(pOut+BpL+sizeof(uintX), c32[5], c32[8], c32[6]);
  92. -#define PIXEL11_61 Interp6(pOut+BpL+sizeof(uintX), c32[5], c32[6], c32[8]);
  93. -#define PIXEL11_70 Interp7(pOut+BpL+sizeof(uintX), c32[5], c32[6], c32[8]);
  94. -#define PIXEL11_90 Interp9(pOut+BpL+sizeof(uintX), c32[5], c32[6], c32[8]);
  95. -#define PIXEL11_100 Interp10(pOut+BpL+sizeof(uintX), c32[5], c32[6], c32[8]);
  96. +#define PIXEL00_1M Interp1(pOut, c32[5], c32[1]);
  97. +#define PIXEL00_1U Interp1(pOut, c32[5], c32[2]);
  98. +#define PIXEL00_1L Interp1(pOut, c32[5], c32[4]);
  99. +#define PIXEL00_2 Interp2(pOut, c32[5], c32[4], c32[2]);
  100. +#define PIXEL00_4 Interp4(pOut, c32[5], c32[4], c32[2]);
  101. +#define PIXEL00_5 Interp5(pOut, c32[4], c32[2]);
  102. +#define PIXEL00_C *(reinterpret_cast<uintX*>(pOut)) = Manip::copy(c32[5]);
  103.  
  104. +#define PIXEL01_1 Interp1(pOut+sizeof(uintX), c32[5], c32[2]);
  105. +#define PIXEL01_3 Interp3(pOut+sizeof(uintX), c32[5], c32[2]);
  106. +#define PIXEL01_6 Interp1(pOut+sizeof(uintX), c32[2], c32[5]);
  107. +#define PIXEL01_C *(reinterpret_cast<uintX*>(pOut+sizeof(uintX))) = Manip::copy(c32[5]);
  108. +
  109. +#define PIXEL02_1M Interp1(pOut+2*sizeof(uintX), c32[5], c32[3]);
  110. +#define PIXEL02_1U Interp1(pOut+2*sizeof(uintX), c32[5], c32[2]);
  111. +#define PIXEL02_1R Interp1(pOut+2*sizeof(uintX), c32[5], c32[6]);
  112. +#define PIXEL02_2 Interp2(pOut+2*sizeof(uintX), c32[5], c32[2], c32[6]);
  113. +#define PIXEL02_4 Interp4(pOut+2*sizeof(uintX), c32[5], c32[2], c32[6]);
  114. +#define PIXEL02_5 Interp5(pOut+2*sizeof(uintX), c32[2], c32[6]);
  115. +#define PIXEL02_C *(reinterpret_cast<uintX*>(pOut+2*sizeof(uintX))) = Manip::copy(c32[5]);
  116. +
  117. +#define PIXEL10_1 Interp1(pOut+BpL, c32[5], c32[4]);
  118. +#define PIXEL10_3 Interp3(pOut+BpL, c32[5], c32[4]);
  119. +#define PIXEL10_6 Interp1(pOut+BpL, c32[4], c32[5]);
  120. +#define PIXEL10_C *(reinterpret_cast<uintX*>(pOut+BpL)) = Manip::copy(c32[5]);
  121. +
  122. +#define PIXEL11 *(reinterpret_cast<uintX*>(pOut+BpL+sizeof(uintX))) = Manip::copy(c32[5]);
  123. +
  124. +#define PIXEL12_1 Interp1(pOut+BpL+2*sizeof(uintX), c32[5], c32[6]);
  125. +#define PIXEL12_3 Interp3(pOut+BpL+2*sizeof(uintX), c32[5], c32[6]);
  126. +#define PIXEL12_6 Interp1(pOut+BpL+2*sizeof(uintX), c32[6], c32[5]);
  127. +#define PIXEL12_C *(reinterpret_cast<uintX*>(pOut+BpL+2*sizeof(uintX))) = Manip::copy(c32[5]);
  128. +
  129. +#define PIXEL20_1M Interp1(pOut+2*BpL, c32[5], c32[7]);
  130. +#define PIXEL20_1D Interp1(pOut+2*BpL, c32[5], c32[8]);
  131. +#define PIXEL20_1L Interp1(pOut+2*BpL, c32[5], c32[4]);
  132. +#define PIXEL20_2 Interp2(pOut+2*BpL, c32[5], c32[8], c32[4]);
  133. +#define PIXEL20_4 Interp4(pOut+2*BpL, c32[5], c32[8], c32[4]);
  134. +#define PIXEL20_5 Interp5(pOut+2*BpL, c32[8], c32[4]);
  135. +#define PIXEL20_C *(reinterpret_cast<uintX*>(pOut+2*BpL)) = Manip::copy(c32[5]);
  136. +
  137. +#define PIXEL21_1 Interp1(pOut+2*BpL+sizeof(uintX), c32[5], c32[8]);
  138. +#define PIXEL21_3 Interp3(pOut+2*BpL+sizeof(uintX), c32[5], c32[8]);
  139. +#define PIXEL21_6 Interp1(pOut+2*BpL+sizeof(uintX), c32[8], c32[5]);
  140. +#define PIXEL21_C *(reinterpret_cast<uintX*>(pOut+2*BpL+sizeof(uintX))) = Manip::copy(c32[5]);
  141. +
  142. +#define PIXEL22_1M Interp1(pOut+2*BpL+2*sizeof(uintX), c32[5], c32[9]);
  143. +#define PIXEL22_1D Interp1(pOut+2*BpL+2*sizeof(uintX), c32[5], c32[8]);
  144. +#define PIXEL22_1R Interp1(pOut+2*BpL+2*sizeof(uintX), c32[5], c32[6]);
  145. +#define PIXEL22_2 Interp2(pOut+2*BpL+2*sizeof(uintX), c32[5], c32[6], c32[8]);
  146. +#define PIXEL22_4 Interp4(pOut+2*BpL+2*sizeof(uintX), c32[5], c32[6], c32[8]);
  147. +#define PIXEL22_5 Interp5(pOut+2*BpL+2*sizeof(uintX), c32[6], c32[8]);
  148. +#define PIXEL22_C *(reinterpret_cast<uintX*>(pOut+2*BpL+2*sizeof(uintX))) = Manip::copy(c32[5]);
  149. +
  150. static inline bool Diff(unsigned int w1, unsigned int w2)
  151. {
  152. YUV1 = RGBtoYUV[w1];
  153. @@ -258,7 +295,7 @@
  154. static bool hq2x_32(Texture *tex, sint32 sx, sint32 sy, sint32 Xres, sint32 Yres,
  155. uint8* pOut, sint32 dw, sint32 dh, sint32 BpL, bool clamp_src)
  156. {
  157. - if (Xres*2!=dw || Yres*2!=dh) return false;
  158. + if (Xres*3!=dw || Yres*3!=dh) return false;
  159.  
  160. InitLUTs();
  161.  
  162. @@ -272,7 +309,7 @@
  163. uint8 *pIn = reinterpret_cast<uint8*>(tex->buffer) + sy*tpitch + sx*sizeof(uintS);
  164. int tex_diff = tpitch - Xres*sizeof(uintX);
  165.  
  166. - int pix_diff = BpL*2-Xres*2*sizeof(uintX);
  167. + int pix_diff = BpL*3-Xres*3*sizeof(uintX);
  168.  
  169. bool clipX = true;
  170. bool clipY_Begin = true;
  171. @@ -374,2631 +411,3604 @@
  172. case 37:
  173. case 165:
  174. {
  175. - PIXEL00_20
  176. - PIXEL01_20
  177. - PIXEL10_20
  178. - PIXEL11_20
  179. - break;
  180. + PIXEL00_2
  181. + PIXEL01_1
  182. + PIXEL02_2
  183. + PIXEL10_1
  184. + PIXEL11
  185. + PIXEL12_1
  186. + PIXEL20_2
  187. + PIXEL21_1
  188. + PIXEL22_2
  189. + break;
  190. }
  191. case 2:
  192. case 34:
  193. case 130:
  194. case 162:
  195. {
  196. - PIXEL00_22
  197. - PIXEL01_21
  198. - PIXEL10_20
  199. - PIXEL11_20
  200. - break;
  201. + PIXEL00_1M
  202. + PIXEL01_C
  203. + PIXEL02_1M
  204. + PIXEL10_1
  205. + PIXEL11
  206. + PIXEL12_1
  207. + PIXEL20_2
  208. + PIXEL21_1
  209. + PIXEL22_2
  210. + break;
  211. }
  212. case 16:
  213. case 17:
  214. case 48:
  215. case 49:
  216. {
  217. - PIXEL00_20
  218. - PIXEL01_22
  219. - PIXEL10_20
  220. - PIXEL11_21
  221. - break;
  222. + PIXEL00_2
  223. + PIXEL01_1
  224. + PIXEL02_1M
  225. + PIXEL10_1
  226. + PIXEL11
  227. + PIXEL12_C
  228. + PIXEL20_2
  229. + PIXEL21_1
  230. + PIXEL22_1M
  231. + break;
  232. }
  233. case 64:
  234. case 65:
  235. case 68:
  236. case 69:
  237. {
  238. - PIXEL00_20
  239. - PIXEL01_20
  240. - PIXEL10_21
  241. - PIXEL11_22
  242. - break;
  243. + PIXEL00_2
  244. + PIXEL01_1
  245. + PIXEL02_2
  246. + PIXEL10_1
  247. + PIXEL11
  248. + PIXEL12_1
  249. + PIXEL20_1M
  250. + PIXEL21_C
  251. + PIXEL22_1M
  252. + break;
  253. }
  254. case 8:
  255. case 12:
  256. case 136:
  257. case 140:
  258. {
  259. - PIXEL00_21
  260. - PIXEL01_20
  261. - PIXEL10_22
  262. - PIXEL11_20
  263. - break;
  264. + PIXEL00_1M
  265. + PIXEL01_1
  266. + PIXEL02_2
  267. + PIXEL10_C
  268. + PIXEL11
  269. + PIXEL12_1
  270. + PIXEL20_1M
  271. + PIXEL21_1
  272. + PIXEL22_2
  273. + break;
  274. }
  275. case 3:
  276. case 35:
  277. case 131:
  278. case 163:
  279. {
  280. - PIXEL00_11
  281. - PIXEL01_21
  282. - PIXEL10_20
  283. - PIXEL11_20
  284. - break;
  285. + PIXEL00_1L
  286. + PIXEL01_C
  287. + PIXEL02_1M
  288. + PIXEL10_1
  289. + PIXEL11
  290. + PIXEL12_1
  291. + PIXEL20_2
  292. + PIXEL21_1
  293. + PIXEL22_2
  294. + break;
  295. }
  296. case 6:
  297. case 38:
  298. case 134:
  299. case 166:
  300. {
  301. - PIXEL00_22
  302. - PIXEL01_12
  303. - PIXEL10_20
  304. - PIXEL11_20
  305. - break;
  306. + PIXEL00_1M
  307. + PIXEL01_C
  308. + PIXEL02_1R
  309. + PIXEL10_1
  310. + PIXEL11
  311. + PIXEL12_1
  312. + PIXEL20_2
  313. + PIXEL21_1
  314. + PIXEL22_2
  315. + break;
  316. }
  317. case 20:
  318. case 21:
  319. case 52:
  320. case 53:
  321. {
  322. - PIXEL00_20
  323. - PIXEL01_11
  324. - PIXEL10_20
  325. - PIXEL11_21
  326. - break;
  327. + PIXEL00_2
  328. + PIXEL01_1
  329. + PIXEL02_1U
  330. + PIXEL10_1
  331. + PIXEL11
  332. + PIXEL12_C
  333. + PIXEL20_2
  334. + PIXEL21_1
  335. + PIXEL22_1M
  336. + break;
  337. }
  338. case 144:
  339. case 145:
  340. case 176:
  341. case 177:
  342. {
  343. - PIXEL00_20
  344. - PIXEL01_22
  345. - PIXEL10_20
  346. - PIXEL11_12
  347. - break;
  348. + PIXEL00_2
  349. + PIXEL01_1
  350. + PIXEL02_1M
  351. + PIXEL10_1
  352. + PIXEL11
  353. + PIXEL12_C
  354. + PIXEL20_2
  355. + PIXEL21_1
  356. + PIXEL22_1D
  357. + break;
  358. }
  359. case 192:
  360. case 193:
  361. case 196:
  362. case 197:
  363. {
  364. - PIXEL00_20
  365. - PIXEL01_20
  366. - PIXEL10_21
  367. - PIXEL11_11
  368. - break;
  369. + PIXEL00_2
  370. + PIXEL01_1
  371. + PIXEL02_2
  372. + PIXEL10_1
  373. + PIXEL11
  374. + PIXEL12_1
  375. + PIXEL20_1M
  376. + PIXEL21_C
  377. + PIXEL22_1R
  378. + break;
  379. }
  380. case 96:
  381. case 97:
  382. case 100:
  383. case 101:
  384. {
  385. - PIXEL00_20
  386. - PIXEL01_20
  387. - PIXEL10_12
  388. - PIXEL11_22
  389. - break;
  390. + PIXEL00_2
  391. + PIXEL01_1
  392. + PIXEL02_2
  393. + PIXEL10_1
  394. + PIXEL11
  395. + PIXEL12_1
  396. + PIXEL20_1L
  397. + PIXEL21_C
  398. + PIXEL22_1M
  399. + break;
  400. }
  401. case 40:
  402. case 44:
  403. case 168:
  404. case 172:
  405. {
  406. - PIXEL00_21
  407. - PIXEL01_20
  408. - PIXEL10_11
  409. - PIXEL11_20
  410. - break;
  411. + PIXEL00_1M
  412. + PIXEL01_1
  413. + PIXEL02_2
  414. + PIXEL10_C
  415. + PIXEL11
  416. + PIXEL12_1
  417. + PIXEL20_1D
  418. + PIXEL21_1
  419. + PIXEL22_2
  420. + break;
  421. }
  422. case 9:
  423. case 13:
  424. case 137:
  425. case 141:
  426. {
  427. - PIXEL00_12
  428. - PIXEL01_20
  429. - PIXEL10_22
  430. - PIXEL11_20
  431. - break;
  432. + PIXEL00_1U
  433. + PIXEL01_1
  434. + PIXEL02_2
  435. + PIXEL10_C
  436. + PIXEL11
  437. + PIXEL12_1
  438. + PIXEL20_1M
  439. + PIXEL21_1
  440. + PIXEL22_2
  441. + break;
  442. }
  443. case 18:
  444. case 50:
  445. {
  446. - PIXEL00_22
  447. + PIXEL00_1M
  448. if (Diff(w16[2], w16[6]))
  449. {
  450. - PIXEL01_10
  451. + PIXEL01_C
  452. + PIXEL02_1M
  453. + PIXEL12_C
  454. }
  455. else
  456. {
  457. - PIXEL01_20
  458. + PIXEL01_3
  459. + PIXEL02_4
  460. + PIXEL12_3
  461. }
  462. - PIXEL10_20
  463. - PIXEL11_21
  464. - break;
  465. + PIXEL10_1
  466. + PIXEL11
  467. + PIXEL20_2
  468. + PIXEL21_1
  469. + PIXEL22_1M
  470. + break;
  471. }
  472. case 80:
  473. case 81:
  474. {
  475. - PIXEL00_20
  476. - PIXEL01_22
  477. - PIXEL10_21
  478. + PIXEL00_2
  479. + PIXEL01_1
  480. + PIXEL02_1M
  481. + PIXEL10_1
  482. + PIXEL11
  483. + PIXEL20_1M
  484. if (Diff(w16[6], w16[8]))
  485. {
  486. - PIXEL11_10
  487. + PIXEL12_C
  488. + PIXEL21_C
  489. + PIXEL22_1M
  490. }
  491. else
  492. {
  493. - PIXEL11_20
  494. + PIXEL12_3
  495. + PIXEL21_3
  496. + PIXEL22_4
  497. }
  498. - break;
  499. + break;
  500. }
  501. case 72:
  502. case 76:
  503. {
  504. - PIXEL00_21
  505. - PIXEL01_20
  506. - if (Diff(w16[8], w16[4]))
  507. - {
  508. - PIXEL10_10
  509. - }
  510. - else
  511. - {
  512. - PIXEL10_20
  513. - }
  514. - PIXEL11_22
  515. - break;
  516. + PIXEL00_1M
  517. + PIXEL01_1
  518. + PIXEL02_2
  519. + PIXEL11
  520. + PIXEL12_1
  521. + if (Diff(w16[8], w16[4]))
  522. + {
  523. + PIXEL10_C
  524. + PIXEL20_1M
  525. + PIXEL21_C
  526. + }
  527. + else
  528. + {
  529. + PIXEL10_3
  530. + PIXEL20_4
  531. + PIXEL21_3
  532. + }
  533. + PIXEL22_1M
  534. + break;
  535. }
  536. case 10:
  537. case 138:
  538. {
  539. - if (Diff(w16[4], w16[2]))
  540. + if (Diff(w16[4], w16[2]))
  541. {
  542. - PIXEL00_10
  543. + PIXEL00_1M
  544. + PIXEL01_C
  545. + PIXEL10_C
  546. }
  547. - else
  548. + else
  549. {
  550. - PIXEL00_20
  551. + PIXEL00_4
  552. + PIXEL01_3
  553. + PIXEL10_3
  554. }
  555. - PIXEL01_21
  556. - PIXEL10_22
  557. - PIXEL11_20
  558. - break;
  559. + PIXEL02_1M
  560. + PIXEL11
  561. + PIXEL12_1
  562. + PIXEL20_1M
  563. + PIXEL21_1
  564. + PIXEL22_2
  565. + break;
  566. }
  567. case 66:
  568. {
  569. - PIXEL00_22
  570. - PIXEL01_21
  571. - PIXEL10_21
  572. - PIXEL11_22
  573. - break;
  574. + PIXEL00_1M
  575. + PIXEL01_C
  576. + PIXEL02_1M
  577. + PIXEL10_1
  578. + PIXEL11
  579. + PIXEL12_1
  580. + PIXEL20_1M
  581. + PIXEL21_C
  582. + PIXEL22_1M
  583. + break;
  584. }
  585. case 24:
  586. {
  587. - PIXEL00_21
  588. - PIXEL01_22
  589. - PIXEL10_22
  590. - PIXEL11_21
  591. - break;
  592. + PIXEL00_1M
  593. + PIXEL01_1
  594. + PIXEL02_1M
  595. + PIXEL10_C
  596. + PIXEL11
  597. + PIXEL12_C
  598. + PIXEL20_1M
  599. + PIXEL21_1
  600. + PIXEL22_1M
  601. + break;
  602. }
  603. case 7:
  604. case 39:
  605. case 135:
  606. {
  607. - PIXEL00_11
  608. - PIXEL01_12
  609. - PIXEL10_20
  610. - PIXEL11_20
  611. - break;
  612. + PIXEL00_1L
  613. + PIXEL01_C
  614. + PIXEL02_1R
  615. + PIXEL10_1
  616. + PIXEL11
  617. + PIXEL12_1
  618. + PIXEL20_2
  619. + PIXEL21_1
  620. + PIXEL22_2
  621. + break;
  622. }
  623. case 148:
  624. case 149:
  625. case 180:
  626. {
  627. - PIXEL00_20
  628. - PIXEL01_11
  629. - PIXEL10_20
  630. - PIXEL11_12
  631. - break;
  632. + PIXEL00_2
  633. + PIXEL01_1
  634. + PIXEL02_1U
  635. + PIXEL10_1
  636. + PIXEL11
  637. + PIXEL12_C
  638. + PIXEL20_2
  639. + PIXEL21_1
  640. + PIXEL22_1D
  641. + break;
  642. }
  643. case 224:
  644. case 228:
  645. case 225:
  646. {
  647. - PIXEL00_20
  648. - PIXEL01_20
  649. - PIXEL10_12
  650. - PIXEL11_11
  651. - break;
  652. + PIXEL00_2
  653. + PIXEL01_1
  654. + PIXEL02_2
  655. + PIXEL10_1
  656. + PIXEL11
  657. + PIXEL12_1
  658. + PIXEL20_1L
  659. + PIXEL21_C
  660. + PIXEL22_1R
  661. + break;
  662. }
  663. case 41:
  664. case 169:
  665. case 45:
  666. {
  667. - PIXEL00_12
  668. - PIXEL01_20
  669. - PIXEL10_11
  670. - PIXEL11_20
  671. - break;
  672. + PIXEL00_1U
  673. + PIXEL01_1
  674. + PIXEL02_2
  675. + PIXEL10_C
  676. + PIXEL11
  677. + PIXEL12_1
  678. + PIXEL20_1D
  679. + PIXEL21_1
  680. + PIXEL22_2
  681. + break;
  682. }
  683. case 22:
  684. case 54:
  685. {
  686. - PIXEL00_22
  687. - if (Diff(w16[2], w16[6]))
  688. - {
  689. - PIXEL01_0
  690. - }
  691. - else
  692. - {
  693. - PIXEL01_20
  694. - }
  695. - PIXEL10_20
  696. - PIXEL11_21
  697. - break;
  698. + PIXEL00_1M
  699. + if (Diff(w16[2], w16[6]))
  700. + {
  701. + PIXEL01_C
  702. + PIXEL02_C
  703. + PIXEL12_C
  704. + }
  705. + else
  706. + {
  707. + PIXEL01_3
  708. + PIXEL02_4
  709. + PIXEL12_3
  710. + }
  711. + PIXEL10_1
  712. + PIXEL11
  713. + PIXEL20_2
  714. + PIXEL21_1
  715. + PIXEL22_1M
  716. + break;
  717. }
  718. case 208:
  719. case 209:
  720. {
  721. - PIXEL00_20
  722. - PIXEL01_22
  723. - PIXEL10_21
  724. - if (Diff(w16[6], w16[8]))
  725. - {
  726. - PIXEL11_0
  727. - }
  728. - else
  729. - {
  730. - PIXEL11_20
  731. - }
  732. - break;
  733. + PIXEL00_2
  734. + PIXEL01_1
  735. + PIXEL02_1M
  736. + PIXEL10_1
  737. + PIXEL11
  738. + PIXEL20_1M
  739. + if (Diff(w16[6], w16[8]))
  740. + {
  741. + PIXEL12_C
  742. + PIXEL21_C
  743. + PIXEL22_C
  744. + }
  745. + else
  746. + {
  747. + PIXEL12_3
  748. + PIXEL21_3
  749. + PIXEL22_4
  750. + }
  751. + break;
  752. }
  753. case 104:
  754. case 108:
  755. {
  756. - PIXEL00_21
  757. - PIXEL01_20
  758. - if (Diff(w16[8], w16[4]))
  759. - {
  760. - PIXEL10_0
  761. - }
  762. - else
  763. - {
  764. - PIXEL10_20
  765. - }
  766. - PIXEL11_22
  767. - break;
  768. + PIXEL00_1M
  769. + PIXEL01_1
  770. + PIXEL02_2
  771. + PIXEL11
  772. + PIXEL12_1
  773. + if (Diff(w16[8], w16[4]))
  774. + {
  775. + PIXEL10_C
  776. + PIXEL20_C
  777. + PIXEL21_C
  778. + }
  779. + else
  780. + {
  781. + PIXEL10_3
  782. + PIXEL20_4
  783. + PIXEL21_3
  784. + }
  785. + PIXEL22_1M
  786. + break;
  787. }
  788. case 11:
  789. case 139:
  790. {
  791. - if (Diff(w16[4], w16[2]))
  792. + if (Diff(w16[4], w16[2]))
  793. {
  794. - PIXEL00_0
  795. + PIXEL00_C
  796. + PIXEL01_C
  797. + PIXEL10_C
  798. }
  799. - else
  800. + else
  801. {
  802. - PIXEL00_20
  803. + PIXEL00_4
  804. + PIXEL01_3
  805. + PIXEL10_3
  806. }
  807. - PIXEL01_21
  808. - PIXEL10_22
  809. - PIXEL11_20
  810. - break;
  811. + PIXEL02_1M
  812. + PIXEL11
  813. + PIXEL12_1
  814. + PIXEL20_1M
  815. + PIXEL21_1
  816. + PIXEL22_2
  817. + break;
  818. }
  819. case 19:
  820. case 51:
  821. {
  822. - if (Diff(w16[2], w16[6]))
  823. + if (Diff(w16[2], w16[6]))
  824. {
  825. - PIXEL00_11
  826. - PIXEL01_10
  827. + PIXEL00_1L
  828. + PIXEL01_C
  829. + PIXEL02_1M
  830. + PIXEL12_C
  831. }
  832. - else
  833. + else
  834. {
  835. - PIXEL00_60
  836. - PIXEL01_90
  837. + PIXEL00_2
  838. + PIXEL01_6
  839. + PIXEL02_5
  840. + PIXEL12_1
  841. }
  842. - PIXEL10_20
  843. - PIXEL11_21
  844. - break;
  845. + PIXEL10_1
  846. + PIXEL11
  847. + PIXEL20_2
  848. + PIXEL21_1
  849. + PIXEL22_1M
  850. + break;
  851. }
  852. case 146:
  853. case 178:
  854. {
  855. - PIXEL00_22
  856. - if (Diff(w16[2], w16[6]))
  857. - {
  858. - PIXEL01_10
  859. - PIXEL11_12
  860. - }
  861. - else
  862. - {
  863. - PIXEL01_90
  864. - PIXEL11_61
  865. - }
  866. - PIXEL10_20
  867. - break;
  868. + if (Diff(w16[2], w16[6]))
  869. + {
  870. + PIXEL01_C
  871. + PIXEL02_1M
  872. + PIXEL12_C
  873. + PIXEL22_1D
  874. + }
  875. + else
  876. + {
  877. + PIXEL01_1
  878. + PIXEL02_5
  879. + PIXEL12_6
  880. + PIXEL22_2
  881. + }
  882. + PIXEL00_1M
  883. + PIXEL10_1
  884. + PIXEL11
  885. + PIXEL20_2
  886. + PIXEL21_1
  887. + break;
  888. }
  889. case 84:
  890. case 85:
  891. {
  892. - PIXEL00_20
  893. - if (Diff(w16[6], w16[8]))
  894. - {
  895. - PIXEL01_11
  896. - PIXEL11_10
  897. - }
  898. - else
  899. - {
  900. - PIXEL01_60
  901. - PIXEL11_90
  902. - }
  903. - PIXEL10_21
  904. - break;
  905. + if (Diff(w16[6], w16[8]))
  906. + {
  907. + PIXEL02_1U
  908. + PIXEL12_C
  909. + PIXEL21_C
  910. + PIXEL22_1M
  911. + }
  912. + else
  913. + {
  914. + PIXEL02_2
  915. + PIXEL12_6
  916. + PIXEL21_1
  917. + PIXEL22_5
  918. + }
  919. + PIXEL00_2
  920. + PIXEL01_1
  921. + PIXEL10_1
  922. + PIXEL11
  923. + PIXEL20_1M
  924. + break;
  925. }
  926. case 112:
  927. case 113:
  928. {
  929. - PIXEL00_20
  930. - PIXEL01_22
  931. - if (Diff(w16[6], w16[8]))
  932. - {
  933. - PIXEL10_12
  934. - PIXEL11_10
  935. - }
  936. - else
  937. - {
  938. - PIXEL10_61
  939. - PIXEL11_90
  940. - }
  941. - break;
  942. + if (Diff(w16[6], w16[8]))
  943. + {
  944. + PIXEL12_C
  945. + PIXEL20_1L
  946. + PIXEL21_C
  947. + PIXEL22_1M
  948. + }
  949. + else
  950. + {
  951. + PIXEL12_1
  952. + PIXEL20_2
  953. + PIXEL21_6
  954. + PIXEL22_5
  955. + }
  956. + PIXEL00_2
  957. + PIXEL01_1
  958. + PIXEL02_1M
  959. + PIXEL10_1
  960. + PIXEL11
  961. + break;
  962. }
  963. case 200:
  964. case 204:
  965. {
  966. - PIXEL00_21
  967. - PIXEL01_20
  968. - if (Diff(w16[8], w16[4]))
  969. - {
  970. - PIXEL10_10
  971. - PIXEL11_11
  972. - }
  973. - else
  974. - {
  975. - PIXEL10_90
  976. - PIXEL11_60
  977. - }
  978. - break;
  979. + if (Diff(w16[8], w16[4]))
  980. + {
  981. + PIXEL10_C
  982. + PIXEL20_1M
  983. + PIXEL21_C
  984. + PIXEL22_1R
  985. + }
  986. + else
  987. + {
  988. + PIXEL10_1
  989. + PIXEL20_5
  990. + PIXEL21_6
  991. + PIXEL22_2
  992. + }
  993. + PIXEL00_1M
  994. + PIXEL01_1
  995. + PIXEL02_2
  996. + PIXEL11
  997. + PIXEL12_1
  998. + break;
  999. }
  1000. case 73:
  1001. case 77:
  1002. {
  1003. - if (Diff(w16[8], w16[4]))
  1004. + if (Diff(w16[8], w16[4]))
  1005. {
  1006. - PIXEL00_12
  1007. - PIXEL10_10
  1008. + PIXEL00_1U
  1009. + PIXEL10_C
  1010. + PIXEL20_1M
  1011. + PIXEL21_C
  1012. }
  1013. - else
  1014. + else
  1015. {
  1016. - PIXEL00_61
  1017. - PIXEL10_90
  1018. + PIXEL00_2
  1019. + PIXEL10_6
  1020. + PIXEL20_5
  1021. + PIXEL21_1
  1022. }
  1023. - PIXEL01_20
  1024. - PIXEL11_22
  1025. - break;
  1026. + PIXEL01_1
  1027. + PIXEL02_2
  1028. + PIXEL11
  1029. + PIXEL12_1
  1030. + PIXEL22_1M
  1031. + break;
  1032. }
  1033. case 42:
  1034. case 170:
  1035. {
  1036. - if (Diff(w16[4], w16[2]))
  1037. + if (Diff(w16[4], w16[2]))
  1038. {
  1039. - PIXEL00_10
  1040. - PIXEL10_11
  1041. + PIXEL00_1M
  1042. + PIXEL01_C
  1043. + PIXEL10_C
  1044. + PIXEL20_1D
  1045. }
  1046. - else
  1047. + else
  1048. {
  1049. - PIXEL00_90
  1050. - PIXEL10_60
  1051. + PIXEL00_5
  1052. + PIXEL01_1
  1053. + PIXEL10_6
  1054. + PIXEL20_2
  1055. }
  1056. - PIXEL01_21
  1057. - PIXEL11_20
  1058. - break;
  1059. + PIXEL02_1M
  1060. + PIXEL11
  1061. + PIXEL12_1
  1062. + PIXEL21_1
  1063. + PIXEL22_2
  1064. + break;
  1065. }
  1066. case 14:
  1067. case 142:
  1068. {
  1069. - if (Diff(w16[4], w16[2]))
  1070. + if (Diff(w16[4], w16[2]))
  1071. {
  1072. - PIXEL00_10
  1073. - PIXEL01_12
  1074. + PIXEL00_1M
  1075. + PIXEL01_C
  1076. + PIXEL02_1R
  1077. + PIXEL10_C
  1078. }
  1079. - else
  1080. + else
  1081. {
  1082. - PIXEL00_90
  1083. - PIXEL01_61
  1084. + PIXEL00_5
  1085. + PIXEL01_6
  1086. + PIXEL02_2
  1087. + PIXEL10_1
  1088. }
  1089. - PIXEL10_22
  1090. - PIXEL11_20
  1091. - break;
  1092. + PIXEL11
  1093. + PIXEL12_1
  1094. + PIXEL20_1M
  1095. + PIXEL21_1
  1096. + PIXEL22_2
  1097. + break;
  1098. }
  1099. case 67:
  1100. {
  1101. - PIXEL00_11
  1102. - PIXEL01_21
  1103. - PIXEL10_21
  1104. - PIXEL11_22
  1105. - break;
  1106. + PIXEL00_1L
  1107. + PIXEL01_C
  1108. + PIXEL02_1M
  1109. + PIXEL10_1
  1110. + PIXEL11
  1111. + PIXEL12_1
  1112. + PIXEL20_1M
  1113. + PIXEL21_C
  1114. + PIXEL22_1M
  1115. + break;
  1116. }
  1117. case 70:
  1118. {
  1119. - PIXEL00_22
  1120. - PIXEL01_12
  1121. - PIXEL10_21
  1122. - PIXEL11_22
  1123. - break;
  1124. + PIXEL00_1M
  1125. + PIXEL01_C
  1126. + PIXEL02_1R
  1127. + PIXEL10_1
  1128. + PIXEL11
  1129. + PIXEL12_1
  1130. + PIXEL20_1M
  1131. + PIXEL21_C
  1132. + PIXEL22_1M
  1133. + break;
  1134. }
  1135. case 28:
  1136. {
  1137. - PIXEL00_21
  1138. - PIXEL01_11
  1139. - PIXEL10_22
  1140. - PIXEL11_21
  1141. - break;
  1142. + PIXEL00_1M
  1143. + PIXEL01_1
  1144. + PIXEL02_1U
  1145. + PIXEL10_C
  1146. + PIXEL11
  1147. + PIXEL12_C
  1148. + PIXEL20_1M
  1149. + PIXEL21_1
  1150. + PIXEL22_1M
  1151. + break;
  1152. }
  1153. case 152:
  1154. {
  1155. - PIXEL00_21
  1156. - PIXEL01_22
  1157. - PIXEL10_22
  1158. - PIXEL11_12
  1159. - break;
  1160. + PIXEL00_1M
  1161. + PIXEL01_1
  1162. + PIXEL02_1M
  1163. + PIXEL10_C
  1164. + PIXEL11
  1165. + PIXEL12_C
  1166. + PIXEL20_1M
  1167. + PIXEL21_1
  1168. + PIXEL22_1D
  1169. + break;
  1170. }
  1171. case 194:
  1172. {
  1173. - PIXEL00_22
  1174. - PIXEL01_21
  1175. - PIXEL10_21
  1176. - PIXEL11_11
  1177. - break;
  1178. + PIXEL00_1M
  1179. + PIXEL01_C
  1180. + PIXEL02_1M
  1181. + PIXEL10_1
  1182. + PIXEL11
  1183. + PIXEL12_1
  1184. + PIXEL20_1M
  1185. + PIXEL21_C
  1186. + PIXEL22_1R
  1187. + break;
  1188. }
  1189. case 98:
  1190. {
  1191. - PIXEL00_22
  1192. - PIXEL01_21
  1193. - PIXEL10_12
  1194. - PIXEL11_22
  1195. - break;
  1196. + PIXEL00_1M
  1197. + PIXEL01_C
  1198. + PIXEL02_1M
  1199. + PIXEL10_1
  1200. + PIXEL11
  1201. + PIXEL12_1
  1202. + PIXEL20_1L
  1203. + PIXEL21_C
  1204. + PIXEL22_1M
  1205. + break;
  1206. }
  1207. case 56:
  1208. {
  1209. - PIXEL00_21
  1210. - PIXEL01_22
  1211. - PIXEL10_11
  1212. - PIXEL11_21
  1213. - break;
  1214. + PIXEL00_1M
  1215. + PIXEL01_1
  1216. + PIXEL02_1M
  1217. + PIXEL10_C
  1218. + PIXEL11
  1219. + PIXEL12_C
  1220. + PIXEL20_1D
  1221. + PIXEL21_1
  1222. + PIXEL22_1M
  1223. + break;
  1224. }
  1225. case 25:
  1226. {
  1227. - PIXEL00_12
  1228. - PIXEL01_22
  1229. - PIXEL10_22
  1230. - PIXEL11_21
  1231. - break;
  1232. + PIXEL00_1U
  1233. + PIXEL01_1
  1234. + PIXEL02_1M
  1235. + PIXEL10_C
  1236. + PIXEL11
  1237. + PIXEL12_C
  1238. + PIXEL20_1M
  1239. + PIXEL21_1
  1240. + PIXEL22_1M
  1241. + break;
  1242. }
  1243. case 26:
  1244. case 31:
  1245. {
  1246. - if (Diff(w16[4], w16[2]))
  1247. + if (Diff(w16[4], w16[2]))
  1248. {
  1249. - PIXEL00_0
  1250. + PIXEL00_C
  1251. + PIXEL10_C
  1252. }
  1253. - else
  1254. + else
  1255. {
  1256. - PIXEL00_20
  1257. + PIXEL00_4
  1258. + PIXEL10_3
  1259. }
  1260. - if (Diff(w16[2], w16[6]))
  1261. + PIXEL01_C
  1262. + if (Diff(w16[2], w16[6]))
  1263. {
  1264. - PIXEL01_0
  1265. + PIXEL02_C
  1266. + PIXEL12_C
  1267. }
  1268. - else
  1269. + else
  1270. {
  1271. - PIXEL01_20
  1272. + PIXEL02_4
  1273. + PIXEL12_3
  1274. }
  1275. - PIXEL10_22
  1276. - PIXEL11_21
  1277. - break;
  1278. + PIXEL11
  1279. + PIXEL20_1M
  1280. + PIXEL21_1
  1281. + PIXEL22_1M
  1282. + break;
  1283. }
  1284. case 82:
  1285. case 214:
  1286. {
  1287. - PIXEL00_22
  1288. - if (Diff(w16[2], w16[6]))
  1289. - {
  1290. - PIXEL01_0
  1291. - }
  1292. - else
  1293. - {
  1294. - PIXEL01_20
  1295. - }
  1296. - PIXEL10_21
  1297. - if (Diff(w16[6], w16[8]))
  1298. - {
  1299. - PIXEL11_0
  1300. - }
  1301. - else
  1302. - {
  1303. - PIXEL11_20
  1304. - }
  1305. - break;
  1306. + PIXEL00_1M
  1307. + if (Diff(w16[2], w16[6]))
  1308. + {
  1309. + PIXEL01_C
  1310. + PIXEL02_C
  1311. + }
  1312. + else
  1313. + {
  1314. + PIXEL01_3
  1315. + PIXEL02_4
  1316. + }
  1317. + PIXEL10_1
  1318. + PIXEL11
  1319. + PIXEL12_C
  1320. + PIXEL20_1M
  1321. + if (Diff(w16[6], w16[8]))
  1322. + {
  1323. + PIXEL21_C
  1324. + PIXEL22_C
  1325. + }
  1326. + else
  1327. + {
  1328. + PIXEL21_3
  1329. + PIXEL22_4
  1330. + }
  1331. + break;
  1332. }
  1333. case 88:
  1334. case 248:
  1335. {
  1336. - PIXEL00_21
  1337. - PIXEL01_22
  1338. - if (Diff(w16[8], w16[4]))
  1339. - {
  1340. - PIXEL10_0
  1341. - }
  1342. - else
  1343. - {
  1344. - PIXEL10_20
  1345. - }
  1346. - if (Diff(w16[6], w16[8]))
  1347. - {
  1348. - PIXEL11_0
  1349. - }
  1350. - else
  1351. - {
  1352. - PIXEL11_20
  1353. - }
  1354. - break;
  1355. + PIXEL00_1M
  1356. + PIXEL01_1
  1357. + PIXEL02_1M
  1358. + PIXEL11
  1359. + if (Diff(w16[8], w16[4]))
  1360. + {
  1361. + PIXEL10_C
  1362. + PIXEL20_C
  1363. + }
  1364. + else
  1365. + {
  1366. + PIXEL10_3
  1367. + PIXEL20_4
  1368. + }
  1369. + PIXEL21_C
  1370. + if (Diff(w16[6], w16[8]))
  1371. + {
  1372. + PIXEL12_C
  1373. + PIXEL22_C
  1374. + }
  1375. + else
  1376. + {
  1377. + PIXEL12_3
  1378. + PIXEL22_4
  1379. + }
  1380. + break;
  1381. }
  1382. case 74:
  1383. case 107:
  1384. {
  1385. - if (Diff(w16[4], w16[2]))
  1386. + if (Diff(w16[4], w16[2]))
  1387. {
  1388. - PIXEL00_0
  1389. + PIXEL00_C
  1390. + PIXEL01_C
  1391. }
  1392. - else
  1393. + else
  1394. {
  1395. - PIXEL00_20
  1396. + PIXEL00_4
  1397. + PIXEL01_3
  1398. }
  1399. - PIXEL01_21
  1400. - if (Diff(w16[8], w16[4]))
  1401. - {
  1402. - PIXEL10_0
  1403. - }
  1404. - else
  1405. - {
  1406. - PIXEL10_20
  1407. - }
  1408. - PIXEL11_22
  1409. - break;
  1410. + PIXEL02_1M
  1411. + PIXEL10_C
  1412. + PIXEL11
  1413. + PIXEL12_1
  1414. + if (Diff(w16[8], w16[4]))
  1415. + {
  1416. + PIXEL20_C
  1417. + PIXEL21_C
  1418. + }
  1419. + else
  1420. + {
  1421. + PIXEL20_4
  1422. + PIXEL21_3
  1423. + }
  1424. + PIXEL22_1M
  1425. + break;
  1426. }
  1427. case 27:
  1428. {
  1429. - if (Diff(w16[4], w16[2]))
  1430. + if (Diff(w16[4], w16[2]))
  1431. {
  1432. - PIXEL00_0
  1433. + PIXEL00_C
  1434. + PIXEL01_C
  1435. + PIXEL10_C
  1436. }
  1437. - else
  1438. + else
  1439. {
  1440. - PIXEL00_20
  1441. + PIXEL00_4
  1442. + PIXEL01_3
  1443. + PIXEL10_3
  1444. }
  1445. - PIXEL01_10
  1446. - PIXEL10_22
  1447. - PIXEL11_21
  1448. - break;
  1449. + PIXEL02_1M
  1450. + PIXEL11
  1451. + PIXEL12_C
  1452. + PIXEL20_1M
  1453. + PIXEL21_1
  1454. + PIXEL22_1M
  1455. + break;
  1456. }
  1457. case 86:
  1458. {
  1459. - PIXEL00_22
  1460. - if (Diff(w16[2], w16[6]))
  1461. - {
  1462. - PIXEL01_0
  1463. - }
  1464. - else
  1465. - {
  1466. - PIXEL01_20
  1467. - }
  1468. - PIXEL10_21
  1469. - PIXEL11_10
  1470. - break;
  1471. + PIXEL00_1M
  1472. + if (Diff(w16[2], w16[6]))
  1473. + {
  1474. + PIXEL01_C
  1475. + PIXEL02_C
  1476. + PIXEL12_C
  1477. + }
  1478. + else
  1479. + {
  1480. + PIXEL01_3
  1481. + PIXEL02_4
  1482. + PIXEL12_3
  1483. + }
  1484. + PIXEL10_1
  1485. + PIXEL11
  1486. + PIXEL20_1M
  1487. + PIXEL21_C
  1488. + PIXEL22_1M
  1489. + break;
  1490. }
  1491. case 216:
  1492. {
  1493. - PIXEL00_21
  1494. - PIXEL01_22
  1495. - PIXEL10_10
  1496. - if (Diff(w16[6], w16[8]))
  1497. - {
  1498. - PIXEL11_0
  1499. - }
  1500. - else
  1501. - {
  1502. - PIXEL11_20
  1503. - }
  1504. - break;
  1505. + PIXEL00_1M
  1506. + PIXEL01_1
  1507. + PIXEL02_1M
  1508. + PIXEL10_C
  1509. + PIXEL11
  1510. + PIXEL20_1M
  1511. + if (Diff(w16[6], w16[8]))
  1512. + {
  1513. + PIXEL12_C
  1514. + PIXEL21_C
  1515. + PIXEL22_C
  1516. + }
  1517. + else
  1518. + {
  1519. + PIXEL12_3
  1520. + PIXEL21_3
  1521. + PIXEL22_4
  1522. + }
  1523. + break;
  1524. }
  1525. case 106:
  1526. {
  1527. - PIXEL00_10
  1528. - PIXEL01_21
  1529. - if (Diff(w16[8], w16[4]))
  1530. - {
  1531. - PIXEL10_0
  1532. - }
  1533. - else
  1534. - {
  1535. - PIXEL10_20
  1536. - }
  1537. - PIXEL11_22
  1538. - break;
  1539. + PIXEL00_1M
  1540. + PIXEL01_C
  1541. + PIXEL02_1M
  1542. + PIXEL11
  1543. + PIXEL12_1
  1544. + if (Diff(w16[8], w16[4]))
  1545. + {
  1546. + PIXEL10_C
  1547. + PIXEL20_C
  1548. + PIXEL21_C
  1549. + }
  1550. + else
  1551. + {
  1552. + PIXEL10_3
  1553. + PIXEL20_4
  1554. + PIXEL21_3
  1555. + }
  1556. + PIXEL22_1M
  1557. + break;
  1558. }
  1559. case 30:
  1560. {
  1561. - PIXEL00_10
  1562. - if (Diff(w16[2], w16[6]))
  1563. - {
  1564. - PIXEL01_0
  1565. - }
  1566. - else
  1567. - {
  1568. - PIXEL01_20
  1569. - }
  1570. - PIXEL10_22
  1571. - PIXEL11_21
  1572. - break;
  1573. + PIXEL00_1M
  1574. + if (Diff(w16[2], w16[6]))
  1575. + {
  1576. + PIXEL01_C
  1577. + PIXEL02_C
  1578. + PIXEL12_C
  1579. + }
  1580. + else
  1581. + {
  1582. + PIXEL01_3
  1583. + PIXEL02_4
  1584. + PIXEL12_3
  1585. + }
  1586. + PIXEL10_C
  1587. + PIXEL11
  1588. + PIXEL20_1M
  1589. + PIXEL21_1
  1590. + PIXEL22_1M
  1591. + break;
  1592. }
  1593. case 210:
  1594. {
  1595. - PIXEL00_22
  1596. - PIXEL01_10
  1597. - PIXEL10_21
  1598. - if (Diff(w16[6], w16[8]))
  1599. - {
  1600. - PIXEL11_0
  1601. - }
  1602. - else
  1603. - {
  1604. - PIXEL11_20
  1605. - }
  1606. - break;
  1607. + PIXEL00_1M
  1608. + PIXEL01_C
  1609. + PIXEL02_1M
  1610. + PIXEL10_1
  1611. + PIXEL11
  1612. + PIXEL20_1M
  1613. + if (Diff(w16[6], w16[8]))
  1614. + {
  1615. + PIXEL12_C
  1616. + PIXEL21_C
  1617. + PIXEL22_C
  1618. + }
  1619. + else
  1620. + {
  1621. + PIXEL12_3
  1622. + PIXEL21_3
  1623. + PIXEL22_4
  1624. + }
  1625. + break;
  1626. }
  1627. case 120:
  1628. {
  1629. - PIXEL00_21
  1630. - PIXEL01_22
  1631. - if (Diff(w16[8], w16[4]))
  1632. - {
  1633. - PIXEL10_0
  1634. - }
  1635. - else
  1636. - {
  1637. - PIXEL10_20
  1638. - }
  1639. - PIXEL11_10
  1640. - break;
  1641. + PIXEL00_1M
  1642. + PIXEL01_1
  1643. + PIXEL02_1M
  1644. + PIXEL11
  1645. + PIXEL12_C
  1646. + if (Diff(w16[8], w16[4]))
  1647. + {
  1648. + PIXEL10_C
  1649. + PIXEL20_C
  1650. + PIXEL21_C
  1651. + }
  1652. + else
  1653. + {
  1654. + PIXEL10_3
  1655. + PIXEL20_4
  1656. + PIXEL21_3
  1657. + }
  1658. + PIXEL22_1M
  1659. + break;
  1660. }
  1661. case 75:
  1662. {
  1663. - if (Diff(w16[4], w16[2]))
  1664. + if (Diff(w16[4], w16[2]))
  1665. {
  1666. - PIXEL00_0
  1667. + PIXEL00_C
  1668. + PIXEL01_C
  1669. + PIXEL10_C
  1670. }
  1671. - else
  1672. + else
  1673. {
  1674. - PIXEL00_20
  1675. + PIXEL00_4
  1676. + PIXEL01_3
  1677. + PIXEL10_3
  1678. }
  1679. - PIXEL01_21
  1680. - PIXEL10_10
  1681. - PIXEL11_22
  1682. - break;
  1683. + PIXEL02_1M
  1684. + PIXEL11
  1685. + PIXEL12_1
  1686. + PIXEL20_1M
  1687. + PIXEL21_C
  1688. + PIXEL22_1M
  1689. + break;
  1690. }
  1691. case 29:
  1692. {
  1693. - PIXEL00_12
  1694. - PIXEL01_11
  1695. - PIXEL10_22
  1696. - PIXEL11_21
  1697. - break;
  1698. + PIXEL00_1U
  1699. + PIXEL01_1
  1700. + PIXEL02_1U
  1701. + PIXEL10_C
  1702. + PIXEL11
  1703. + PIXEL12_C
  1704. + PIXEL20_1M
  1705. + PIXEL21_1
  1706. + PIXEL22_1M
  1707. + break;
  1708. }
  1709. case 198:
  1710. {
  1711. - PIXEL00_22
  1712. - PIXEL01_12
  1713. - PIXEL10_21
  1714. - PIXEL11_11
  1715. - break;
  1716. + PIXEL00_1M
  1717. + PIXEL01_C
  1718. + PIXEL02_1R
  1719. + PIXEL10_1
  1720. + PIXEL11
  1721. + PIXEL12_1
  1722. + PIXEL20_1M
  1723. + PIXEL21_C
  1724. + PIXEL22_1R
  1725. + break;
  1726. }
  1727. case 184:
  1728. {
  1729. - PIXEL00_21
  1730. - PIXEL01_22
  1731. - PIXEL10_11
  1732. - PIXEL11_12
  1733. - break;
  1734. + PIXEL00_1M
  1735. + PIXEL01_1
  1736. + PIXEL02_1M
  1737. + PIXEL10_C
  1738. + PIXEL11
  1739. + PIXEL12_C
  1740. + PIXEL20_1D
  1741. + PIXEL21_1
  1742. + PIXEL22_1D
  1743. + break;
  1744. }
  1745. case 99:
  1746. {
  1747. - PIXEL00_11
  1748. - PIXEL01_21
  1749. - PIXEL10_12
  1750. - PIXEL11_22
  1751. - break;
  1752. + PIXEL00_1L
  1753. + PIXEL01_C
  1754. + PIXEL02_1M
  1755. + PIXEL10_1
  1756. + PIXEL11
  1757. + PIXEL12_1
  1758. + PIXEL20_1L
  1759. + PIXEL21_C
  1760. + PIXEL22_1M
  1761. + break;
  1762. }
  1763. case 57:
  1764. {
  1765. - PIXEL00_12
  1766. - PIXEL01_22
  1767. - PIXEL10_11
  1768. - PIXEL11_21
  1769. - break;
  1770. + PIXEL00_1U
  1771. + PIXEL01_1
  1772. + PIXEL02_1M
  1773. + PIXEL10_C
  1774. + PIXEL11
  1775. + PIXEL12_C
  1776. + PIXEL20_1D
  1777. + PIXEL21_1
  1778. + PIXEL22_1M
  1779. + break;
  1780. }
  1781. case 71:
  1782. {
  1783. - PIXEL00_11
  1784. - PIXEL01_12
  1785. - PIXEL10_21
  1786. - PIXEL11_22
  1787. - break;
  1788. + PIXEL00_1L
  1789. + PIXEL01_C
  1790. + PIXEL02_1R
  1791. + PIXEL10_1
  1792. + PIXEL11
  1793. + PIXEL12_1
  1794. + PIXEL20_1M
  1795. + PIXEL21_C
  1796. + PIXEL22_1M
  1797. + break;
  1798. }
  1799. case 156:
  1800. {
  1801. - PIXEL00_21
  1802. - PIXEL01_11
  1803. - PIXEL10_22
  1804. - PIXEL11_12
  1805. - break;
  1806. + PIXEL00_1M
  1807. + PIXEL01_1
  1808. + PIXEL02_1U
  1809. + PIXEL10_C
  1810. + PIXEL11
  1811. + PIXEL12_C
  1812. + PIXEL20_1M
  1813. + PIXEL21_1
  1814. + PIXEL22_1D
  1815. + break;
  1816. }
  1817. case 226:
  1818. {
  1819. - PIXEL00_22
  1820. - PIXEL01_21
  1821. - PIXEL10_12
  1822. - PIXEL11_11
  1823. - break;
  1824. + PIXEL00_1M
  1825. + PIXEL01_C
  1826. + PIXEL02_1M
  1827. + PIXEL10_1
  1828. + PIXEL11
  1829. + PIXEL12_1
  1830. + PIXEL20_1L
  1831. + PIXEL21_C
  1832. + PIXEL22_1R
  1833. + break;
  1834. }
  1835. case 60:
  1836. {
  1837. - PIXEL00_21
  1838. - PIXEL01_11
  1839. - PIXEL10_11
  1840. - PIXEL11_21
  1841. - break;
  1842. + PIXEL00_1M
  1843. + PIXEL01_1
  1844. + PIXEL02_1U
  1845. + PIXEL10_C
  1846. + PIXEL11
  1847. + PIXEL12_C
  1848. + PIXEL20_1D
  1849. + PIXEL21_1
  1850. + PIXEL22_1M
  1851. + break;
  1852. }
  1853. case 195:
  1854. {
  1855. - PIXEL00_11
  1856. - PIXEL01_21
  1857. - PIXEL10_21
  1858. - PIXEL11_11
  1859. - break;
  1860. + PIXEL00_1L
  1861. + PIXEL01_C
  1862. + PIXEL02_1M
  1863. + PIXEL10_1
  1864. + PIXEL11
  1865. + PIXEL12_1
  1866. + PIXEL20_1M
  1867. + PIXEL21_C
  1868. + PIXEL22_1R
  1869. + break;
  1870. }
  1871. case 102:
  1872. {
  1873. - PIXEL00_22
  1874. - PIXEL01_12
  1875. - PIXEL10_12
  1876. - PIXEL11_22
  1877. - break;
  1878. + PIXEL00_1M
  1879. + PIXEL01_C
  1880. + PIXEL02_1R
  1881. + PIXEL10_1
  1882. + PIXEL11
  1883. + PIXEL12_1
  1884. + PIXEL20_1L
  1885. + PIXEL21_C
  1886. + PIXEL22_1M
  1887. + break;
  1888. }
  1889. case 153:
  1890. {
  1891. - PIXEL00_12
  1892. - PIXEL01_22
  1893. - PIXEL10_22
  1894. - PIXEL11_12
  1895. - break;
  1896. + PIXEL00_1U
  1897. + PIXEL01_1
  1898. + PIXEL02_1M
  1899. + PIXEL10_C
  1900. + PIXEL11
  1901. + PIXEL12_C
  1902. + PIXEL20_1M
  1903. + PIXEL21_1
  1904. + PIXEL22_1D
  1905. + break;
  1906. }
  1907. case 58:
  1908. {
  1909. - if (Diff(w16[4], w16[2]))
  1910. + if (Diff(w16[4], w16[2]))
  1911. {
  1912. - PIXEL00_10
  1913. + PIXEL00_1M
  1914. }
  1915. - else
  1916. + else
  1917. {
  1918. - PIXEL00_70
  1919. + PIXEL00_2
  1920. }
  1921. - if (Diff(w16[2], w16[6]))
  1922. + PIXEL01_C
  1923. + if (Diff(w16[2], w16[6]))
  1924. {
  1925. - PIXEL01_10
  1926. + PIXEL02_1M
  1927. }
  1928. - else
  1929. + else
  1930. {
  1931. - PIXEL01_70
  1932. + PIXEL02_2
  1933. }
  1934. - PIXEL10_11
  1935. - PIXEL11_21
  1936. - break;
  1937. + PIXEL10_C
  1938. + PIXEL11
  1939. + PIXEL12_C
  1940. + PIXEL20_1D
  1941. + PIXEL21_1
  1942. + PIXEL22_1M
  1943. + break;
  1944. }
  1945. case 83:
  1946. {
  1947. - PIXEL00_11
  1948. - if (Diff(w16[2], w16[6]))
  1949. - {
  1950. - PIXEL01_10
  1951. - }
  1952. - else
  1953. - {
  1954. - PIXEL01_70
  1955. - }
  1956. - PIXEL10_21
  1957. - if (Diff(w16[6], w16[8]))
  1958. - {
  1959. - PIXEL11_10
  1960. - }
  1961. - else
  1962. - {
  1963. - PIXEL11_70
  1964. - }
  1965. - break;
  1966. + PIXEL00_1L
  1967. + PIXEL01_C
  1968. + if (Diff(w16[2], w16[6]))
  1969. + {
  1970. + PIXEL02_1M
  1971. + }
  1972. + else
  1973. + {
  1974. + PIXEL02_2
  1975. + }
  1976. + PIXEL10_1
  1977. + PIXEL11
  1978. + PIXEL12_C
  1979. + PIXEL20_1M
  1980. + PIXEL21_C
  1981. + if (Diff(w16[6], w16[8]))
  1982. + {
  1983. + PIXEL22_1M
  1984. + }
  1985. + else
  1986. + {
  1987. + PIXEL22_2
  1988. + }
  1989. + break;
  1990. }
  1991. case 92:
  1992. {
  1993. - PIXEL00_21
  1994. - PIXEL01_11
  1995. - if (Diff(w16[8], w16[4]))
  1996. - {
  1997. - PIXEL10_10
  1998. - }
  1999. - else
  2000. - {
  2001. - PIXEL10_70
  2002. - }
  2003. - if (Diff(w16[6], w16[8]))
  2004. - {
  2005. - PIXEL11_10
  2006. - }
  2007. - else
  2008. - {
  2009. - PIXEL11_70
  2010. - }
  2011. - break;
  2012. + PIXEL00_1M
  2013. + PIXEL01_1
  2014. + PIXEL02_1U
  2015. + PIXEL10_C
  2016. + PIXEL11
  2017. + PIXEL12_C
  2018. + if (Diff(w16[8], w16[4]))
  2019. + {
  2020. + PIXEL20_1M
  2021. + }
  2022. + else
  2023. + {
  2024. + PIXEL20_2
  2025. + }
  2026. + PIXEL21_C
  2027. + if (Diff(w16[6], w16[8]))
  2028. + {
  2029. + PIXEL22_1M
  2030. + }
  2031. + else
  2032. + {
  2033. + PIXEL22_2
  2034. + }
  2035. + break;
  2036. }
  2037. case 202:
  2038. {
  2039. - if (Diff(w16[4], w16[2]))
  2040. + if (Diff(w16[4], w16[2]))
  2041. {
  2042. - PIXEL00_10
  2043. + PIXEL00_1M
  2044. }
  2045. - else
  2046. + else
  2047. {
  2048. - PIXEL00_70
  2049. + PIXEL00_2
  2050. }
  2051. - PIXEL01_21
  2052. - if (Diff(w16[8], w16[4]))
  2053. - {
  2054. - PIXEL10_10
  2055. - }
  2056. - else
  2057. - {
  2058. - PIXEL10_70
  2059. - }
  2060. - PIXEL11_11
  2061. - break;
  2062. + PIXEL01_C
  2063. + PIXEL02_1M
  2064. + PIXEL10_C
  2065. + PIXEL11
  2066. + PIXEL12_1
  2067. + if (Diff(w16[8], w16[4]))
  2068. + {
  2069. + PIXEL20_1M
  2070. + }
  2071. + else
  2072. + {
  2073. + PIXEL20_2
  2074. + }
  2075. + PIXEL21_C
  2076. + PIXEL22_1R
  2077. + break;
  2078. }
  2079. case 78:
  2080. {
  2081. - if (Diff(w16[4], w16[2]))
  2082. + if (Diff(w16[4], w16[2]))
  2083. {
  2084. - PIXEL00_10
  2085. + PIXEL00_1M
  2086. }
  2087. - else
  2088. + else
  2089. {
  2090. - PIXEL00_70
  2091. + PIXEL00_2
  2092. }
  2093. - PIXEL01_12
  2094. - if (Diff(w16[8], w16[4]))
  2095. - {
  2096. - PIXEL10_10
  2097. - }
  2098. - else
  2099. - {
  2100. - PIXEL10_70
  2101. - }
  2102. - PIXEL11_22
  2103. - break;
  2104. + PIXEL01_C
  2105. + PIXEL02_1R
  2106. + PIXEL10_C
  2107. + PIXEL11
  2108. + PIXEL12_1
  2109. + if (Diff(w16[8], w16[4]))
  2110. + {
  2111. + PIXEL20_1M
  2112. + }
  2113. + else
  2114. + {
  2115. + PIXEL20_2
  2116. + }
  2117. + PIXEL21_C
  2118. + PIXEL22_1M
  2119. + break;
  2120. }
  2121. case 154:
  2122. {
  2123. - if (Diff(w16[4], w16[2]))
  2124. + if (Diff(w16[4], w16[2]))
  2125. {
  2126. - PIXEL00_10
  2127. + PIXEL00_1M
  2128. }
  2129. - else
  2130. + else
  2131. {
  2132. - PIXEL00_70
  2133. + PIXEL00_2
  2134. }
  2135. - if (Diff(w16[2], w16[6]))
  2136. + PIXEL01_C
  2137. + if (Diff(w16[2], w16[6]))
  2138. {
  2139. - PIXEL01_10
  2140. + PIXEL02_1M
  2141. }
  2142. - else
  2143. + else
  2144. {
  2145. - PIXEL01_70
  2146. + PIXEL02_2
  2147. }
  2148. - PIXEL10_22
  2149. - PIXEL11_12
  2150. - break;
  2151. + PIXEL10_C
  2152. + PIXEL11
  2153. + PIXEL12_C
  2154. + PIXEL20_1M
  2155. + PIXEL21_1
  2156. + PIXEL22_1D
  2157. + break;
  2158. }
  2159. case 114:
  2160. {
  2161. - PIXEL00_22
  2162. - if (Diff(w16[2], w16[6]))
  2163. - {
  2164. - PIXEL01_10
  2165. - }
  2166. - else
  2167. - {
  2168. - PIXEL01_70
  2169. - }
  2170. - PIXEL10_12
  2171. - if (Diff(w16[6], w16[8]))
  2172. - {
  2173. - PIXEL11_10
  2174. - }
  2175. - else
  2176. - {
  2177. - PIXEL11_70
  2178. - }
  2179. - break;
  2180. + PIXEL00_1M
  2181. + PIXEL01_C
  2182. + if (Diff(w16[2], w16[6]))
  2183. + {
  2184. + PIXEL02_1M
  2185. + }
  2186. + else
  2187. + {
  2188. + PIXEL02_2
  2189. + }
  2190. + PIXEL10_1
  2191. + PIXEL11
  2192. + PIXEL12_C
  2193. + PIXEL20_1L
  2194. + PIXEL21_C
  2195. + if (Diff(w16[6], w16[8]))
  2196. + {
  2197. + PIXEL22_1M
  2198. + }
  2199. + else
  2200. + {
  2201. + PIXEL22_2
  2202. + }
  2203. + break;
  2204. }
  2205. case 89:
  2206. {
  2207. - PIXEL00_12
  2208. - PIXEL01_22
  2209. - if (Diff(w16[8], w16[4]))
  2210. - {
  2211. - PIXEL10_10
  2212. - }
  2213. - else
  2214. - {
  2215. - PIXEL10_70
  2216. - }
  2217. - if (Diff(w16[6], w16[8]))
  2218. - {
  2219. - PIXEL11_10
  2220. - }
  2221. - else
  2222. - {
  2223. - PIXEL11_70
  2224. - }
  2225. - break;
  2226. + PIXEL00_1U
  2227. + PIXEL01_1
  2228. + PIXEL02_1M
  2229. + PIXEL10_C
  2230. + PIXEL11
  2231. + PIXEL12_C
  2232. + if (Diff(w16[8], w16[4]))
  2233. + {
  2234. + PIXEL20_1M
  2235. + }
  2236. + else
  2237. + {
  2238. + PIXEL20_2
  2239. + }
  2240. + PIXEL21_C
  2241. + if (Diff(w16[6], w16[8]))
  2242. + {
  2243. + PIXEL22_1M
  2244. + }
  2245. + else
  2246. + {
  2247. + PIXEL22_2
  2248. + }
  2249. + break;
  2250. }
  2251. case 90:
  2252. {
  2253. - if (Diff(w16[4], w16[2]))
  2254. + if (Diff(w16[4], w16[2]))
  2255. {
  2256. - PIXEL00_10
  2257. + PIXEL00_1M
  2258. }
  2259. - else
  2260. + else
  2261. {
  2262. - PIXEL00_70
  2263. + PIXEL00_2
  2264. }
  2265. - if (Diff(w16[2], w16[6]))
  2266. + PIXEL01_C
  2267. + if (Diff(w16[2], w16[6]))
  2268. {
  2269. - PIXEL01_10
  2270. + PIXEL02_1M
  2271. }
  2272. - else
  2273. + else
  2274. {
  2275. - PIXEL01_70
  2276. + PIXEL02_2
  2277. }
  2278. - if (Diff(w16[8], w16[4]))
  2279. + PIXEL10_C
  2280. + PIXEL11
  2281. + PIXEL12_C
  2282. + if (Diff(w16[8], w16[4]))
  2283. {
  2284. - PIXEL10_10
  2285. + PIXEL20_1M
  2286. }
  2287. - else
  2288. + else
  2289. {
  2290. - PIXEL10_70
  2291. + PIXEL20_2
  2292. }
  2293. - if (Diff(w16[6], w16[8]))
  2294. + PIXEL21_C
  2295. + if (Diff(w16[6], w16[8]))
  2296. {
  2297. - PIXEL11_10
  2298. + PIXEL22_1M
  2299. }
  2300. - else
  2301. + else
  2302. {
  2303. - PIXEL11_70
  2304. + PIXEL22_2
  2305. }
  2306. - break;
  2307. + break;
  2308. }
  2309. case 55:
  2310. case 23:
  2311. {
  2312. - if (Diff(w16[2], w16[6]))
  2313. + if (Diff(w16[2], w16[6]))
  2314. {
  2315. - PIXEL00_11
  2316. - PIXEL01_0
  2317. + PIXEL00_1L
  2318. + PIXEL01_C
  2319. + PIXEL02_C
  2320. + PIXEL12_C
  2321. }
  2322. - else
  2323. + else
  2324. {
  2325. - PIXEL00_60
  2326. - PIXEL01_90
  2327. + PIXEL00_2
  2328. + PIXEL01_6
  2329. + PIXEL02_5
  2330. + PIXEL12_1
  2331. }
  2332. - PIXEL10_20
  2333. - PIXEL11_21
  2334. - break;
  2335. + PIXEL10_1
  2336. + PIXEL11
  2337. + PIXEL20_2
  2338. + PIXEL21_1
  2339. + PIXEL22_1M
  2340. + break;
  2341. }
  2342. case 182:
  2343. case 150:
  2344. {
  2345. - PIXEL00_22
  2346. - if (Diff(w16[2], w16[6]))
  2347. - {
  2348. - PIXEL01_0
  2349. - PIXEL11_12
  2350. - }
  2351. - else
  2352. - {
  2353. - PIXEL01_90
  2354. - PIXEL11_61
  2355. - }
  2356. - PIXEL10_20
  2357. - break;
  2358. + if (Diff(w16[2], w16[6]))
  2359. + {
  2360. + PIXEL01_C
  2361. + PIXEL02_C
  2362. + PIXEL12_C
  2363. + PIXEL22_1D
  2364. + }
  2365. + else
  2366. + {
  2367. + PIXEL01_1
  2368. + PIXEL02_5
  2369. + PIXEL12_6
  2370. + PIXEL22_2
  2371. + }
  2372. + PIXEL00_1M
  2373. + PIXEL10_1
  2374. + PIXEL11
  2375. + PIXEL20_2
  2376. + PIXEL21_1
  2377. + break;
  2378. }
  2379. case 213:
  2380. case 212:
  2381. {
  2382. - PIXEL00_20
  2383. - if (Diff(w16[6], w16[8]))
  2384. - {
  2385. - PIXEL01_11
  2386. - PIXEL11_0
  2387. - }
  2388. - else
  2389. - {
  2390. - PIXEL01_60
  2391. - PIXEL11_90
  2392. - }
  2393. - PIXEL10_21
  2394. - break;
  2395. + if (Diff(w16[6], w16[8]))
  2396. + {
  2397. + PIXEL02_1U
  2398. + PIXEL12_C
  2399. + PIXEL21_C
  2400. + PIXEL22_C
  2401. + }
  2402. + else
  2403. + {
  2404. + PIXEL02_2
  2405. + PIXEL12_6
  2406. + PIXEL21_1
  2407. + PIXEL22_5
  2408. + }
  2409. + PIXEL00_2
  2410. + PIXEL01_1
  2411. + PIXEL10_1
  2412. + PIXEL11
  2413. + PIXEL20_1M
  2414. + break;
  2415. }
  2416. case 241:
  2417. case 240:
  2418. {
  2419. - PIXEL00_20
  2420. - PIXEL01_22
  2421. - if (Diff(w16[6], w16[8]))
  2422. - {
  2423. - PIXEL10_12
  2424. - PIXEL11_0
  2425. - }
  2426. - else
  2427. - {
  2428. - PIXEL10_61
  2429. - PIXEL11_90
  2430. - }
  2431. - break;
  2432. + if (Diff(w16[6], w16[8]))
  2433. + {
  2434. + PIXEL12_C
  2435. + PIXEL20_1L
  2436. + PIXEL21_C
  2437. + PIXEL22_C
  2438. + }
  2439. + else
  2440. + {
  2441. + PIXEL12_1
  2442. + PIXEL20_2
  2443. + PIXEL21_6
  2444. + PIXEL22_5
  2445. + }
  2446. + PIXEL00_2
  2447. + PIXEL01_1
  2448. + PIXEL02_1M
  2449. + PIXEL10_1
  2450. + PIXEL11
  2451. + break;
  2452. }
  2453. case 236:
  2454. case 232:
  2455. {
  2456. - PIXEL00_21
  2457. - PIXEL01_20
  2458. - if (Diff(w16[8], w16[4]))
  2459. - {
  2460. - PIXEL10_0
  2461. - PIXEL11_11
  2462. - }
  2463. - else
  2464. - {
  2465. - PIXEL10_90
  2466. - PIXEL11_60
  2467. - }
  2468. - break;
  2469. + if (Diff(w16[8], w16[4]))
  2470. + {
  2471. + PIXEL10_C
  2472. + PIXEL20_C
  2473. + PIXEL21_C
  2474. + PIXEL22_1R
  2475. + }
  2476. + else
  2477. + {
  2478. + PIXEL10_1
  2479. + PIXEL20_5
  2480. + PIXEL21_6
  2481. + PIXEL22_2
  2482. + }
  2483. + PIXEL00_1M
  2484. + PIXEL01_1
  2485. + PIXEL02_2
  2486. + PIXEL11
  2487. + PIXEL12_1
  2488. + break;
  2489. }
  2490. case 109:
  2491. case 105:
  2492. {
  2493. - if (Diff(w16[8], w16[4]))
  2494. + if (Diff(w16[8], w16[4]))
  2495. {
  2496. - PIXEL00_12
  2497. - PIXEL10_0
  2498. + PIXEL00_1U
  2499. + PIXEL10_C
  2500. + PIXEL20_C
  2501. + PIXEL21_C
  2502. }
  2503. - else
  2504. + else
  2505. {
  2506. - PIXEL00_61
  2507. - PIXEL10_90
  2508. + PIXEL00_2
  2509. + PIXEL10_6
  2510. + PIXEL20_5
  2511. + PIXEL21_1
  2512. }
  2513. - PIXEL01_20
  2514. - PIXEL11_22
  2515. - break;
  2516. + PIXEL01_1
  2517. + PIXEL02_2
  2518. + PIXEL11
  2519. + PIXEL12_1
  2520. + PIXEL22_1M
  2521. + break;
  2522. }
  2523. case 171:
  2524. case 43:
  2525. {
  2526. - if (Diff(w16[4], w16[2]))
  2527. + if (Diff(w16[4], w16[2]))
  2528. {
  2529. - PIXEL00_0
  2530. - PIXEL10_11
  2531. + PIXEL00_C
  2532. + PIXEL01_C
  2533. + PIXEL10_C
  2534. + PIXEL20_1D
  2535. }
  2536. - else
  2537. + else
  2538. {
  2539. - PIXEL00_90
  2540. - PIXEL10_60
  2541. + PIXEL00_5
  2542. + PIXEL01_1
  2543. + PIXEL10_6
  2544. + PIXEL20_2
  2545. }
  2546. - PIXEL01_21
  2547. - PIXEL11_20
  2548. - break;
  2549. + PIXEL02_1M
  2550. + PIXEL11
  2551. + PIXEL12_1
  2552. + PIXEL21_1
  2553. + PIXEL22_2
  2554. + break;
  2555. }
  2556. case 143:
  2557. case 15:
  2558. {
  2559. - if (Diff(w16[4], w16[2]))
  2560. + if (Diff(w16[4], w16[2]))
  2561. {
  2562. - PIXEL00_0
  2563. - PIXEL01_12
  2564. + PIXEL00_C
  2565. + PIXEL01_C
  2566. + PIXEL02_1R
  2567. + PIXEL10_C
  2568. }
  2569. - else
  2570. + else
  2571. {
  2572. - PIXEL00_90
  2573. - PIXEL01_61
  2574. + PIXEL00_5
  2575. + PIXEL01_6
  2576. + PIXEL02_2
  2577. + PIXEL10_1
  2578. }
  2579. - PIXEL10_22
  2580. - PIXEL11_20
  2581. - break;
  2582. + PIXEL11
  2583. + PIXEL12_1
  2584. + PIXEL20_1M
  2585. + PIXEL21_1
  2586. + PIXEL22_2
  2587. + break;
  2588. }
  2589. case 124:
  2590. {
  2591. - PIXEL00_21
  2592. - PIXEL01_11
  2593. - if (Diff(w16[8], w16[4]))
  2594. - {
  2595. - PIXEL10_0
  2596. - }
  2597. - else
  2598. - {
  2599. - PIXEL10_20
  2600. - }
  2601. - PIXEL11_10
  2602. - break;
  2603. + PIXEL00_1M
  2604. + PIXEL01_1
  2605. + PIXEL02_1U
  2606. + PIXEL11
  2607. + PIXEL12_C
  2608. + if (Diff(w16[8], w16[4]))
  2609. + {
  2610. + PIXEL10_C
  2611. + PIXEL20_C
  2612. + PIXEL21_C
  2613. + }
  2614. + else
  2615. + {
  2616. + PIXEL10_3
  2617. + PIXEL20_4
  2618. + PIXEL21_3
  2619. + }
  2620. + PIXEL22_1M
  2621. + break;
  2622. }
  2623. case 203:
  2624. {
  2625. - if (Diff(w16[4], w16[2]))
  2626. + if (Diff(w16[4], w16[2]))
  2627. {
  2628. - PIXEL00_0
  2629. + PIXEL00_C
  2630. + PIXEL01_C
  2631. + PIXEL10_C
  2632. }
  2633. - else
  2634. + else
  2635. {
  2636. - PIXEL00_20
  2637. + PIXEL00_4
  2638. + PIXEL01_3
  2639. + PIXEL10_3
  2640. }
  2641. - PIXEL01_21
  2642. - PIXEL10_10
  2643. - PIXEL11_11
  2644. - break;
  2645. + PIXEL02_1M
  2646. + PIXEL11
  2647. + PIXEL12_1
  2648. + PIXEL20_1M
  2649. + PIXEL21_C
  2650. + PIXEL22_1R
  2651. + break;
  2652. }
  2653. case 62:
  2654. {
  2655. - PIXEL00_10
  2656. - if (Diff(w16[2], w16[6]))
  2657. - {
  2658. - PIXEL01_0
  2659. - }
  2660. - else
  2661. - {
  2662. - PIXEL01_20
  2663. - }
  2664. - PIXEL10_11
  2665. - PIXEL11_21
  2666. - break;
  2667. + PIXEL00_1M
  2668. + if (Diff(w16[2], w16[6]))
  2669. + {
  2670. + PIXEL01_C
  2671. + PIXEL02_C
  2672. + PIXEL12_C
  2673. + }
  2674. + else
  2675. + {
  2676. + PIXEL01_3
  2677. + PIXEL02_4
  2678. + PIXEL12_3
  2679. + }
  2680. + PIXEL10_C
  2681. + PIXEL11
  2682. + PIXEL20_1D
  2683. + PIXEL21_1
  2684. + PIXEL22_1M
  2685. + break;
  2686. }
  2687. case 211:
  2688. {
  2689. - PIXEL00_11
  2690. - PIXEL01_10
  2691. - PIXEL10_21
  2692. - if (Diff(w16[6], w16[8]))
  2693. - {
  2694. - PIXEL11_0
  2695. - }
  2696. - else
  2697. - {
  2698. - PIXEL11_20
  2699. - }
  2700. - break;
  2701. + PIXEL00_1L
  2702. + PIXEL01_C
  2703. + PIXEL02_1M
  2704. + PIXEL10_1
  2705. + PIXEL11
  2706. + PIXEL20_1M
  2707. + if (Diff(w16[6], w16[8]))
  2708. + {
  2709. + PIXEL12_C
  2710. + PIXEL21_C
  2711. + PIXEL22_C
  2712. + }
  2713. + else
  2714. + {
  2715. + PIXEL12_3
  2716. + PIXEL21_3
  2717. + PIXEL22_4
  2718. + }
  2719. + break;
  2720. }
  2721. case 118:
  2722. {
  2723. - PIXEL00_22
  2724. - if (Diff(w16[2], w16[6]))
  2725. - {
  2726. - PIXEL01_0
  2727. - }
  2728. - else
  2729. - {
  2730. - PIXEL01_20
  2731. - }
  2732. - PIXEL10_12
  2733. - PIXEL11_10
  2734. - break;
  2735. + PIXEL00_1M
  2736. + if (Diff(w16[2], w16[6]))
  2737. + {
  2738. + PIXEL01_C
  2739. + PIXEL02_C
  2740. + PIXEL12_C
  2741. + }
  2742. + else
  2743. + {
  2744. + PIXEL01_3
  2745. + PIXEL02_4
  2746. + PIXEL12_3
  2747. + }
  2748. + PIXEL10_1
  2749. + PIXEL11
  2750. + PIXEL20_1L
  2751. + PIXEL21_C
  2752. + PIXEL22_1M
  2753. + break;
  2754. }
  2755. case 217:
  2756. {
  2757. - PIXEL00_12
  2758. - PIXEL01_22
  2759. - PIXEL10_10
  2760. - if (Diff(w16[6], w16[8]))
  2761. - {
  2762. - PIXEL11_0
  2763. - }
  2764. - else
  2765. - {
  2766. - PIXEL11_20
  2767. - }
  2768. - break;
  2769. + PIXEL00_1U
  2770. + PIXEL01_1
  2771. + PIXEL02_1M
  2772. + PIXEL10_C
  2773. + PIXEL11
  2774. + PIXEL20_1M
  2775. + if (Diff(w16[6], w16[8]))
  2776. + {
  2777. + PIXEL12_C
  2778. + PIXEL21_C
  2779. + PIXEL22_C
  2780. + }
  2781. + else
  2782. + {
  2783. + PIXEL12_3
  2784. + PIXEL21_3
  2785. + PIXEL22_4
  2786. + }
  2787. + break;
  2788. }
  2789. case 110:
  2790. {
  2791. - PIXEL00_10
  2792. - PIXEL01_12
  2793. - if (Diff(w16[8], w16[4]))
  2794. - {
  2795. - PIXEL10_0
  2796. - }
  2797. - else
  2798. - {
  2799. - PIXEL10_20
  2800. - }
  2801. - PIXEL11_22
  2802. - break;
  2803. + PIXEL00_1M
  2804. + PIXEL01_C
  2805. + PIXEL02_1R
  2806. + PIXEL11
  2807. + PIXEL12_1
  2808. + if (Diff(w16[8], w16[4]))
  2809. + {
  2810. + PIXEL10_C
  2811. + PIXEL20_C
  2812. + PIXEL21_C
  2813. + }
  2814. + else
  2815. + {
  2816. + PIXEL10_3
  2817. + PIXEL20_4
  2818. + PIXEL21_3
  2819. + }
  2820. + PIXEL22_1M
  2821. + break;
  2822. }
  2823. case 155:
  2824. {
  2825. - if (Diff(w16[4], w16[2]))
  2826. + if (Diff(w16[4], w16[2]))
  2827. {
  2828. - PIXEL00_0
  2829. + PIXEL00_C
  2830. + PIXEL01_C
  2831. + PIXEL10_C
  2832. }
  2833. - else
  2834. + else
  2835. {
  2836. - PIXEL00_20
  2837. + PIXEL00_4
  2838. + PIXEL01_3
  2839. + PIXEL10_3
  2840. }
  2841. - PIXEL01_10
  2842. - PIXEL10_22
  2843. - PIXEL11_12
  2844. - break;
  2845. + PIXEL02_1M
  2846. + PIXEL11
  2847. + PIXEL12_C
  2848. + PIXEL20_1M
  2849. + PIXEL21_1
  2850. + PIXEL22_1D
  2851. + break;
  2852. }
  2853. case 188:
  2854. {
  2855. - PIXEL00_21
  2856. - PIXEL01_11
  2857. - PIXEL10_11
  2858. - PIXEL11_12
  2859. - break;
  2860. + PIXEL00_1M
  2861. + PIXEL01_1
  2862. + PIXEL02_1U
  2863. + PIXEL10_C
  2864. + PIXEL11
  2865. + PIXEL12_C
  2866. + PIXEL20_1D
  2867. + PIXEL21_1
  2868. + PIXEL22_1D
  2869. + break;
  2870. }
  2871. case 185:
  2872. {
  2873. - PIXEL00_12
  2874. - PIXEL01_22
  2875. - PIXEL10_11
  2876. - PIXEL11_12
  2877. - break;
  2878. + PIXEL00_1U
  2879. + PIXEL01_1
  2880. + PIXEL02_1M
  2881. + PIXEL10_C
  2882. + PIXEL11
  2883. + PIXEL12_C
  2884. + PIXEL20_1D
  2885. + PIXEL21_1
  2886. + PIXEL22_1D
  2887. + break;
  2888. }
  2889. case 61:
  2890. {
  2891. - PIXEL00_12
  2892. - PIXEL01_11
  2893. - PIXEL10_11
  2894. - PIXEL11_21
  2895. - break;
  2896. + PIXEL00_1U
  2897. + PIXEL01_1
  2898. + PIXEL02_1U
  2899. + PIXEL10_C
  2900. + PIXEL11
  2901. + PIXEL12_C
  2902. + PIXEL20_1D
  2903. + PIXEL21_1
  2904. + PIXEL22_1M
  2905. + break;
  2906. }
  2907. case 157:
  2908. {
  2909. - PIXEL00_12
  2910. - PIXEL01_11
  2911. - PIXEL10_22
  2912. - PIXEL11_12
  2913. - break;
  2914. + PIXEL00_1U
  2915. + PIXEL01_1
  2916. + PIXEL02_1U
  2917. + PIXEL10_C
  2918. + PIXEL11
  2919. + PIXEL12_C
  2920. + PIXEL20_1M
  2921. + PIXEL21_1
  2922. + PIXEL22_1D
  2923. + break;
  2924. }
  2925. case 103:
  2926. {
  2927. - PIXEL00_11
  2928. - PIXEL01_12
  2929. - PIXEL10_12
  2930. - PIXEL11_22
  2931. - break;
  2932. + PIXEL00_1L
  2933. + PIXEL01_C
  2934. + PIXEL02_1R
  2935. + PIXEL10_1
  2936. + PIXEL11
  2937. + PIXEL12_1
  2938. + PIXEL20_1L
  2939. + PIXEL21_C
  2940. + PIXEL22_1M
  2941. + break;
  2942. }
  2943. case 227:
  2944. {
  2945. - PIXEL00_11
  2946. - PIXEL01_21
  2947. - PIXEL10_12
  2948. - PIXEL11_11
  2949. - break;
  2950. + PIXEL00_1L
  2951. + PIXEL01_C
  2952. + PIXEL02_1M
  2953. + PIXEL10_1
  2954. + PIXEL11
  2955. + PIXEL12_1
  2956. + PIXEL20_1L
  2957. + PIXEL21_C
  2958. + PIXEL22_1R
  2959. + break;
  2960. }
  2961. case 230:
  2962. {
  2963. - PIXEL00_22
  2964. - PIXEL01_12
  2965. - PIXEL10_12
  2966. - PIXEL11_11
  2967. - break;
  2968. + PIXEL00_1M
  2969. + PIXEL01_C
  2970. + PIXEL02_1R
  2971. + PIXEL10_1
  2972. + PIXEL11
  2973. + PIXEL12_1
  2974. + PIXEL20_1L
  2975. + PIXEL21_C
  2976. + PIXEL22_1R
  2977. + break;
  2978. }
  2979. case 199:
  2980. {
  2981. - PIXEL00_11
  2982. - PIXEL01_12
  2983. - PIXEL10_21
  2984. - PIXEL11_11
  2985. - break;
  2986. + PIXEL00_1L
  2987. + PIXEL01_C
  2988. + PIXEL02_1R
  2989. + PIXEL10_1
  2990. + PIXEL11
  2991. + PIXEL12_1
  2992. + PIXEL20_1M
  2993. + PIXEL21_C
  2994. + PIXEL22_1R
  2995. + break;
  2996. }
  2997. case 220:
  2998. {
  2999. - PIXEL00_21
  3000. - PIXEL01_11
  3001. - if (Diff(w16[8], w16[4]))
  3002. - {
  3003. - PIXEL10_10
  3004. - }
  3005. - else
  3006. - {
  3007. - PIXEL10_70
  3008. - }
  3009. - if (Diff(w16[6], w16[8]))
  3010. - {
  3011. - PIXEL11_0
  3012. - }
  3013. - else
  3014. - {
  3015. - PIXEL11_20
  3016. - }
  3017. - break;
  3018. + PIXEL00_1M
  3019. + PIXEL01_1
  3020. + PIXEL02_1U
  3021. + PIXEL10_C
  3022. + PIXEL11
  3023. + if (Diff(w16[8], w16[4]))
  3024. + {
  3025. + PIXEL20_1M
  3026. + }
  3027. + else
  3028. + {
  3029. + PIXEL20_2
  3030. + }
  3031. + if (Diff(w16[6], w16[8]))
  3032. + {
  3033. + PIXEL12_C
  3034. + PIXEL21_C
  3035. + PIXEL22_C
  3036. + }
  3037. + else
  3038. + {
  3039. + PIXEL12_3
  3040. + PIXEL21_3
  3041. + PIXEL22_4
  3042. + }
  3043. + break;
  3044. }
  3045. case 158:
  3046. {
  3047. - if (Diff(w16[4], w16[2]))
  3048. + if (Diff(w16[4], w16[2]))
  3049. {
  3050. - PIXEL00_10
  3051. + PIXEL00_1M
  3052. }
  3053. - else
  3054. + else
  3055. {
  3056. - PIXEL00_70
  3057. + PIXEL00_2
  3058. }
  3059. - if (Diff(w16[2], w16[6]))
  3060. + if (Diff(w16[2], w16[6]))
  3061. {
  3062. - PIXEL01_0
  3063. + PIXEL01_C
  3064. + PIXEL02_C
  3065. + PIXEL12_C
  3066. }
  3067. - else
  3068. + else
  3069. {
  3070. - PIXEL01_20
  3071. + PIXEL01_3
  3072. + PIXEL02_4
  3073. + PIXEL12_3
  3074. }
  3075. - PIXEL10_22
  3076. - PIXEL11_12
  3077. - break;
  3078. + PIXEL10_C
  3079. + PIXEL11
  3080. + PIXEL20_1M
  3081. + PIXEL21_1
  3082. + PIXEL22_1D
  3083. + break;
  3084. }
  3085. case 234:
  3086. {
  3087. - if (Diff(w16[4], w16[2]))
  3088. + if (Diff(w16[4], w16[2]))
  3089. {
  3090. - PIXEL00_10
  3091. + PIXEL00_1M
  3092. }
  3093. - else
  3094. + else
  3095. {
  3096. - PIXEL00_70
  3097. + PIXEL00_2
  3098. }
  3099. - PIXEL01_21
  3100. - if (Diff(w16[8], w16[4]))
  3101. - {
  3102. - PIXEL10_0
  3103. - }
  3104. - else
  3105. - {
  3106. - PIXEL10_20
  3107. - }
  3108. - PIXEL11_11
  3109. - break;
  3110. + PIXEL01_C
  3111. + PIXEL02_1M
  3112. + PIXEL11
  3113. + PIXEL12_1
  3114. + if (Diff(w16[8], w16[4]))
  3115. + {
  3116. + PIXEL10_C
  3117. + PIXEL20_C
  3118. + PIXEL21_C
  3119. + }
  3120. + else
  3121. + {
  3122. + PIXEL10_3
  3123. + PIXEL20_4
  3124. + PIXEL21_3
  3125. + }
  3126. + PIXEL22_1R
  3127. + break;
  3128. }
  3129. case 242:
  3130. {
  3131. - PIXEL00_22
  3132. - if (Diff(w16[2], w16[6]))
  3133. - {
  3134. - PIXEL01_10
  3135. - }
  3136. - else
  3137. - {
  3138. - PIXEL01_70
  3139. - }
  3140. - PIXEL10_12
  3141. - if (Diff(w16[6], w16[8]))
  3142. - {
  3143. - PIXEL11_0
  3144. - }
  3145. - else
  3146. - {
  3147. - PIXEL11_20
  3148. - }
  3149. - break;
  3150. + PIXEL00_1M
  3151. + PIXEL01_C
  3152. + if (Diff(w16[2], w16[6]))
  3153. + {
  3154. + PIXEL02_1M
  3155. + }
  3156. + else
  3157. + {
  3158. + PIXEL02_2
  3159. + }
  3160. + PIXEL10_1
  3161. + PIXEL11
  3162. + PIXEL20_1L
  3163. + if (Diff(w16[6], w16[8]))
  3164. + {
  3165. + PIXEL12_C
  3166. + PIXEL21_C
  3167. + PIXEL22_C
  3168. + }
  3169. + else
  3170. + {
  3171. + PIXEL12_3
  3172. + PIXEL21_3
  3173. + PIXEL22_4
  3174. + }
  3175. + break;
  3176. }
  3177. case 59:
  3178. {
  3179. - if (Diff(w16[4], w16[2]))
  3180. + if (Diff(w16[4], w16[2]))
  3181. {
  3182. - PIXEL00_0
  3183. + PIXEL00_C
  3184. + PIXEL01_C
  3185. + PIXEL10_C
  3186. }
  3187. - else
  3188. + else
  3189. {
  3190. - PIXEL00_20
  3191. + PIXEL00_4
  3192. + PIXEL01_3
  3193. + PIXEL10_3
  3194. }
  3195. - if (Diff(w16[2], w16[6]))
  3196. + if (Diff(w16[2], w16[6]))
  3197. {
  3198. - PIXEL01_10
  3199. + PIXEL02_1M
  3200. }
  3201. - else
  3202. + else
  3203. {
  3204. - PIXEL01_70
  3205. + PIXEL02_2
  3206. }
  3207. - PIXEL10_11
  3208. - PIXEL11_21
  3209. - break;
  3210. + PIXEL11
  3211. + PIXEL12_C
  3212. + PIXEL20_1D
  3213. + PIXEL21_1
  3214. + PIXEL22_1M
  3215. + break;
  3216. }
  3217. case 121:
  3218. {
  3219. - PIXEL00_12
  3220. - PIXEL01_22
  3221. - if (Diff(w16[8], w16[4]))
  3222. - {
  3223. - PIXEL10_0
  3224. - }
  3225. - else
  3226. - {
  3227. - PIXEL10_20
  3228. - }
  3229. - if (Diff(w16[6], w16[8]))
  3230. - {
  3231. - PIXEL11_10
  3232. - }
  3233. - else
  3234. - {
  3235. - PIXEL11_70
  3236. - }
  3237. - break;
  3238. + PIXEL00_1U
  3239. + PIXEL01_1
  3240. + PIXEL02_1M
  3241. + PIXEL11
  3242. + PIXEL12_C
  3243. + if (Diff(w16[8], w16[4]))
  3244. + {
  3245. + PIXEL10_C
  3246. + PIXEL20_C
  3247. + PIXEL21_C
  3248. + }
  3249. + else
  3250. + {
  3251. + PIXEL10_3
  3252. + PIXEL20_4
  3253. + PIXEL21_3
  3254. + }
  3255. + if (Diff(w16[6], w16[8]))
  3256. + {
  3257. + PIXEL22_1M
  3258. + }
  3259. + else
  3260. + {
  3261. + PIXEL22_2
  3262. + }
  3263. + break;
  3264. }
  3265. case 87:
  3266. {
  3267. - PIXEL00_11
  3268. - if (Diff(w16[2], w16[6]))
  3269. - {
  3270. - PIXEL01_0
  3271. - }
  3272. - else
  3273. - {
  3274. - PIXEL01_20
  3275. - }
  3276. - PIXEL10_21
  3277. - if (Diff(w16[6], w16[8]))
  3278. - {
  3279. - PIXEL11_10
  3280. - }
  3281. - else
  3282. - {
  3283. - PIXEL11_70
  3284. - }
  3285. - break;
  3286. + PIXEL00_1L
  3287. + if (Diff(w16[2], w16[6]))
  3288. + {
  3289. + PIXEL01_C
  3290. + PIXEL02_C
  3291. + PIXEL12_C
  3292. + }
  3293. + else
  3294. + {
  3295. + PIXEL01_3
  3296. + PIXEL02_4
  3297. + PIXEL12_3
  3298. + }
  3299. + PIXEL10_1
  3300. + PIXEL11
  3301. + PIXEL20_1M
  3302. + PIXEL21_C
  3303. + if (Diff(w16[6], w16[8]))
  3304. + {
  3305. + PIXEL22_1M
  3306. + }
  3307. + else
  3308. + {
  3309. + PIXEL22_2
  3310. + }
  3311. + break;
  3312. }
  3313. case 79:
  3314. {
  3315. - if (Diff(w16[4], w16[2]))
  3316. + if (Diff(w16[4], w16[2]))
  3317. {
  3318. - PIXEL00_0
  3319. + PIXEL00_C
  3320. + PIXEL01_C
  3321. + PIXEL10_C
  3322. }
  3323. - else
  3324. + else
  3325. {
  3326. - PIXEL00_20
  3327. + PIXEL00_4
  3328. + PIXEL01_3
  3329. + PIXEL10_3
  3330. }
  3331. - PIXEL01_12
  3332. - if (Diff(w16[8], w16[4]))
  3333. - {
  3334. - PIXEL10_10
  3335. - }
  3336. - else
  3337. - {
  3338. - PIXEL10_70
  3339. - }
  3340. - PIXEL11_22
  3341. - break;
  3342. + PIXEL02_1R
  3343. + PIXEL11
  3344. + PIXEL12_1
  3345. + if (Diff(w16[8], w16[4]))
  3346. + {
  3347. + PIXEL20_1M
  3348. + }
  3349. + else
  3350. + {
  3351. + PIXEL20_2
  3352. + }
  3353. + PIXEL21_C
  3354. + PIXEL22_1M
  3355. + break;
  3356. }
  3357. case 122:
  3358. {
  3359. - if (Diff(w16[4], w16[2]))
  3360. + if (Diff(w16[4], w16[2]))
  3361. {
  3362. - PIXEL00_10
  3363. + PIXEL00_1M
  3364. }
  3365. - else
  3366. + else
  3367. {
  3368. - PIXEL00_70
  3369. + PIXEL00_2
  3370. }
  3371. - if (Diff(w16[2], w16[6]))
  3372. + PIXEL01_C
  3373. + if (Diff(w16[2], w16[6]))
  3374. {
  3375. - PIXEL01_10
  3376. + PIXEL02_1M
  3377. }
  3378. - else
  3379. + else
  3380. {
  3381. - PIXEL01_70
  3382. + PIXEL02_2
  3383. }
  3384. - if (Diff(w16[8], w16[4]))
  3385. + PIXEL11
  3386. + PIXEL12_C
  3387. + if (Diff(w16[8], w16[4]))
  3388. {
  3389. - PIXEL10_0
  3390. + PIXEL10_C
  3391. + PIXEL20_C
  3392. + PIXEL21_C
  3393. }
  3394. - else
  3395. + else
  3396. {
  3397. - PIXEL10_20
  3398. + PIXEL10_3
  3399. + PIXEL20_4
  3400. + PIXEL21_3
  3401. }
  3402. - if (Diff(w16[6], w16[8]))
  3403. + if (Diff(w16[6], w16[8]))
  3404. {
  3405. - PIXEL11_10
  3406. + PIXEL22_1M
  3407. }
  3408. - else
  3409. + else
  3410. {
  3411. - PIXEL11_70
  3412. + PIXEL22_2
  3413. }
  3414. - break;
  3415. + break;
  3416. }
  3417. case 94:
  3418. {
  3419. - if (Diff(w16[4], w16[2]))
  3420. + if (Diff(w16[4], w16[2]))
  3421. {
  3422. - PIXEL00_10
  3423. + PIXEL00_1M
  3424. }
  3425. - else
  3426. + else
  3427. {
  3428. - PIXEL00_70
  3429. + PIXEL00_2
  3430. }
  3431. - if (Diff(w16[2], w16[6]))
  3432. + if (Diff(w16[2], w16[6]))
  3433. {
  3434. - PIXEL01_0
  3435. + PIXEL01_C
  3436. + PIXEL02_C
  3437. + PIXEL12_C
  3438. }
  3439. - else
  3440. + else
  3441. {
  3442. - PIXEL01_20
  3443. + PIXEL01_3
  3444. + PIXEL02_4
  3445. + PIXEL12_3
  3446. }
  3447. - if (Diff(w16[8], w16[4]))
  3448. + PIXEL10_C
  3449. + PIXEL11
  3450. + if (Diff(w16[8], w16[4]))
  3451. {
  3452. - PIXEL10_10
  3453. + PIXEL20_1M
  3454. }
  3455. - else
  3456. + else
  3457. {
  3458. - PIXEL10_70
  3459. + PIXEL20_2
  3460. }
  3461. - if (Diff(w16[6], w16[8]))
  3462. + PIXEL21_C
  3463. + if (Diff(w16[6], w16[8]))
  3464. {
  3465. - PIXEL11_10
  3466. + PIXEL22_1M
  3467. }
  3468. - else
  3469. + else
  3470. {
  3471. - PIXEL11_70
  3472. + PIXEL22_2
  3473. }
  3474. - break;
  3475. + break;
  3476. }
  3477. case 218:
  3478. {
  3479. - if (Diff(w16[4], w16[2]))
  3480. + if (Diff(w16[4], w16[2]))
  3481. {
  3482. - PIXEL00_10
  3483. + PIXEL00_1M
  3484. }
  3485. - else
  3486. + else
  3487. {
  3488. - PIXEL00_70
  3489. + PIXEL00_2
  3490. }
  3491. - if (Diff(w16[2], w16[6]))
  3492. + PIXEL01_C
  3493. + if (Diff(w16[2], w16[6]))
  3494. {
  3495. - PIXEL01_10
  3496. + PIXEL02_1M
  3497. }
  3498. - else
  3499. + else
  3500. {
  3501. - PIXEL01_70
  3502. + PIXEL02_2
  3503. }
  3504. - if (Diff(w16[8], w16[4]))
  3505. + PIXEL10_C
  3506. + PIXEL11
  3507. + if (Diff(w16[8], w16[4]))
  3508. {
  3509. - PIXEL10_10
  3510. + PIXEL20_1M
  3511. }
  3512. - else
  3513. + else
  3514. {
  3515. - PIXEL10_70
  3516. + PIXEL20_2
  3517. }
  3518. - if (Diff(w16[6], w16[8]))
  3519. + if (Diff(w16[6], w16[8]))
  3520. {
  3521. - PIXEL11_0
  3522. + PIXEL12_C
  3523. + PIXEL21_C
  3524. + PIXEL22_C
  3525. }
  3526. - else
  3527. + else
  3528. {
  3529. - PIXEL11_20
  3530. + PIXEL12_3
  3531. + PIXEL21_3
  3532. + PIXEL22_4
  3533. }
  3534. - break;
  3535. + break;
  3536. }
  3537. case 91:
  3538. {
  3539. - if (Diff(w16[4], w16[2]))
  3540. + if (Diff(w16[4], w16[2]))
  3541. {
  3542. - PIXEL00_0
  3543. + PIXEL00_C
  3544. + PIXEL01_C
  3545. + PIXEL10_C
  3546. }
  3547. - else
  3548. + else
  3549. {
  3550. - PIXEL00_20
  3551. + PIXEL00_4
  3552. + PIXEL01_3
  3553. + PIXEL10_3
  3554. }
  3555. - if (Diff(w16[2], w16[6]))
  3556. + if (Diff(w16[2], w16[6]))
  3557. {
  3558. - PIXEL01_10
  3559. + PIXEL02_1M
  3560. }
  3561. - else
  3562. + else
  3563. {
  3564. - PIXEL01_70
  3565. + PIXEL02_2
  3566. }
  3567. - if (Diff(w16[8], w16[4]))
  3568. + PIXEL11
  3569. + PIXEL12_C
  3570. + if (Diff(w16[8], w16[4]))
  3571. {
  3572. - PIXEL10_10
  3573. + PIXEL20_1M
  3574. }
  3575. - else
  3576. + else
  3577. {
  3578. - PIXEL10_70
  3579. + PIXEL20_2
  3580. }
  3581. - if (Diff(w16[6], w16[8]))
  3582. + PIXEL21_C
  3583. + if (Diff(w16[6], w16[8]))
  3584. {
  3585. - PIXEL11_10
  3586. + PIXEL22_1M
  3587. }
  3588. - else
  3589. + else
  3590. {
  3591. - PIXEL11_70
  3592. + PIXEL22_2
  3593. }
  3594. - break;
  3595. + break;
  3596. }
  3597. case 229:
  3598. {
  3599. - PIXEL00_20
  3600. - PIXEL01_20
  3601. - PIXEL10_12
  3602. - PIXEL11_11
  3603. - break;
  3604. + PIXEL00_2
  3605. + PIXEL01_1
  3606. + PIXEL02_2
  3607. + PIXEL10_1
  3608. + PIXEL11
  3609. + PIXEL12_1
  3610. + PIXEL20_1L
  3611. + PIXEL21_C
  3612. + PIXEL22_1R
  3613. + break;
  3614. }
  3615. case 167:
  3616. {
  3617. - PIXEL00_11
  3618. - PIXEL01_12
  3619. - PIXEL10_20
  3620. - PIXEL11_20
  3621. - break;
  3622. + PIXEL00_1L
  3623. + PIXEL01_C
  3624. + PIXEL02_1R
  3625. + PIXEL10_1
  3626. + PIXEL11
  3627. + PIXEL12_1
  3628. + PIXEL20_2
  3629. + PIXEL21_1
  3630. + PIXEL22_2
  3631. + break;
  3632. }
  3633. case 173:
  3634. {
  3635. - PIXEL00_12
  3636. - PIXEL01_20
  3637. - PIXEL10_11
  3638. - PIXEL11_20
  3639. - break;
  3640. + PIXEL00_1U
  3641. + PIXEL01_1
  3642. + PIXEL02_2
  3643. + PIXEL10_C
  3644. + PIXEL11
  3645. + PIXEL12_1
  3646. + PIXEL20_1D
  3647. + PIXEL21_1
  3648. + PIXEL22_2
  3649. + break;
  3650. }
  3651. case 181:
  3652. {
  3653. - PIXEL00_20
  3654. - PIXEL01_11
  3655. - PIXEL10_20
  3656. - PIXEL11_12
  3657. - break;
  3658. + PIXEL00_2
  3659. + PIXEL01_1
  3660. + PIXEL02_1U
  3661. + PIXEL10_1
  3662. + PIXEL11
  3663. + PIXEL12_C
  3664. + PIXEL20_2
  3665. + PIXEL21_1
  3666. + PIXEL22_1D
  3667. + break;
  3668. }
  3669. case 186:
  3670. {
  3671. - if (Diff(w16[4], w16[2]))
  3672. + if (Diff(w16[4], w16[2]))
  3673. {
  3674. - PIXEL00_10
  3675. + PIXEL00_1M
  3676. }
  3677. - else
  3678. + else
  3679. {
  3680. - PIXEL00_70
  3681. + PIXEL00_2
  3682. }
  3683. - if (Diff(w16[2], w16[6]))
  3684. + PIXEL01_C
  3685. + if (Diff(w16[2], w16[6]))
  3686. {
  3687. - PIXEL01_10
  3688. + PIXEL02_1M
  3689. }
  3690. - else
  3691. + else
  3692. {
  3693. - PIXEL01_70
  3694. + PIXEL02_2
  3695. }
  3696. - PIXEL10_11
  3697. - PIXEL11_12
  3698. - break;
  3699. + PIXEL10_C
  3700. + PIXEL11
  3701. + PIXEL12_C
  3702. + PIXEL20_1D
  3703. + PIXEL21_1
  3704. + PIXEL22_1D
  3705. + break;
  3706. }
  3707. case 115:
  3708. {
  3709. - PIXEL00_11
  3710. - if (Diff(w16[2], w16[6]))
  3711. - {
  3712. - PIXEL01_10
  3713. - }
  3714. - else
  3715. - {
  3716. - PIXEL01_70
  3717. - }
  3718. - PIXEL10_12
  3719. - if (Diff(w16[6], w16[8]))
  3720. - {
  3721. - PIXEL11_10
  3722. - }
  3723. - else
  3724. - {
  3725. - PIXEL11_70
  3726. - }
  3727. - break;
  3728. + PIXEL00_1L
  3729. + PIXEL01_C
  3730. + if (Diff(w16[2], w16[6]))
  3731. + {
  3732. + PIXEL02_1M
  3733. + }
  3734. + else
  3735. + {
  3736. + PIXEL02_2
  3737. + }
  3738. + PIXEL10_1
  3739. + PIXEL11
  3740. + PIXEL12_C
  3741. + PIXEL20_1L
  3742. + PIXEL21_C
  3743. + if (Diff(w16[6], w16[8]))
  3744. + {
  3745. + PIXEL22_1M
  3746. + }
  3747. + else
  3748. + {
  3749. + PIXEL22_2
  3750. + }
  3751. + break;
  3752. }
  3753. case 93:
  3754. {
  3755. - PIXEL00_12
  3756. - PIXEL01_11
  3757. - if (Diff(w16[8], w16[4]))
  3758. - {
  3759. - PIXEL10_10
  3760. - }
  3761. - else
  3762. - {
  3763. - PIXEL10_70
  3764. - }
  3765. - if (Diff(w16[6], w16[8]))
  3766. - {
  3767. - PIXEL11_10
  3768. - }
  3769. - else
  3770. - {
  3771. - PIXEL11_70
  3772. - }
  3773. - break;
  3774. + PIXEL00_1U
  3775. + PIXEL01_1
  3776. + PIXEL02_1U
  3777. + PIXEL10_C
  3778. + PIXEL11
  3779. + PIXEL12_C
  3780. + if (Diff(w16[8], w16[4]))
  3781. + {
  3782. + PIXEL20_1M
  3783. + }
  3784. + else
  3785. + {
  3786. + PIXEL20_2
  3787. + }
  3788. + PIXEL21_C
  3789. + if (Diff(w16[6], w16[8]))
  3790. + {
  3791. + PIXEL22_1M
  3792. + }
  3793. + else
  3794. + {
  3795. + PIXEL22_2
  3796. + }
  3797. + break;
  3798. }
  3799. case 206:
  3800. {
  3801. - if (Diff(w16[4], w16[2]))
  3802. + if (Diff(w16[4], w16[2]))
  3803. {
  3804. - PIXEL00_10
  3805. + PIXEL00_1M
  3806. }
  3807. - else
  3808. + else
  3809. {
  3810. - PIXEL00_70
  3811. + PIXEL00_2
  3812. }
  3813. - PIXEL01_12
  3814. - if (Diff(w16[8], w16[4]))
  3815. - {
  3816. - PIXEL10_10
  3817. - }
  3818. - else
  3819. - {
  3820. - PIXEL10_70
  3821. - }
  3822. - PIXEL11_11
  3823. - break;
  3824. + PIXEL01_C
  3825. + PIXEL02_1R
  3826. + PIXEL10_C
  3827. + PIXEL11
  3828. + PIXEL12_1
  3829. + if (Diff(w16[8], w16[4]))
  3830. + {
  3831. + PIXEL20_1M
  3832. + }
  3833. + else
  3834. + {
  3835. + PIXEL20_2
  3836. + }
  3837. + PIXEL21_C
  3838. + PIXEL22_1R
  3839. + break;
  3840. }
  3841. case 205:
  3842. case 201:
  3843. {
  3844. - PIXEL00_12
  3845. - PIXEL01_20
  3846. - if (Diff(w16[8], w16[4]))
  3847. - {
  3848. - PIXEL10_10
  3849. - }
  3850. - else
  3851. - {
  3852. - PIXEL10_70
  3853. - }
  3854. - PIXEL11_11
  3855. - break;
  3856. + PIXEL00_1U
  3857. + PIXEL01_1
  3858. + PIXEL02_2
  3859. + PIXEL10_C
  3860. + PIXEL11
  3861. + PIXEL12_1
  3862. + if (Diff(w16[8], w16[4]))
  3863. + {
  3864. + PIXEL20_1M
  3865. + }
  3866. + else
  3867. + {
  3868. + PIXEL20_2
  3869. + }
  3870. + PIXEL21_C
  3871. + PIXEL22_1R
  3872. + break;
  3873. }
  3874. case 174:
  3875. case 46:
  3876. {
  3877. - if (Diff(w16[4], w16[2]))
  3878. + if (Diff(w16[4], w16[2]))
  3879. {
  3880. - PIXEL00_10
  3881. + PIXEL00_1M
  3882. }
  3883. - else
  3884. + else
  3885. {
  3886. - PIXEL00_70
  3887. + PIXEL00_2
  3888. }
  3889. - PIXEL01_12
  3890. - PIXEL10_11
  3891. - PIXEL11_20
  3892. - break;
  3893. + PIXEL01_C
  3894. + PIXEL02_1R
  3895. + PIXEL10_C
  3896. + PIXEL11
  3897. + PIXEL12_1
  3898. + PIXEL20_1D
  3899. + PIXEL21_1
  3900. + PIXEL22_2
  3901. + break;
  3902. }
  3903. case 179:
  3904. case 147:
  3905. {
  3906. - PIXEL00_11
  3907. - if (Diff(w16[2], w16[6]))
  3908. - {
  3909. - PIXEL01_10
  3910. - }
  3911. - else
  3912. - {
  3913. - PIXEL01_70
  3914. - }
  3915. - PIXEL10_20
  3916. - PIXEL11_12
  3917. - break;
  3918. + PIXEL00_1L
  3919. + PIXEL01_C
  3920. + if (Diff(w16[2], w16[6]))
  3921. + {
  3922. + PIXEL02_1M
  3923. + }
  3924. + else
  3925. + {
  3926. + PIXEL02_2
  3927. + }
  3928. + PIXEL10_1
  3929. + PIXEL11
  3930. + PIXEL12_C
  3931. + PIXEL20_2
  3932. + PIXEL21_1
  3933. + PIXEL22_1D
  3934. + break;
  3935. }
  3936. case 117:
  3937. case 116:
  3938. {
  3939. - PIXEL00_20
  3940. - PIXEL01_11
  3941. - PIXEL10_12
  3942. - if (Diff(w16[6], w16[8]))
  3943. - {
  3944. - PIXEL11_10
  3945. - }
  3946. - else
  3947. - {
  3948. - PIXEL11_70
  3949. - }
  3950. - break;
  3951. + PIXEL00_2
  3952. + PIXEL01_1
  3953. + PIXEL02_1U
  3954. + PIXEL10_1
  3955. + PIXEL11
  3956. + PIXEL12_C
  3957. + PIXEL20_1L
  3958. + PIXEL21_C
  3959. + if (Diff(w16[6], w16[8]))
  3960. + {
  3961. + PIXEL22_1M
  3962. + }
  3963. + else
  3964. + {
  3965. + PIXEL22_2
  3966. + }
  3967. + break;
  3968. }
  3969. case 189:
  3970. {
  3971. - PIXEL00_12
  3972. - PIXEL01_11
  3973. - PIXEL10_11
  3974. - PIXEL11_12
  3975. - break;
  3976. + PIXEL00_1U
  3977. + PIXEL01_1
  3978. + PIXEL02_1U
  3979. + PIXEL10_C
  3980. + PIXEL11
  3981. + PIXEL12_C
  3982. + PIXEL20_1D
  3983. + PIXEL21_1
  3984. + PIXEL22_1D
  3985. + break;
  3986. }
  3987. case 231:
  3988. {
  3989. - PIXEL00_11
  3990. - PIXEL01_12
  3991. - PIXEL10_12
  3992. - PIXEL11_11
  3993. - break;
  3994. + PIXEL00_1L
  3995. + PIXEL01_C
  3996. + PIXEL02_1R
  3997. + PIXEL10_1
  3998. + PIXEL11
  3999. + PIXEL12_1
  4000. + PIXEL20_1L
  4001. + PIXEL21_C
  4002. + PIXEL22_1R
  4003. + break;
  4004. }
  4005. case 126:
  4006. {
  4007. - PIXEL00_10
  4008. - if (Diff(w16[2], w16[6]))
  4009. - {
  4010. - PIXEL01_0
  4011. - }
  4012. - else
  4013. - {
  4014. - PIXEL01_20
  4015. - }
  4016. - if (Diff(w16[8], w16[4]))
  4017. - {
  4018. - PIXEL10_0
  4019. - }
  4020. - else
  4021. - {
  4022. - PIXEL10_20
  4023. - }
  4024. - PIXEL11_10
  4025. - break;
  4026. + PIXEL00_1M
  4027. + if (Diff(w16[2], w16[6]))
  4028. + {
  4029. + PIXEL01_C
  4030. + PIXEL02_C
  4031. + PIXEL12_C
  4032. + }
  4033. + else
  4034. + {
  4035. + PIXEL01_3
  4036. + PIXEL02_4
  4037. + PIXEL12_3
  4038. + }
  4039. + PIXEL11
  4040. + if (Diff(w16[8], w16[4]))
  4041. + {
  4042. + PIXEL10_C
  4043. + PIXEL20_C
  4044. + PIXEL21_C
  4045. + }
  4046. + else
  4047. + {
  4048. + PIXEL10_3
  4049. + PIXEL20_4
  4050. + PIXEL21_3
  4051. + }
  4052. + PIXEL22_1M
  4053. + break;
  4054. }
  4055. case 219:
  4056. {
  4057. - if (Diff(w16[4], w16[2]))
  4058. + if (Diff(w16[4], w16[2]))
  4059. {
  4060. - PIXEL00_0
  4061. + PIXEL00_C
  4062. + PIXEL01_C
  4063. + PIXEL10_C
  4064. }
  4065. - else
  4066. + else
  4067. {
  4068. - PIXEL00_20
  4069. + PIXEL00_4
  4070. + PIXEL01_3
  4071. + PIXEL10_3
  4072. }
  4073. - PIXEL01_10
  4074. - PIXEL10_10
  4075. - if (Diff(w16[6], w16[8]))
  4076. - {
  4077. - PIXEL11_0
  4078. - }
  4079. - else
  4080. - {
  4081. - PIXEL11_20
  4082. - }
  4083. - break;
  4084. + PIXEL02_1M
  4085. + PIXEL11
  4086. + PIXEL20_1M
  4087. + if (Diff(w16[6], w16[8]))
  4088. + {
  4089. + PIXEL12_C
  4090. + PIXEL21_C
  4091. + PIXEL22_C
  4092. + }
  4093. + else
  4094. + {
  4095. + PIXEL12_3
  4096. + PIXEL21_3
  4097. + PIXEL22_4
  4098. + }
  4099. + break;
  4100. }
  4101. case 125:
  4102. {
  4103. - if (Diff(w16[8], w16[4]))
  4104. + if (Diff(w16[8], w16[4]))
  4105. {
  4106. - PIXEL00_12
  4107. - PIXEL10_0
  4108. + PIXEL00_1U
  4109. + PIXEL10_C
  4110. + PIXEL20_C
  4111. + PIXEL21_C
  4112. }
  4113. - else
  4114. + else
  4115. {
  4116. - PIXEL00_61
  4117. - PIXEL10_90
  4118. + PIXEL00_2
  4119. + PIXEL10_6
  4120. + PIXEL20_5
  4121. + PIXEL21_1
  4122. }
  4123. - PIXEL01_11
  4124. - PIXEL11_10
  4125. - break;
  4126. + PIXEL01_1
  4127. + PIXEL02_1U
  4128. + PIXEL11
  4129. + PIXEL12_C
  4130. + PIXEL22_1M
  4131. + break;
  4132. }
  4133. case 221:
  4134. {
  4135. - PIXEL00_12
  4136. - if (Diff(w16[6], w16[8]))
  4137. - {
  4138. - PIXEL01_11
  4139. - PIXEL11_0
  4140. - }
  4141. - else
  4142. - {
  4143. - PIXEL01_60
  4144. - PIXEL11_90
  4145. - }
  4146. - PIXEL10_10
  4147. - break;
  4148. + if (Diff(w16[6], w16[8]))
  4149. + {
  4150. + PIXEL02_1U
  4151. + PIXEL12_C
  4152. + PIXEL21_C
  4153. + PIXEL22_C
  4154. + }
  4155. + else
  4156. + {
  4157. + PIXEL02_2
  4158. + PIXEL12_6
  4159. + PIXEL21_1
  4160. + PIXEL22_5
  4161. + }
  4162. + PIXEL00_1U
  4163. + PIXEL01_1
  4164. + PIXEL10_C
  4165. + PIXEL11
  4166. + PIXEL20_1M
  4167. + break;
  4168. }
  4169. case 207:
  4170. {
  4171. - if (Diff(w16[4], w16[2]))
  4172. + if (Diff(w16[4], w16[2]))
  4173. {
  4174. - PIXEL00_0
  4175. - PIXEL01_12
  4176. + PIXEL00_C
  4177. + PIXEL01_C
  4178. + PIXEL02_1R
  4179. + PIXEL10_C
  4180. }
  4181. - else
  4182. + else
  4183. {
  4184. - PIXEL00_90
  4185. - PIXEL01_61
  4186. + PIXEL00_5
  4187. + PIXEL01_6
  4188. + PIXEL02_2
  4189. + PIXEL10_1
  4190. }
  4191. - PIXEL10_10
  4192. - PIXEL11_11
  4193. - break;
  4194. + PIXEL11
  4195. + PIXEL12_1
  4196. + PIXEL20_1M
  4197. + PIXEL21_C
  4198. + PIXEL22_1R
  4199. + break;
  4200. }
  4201. case 238:
  4202. {
  4203. - PIXEL00_10
  4204. - PIXEL01_12
  4205. - if (Diff(w16[8], w16[4]))
  4206. - {
  4207. - PIXEL10_0
  4208. - PIXEL11_11
  4209. - }
  4210. - else
  4211. - {
  4212. - PIXEL10_90
  4213. - PIXEL11_60
  4214. - }
  4215. - break;
  4216. + if (Diff(w16[8], w16[4]))
  4217. + {
  4218. + PIXEL10_C
  4219. + PIXEL20_C
  4220. + PIXEL21_C
  4221. + PIXEL22_1R
  4222. + }
  4223. + else
  4224. + {
  4225. + PIXEL10_1
  4226. + PIXEL20_5
  4227. + PIXEL21_6
  4228. + PIXEL22_2
  4229. + }
  4230. + PIXEL00_1M
  4231. + PIXEL01_C
  4232. + PIXEL02_1R
  4233. + PIXEL11
  4234. + PIXEL12_1
  4235. + break;
  4236. }
  4237. case 190:
  4238. {
  4239. - PIXEL00_10
  4240. - if (Diff(w16[2], w16[6]))
  4241. - {
  4242. - PIXEL01_0
  4243. - PIXEL11_12
  4244. - }
  4245. - else
  4246. - {
  4247. - PIXEL01_90
  4248. - PIXEL11_61
  4249. - }
  4250. - PIXEL10_11
  4251. - break;
  4252. + if (Diff(w16[2], w16[6]))
  4253. + {
  4254. + PIXEL01_C
  4255. + PIXEL02_C
  4256. + PIXEL12_C
  4257. + PIXEL22_1D
  4258. + }
  4259. + else
  4260. + {
  4261. + PIXEL01_1
  4262. + PIXEL02_5
  4263. + PIXEL12_6
  4264. + PIXEL22_2
  4265. + }
  4266. + PIXEL00_1M
  4267. + PIXEL10_C
  4268. + PIXEL11
  4269. + PIXEL20_1D
  4270. + PIXEL21_1
  4271. + break;
  4272. }
  4273. case 187:
  4274. {
  4275. - if (Diff(w16[4], w16[2]))
  4276. + if (Diff(w16[4], w16[2]))
  4277. {
  4278. - PIXEL00_0
  4279. - PIXEL10_11
  4280. + PIXEL00_C
  4281. + PIXEL01_C
  4282. + PIXEL10_C
  4283. + PIXEL20_1D
  4284. }
  4285. - else
  4286. + else
  4287. {
  4288. - PIXEL00_90
  4289. - PIXEL10_60
  4290. + PIXEL00_5
  4291. + PIXEL01_1
  4292. + PIXEL10_6
  4293. + PIXEL20_2
  4294. }
  4295. - PIXEL01_10
  4296. - PIXEL11_12
  4297. - break;
  4298. + PIXEL02_1M
  4299. + PIXEL11
  4300. + PIXEL12_C
  4301. + PIXEL21_1
  4302. + PIXEL22_1D
  4303. + break;
  4304. }
  4305. case 243:
  4306. {
  4307. - PIXEL00_11
  4308. - PIXEL01_10
  4309. - if (Diff(w16[6], w16[8]))
  4310. - {
  4311. - PIXEL10_12
  4312. - PIXEL11_0
  4313. - }
  4314. - else
  4315. - {
  4316. - PIXEL10_61
  4317. - PIXEL11_90
  4318. - }
  4319. - break;
  4320. + if (Diff(w16[6], w16[8]))
  4321. + {
  4322. + PIXEL12_C
  4323. + PIXEL20_1L
  4324. + PIXEL21_C
  4325. + PIXEL22_C
  4326. + }
  4327. + else
  4328. + {
  4329. + PIXEL12_1
  4330. + PIXEL20_2
  4331. + PIXEL21_6
  4332. + PIXEL22_5
  4333. + }
  4334. + PIXEL00_1L
  4335. + PIXEL01_C
  4336. + PIXEL02_1M
  4337. + PIXEL10_1
  4338. + PIXEL11
  4339. + break;
  4340. }
  4341. case 119:
  4342. {
  4343. - if (Diff(w16[2], w16[6]))
  4344. + if (Diff(w16[2], w16[6]))
  4345. {
  4346. - PIXEL00_11
  4347. - PIXEL01_0
  4348. + PIXEL00_1L
  4349. + PIXEL01_C
  4350. + PIXEL02_C
  4351. + PIXEL12_C
  4352. }
  4353. - else
  4354. + else
  4355. {
  4356. - PIXEL00_60
  4357. - PIXEL01_90
  4358. + PIXEL00_2
  4359. + PIXEL01_6
  4360. + PIXEL02_5
  4361. + PIXEL12_1
  4362. }
  4363. - PIXEL10_12
  4364. - PIXEL11_10
  4365. - break;
  4366. + PIXEL10_1
  4367. + PIXEL11
  4368. + PIXEL20_1L
  4369. + PIXEL21_C
  4370. + PIXEL22_1M
  4371. + break;
  4372. }
  4373. case 237:
  4374. case 233:
  4375. {
  4376. - PIXEL00_12
  4377. - PIXEL01_20
  4378. - if (Diff(w16[8], w16[4]))
  4379. - {
  4380. - PIXEL10_0
  4381. - }
  4382. - else
  4383. - {
  4384. - PIXEL10_100
  4385. - }
  4386. - PIXEL11_11
  4387. - break;
  4388. + PIXEL00_1U
  4389. + PIXEL01_1
  4390. + PIXEL02_2
  4391. + PIXEL10_C
  4392. + PIXEL11
  4393. + PIXEL12_1
  4394. + if (Diff(w16[8], w16[4]))
  4395. + {
  4396. + PIXEL20_C
  4397. + }
  4398. + else
  4399. + {
  4400. + PIXEL20_2
  4401. + }
  4402. + PIXEL21_C
  4403. + PIXEL22_1R
  4404. + break;
  4405. }
  4406. case 175:
  4407. case 47:
  4408. {
  4409. - if (Diff(w16[4], w16[2]))
  4410. + if (Diff(w16[4], w16[2]))
  4411. {
  4412. - PIXEL00_0
  4413. + PIXEL00_C
  4414. }
  4415. - else
  4416. + else
  4417. {
  4418. - PIXEL00_100
  4419. + PIXEL00_2
  4420. }
  4421. - PIXEL01_12
  4422. - PIXEL10_11
  4423. - PIXEL11_20
  4424. - break;
  4425. + PIXEL01_C
  4426. + PIXEL02_1R
  4427. + PIXEL10_C
  4428. + PIXEL11
  4429. + PIXEL12_1
  4430. + PIXEL20_1D
  4431. + PIXEL21_1
  4432. + PIXEL22_2
  4433. + break;
  4434. }
  4435. case 183:
  4436. case 151:
  4437. {
  4438. - PIXEL00_11
  4439. - if (Diff(w16[2], w16[6]))
  4440. - {
  4441. - PIXEL01_0
  4442. - }
  4443. - else
  4444. - {
  4445. - PIXEL01_100
  4446. - }
  4447. - PIXEL10_20
  4448. - PIXEL11_12
  4449. - break;
  4450. + PIXEL00_1L
  4451. + PIXEL01_C
  4452. + if (Diff(w16[2], w16[6]))
  4453. + {
  4454. + PIXEL02_C
  4455. + }
  4456. + else
  4457. + {
  4458. + PIXEL02_2
  4459. + }
  4460. + PIXEL10_1
  4461. + PIXEL11
  4462. + PIXEL12_C
  4463. + PIXEL20_2
  4464. + PIXEL21_1
  4465. + PIXEL22_1D
  4466. + break;
  4467. }
  4468. case 245:
  4469. case 244:
  4470. {
  4471. - PIXEL00_20
  4472. - PIXEL01_11
  4473. - PIXEL10_12
  4474. - if (Diff(w16[6], w16[8]))
  4475. - {
  4476. - PIXEL11_0
  4477. - }
  4478. - else
  4479. - {
  4480. - PIXEL11_100
  4481. - }
  4482. - break;
  4483. + PIXEL00_2
  4484. + PIXEL01_1
  4485. + PIXEL02_1U
  4486. + PIXEL10_1
  4487. + PIXEL11
  4488. + PIXEL12_C
  4489. + PIXEL20_1L
  4490. + PIXEL21_C
  4491. + if (Diff(w16[6], w16[8]))
  4492. + {
  4493. + PIXEL22_C
  4494. + }
  4495. + else
  4496. + {
  4497. + PIXEL22_2
  4498. + }
  4499. + break;
  4500. }
  4501. case 250:
  4502. {
  4503. - PIXEL00_10
  4504. - PIXEL01_10
  4505. - if (Diff(w16[8], w16[4]))
  4506. - {
  4507. - PIXEL10_0
  4508. - }
  4509. - else
  4510. - {
  4511. - PIXEL10_20
  4512. - }
  4513. - if (Diff(w16[6], w16[8]))
  4514. - {
  4515. - PIXEL11_0
  4516. - }
  4517. - else
  4518. - {
  4519. - PIXEL11_20
  4520. - }
  4521. - break;
  4522. + PIXEL00_1M
  4523. + PIXEL01_C
  4524. + PIXEL02_1M
  4525. + PIXEL11
  4526. + if (Diff(w16[8], w16[4]))
  4527. + {
  4528. + PIXEL10_C
  4529. + PIXEL20_C
  4530. + }
  4531. + else
  4532. + {
  4533. + PIXEL10_3
  4534. + PIXEL20_4
  4535. + }
  4536. + PIXEL21_C
  4537. + if (Diff(w16[6], w16[8]))
  4538. + {
  4539. + PIXEL12_C
  4540. + PIXEL22_C
  4541. + }
  4542. + else
  4543. + {
  4544. + PIXEL12_3
  4545. + PIXEL22_4
  4546. + }
  4547. + break;
  4548. }
  4549. case 123:
  4550. {
  4551. - if (Diff(w16[4], w16[2]))
  4552. + if (Diff(w16[4], w16[2]))
  4553. {
  4554. - PIXEL00_0
  4555. + PIXEL00_C
  4556. + PIXEL01_C
  4557. }
  4558. - else
  4559. + else
  4560. {
  4561. - PIXEL00_20
  4562. + PIXEL00_4
  4563. + PIXEL01_3
  4564. }
  4565. - PIXEL01_10
  4566. - if (Diff(w16[8], w16[4]))
  4567. - {
  4568. - PIXEL10_0
  4569. - }
  4570. - else
  4571. - {
  4572. - PIXEL10_20
  4573. - }
  4574. - PIXEL11_10
  4575. - break;
  4576. + PIXEL02_1M
  4577. + PIXEL10_C
  4578. + PIXEL11
  4579. + PIXEL12_C
  4580. + if (Diff(w16[8], w16[4]))
  4581. + {
  4582. + PIXEL20_C
  4583. + PIXEL21_C
  4584. + }
  4585. + else
  4586. + {
  4587. + PIXEL20_4
  4588. + PIXEL21_3
  4589. + }
  4590. + PIXEL22_1M
  4591. + break;
  4592. }
  4593. case 95:
  4594. {
  4595. - if (Diff(w16[4], w16[2]))
  4596. + if (Diff(w16[4], w16[2]))
  4597. {
  4598. - PIXEL00_0
  4599. + PIXEL00_C
  4600. + PIXEL10_C
  4601. }
  4602. - else
  4603. + else
  4604. {
  4605. - PIXEL00_20
  4606. + PIXEL00_4
  4607. + PIXEL10_3
  4608. }
  4609. - if (Diff(w16[2], w16[6]))
  4610. + PIXEL01_C
  4611. + if (Diff(w16[2], w16[6]))
  4612. {
  4613. - PIXEL01_0
  4614. + PIXEL02_C
  4615. + PIXEL12_C
  4616. }
  4617. - else
  4618. + else
  4619. {
  4620. - PIXEL01_20
  4621. + PIXEL02_4
  4622. + PIXEL12_3
  4623. }
  4624. - PIXEL10_10
  4625. - PIXEL11_10
  4626. - break;
  4627. + PIXEL11
  4628. + PIXEL20_1M
  4629. + PIXEL21_C
  4630. + PIXEL22_1M
  4631. + break;
  4632. }
  4633. case 222:
  4634. {
  4635. - PIXEL00_10
  4636. - if (Diff(w16[2], w16[6]))
  4637. - {
  4638. - PIXEL01_0
  4639. - }
  4640. - else
  4641. - {
  4642. - PIXEL01_20
  4643. - }
  4644. - PIXEL10_10
  4645. - if (Diff(w16[6], w16[8]))
  4646. - {
  4647. - PIXEL11_0
  4648. - }
  4649. - else
  4650. - {
  4651. - PIXEL11_20
  4652. - }
  4653. - break;
  4654. + PIXEL00_1M
  4655. + if (Diff(w16[2], w16[6]))
  4656. + {
  4657. + PIXEL01_C
  4658. + PIXEL02_C
  4659. + }
  4660. + else
  4661. + {
  4662. + PIXEL01_3
  4663. + PIXEL02_4
  4664. + }
  4665. + PIXEL10_C
  4666. + PIXEL11
  4667. + PIXEL12_C
  4668. + PIXEL20_1M
  4669. + if (Diff(w16[6], w16[8]))
  4670. + {
  4671. + PIXEL21_C
  4672. + PIXEL22_C
  4673. + }
  4674. + else
  4675. + {
  4676. + PIXEL21_3
  4677. + PIXEL22_4
  4678. + }
  4679. + break;
  4680. }
  4681. case 252:
  4682. {
  4683. - PIXEL00_21
  4684. - PIXEL01_11
  4685. - if (Diff(w16[8], w16[4]))
  4686. - {
  4687. - PIXEL10_0
  4688. - }
  4689. - else
  4690. - {
  4691. - PIXEL10_20
  4692. - }
  4693. - if (Diff(w16[6], w16[8]))
  4694. - {
  4695. - PIXEL11_0
  4696. - }
  4697. - else
  4698. - {
  4699. - PIXEL11_100
  4700. - }
  4701. - break;
  4702. + PIXEL00_1M
  4703. + PIXEL01_1
  4704. + PIXEL02_1U
  4705. + PIXEL11
  4706. + PIXEL12_C
  4707. + if (Diff(w16[8], w16[4]))
  4708. + {
  4709. + PIXEL10_C
  4710. + PIXEL20_C
  4711. + }
  4712. + else
  4713. + {
  4714. + PIXEL10_3
  4715. + PIXEL20_4
  4716. + }
  4717. + PIXEL21_C
  4718. + if (Diff(w16[6], w16[8]))
  4719. + {
  4720. + PIXEL22_C
  4721. + }
  4722. + else
  4723. + {
  4724. + PIXEL22_2
  4725. + }
  4726. + break;
  4727. }
  4728. case 249:
  4729. {
  4730. - PIXEL00_12
  4731. - PIXEL01_22
  4732. - if (Diff(w16[8], w16[4]))
  4733. - {
  4734. - PIXEL10_0
  4735. - }
  4736. - else
  4737. - {
  4738. - PIXEL10_100
  4739. - }
  4740. - if (Diff(w16[6], w16[8]))
  4741. - {
  4742. - PIXEL11_0
  4743. - }
  4744. - else
  4745. - {
  4746. - PIXEL11_20
  4747. - }
  4748. - break;
  4749. + PIXEL00_1U
  4750. + PIXEL01_1
  4751. + PIXEL02_1M
  4752. + PIXEL10_C
  4753. + PIXEL11
  4754. + if (Diff(w16[8], w16[4]))
  4755. + {
  4756. + PIXEL20_C
  4757. + }
  4758. + else
  4759. + {
  4760. + PIXEL20_2
  4761. + }
  4762. + PIXEL21_C
  4763. + if (Diff(w16[6], w16[8]))
  4764. + {
  4765. + PIXEL12_C
  4766. + PIXEL22_C
  4767. + }
  4768. + else
  4769. + {
  4770. + PIXEL12_3
  4771. + PIXEL22_4
  4772. + }
  4773. + break;
  4774. }
  4775. case 235:
  4776. {
  4777. - if (Diff(w16[4], w16[2]))
  4778. + if (Diff(w16[4], w16[2]))
  4779. {
  4780. - PIXEL00_0
  4781. + PIXEL00_C
  4782. + PIXEL01_C
  4783. }
  4784. - else
  4785. + else
  4786. {
  4787. - PIXEL00_20
  4788. + PIXEL00_4
  4789. + PIXEL01_3
  4790. }
  4791. - PIXEL01_21
  4792. - if (Diff(w16[8], w16[4]))
  4793. - {
  4794. - PIXEL10_0
  4795. - }
  4796. - else
  4797. - {
  4798. - PIXEL10_100
  4799. - }
  4800. - PIXEL11_11
  4801. - break;
  4802. + PIXEL02_1M
  4803. + PIXEL10_C
  4804. + PIXEL11
  4805. + PIXEL12_1
  4806. + if (Diff(w16[8], w16[4]))
  4807. + {
  4808. + PIXEL20_C
  4809. + }
  4810. + else
  4811. + {
  4812. + PIXEL20_2
  4813. + }
  4814. + PIXEL21_C
  4815. + PIXEL22_1R
  4816. + break;
  4817. }
  4818. case 111:
  4819. {
  4820. - if (Diff(w16[4], w16[2]))
  4821. + if (Diff(w16[4], w16[2]))
  4822. {
  4823. - PIXEL00_0
  4824. + PIXEL00_C
  4825. }
  4826. - else
  4827. + else
  4828. {
  4829. - PIXEL00_100
  4830. + PIXEL00_2
  4831. }
  4832. - PIXEL01_12
  4833. - if (Diff(w16[8], w16[4]))
  4834. - {
  4835. - PIXEL10_0
  4836. - }
  4837. - else
  4838. - {
  4839. - PIXEL10_20
  4840. - }
  4841. - PIXEL11_22
  4842. - break;
  4843. + PIXEL01_C
  4844. + PIXEL02_1R
  4845. + PIXEL10_C
  4846. + PIXEL11
  4847. + PIXEL12_1
  4848. + if (Diff(w16[8], w16[4]))
  4849. + {
  4850. + PIXEL20_C
  4851. + PIXEL21_C
  4852. + }
  4853. + else
  4854. + {
  4855. + PIXEL20_4
  4856. + PIXEL21_3
  4857. + }
  4858. + PIXEL22_1M
  4859. + break;
  4860. }
  4861. case 63:
  4862. {
  4863. - if (Diff(w16[4], w16[2]))
  4864. + if (Diff(w16[4], w16[2]))
  4865. {
  4866. - PIXEL00_0
  4867. + PIXEL00_C
  4868. }
  4869. - else
  4870. + else
  4871. {
  4872. - PIXEL00_100
  4873. + PIXEL00_2
  4874. }
  4875. - if (Diff(w16[2], w16[6]))
  4876. + PIXEL01_C
  4877. + if (Diff(w16[2], w16[6]))
  4878. {
  4879. - PIXEL01_0
  4880. + PIXEL02_C
  4881. + PIXEL12_C
  4882. }
  4883. - else
  4884. + else
  4885. {
  4886. - PIXEL01_20
  4887. + PIXEL02_4
  4888. + PIXEL12_3
  4889. }
  4890. - PIXEL10_11
  4891. - PIXEL11_21
  4892. - break;
  4893. + PIXEL10_C
  4894. + PIXEL11
  4895. + PIXEL20_1D
  4896. + PIXEL21_1
  4897. + PIXEL22_1M
  4898. + break;
  4899. }
  4900. case 159:
  4901. {
  4902. - if (Diff(w16[4], w16[2]))
  4903. + if (Diff(w16[4], w16[2]))
  4904. {
  4905. - PIXEL00_0
  4906. + PIXEL00_C
  4907. + PIXEL10_C
  4908. }
  4909. - else
  4910. + else
  4911. {
  4912. - PIXEL00_20
  4913. + PIXEL00_4
  4914. + PIXEL10_3
  4915. }
  4916. - if (Diff(w16[2], w16[6]))
  4917. + PIXEL01_C
  4918. + if (Diff(w16[2], w16[6]))
  4919. {
  4920. - PIXEL01_0
  4921. + PIXEL02_C
  4922. }
  4923. - else
  4924. + else
  4925. {
  4926. - PIXEL01_100
  4927. + PIXEL02_2
  4928. }
  4929. - PIXEL10_22
  4930. - PIXEL11_12
  4931. - break;
  4932. + PIXEL11
  4933. + PIXEL12_C
  4934. + PIXEL20_1M
  4935. + PIXEL21_1
  4936. + PIXEL22_1D
  4937. + break;
  4938. }
  4939. case 215:
  4940. {
  4941. - PIXEL00_11
  4942. - if (Diff(w16[2], w16[6]))
  4943. - {
  4944. - PIXEL01_0
  4945. - }
  4946. - else
  4947. - {
  4948. - PIXEL01_100
  4949. - }
  4950. - PIXEL10_21
  4951. - if (Diff(w16[6], w16[8]))
  4952. - {
  4953. - PIXEL11_0
  4954. - }
  4955. - else
  4956. - {
  4957. - PIXEL11_20
  4958. - }
  4959. - break;
  4960. + PIXEL00_1L
  4961. + PIXEL01_C
  4962. + if (Diff(w16[2], w16[6]))
  4963. + {
  4964. + PIXEL02_C
  4965. + }
  4966. + else
  4967. + {
  4968. + PIXEL02_2
  4969. + }
  4970. + PIXEL10_1
  4971. + PIXEL11
  4972. + PIXEL12_C
  4973. + PIXEL20_1M
  4974. + if (Diff(w16[6], w16[8]))
  4975. + {
  4976. + PIXEL21_C
  4977. + PIXEL22_C
  4978. + }
  4979. + else
  4980. + {
  4981. + PIXEL21_3
  4982. + PIXEL22_4
  4983. + }
  4984. + break;
  4985. }
  4986. case 246:
  4987. {
  4988. - PIXEL00_22
  4989. - if (Diff(w16[2], w16[6]))
  4990. - {
  4991. - PIXEL01_0
  4992. - }
  4993. - else
  4994. - {
  4995. - PIXEL01_20
  4996. - }
  4997. - PIXEL10_12
  4998. - if (Diff(w16[6], w16[8]))
  4999. - {
  5000. - PIXEL11_0
  5001. - }
  5002. - else
  5003. - {
  5004. - PIXEL11_100
  5005. - }
  5006. - break;
  5007. + PIXEL00_1M
  5008. + if (Diff(w16[2], w16[6]))
  5009. + {
  5010. + PIXEL01_C
  5011. + PIXEL02_C
  5012. + }
  5013. + else
  5014. + {
  5015. + PIXEL01_3
  5016. + PIXEL02_4
  5017. + }
  5018. + PIXEL10_1
  5019. + PIXEL11
  5020. + PIXEL12_C
  5021. + PIXEL20_1L
  5022. + PIXEL21_C
  5023. + if (Diff(w16[6], w16[8]))
  5024. + {
  5025. + PIXEL22_C
  5026. + }
  5027. + else
  5028. + {
  5029. + PIXEL22_2
  5030. + }
  5031. + break;
  5032. }
  5033. case 254:
  5034. {
  5035. - PIXEL00_10
  5036. - if (Diff(w16[2], w16[6]))
  5037. - {
  5038. - PIXEL01_0
  5039. - }
  5040. - else
  5041. - {
  5042. - PIXEL01_20
  5043. - }
  5044. - if (Diff(w16[8], w16[4]))
  5045. - {
  5046. - PIXEL10_0
  5047. - }
  5048. - else
  5049. - {
  5050. - PIXEL10_20
  5051. - }
  5052. - if (Diff(w16[6], w16[8]))
  5053. - {
  5054. - PIXEL11_0
  5055. - }
  5056. - else
  5057. - {
  5058. - PIXEL11_100
  5059. - }
  5060. - break;
  5061. + PIXEL00_1M
  5062. + if (Diff(w16[2], w16[6]))
  5063. + {
  5064. + PIXEL01_C
  5065. + PIXEL02_C
  5066. + }
  5067. + else
  5068. + {
  5069. + PIXEL01_3
  5070. + PIXEL02_4
  5071. + }
  5072. + PIXEL11
  5073. + if (Diff(w16[8], w16[4]))
  5074. + {
  5075. + PIXEL10_C
  5076. + PIXEL20_C
  5077. + }
  5078. + else
  5079. + {
  5080. + PIXEL10_3
  5081. + PIXEL20_4
  5082. + }
  5083. + if (Diff(w16[6], w16[8]))
  5084. + {
  5085. + PIXEL12_C
  5086. + PIXEL21_C
  5087. + PIXEL22_C
  5088. + }
  5089. + else
  5090. + {
  5091. + PIXEL12_3
  5092. + PIXEL21_3
  5093. + PIXEL22_2
  5094. + }
  5095. + break;
  5096. }
  5097. case 253:
  5098. {
  5099. - PIXEL00_12
  5100. - PIXEL01_11
  5101. - if (Diff(w16[8], w16[4]))
  5102. - {
  5103. - PIXEL10_0
  5104. - }
  5105. - else
  5106. - {
  5107. - PIXEL10_100
  5108. - }
  5109. - if (Diff(w16[6], w16[8]))
  5110. - {
  5111. - PIXEL11_0
  5112. - }
  5113. - else
  5114. - {
  5115. - PIXEL11_100
  5116. - }
  5117. - break;
  5118. + PIXEL00_1U
  5119. + PIXEL01_1
  5120. + PIXEL02_1U
  5121. + PIXEL10_C
  5122. + PIXEL11
  5123. + PIXEL12_C
  5124. + if (Diff(w16[8], w16[4]))
  5125. + {
  5126. + PIXEL20_C
  5127. + }
  5128. + else
  5129. + {
  5130. + PIXEL20_2
  5131. + }
  5132. + PIXEL21_C
  5133. + if (Diff(w16[6], w16[8]))
  5134. + {
  5135. + PIXEL22_C
  5136. + }
  5137. + else
  5138. + {
  5139. + PIXEL22_2
  5140. + }
  5141. + break;
  5142. }
  5143. case 251:
  5144. {
  5145. - if (Diff(w16[4], w16[2]))
  5146. + if (Diff(w16[4], w16[2]))
  5147. {
  5148. - PIXEL00_0
  5149. + PIXEL00_C
  5150. + PIXEL01_C
  5151. }
  5152. - else
  5153. + else
  5154. {
  5155. - PIXEL00_20
  5156. + PIXEL00_4
  5157. + PIXEL01_3
  5158. }
  5159. - PIXEL01_10
  5160. - if (Diff(w16[8], w16[4]))
  5161. - {
  5162. - PIXEL10_0
  5163. - }
  5164. - else
  5165. - {
  5166. - PIXEL10_100
  5167. - }
  5168. - if (Diff(w16[6], w16[8]))
  5169. - {
  5170. - PIXEL11_0
  5171. - }
  5172. - else
  5173. - {
  5174. - PIXEL11_20
  5175. - }
  5176. - break;
  5177. + PIXEL02_1M
  5178. + PIXEL11
  5179. + if (Diff(w16[8], w16[4]))
  5180. + {
  5181. + PIXEL10_C
  5182. + PIXEL20_C
  5183. + PIXEL21_C
  5184. + }
  5185. + else
  5186. + {
  5187. + PIXEL10_3
  5188. + PIXEL20_2
  5189. + PIXEL21_3
  5190. + }
  5191. + if (Diff(w16[6], w16[8]))
  5192. + {
  5193. + PIXEL12_C
  5194. + PIXEL22_C
  5195. + }
  5196. + else
  5197. + {
  5198. + PIXEL12_3
  5199. + PIXEL22_4
  5200. + }
  5201. + break;
  5202. }
  5203. case 239:
  5204. {
  5205. - if (Diff(w16[4], w16[2]))
  5206. + if (Diff(w16[4], w16[2]))
  5207. {
  5208. - PIXEL00_0
  5209. + PIXEL00_C
  5210. }
  5211. - else
  5212. + else
  5213. {
  5214. - PIXEL00_100
  5215. + PIXEL00_2
  5216. }
  5217. - PIXEL01_12
  5218. - if (Diff(w16[8], w16[4]))
  5219. - {
  5220. - PIXEL10_0
  5221. - }
  5222. - else
  5223. - {
  5224. - PIXEL10_100
  5225. - }
  5226. - PIXEL11_11
  5227. - break;
  5228. + PIXEL01_C
  5229. + PIXEL02_1R
  5230. + PIXEL10_C
  5231. + PIXEL11
  5232. + PIXEL12_1
  5233. + if (Diff(w16[8], w16[4]))
  5234. + {
  5235. + PIXEL20_C
  5236. + }
  5237. + else
  5238. + {
  5239. + PIXEL20_2
  5240. + }
  5241. + PIXEL21_C
  5242. + PIXEL22_1R
  5243. + break;
  5244. }
  5245. case 127:
  5246. {
  5247. - if (Diff(w16[4], w16[2]))
  5248. + if (Diff(w16[4], w16[2]))
  5249. {
  5250. - PIXEL00_0
  5251. + PIXEL00_C
  5252. + PIXEL01_C
  5253. + PIXEL10_C
  5254. }
  5255. - else
  5256. + else
  5257. {
  5258. - PIXEL00_100
  5259. + PIXEL00_2
  5260. + PIXEL01_3
  5261. + PIXEL10_3
  5262. }
  5263. - if (Diff(w16[2], w16[6]))
  5264. + if (Diff(w16[2], w16[6]))
  5265. {
  5266. - PIXEL01_0
  5267. + PIXEL02_C
  5268. + PIXEL12_C
  5269. }
  5270. - else
  5271. + else
  5272. {
  5273. - PIXEL01_20
  5274. + PIXEL02_4
  5275. + PIXEL12_3
  5276. }
  5277. - if (Diff(w16[8], w16[4]))
  5278. + PIXEL11
  5279. + if (Diff(w16[8], w16[4]))
  5280. {
  5281. - PIXEL10_0
  5282. + PIXEL20_C
  5283. + PIXEL21_C
  5284. }
  5285. - else
  5286. + else
  5287. {
  5288. - PIXEL10_20
  5289. + PIXEL20_4
  5290. + PIXEL21_3
  5291. }
  5292. - PIXEL11_10
  5293. - break;
  5294. + PIXEL22_1M
  5295. + break;
  5296. }
  5297. case 191:
  5298. {
  5299. - if (Diff(w16[4], w16[2]))
  5300. + if (Diff(w16[4], w16[2]))
  5301. {
  5302. - PIXEL00_0
  5303. + PIXEL00_C
  5304. }
  5305. - else
  5306. + else
  5307. {
  5308. - PIXEL00_100
  5309. + PIXEL00_2
  5310. }
  5311. - if (Diff(w16[2], w16[6]))
  5312. + PIXEL01_C
  5313. + if (Diff(w16[2], w16[6]))
  5314. {
  5315. - PIXEL01_0
  5316. + PIXEL02_C
  5317. }
  5318. - else
  5319. + else
  5320. {
  5321. - PIXEL01_100
  5322. + PIXEL02_2
  5323. }
  5324. - PIXEL10_11
  5325. - PIXEL11_12
  5326. - break;
  5327. + PIXEL10_C
  5328. + PIXEL11
  5329. + PIXEL12_C
  5330. + PIXEL20_1D
  5331. + PIXEL21_1
  5332. + PIXEL22_1D
  5333. + break;
  5334. }
  5335. case 223:
  5336. {
  5337. - if (Diff(w16[4], w16[2]))
  5338. + if (Diff(w16[4], w16[2]))
  5339. {
  5340. - PIXEL00_0
  5341. + PIXEL00_C
  5342. + PIXEL10_C
  5343. }
  5344. - else
  5345. + else
  5346. {
  5347. - PIXEL00_20
  5348. + PIXEL00_4
  5349. + PIXEL10_3
  5350. }
  5351. - if (Diff(w16[2], w16[6]))
  5352. + if (Diff(w16[2], w16[6]))
  5353. {
  5354. - PIXEL01_0
  5355. + PIXEL01_C
  5356. + PIXEL02_C
  5357. + PIXEL12_C
  5358. }
  5359. - else
  5360. + else
  5361. {
  5362. - PIXEL01_100
  5363. + PIXEL01_3
  5364. + PIXEL02_2
  5365. + PIXEL12_3
  5366. }
  5367. - PIXEL10_10
  5368. - if (Diff(w16[6], w16[8]))
  5369. - {
  5370. - PIXEL11_0
  5371. - }
  5372. - else
  5373. - {
  5374. - PIXEL11_20
  5375. - }
  5376. - break;
  5377. + PIXEL11
  5378. + PIXEL20_1M
  5379. + if (Diff(w16[6], w16[8]))
  5380. + {
  5381. + PIXEL21_C
  5382. + PIXEL22_C
  5383. + }
  5384. + else
  5385. + {
  5386. + PIXEL21_3
  5387. + PIXEL22_4
  5388. + }
  5389. + break;
  5390. }
  5391. case 247:
  5392. {
  5393. - PIXEL00_11
  5394. - if (Diff(w16[2], w16[6]))
  5395. - {
  5396. - PIXEL01_0
  5397. - }
  5398. - else
  5399. - {
  5400. - PIXEL01_100
  5401. - }
  5402. - PIXEL10_12
  5403. - if (Diff(w16[6], w16[8]))
  5404. - {
  5405. - PIXEL11_0
  5406. - }
  5407. - else
  5408. - {
  5409. - PIXEL11_100
  5410. - }
  5411. - break;
  5412. + PIXEL00_1L
  5413. + PIXEL01_C
  5414. + if (Diff(w16[2], w16[6]))
  5415. + {
  5416. + PIXEL02_C
  5417. + }
  5418. + else
  5419. + {
  5420. + PIXEL02_2
  5421. + }
  5422. + PIXEL10_1
  5423. + PIXEL11
  5424. + PIXEL12_C
  5425. + PIXEL20_1L
  5426. + PIXEL21_C
  5427. + if (Diff(w16[6], w16[8]))
  5428. + {
  5429. + PIXEL22_C
  5430. + }
  5431. + else
  5432. + {
  5433. + PIXEL22_2
  5434. + }
  5435. + break;
  5436. }
  5437. case 255:
  5438. {
  5439. - if (Diff(w16[4], w16[2]))
  5440. + if (Diff(w16[4], w16[2]))
  5441. {
  5442. - PIXEL00_0
  5443. + PIXEL00_C
  5444. }
  5445. - else
  5446. + else
  5447. {
  5448. - PIXEL00_100
  5449. + PIXEL00_2
  5450. }
  5451. - if (Diff(w16[2], w16[6]))
  5452. + PIXEL01_C
  5453. + if (Diff(w16[2], w16[6]))
  5454. {
  5455. - PIXEL01_0
  5456. + PIXEL02_C
  5457. }
  5458. - else
  5459. + else
  5460. {
  5461. - PIXEL01_100
  5462. + PIXEL02_2
  5463. }
  5464. - if (Diff(w16[8], w16[4]))
  5465. + PIXEL10_C
  5466. + PIXEL11
  5467. + PIXEL12_C
  5468. + if (Diff(w16[8], w16[4]))
  5469. {
  5470. - PIXEL10_0
  5471. + PIXEL20_C
  5472. }
  5473. - else
  5474. + else
  5475. {
  5476. - PIXEL10_100
  5477. + PIXEL20_2
  5478. }
  5479. - if (Diff(w16[6], w16[8]))
  5480. + PIXEL21_C
  5481. + if (Diff(w16[6], w16[8]))
  5482. {
  5483. - PIXEL11_0
  5484. + PIXEL22_C
  5485. }
  5486. - else
  5487. + else
  5488. {
  5489. - PIXEL11_100
  5490. + PIXEL22_2
  5491. }
  5492. - break;
  5493. + break;
  5494. }
  5495. }
  5496. pIn+=sizeof(uintS);
  5497. - pOut+=sizeof(uintX)*2;
  5498. + pOut+=sizeof(uintX)*3;
  5499. }
  5500. pIn+=tex_diff;
  5501. pOut+=pix_diff;
  5502. @@ -3020,8 +4030,8 @@
  5503. Scale32_888A = hq2xScalerInternal<uint32, Manip_32_888A, uint32>::hq2x_32;
  5504. }
  5505.  
  5506. -const uint32 hq2xScaler::ScaleBits() const { return 1<<2; }
  5507. -const bool hq2xScaler::ScaleArbitrary() const { return false; }
  5508. +const uint32 hq2xScaler::ScaleBits() const { return 1<<3; }
  5509. +const bool hq2xScaler::ScaleArbitrary() const { return true; }
  5510.  
  5511. const char *hq2xScaler::ScalerName() const { return "hq2x"; }
  5512. const char *hq2xScaler::ScalerDesc() const { return "hq2x Magnification Filter"; }
  5513.  
  5514.  
  5515.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement