-
Notifications
You must be signed in to change notification settings - Fork 0
/
hq2x16.asm
1931 lines (1854 loc) · 39.1 KB
/
hq2x16.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
;hq2x filter
;16bpp output
;----------------------------------------------------------
;Copyright (C) 2003 MaxSt ( [email protected] )
;
;This program is free software; you can redistribute it and/or
;modify it under the terms of the GNU General Public License
;as published by the Free Software Foundation; either
;version 2 of the License, or (at your option) any later
;version.
;
;This program is distributed in the hope that it will be useful,
;but WITHOUT ANY WARRANTY; without even the implied warranty of
;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;GNU General Public License for more details.
;
;You should have received a copy of the GNU General Public License
;along with this program; if not, write to the Free Software
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
GLOBAL _hq2x_16
EXTERN _LUT16to32
EXTERN _RGBtoYUV
SECTION .bss
linesleft resd 1
xcounter resd 1
cross resd 1
nextline resd 1
prevline resd 1
w1 resd 1
w2 resd 1
w3 resd 1
w4 resd 1
w5 resd 1
w6 resd 1
w7 resd 1
w8 resd 1
w9 resd 1
SECTION .data
reg_blank dd 0,0
const3 dd 0x00030003,0x00000003
const5 dd 0x00050005,0x00000005
const6 dd 0x00060006,0x00000006
const14 dd 0x000E000E,0x0000000E
threshold dd 0x00300706,0x00000000
zerolowbits dd 0xF7DEF7DE
SECTION .text
%macro TestDiff 2
xor ecx,ecx
mov edx,[%1]
cmp edx,[%2]
je %%fin
mov ecx,_RGBtoYUV
movd mm1,[ecx+edx*4]
movq mm5,mm1
mov edx,[%2]
movd mm2,[ecx+edx*4]
psubusb mm1,mm2
psubusb mm2,mm5
por mm1,mm2
psubusb mm1,[threshold]
movd ecx,mm1
%%fin:
%endmacro
%macro DiffOrNot 4
TestDiff %1,%2
test ecx,ecx
jz %%same
%3
jmp %%fin
%%same:
%4
%%fin
%endmacro
%macro DiffOrNot 6
TestDiff %1,%2
test ecx,ecx
jz %%same
%3
%4
jmp %%fin
%%same:
%5
%6
%%fin
%endmacro
%macro DiffOrNot 8
TestDiff %1,%2
test ecx,ecx
jz %%same
%3
%4
%5
jmp %%fin
%%same:
%6
%7
%8
%%fin
%endmacro
%macro DiffOrNot 10
TestDiff %1,%2
test ecx,ecx
jz %%same
%3
%4
%5
%6
jmp %%fin
%%same:
%7
%8
%9
%10
%%fin
%endmacro
%macro Interp1 3
mov edx,%2
mov ecx,%3
cmp edx,ecx
je %%fin
and edx,[zerolowbits]
and ecx,[zerolowbits]
add ecx,edx
shr ecx,1
add ecx,0x0821
and ecx,[zerolowbits]
add edx,ecx
shr edx,1
%%fin
mov %1,dx
%endmacro
%macro Interp2 4
mov edx,%3
mov ecx,%4
cmp edx,ecx
je %%fin1
and edx,[zerolowbits]
and ecx,[zerolowbits]
add ecx,edx
shr ecx,1
add ecx,0x0821
%%fin1
mov edx,%2
cmp edx,ecx
je %%fin2
and ecx,[zerolowbits]
and edx,[zerolowbits]
add edx,ecx
shr edx,1
%%fin2
mov %1,dx
%endmacro
%macro Interp5 3
mov edx,%2
mov ecx,%3
cmp edx,ecx
je %%fin
and edx,[zerolowbits]
and ecx,[zerolowbits]
add edx,ecx
shr edx,1
%%fin
mov %1,dx
%endmacro
%macro Interp6 3
mov ecx, _LUT16to32
movd mm1, [ecx+eax*4]
mov edx, %2
movd mm2, [ecx+edx*4]
mov edx, %3
movd mm3, [ecx+edx*4]
punpcklbw mm1, [reg_blank]
punpcklbw mm2, [reg_blank]
punpcklbw mm3, [reg_blank]
pmullw mm1, [const5]
psllw mm2, 1
paddw mm1, mm3
paddw mm1, mm2
psrlw mm1, 5
packuswb mm1, [reg_blank]
movd edx, mm1
shl dl, 2
shr edx, 1
shl dx, 3
shr edx, 5
mov %1, dx
%endmacro
%macro Interp7 3
mov ecx, _LUT16to32
movd mm1, [ecx+eax*4]
mov edx, %2
movd mm2, [ecx+edx*4]
mov edx, %3
movd mm3, [ecx+edx*4]
punpcklbw mm1, [reg_blank]
punpcklbw mm2, [reg_blank]
punpcklbw mm3, [reg_blank]
pmullw mm1, [const6]
paddw mm2, mm3
paddw mm1, mm2
psrlw mm1, 5
packuswb mm1, [reg_blank]
movd edx, mm1
shl dl, 2
shr edx, 1
shl dx, 3
shr edx, 5
mov %1, dx
%endmacro
%macro Interp9 3
mov ecx, _LUT16to32
movd mm1, [ecx+eax*4]
mov edx, %2
movd mm2, [ecx+edx*4]
mov edx, %3
movd mm3, [ecx+edx*4]
punpcklbw mm1, [reg_blank]
punpcklbw mm2, [reg_blank]
punpcklbw mm3, [reg_blank]
psllw mm1, 1
paddw mm2, mm3
pmullw mm2, [const3]
paddw mm1, mm2
psrlw mm1, 5
packuswb mm1, [reg_blank]
movd edx, mm1
shl dl, 2
shr edx, 1
shl dx, 3
shr edx, 5
mov %1, dx
%endmacro
%macro Interp10 3
mov ecx, _LUT16to32
movd mm1, [ecx+eax*4]
mov edx, %2
movd mm2, [ecx+edx*4]
mov edx, %3
movd mm3, [ecx+edx*4]
punpcklbw mm1, [reg_blank]
punpcklbw mm2, [reg_blank]
punpcklbw mm3, [reg_blank]
pmullw mm1, [const14]
paddw mm2, mm3
paddw mm1, mm2
psrlw mm1, 6
packuswb mm1, [reg_blank]
movd edx, mm1
shl dl, 2
shr edx, 1
shl dx, 3
shr edx, 5
mov %1, dx
%endmacro
%macro PIXEL00_0 0
mov [edi],ax
%endmacro
%macro PIXEL00_10 0
Interp1 [edi],eax,[w1]
%endmacro
%macro PIXEL00_11 0
Interp1 [edi],eax,[w4]
%endmacro
%macro PIXEL00_12 0
Interp1 [edi],eax,[w2]
%endmacro
%macro PIXEL00_20 0
Interp2 [edi],eax,[w4],[w2]
%endmacro
%macro PIXEL00_21 0
Interp2 [edi],eax,[w1],[w2]
%endmacro
%macro PIXEL00_22 0
Interp2 [edi],eax,[w1],[w4]
%endmacro
%macro PIXEL00_60 0
Interp6 [edi],[w2],[w4]
%endmacro
%macro PIXEL00_61 0
Interp6 [edi],[w4],[w2]
%endmacro
%macro PIXEL00_70 0
Interp7 [edi],[w4],[w2]
%endmacro
%macro PIXEL00_90 0
Interp9 [edi],[w4],[w2]
%endmacro
%macro PIXEL00_100 0
Interp10 [edi],[w4],[w2]
%endmacro
%macro PIXEL01_0 0
mov [edi+2],ax
%endmacro
%macro PIXEL01_10 0
Interp1 [edi+2],eax,[w3]
%endmacro
%macro PIXEL01_11 0
Interp1 [edi+2],eax,[w2]
%endmacro
%macro PIXEL01_12 0
Interp1 [edi+2],eax,[w6]
%endmacro
%macro PIXEL01_20 0
Interp2 [edi+2],eax,[w2],[w6]
%endmacro
%macro PIXEL01_21 0
Interp2 [edi+2],eax,[w3],[w6]
%endmacro
%macro PIXEL01_22 0
Interp2 [edi+2],eax,[w3],[w2]
%endmacro
%macro PIXEL01_60 0
Interp6 [edi+2],[w6],[w2]
%endmacro
%macro PIXEL01_61 0
Interp6 [edi+2],[w2],[w6]
%endmacro
%macro PIXEL01_70 0
Interp7 [edi+2],[w2],[w6]
%endmacro
%macro PIXEL01_90 0
Interp9 [edi+2],[w2],[w6]
%endmacro
%macro PIXEL01_100 0
Interp10 [edi+2],[w2],[w6]
%endmacro
%macro PIXEL10_0 0
mov [edi+ebx],ax
%endmacro
%macro PIXEL10_10 0
Interp1 [edi+ebx],eax,[w7]
%endmacro
%macro PIXEL10_11 0
Interp1 [edi+ebx],eax,[w8]
%endmacro
%macro PIXEL10_12 0
Interp1 [edi+ebx],eax,[w4]
%endmacro
%macro PIXEL10_20 0
Interp2 [edi+ebx],eax,[w8],[w4]
%endmacro
%macro PIXEL10_21 0
Interp2 [edi+ebx],eax,[w7],[w4]
%endmacro
%macro PIXEL10_22 0
Interp2 [edi+ebx],eax,[w7],[w8]
%endmacro
%macro PIXEL10_60 0
Interp6 [edi+ebx],[w4],[w8]
%endmacro
%macro PIXEL10_61 0
Interp6 [edi+ebx],[w8],[w4]
%endmacro
%macro PIXEL10_70 0
Interp7 [edi+ebx],[w8],[w4]
%endmacro
%macro PIXEL10_90 0
Interp9 [edi+ebx],[w8],[w4]
%endmacro
%macro PIXEL10_100 0
Interp10 [edi+ebx],[w8],[w4]
%endmacro
%macro PIXEL11_0 0
mov [edi+ebx+2],ax
%endmacro
%macro PIXEL11_10 0
Interp1 [edi+ebx+2],eax,[w9]
%endmacro
%macro PIXEL11_11 0
Interp1 [edi+ebx+2],eax,[w6]
%endmacro
%macro PIXEL11_12 0
Interp1 [edi+ebx+2],eax,[w8]
%endmacro
%macro PIXEL11_20 0
Interp2 [edi+ebx+2],eax,[w6],[w8]
%endmacro
%macro PIXEL11_21 0
Interp2 [edi+ebx+2],eax,[w9],[w8]
%endmacro
%macro PIXEL11_22 0
Interp2 [edi+ebx+2],eax,[w9],[w6]
%endmacro
%macro PIXEL11_60 0
Interp6 [edi+ebx+2],[w8],[w6]
%endmacro
%macro PIXEL11_61 0
Interp6 [edi+ebx+2],[w6],[w8]
%endmacro
%macro PIXEL11_70 0
Interp7 [edi+ebx+2],[w6],[w8]
%endmacro
%macro PIXEL11_90 0
Interp9 [edi+ebx+2],[w6],[w8]
%endmacro
%macro PIXEL11_100 0
Interp10 [edi+ebx+2],[w6],[w8]
%endmacro
inbuffer equ 8
outbuffer equ 12
Xres equ 16
Yres equ 20
pitch equ 24
_hq2x_16:
push ebp
mov ebp,esp
pushad
mov esi,[ebp+inbuffer]
mov edi,[ebp+outbuffer]
mov edx,[ebp+Yres]
mov [linesleft],edx
mov ebx,[ebp+Xres]
shl ebx,1
mov dword[prevline],0
mov dword[nextline],ebx
.loopy
mov ecx,[ebp+Xres]
sub ecx,2 ; x={Xres-2, Xres-1} are special cases.
mov dword[xcounter],ecx
; x=0 - special case
mov ebx,[prevline]
movq mm5,[esi+ebx]
movq mm6,[esi]
mov ebx,[nextline]
movq mm7,[esi+ebx]
movd eax,mm5
movzx edx,ax
mov [w1],edx
mov [w2],edx
shr eax,16
mov [w3],eax
movd eax,mm6
movzx edx,ax
mov [w4],edx
mov [w5],edx
shr eax,16
mov [w6],eax
movd eax,mm7
movzx edx,ax
mov [w7],edx
mov [w8],edx
shr eax,16
mov [w9],eax
jmp .flags
.loopx
mov ebx,[prevline]
movq mm5,[esi+ebx-2]
movq mm6,[esi-2]
mov ebx,[nextline]
movq mm7,[esi+ebx-2]
movd eax,mm5
movzx edx,ax
mov [w1],edx
shr eax,16
mov [w2],eax
psrlq mm5,32
movd eax,mm5
movzx edx,ax
mov [w3],edx
movd eax,mm6
movzx edx,ax
mov [w4],edx
shr eax,16
mov [w5],eax
psrlq mm6,32
movd eax,mm6
movzx edx,ax
mov [w6],edx
movd eax,mm7
movzx edx,ax
mov [w7],edx
shr eax,16
mov [w8],eax
psrlq mm7,32
movd eax,mm7
movzx edx,ax
mov [w9],edx
.flags
mov ebx,_RGBtoYUV
mov eax,[w5]
xor ecx,ecx
movd mm5,[ebx+eax*4]
mov dword[cross],0
mov edx,[w2]
cmp eax,edx
je .noflag2
or dword[cross],1
movq mm1,mm5
movd mm2,[ebx+edx*4]
psubusb mm1,mm2
psubusb mm2,mm5
por mm1,mm2
psubusb mm1,[threshold]
movd edx,mm1
test edx,edx
jz .noflag2
or ecx,2
.noflag2
mov edx,[w4]
cmp eax,edx
je .noflag4
or dword[cross],2
movq mm1,mm5
movd mm2,[ebx+edx*4]
psubusb mm1,mm2
psubusb mm2,mm5
por mm1,mm2
psubusb mm1,[threshold]
movd edx,mm1
test edx,edx
jz .noflag4
or ecx,8
.noflag4
mov edx,[w6]
cmp eax,edx
je .noflag6
or dword[cross],4
movq mm1,mm5
movd mm2,[ebx+edx*4]
psubusb mm1,mm2
psubusb mm2,mm5
por mm1,mm2
psubusb mm1,[threshold]
movd edx,mm1
test edx,edx
jz .noflag6
or ecx,16
.noflag6
mov edx,[w8]
cmp eax,edx
je .noflag8
or dword[cross],8
movq mm1,mm5
movd mm2,[ebx+edx*4]
psubusb mm1,mm2
psubusb mm2,mm5
por mm1,mm2
psubusb mm1,[threshold]
movd edx,mm1
test edx,edx
jz .noflag8
or ecx,64
.noflag8
test ecx,ecx
jnz .testflag1
mov ecx,[cross]
mov ebx,[ebp+pitch]
jmp [FuncTable2+ecx*4]
.testflag1
mov edx,[w1]
cmp eax,edx
je .noflag1
movq mm1,mm5
movd mm2,[ebx+edx*4]
psubusb mm1,mm2
psubusb mm2,mm5
por mm1,mm2
psubusb mm1,[threshold]
movd edx,mm1
test edx,edx
jz .noflag1
or ecx,1
.noflag1
mov edx,[w3]
cmp eax,edx
je .noflag3
movq mm1,mm5
movd mm2,[ebx+edx*4]
psubusb mm1,mm2
psubusb mm2,mm5
por mm1,mm2
psubusb mm1,[threshold]
movd edx,mm1
test edx,edx
jz .noflag3
or ecx,4
.noflag3
mov edx,[w7]
cmp eax,edx
je .noflag7
movq mm1,mm5
movd mm2,[ebx+edx*4]
psubusb mm1,mm2
psubusb mm2,mm5
por mm1,mm2
psubusb mm1,[threshold]
movd edx,mm1
test edx,edx
jz .noflag7
or ecx,32
.noflag7
mov edx,[w9]
cmp eax,edx
je .noflag9
movq mm1,mm5
movd mm2,[ebx+edx*4]
psubusb mm1,mm2
psubusb mm2,mm5
por mm1,mm2
psubusb mm1,[threshold]
movd edx,mm1
test edx,edx
jz .noflag9
or ecx,128
.noflag9
mov ebx,[ebp+pitch]
jmp [FuncTable+ecx*4]
..@flag0
..@flag1
..@flag4
..@flag32
..@flag128
..@flag5
..@flag132
..@flag160
..@flag33
..@flag129
..@flag36
..@flag133
..@flag164
..@flag161
..@flag37
..@flag165
PIXEL00_20
PIXEL01_20
PIXEL10_20
PIXEL11_20
jmp .loopx_end
..@flag2
..@flag34
..@flag130
..@flag162
PIXEL00_22
PIXEL01_21
PIXEL10_20
PIXEL11_20
jmp .loopx_end
..@flag16
..@flag17
..@flag48
..@flag49
PIXEL00_20
PIXEL01_22
PIXEL10_20
PIXEL11_21
jmp .loopx_end
..@flag64
..@flag65
..@flag68
..@flag69
PIXEL00_20
PIXEL01_20
PIXEL10_21
PIXEL11_22
jmp .loopx_end
..@flag8
..@flag12
..@flag136
..@flag140
PIXEL00_21
PIXEL01_20
PIXEL10_22
PIXEL11_20
jmp .loopx_end
..@flag3
..@flag35
..@flag131
..@flag163
PIXEL00_11
PIXEL01_21
PIXEL10_20
PIXEL11_20
jmp .loopx_end
..@flag6
..@flag38
..@flag134
..@flag166
PIXEL00_22
PIXEL01_12
PIXEL10_20
PIXEL11_20
jmp .loopx_end
..@flag20
..@flag21
..@flag52
..@flag53
PIXEL00_20
PIXEL01_11
PIXEL10_20
PIXEL11_21
jmp .loopx_end
..@flag144
..@flag145
..@flag176
..@flag177
PIXEL00_20
PIXEL01_22
PIXEL10_20
PIXEL11_12
jmp .loopx_end
..@flag192
..@flag193
..@flag196
..@flag197
PIXEL00_20
PIXEL01_20
PIXEL10_21
PIXEL11_11
jmp .loopx_end
..@flag96
..@flag97
..@flag100
..@flag101
PIXEL00_20
PIXEL01_20
PIXEL10_12
PIXEL11_22
jmp .loopx_end
..@flag40
..@flag44
..@flag168
..@flag172
PIXEL00_21
PIXEL01_20
PIXEL10_11
PIXEL11_20
jmp .loopx_end
..@flag9
..@flag13
..@flag137
..@flag141
PIXEL00_12
PIXEL01_20
PIXEL10_22
PIXEL11_20
jmp .loopx_end
..@flag18
..@flag50
PIXEL00_22
DiffOrNot w2,w6,PIXEL01_10,PIXEL01_20
PIXEL10_20
PIXEL11_21
jmp .loopx_end
..@flag80
..@flag81
PIXEL00_20
PIXEL01_22
PIXEL10_21
DiffOrNot w6,w8,PIXEL11_10,PIXEL11_20
jmp .loopx_end
..@flag72
..@flag76
PIXEL00_21
PIXEL01_20
DiffOrNot w8,w4,PIXEL10_10,PIXEL10_20
PIXEL11_22
jmp .loopx_end
..@flag10
..@flag138
DiffOrNot w4,w2,PIXEL00_10,PIXEL00_20
PIXEL01_21
PIXEL10_22
PIXEL11_20
jmp .loopx_end
..@flag66
PIXEL00_22
PIXEL01_21
PIXEL10_21
PIXEL11_22
jmp .loopx_end
..@flag24
PIXEL00_21
PIXEL01_22
PIXEL10_22
PIXEL11_21
jmp .loopx_end
..@flag7
..@flag39
..@flag135
PIXEL00_11
PIXEL01_12
PIXEL10_20
PIXEL11_20
jmp .loopx_end
..@flag148
..@flag149
..@flag180
PIXEL00_20
PIXEL01_11
PIXEL10_20
PIXEL11_12
jmp .loopx_end
..@flag224
..@flag228
..@flag225
PIXEL00_20
PIXEL01_20
PIXEL10_12
PIXEL11_11
jmp .loopx_end
..@flag41
..@flag169
..@flag45
PIXEL00_12
PIXEL01_20
PIXEL10_11
PIXEL11_20
jmp .loopx_end
..@flag22
..@flag54
PIXEL00_22
DiffOrNot w2,w6,PIXEL01_0,PIXEL01_20
PIXEL10_20
PIXEL11_21
jmp .loopx_end
..@flag208
..@flag209
PIXEL00_20
PIXEL01_22
PIXEL10_21
DiffOrNot w6,w8,PIXEL11_0,PIXEL11_20
jmp .loopx_end
..@flag104
..@flag108
PIXEL00_21
PIXEL01_20
DiffOrNot w8,w4,PIXEL10_0,PIXEL10_20
PIXEL11_22
jmp .loopx_end
..@flag11
..@flag139
DiffOrNot w4,w2,PIXEL00_0,PIXEL00_20
PIXEL01_21
PIXEL10_22
PIXEL11_20
jmp .loopx_end
..@flag19
..@flag51
DiffOrNot w2,w6,PIXEL00_11,PIXEL01_10,PIXEL00_60,PIXEL01_90
PIXEL10_20
PIXEL11_21
jmp .loopx_end
..@flag146
..@flag178
PIXEL00_22
DiffOrNot w2,w6,PIXEL01_10,PIXEL11_12,PIXEL01_90,PIXEL11_61
PIXEL10_20
jmp .loopx_end
..@flag84
..@flag85
PIXEL00_20
DiffOrNot w6,w8,PIXEL01_11,PIXEL11_10,PIXEL01_60,PIXEL11_90
PIXEL10_21
jmp .loopx_end
..@flag112
..@flag113
PIXEL00_20
PIXEL01_22
DiffOrNot w6,w8,PIXEL10_12,PIXEL11_10,PIXEL10_61,PIXEL11_90
jmp .loopx_end
..@flag200
..@flag204
PIXEL00_21
PIXEL01_20
DiffOrNot w8,w4,PIXEL10_10,PIXEL11_11,PIXEL10_90,PIXEL11_60
jmp .loopx_end
..@flag73
..@flag77
DiffOrNot w8,w4,PIXEL00_12,PIXEL10_10,PIXEL00_61,PIXEL10_90
PIXEL01_20
PIXEL11_22
jmp .loopx_end
..@flag42
..@flag170
DiffOrNot w4,w2,PIXEL00_10,PIXEL10_11,PIXEL00_90,PIXEL10_60
PIXEL01_21
PIXEL11_20
jmp .loopx_end
..@flag14
..@flag142
DiffOrNot w4,w2,PIXEL00_10,PIXEL01_12,PIXEL00_90,PIXEL01_61
PIXEL10_22
PIXEL11_20
jmp .loopx_end
..@flag67
PIXEL00_11
PIXEL01_21
PIXEL10_21
PIXEL11_22
jmp .loopx_end
..@flag70
PIXEL00_22
PIXEL01_12
PIXEL10_21
PIXEL11_22
jmp .loopx_end
..@flag28
PIXEL00_21
PIXEL01_11
PIXEL10_22
PIXEL11_21
jmp .loopx_end
..@flag152
PIXEL00_21
PIXEL01_22
PIXEL10_22
PIXEL11_12
jmp .loopx_end
..@flag194
PIXEL00_22
PIXEL01_21
PIXEL10_21
PIXEL11_11
jmp .loopx_end
..@flag98
PIXEL00_22
PIXEL01_21
PIXEL10_12
PIXEL11_22
jmp .loopx_end
..@flag56
PIXEL00_21
PIXEL01_22
PIXEL10_11
PIXEL11_21
jmp .loopx_end
..@flag25
PIXEL00_12
PIXEL01_22