blob: 131e5fa7b4448a828993d3f22abd3e7e855ffad8 [file] [log] [blame]
Olivier Naudanb28313f2012-04-16 08:10:18 -04001
Sebastian Dröge63e92012012-08-09 11:32:59 +02002.function fieldanalysis_orc_same_parity_sad_planar_yuv
Olivier Naudanb28313f2012-04-16 08:10:18 -04003.accumulator 4 a1 guint32
4.source 1 s1
5.source 1 s2
6# noise threshold
7.param 4 nt
8.temp 2 t1
9.temp 2 t2
10.temp 4 t3
11.temp 4 t4
12
13convubw t1, s1
14convubw t2, s2
15subw t1, t1, t2
16absw t1, t1
17convuwl t3, t1
18cmpgtsl t4, t3, nt
19andl t3, t3, t4
20accl a1, t3
21
22
Sebastian Dröge63e92012012-08-09 11:32:59 +020023.function fieldanalysis_orc_same_parity_ssd_planar_yuv
Olivier Naudanb28313f2012-04-16 08:10:18 -040024.accumulator 4 a1 guint32
25.source 1 s1
26.source 1 s2
27# noise threshold
28.param 4 nt
29.temp 2 t1
30.temp 2 t2
31.temp 4 t3
32.temp 4 t4
33
34convubw t1, s1
35convubw t2, s2
36subw t1, t1, t2
37mulswl t3, t1, t1
38cmpgtsl t4, t3, nt
39andl t3, t3, t4
40accl a1, t3
41
42
Sebastian Dröge63e92012012-08-09 11:32:59 +020043.function fieldanalysis_orc_same_parity_3_tap_planar_yuv
Olivier Naudanb28313f2012-04-16 08:10:18 -040044.accumulator 4 a1 guint32
45.source 1 s1
46.source 1 s2
47.source 1 s3
48.source 1 s4
49.source 1 s5
50.source 1 s6
51# noise threshold
52.param 4 nt
53.temp 2 t1
54.temp 2 t2
55.temp 2 t3
56.temp 2 t4
57.temp 2 t5
58.temp 2 t6
59.temp 4 t7
60.temp 4 t8
61
62convubw t1, s1
63convubw t2, s2
64convubw t3, s3
65convubw t4, s4
66convubw t5, s5
67convubw t6, s6
68shlw t2, t2, 2
69shlw t5, t5, 2
70addw t1, t1, t2
71addw t1, t1, t3
72addw t4, t4, t5
73addw t4, t4, t6
74subw t1, t1, t4
75absw t1, t1
76convuwl t7, t1
77cmpgtsl t8, t7, nt
78andl t7, t7, t8
79accl a1, t7
80
81
Sebastian Dröge63e92012012-08-09 11:32:59 +020082.function fieldanalysis_orc_opposite_parity_5_tap_planar_yuv
Olivier Naudanb28313f2012-04-16 08:10:18 -040083.accumulator 4 a1 guint32
84.source 1 s1
85.source 1 s2
86.source 1 s3
87.source 1 s4
88.source 1 s5
89# noise threshold
90.param 4 nt
91.temp 2 t1
92.temp 2 t2
93.temp 2 t3
94.temp 2 t4
95.temp 2 t5
96.temp 4 t6
97.temp 4 t7
98
99convubw t1, s1
100convubw t2, s2
101convubw t3, s3
102convubw t4, s4
103convubw t5, s5
104shlw t3, t3, 2
105mullw t2, t2, 3
106mullw t4, t4, 3
107subw t1, t1, t2
108addw t1, t1, t3
109subw t1, t1, t4
110addw t1, t1, t5
111absw t1, t1
112convuwl t6, t1
113cmpgtsl t7, t6, nt
114andl t6, t6, t7
115accl a1, t6
116