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