]> granicus.if.org Git - libvpx/blob - vpx_dsp/vpx_dsp_rtcd_defs.pl
neon variance: add small missing sizes
[libvpx] / vpx_dsp / vpx_dsp_rtcd_defs.pl
1 sub vpx_dsp_forward_decls() {
2 print <<EOF
3 /*
4  * DSP
5  */
6
7 #include "vpx/vpx_integer.h"
8 #include "vpx_dsp/vpx_dsp_common.h"
9
10 EOF
11 }
12 forward_decls qw/vpx_dsp_forward_decls/;
13
14 # functions that are 64 bit only.
15 $mmx_x86_64 = $sse2_x86_64 = $ssse3_x86_64 = $avx_x86_64 = $avx2_x86_64 = '';
16 if ($opts{arch} eq "x86_64") {
17   $mmx_x86_64 = 'mmx';
18   $sse2_x86_64 = 'sse2';
19   $ssse3_x86_64 = 'ssse3';
20   $avx_x86_64 = 'avx';
21   $avx2_x86_64 = 'avx2';
22 }
23
24 #
25 # Intra prediction
26 #
27
28 add_proto qw/void vpx_d207_predictor_4x4/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
29 specialize qw/vpx_d207_predictor_4x4 sse2/;
30
31 add_proto qw/void vpx_d45_predictor_4x4/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
32 specialize qw/vpx_d45_predictor_4x4 neon sse2/;
33
34 add_proto qw/void vpx_d45e_predictor_4x4/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
35
36 add_proto qw/void vpx_d63_predictor_4x4/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
37 specialize qw/vpx_d63_predictor_4x4 ssse3/;
38
39 add_proto qw/void vpx_d63e_predictor_4x4/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
40
41 add_proto qw/void vpx_h_predictor_4x4/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
42 specialize qw/vpx_h_predictor_4x4 neon dspr2 msa sse2 vsx/;
43
44 add_proto qw/void vpx_he_predictor_4x4/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
45
46 add_proto qw/void vpx_d117_predictor_4x4/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
47
48 add_proto qw/void vpx_d135_predictor_4x4/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
49 specialize qw/vpx_d135_predictor_4x4 neon/;
50
51 add_proto qw/void vpx_d153_predictor_4x4/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
52 specialize qw/vpx_d153_predictor_4x4 ssse3/;
53
54 add_proto qw/void vpx_v_predictor_4x4/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
55 specialize qw/vpx_v_predictor_4x4 neon msa sse2/;
56
57 add_proto qw/void vpx_ve_predictor_4x4/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
58
59 add_proto qw/void vpx_tm_predictor_4x4/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
60 specialize qw/vpx_tm_predictor_4x4 neon dspr2 msa sse2 vsx/;
61
62 add_proto qw/void vpx_dc_predictor_4x4/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
63 specialize qw/vpx_dc_predictor_4x4 dspr2 msa neon sse2/;
64
65 add_proto qw/void vpx_dc_top_predictor_4x4/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
66 specialize qw/vpx_dc_top_predictor_4x4 msa neon sse2/;
67
68 add_proto qw/void vpx_dc_left_predictor_4x4/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
69 specialize qw/vpx_dc_left_predictor_4x4 msa neon sse2/;
70
71 add_proto qw/void vpx_dc_128_predictor_4x4/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
72 specialize qw/vpx_dc_128_predictor_4x4 msa neon sse2/;
73
74 add_proto qw/void vpx_d207_predictor_8x8/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
75 specialize qw/vpx_d207_predictor_8x8 ssse3/;
76
77 add_proto qw/void vpx_d45_predictor_8x8/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
78 specialize qw/vpx_d45_predictor_8x8 neon sse2 vsx/;
79
80 add_proto qw/void vpx_d63_predictor_8x8/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
81 specialize qw/vpx_d63_predictor_8x8 ssse3 vsx/;
82
83 add_proto qw/void vpx_h_predictor_8x8/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
84 specialize qw/vpx_h_predictor_8x8 neon dspr2 msa sse2 vsx/;
85
86 add_proto qw/void vpx_d117_predictor_8x8/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
87
88 add_proto qw/void vpx_d135_predictor_8x8/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
89 specialize qw/vpx_d135_predictor_8x8 neon/;
90
91 add_proto qw/void vpx_d153_predictor_8x8/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
92 specialize qw/vpx_d153_predictor_8x8 ssse3/;
93
94 add_proto qw/void vpx_v_predictor_8x8/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
95 specialize qw/vpx_v_predictor_8x8 neon msa sse2/;
96
97 add_proto qw/void vpx_tm_predictor_8x8/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
98 specialize qw/vpx_tm_predictor_8x8 neon dspr2 msa sse2 vsx/;
99
100 add_proto qw/void vpx_dc_predictor_8x8/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
101 specialize qw/vpx_dc_predictor_8x8 dspr2 neon msa sse2 vsx/;
102
103 add_proto qw/void vpx_dc_top_predictor_8x8/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
104 specialize qw/vpx_dc_top_predictor_8x8 neon msa sse2/;
105
106 add_proto qw/void vpx_dc_left_predictor_8x8/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
107 specialize qw/vpx_dc_left_predictor_8x8 neon msa sse2/;
108
109 add_proto qw/void vpx_dc_128_predictor_8x8/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
110 specialize qw/vpx_dc_128_predictor_8x8 neon msa sse2/;
111
112 add_proto qw/void vpx_d207_predictor_16x16/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
113 specialize qw/vpx_d207_predictor_16x16 ssse3/;
114
115 add_proto qw/void vpx_d45_predictor_16x16/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
116 specialize qw/vpx_d45_predictor_16x16 neon ssse3 vsx/;
117
118 add_proto qw/void vpx_d63_predictor_16x16/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
119 specialize qw/vpx_d63_predictor_16x16 ssse3 vsx/;
120
121 add_proto qw/void vpx_h_predictor_16x16/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
122 specialize qw/vpx_h_predictor_16x16 neon dspr2 msa sse2 vsx/;
123
124 add_proto qw/void vpx_d117_predictor_16x16/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
125
126 add_proto qw/void vpx_d135_predictor_16x16/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
127 specialize qw/vpx_d135_predictor_16x16 neon/;
128
129 add_proto qw/void vpx_d153_predictor_16x16/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
130 specialize qw/vpx_d153_predictor_16x16 ssse3/;
131
132 add_proto qw/void vpx_v_predictor_16x16/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
133 specialize qw/vpx_v_predictor_16x16 neon msa sse2 vsx/;
134
135 add_proto qw/void vpx_tm_predictor_16x16/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
136 specialize qw/vpx_tm_predictor_16x16 neon msa sse2 vsx/;
137
138 add_proto qw/void vpx_dc_predictor_16x16/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
139 specialize qw/vpx_dc_predictor_16x16 dspr2 neon msa sse2 vsx/;
140
141 add_proto qw/void vpx_dc_top_predictor_16x16/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
142 specialize qw/vpx_dc_top_predictor_16x16 neon msa sse2 vsx/;
143
144 add_proto qw/void vpx_dc_left_predictor_16x16/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
145 specialize qw/vpx_dc_left_predictor_16x16 neon msa sse2 vsx/;
146
147 add_proto qw/void vpx_dc_128_predictor_16x16/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
148 specialize qw/vpx_dc_128_predictor_16x16 neon msa sse2 vsx/;
149
150 add_proto qw/void vpx_d207_predictor_32x32/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
151 specialize qw/vpx_d207_predictor_32x32 ssse3/;
152
153 add_proto qw/void vpx_d45_predictor_32x32/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
154 specialize qw/vpx_d45_predictor_32x32 neon ssse3 vsx/;
155
156 add_proto qw/void vpx_d63_predictor_32x32/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
157 specialize qw/vpx_d63_predictor_32x32 ssse3 vsx/;
158
159 add_proto qw/void vpx_h_predictor_32x32/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
160 specialize qw/vpx_h_predictor_32x32 neon msa sse2 vsx/;
161
162 add_proto qw/void vpx_d117_predictor_32x32/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
163
164 add_proto qw/void vpx_d135_predictor_32x32/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
165 specialize qw/vpx_d135_predictor_32x32 neon/;
166
167 add_proto qw/void vpx_d153_predictor_32x32/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
168 specialize qw/vpx_d153_predictor_32x32 ssse3/;
169
170 add_proto qw/void vpx_v_predictor_32x32/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
171 specialize qw/vpx_v_predictor_32x32 neon msa sse2 vsx/;
172
173 add_proto qw/void vpx_tm_predictor_32x32/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
174 specialize qw/vpx_tm_predictor_32x32 neon msa sse2 vsx/;
175
176 add_proto qw/void vpx_dc_predictor_32x32/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
177 specialize qw/vpx_dc_predictor_32x32 msa neon sse2 vsx/;
178
179 add_proto qw/void vpx_dc_top_predictor_32x32/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
180 specialize qw/vpx_dc_top_predictor_32x32 msa neon sse2 vsx/;
181
182 add_proto qw/void vpx_dc_left_predictor_32x32/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
183 specialize qw/vpx_dc_left_predictor_32x32 msa neon sse2 vsx/;
184
185 add_proto qw/void vpx_dc_128_predictor_32x32/, "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left";
186 specialize qw/vpx_dc_128_predictor_32x32 msa neon sse2 vsx/;
187
188 # High bitdepth functions
189 if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
190   add_proto qw/void vpx_highbd_d207_predictor_4x4/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
191
192   add_proto qw/void vpx_highbd_d45_predictor_4x4/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
193   specialize qw/vpx_highbd_d45_predictor_4x4 neon/;
194
195   add_proto qw/void vpx_highbd_d63_predictor_4x4/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
196
197   add_proto qw/void vpx_highbd_h_predictor_4x4/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
198   specialize qw/vpx_highbd_h_predictor_4x4 neon/;
199
200   add_proto qw/void vpx_highbd_d117_predictor_4x4/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
201
202   add_proto qw/void vpx_highbd_d135_predictor_4x4/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
203   specialize qw/vpx_highbd_d135_predictor_4x4 neon/;
204
205   add_proto qw/void vpx_highbd_d153_predictor_4x4/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
206
207   add_proto qw/void vpx_highbd_v_predictor_4x4/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
208   specialize qw/vpx_highbd_v_predictor_4x4 neon sse2/;
209
210   add_proto qw/void vpx_highbd_tm_predictor_4x4/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
211   specialize qw/vpx_highbd_tm_predictor_4x4 neon sse2/;
212
213   add_proto qw/void vpx_highbd_dc_predictor_4x4/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
214   specialize qw/vpx_highbd_dc_predictor_4x4 neon sse2/;
215
216   add_proto qw/void vpx_highbd_dc_top_predictor_4x4/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
217   specialize qw/vpx_highbd_dc_top_predictor_4x4 neon/;
218
219   add_proto qw/void vpx_highbd_dc_left_predictor_4x4/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
220   specialize qw/vpx_highbd_dc_left_predictor_4x4 neon/;
221
222   add_proto qw/void vpx_highbd_dc_128_predictor_4x4/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
223   specialize qw/vpx_highbd_dc_128_predictor_4x4 neon/;
224
225   add_proto qw/void vpx_highbd_d207_predictor_8x8/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
226
227   add_proto qw/void vpx_highbd_d45_predictor_8x8/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
228   specialize qw/vpx_highbd_d45_predictor_8x8 neon/;
229
230   add_proto qw/void vpx_highbd_d63_predictor_8x8/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
231
232   add_proto qw/void vpx_highbd_h_predictor_8x8/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
233   specialize qw/vpx_highbd_h_predictor_8x8 neon/;
234
235   add_proto qw/void vpx_highbd_d117_predictor_8x8/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
236
237   add_proto qw/void vpx_highbd_d135_predictor_8x8/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
238   specialize qw/vpx_highbd_d135_predictor_8x8 neon/;
239
240   add_proto qw/void vpx_highbd_d153_predictor_8x8/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
241
242   add_proto qw/void vpx_highbd_v_predictor_8x8/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
243   specialize qw/vpx_highbd_v_predictor_8x8 neon sse2/;
244
245   add_proto qw/void vpx_highbd_tm_predictor_8x8/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
246   specialize qw/vpx_highbd_tm_predictor_8x8 neon sse2/;
247
248   add_proto qw/void vpx_highbd_dc_predictor_8x8/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
249   specialize qw/vpx_highbd_dc_predictor_8x8 neon sse2/;
250
251   add_proto qw/void vpx_highbd_dc_top_predictor_8x8/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
252   specialize qw/vpx_highbd_dc_top_predictor_8x8 neon/;
253
254   add_proto qw/void vpx_highbd_dc_left_predictor_8x8/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
255   specialize qw/vpx_highbd_dc_left_predictor_8x8 neon/;
256
257   add_proto qw/void vpx_highbd_dc_128_predictor_8x8/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
258   specialize qw/vpx_highbd_dc_128_predictor_8x8 neon/;
259
260   add_proto qw/void vpx_highbd_d207_predictor_16x16/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
261
262   add_proto qw/void vpx_highbd_d45_predictor_16x16/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
263   specialize qw/vpx_highbd_d45_predictor_16x16 neon/;
264
265   add_proto qw/void vpx_highbd_d63_predictor_16x16/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
266
267   add_proto qw/void vpx_highbd_h_predictor_16x16/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
268   specialize qw/vpx_highbd_h_predictor_16x16 neon/;
269
270   add_proto qw/void vpx_highbd_d117_predictor_16x16/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
271
272   add_proto qw/void vpx_highbd_d135_predictor_16x16/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
273   specialize qw/vpx_highbd_d135_predictor_16x16 neon/;
274
275   add_proto qw/void vpx_highbd_d153_predictor_16x16/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
276
277   add_proto qw/void vpx_highbd_v_predictor_16x16/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
278   specialize qw/vpx_highbd_v_predictor_16x16 neon sse2/;
279
280   add_proto qw/void vpx_highbd_tm_predictor_16x16/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
281   specialize qw/vpx_highbd_tm_predictor_16x16 neon sse2/;
282
283   add_proto qw/void vpx_highbd_dc_predictor_16x16/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
284   specialize qw/vpx_highbd_dc_predictor_16x16 neon sse2/;
285
286   add_proto qw/void vpx_highbd_dc_top_predictor_16x16/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
287   specialize qw/vpx_highbd_dc_top_predictor_16x16 neon/;
288
289   add_proto qw/void vpx_highbd_dc_left_predictor_16x16/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
290   specialize qw/vpx_highbd_dc_left_predictor_16x16 neon/;
291
292   add_proto qw/void vpx_highbd_dc_128_predictor_16x16/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
293   specialize qw/vpx_highbd_dc_128_predictor_16x16 neon/;
294
295   add_proto qw/void vpx_highbd_d207_predictor_32x32/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
296
297   add_proto qw/void vpx_highbd_d45_predictor_32x32/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
298   specialize qw/vpx_highbd_d45_predictor_32x32 neon/;
299
300   add_proto qw/void vpx_highbd_d63_predictor_32x32/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
301
302   add_proto qw/void vpx_highbd_h_predictor_32x32/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
303   specialize qw/vpx_highbd_h_predictor_32x32 neon/;
304
305   add_proto qw/void vpx_highbd_d117_predictor_32x32/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
306
307   add_proto qw/void vpx_highbd_d135_predictor_32x32/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
308   specialize qw/vpx_highbd_d135_predictor_32x32 neon/;
309
310   add_proto qw/void vpx_highbd_d153_predictor_32x32/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
311
312   add_proto qw/void vpx_highbd_v_predictor_32x32/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
313   specialize qw/vpx_highbd_v_predictor_32x32 neon sse2/;
314
315   add_proto qw/void vpx_highbd_tm_predictor_32x32/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
316   specialize qw/vpx_highbd_tm_predictor_32x32 neon sse2/;
317
318   add_proto qw/void vpx_highbd_dc_predictor_32x32/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
319   specialize qw/vpx_highbd_dc_predictor_32x32 neon sse2/;
320
321   add_proto qw/void vpx_highbd_dc_top_predictor_32x32/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
322   specialize qw/vpx_highbd_dc_top_predictor_32x32 neon/;
323
324   add_proto qw/void vpx_highbd_dc_left_predictor_32x32/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
325   specialize qw/vpx_highbd_dc_left_predictor_32x32 neon/;
326
327   add_proto qw/void vpx_highbd_dc_128_predictor_32x32/, "uint16_t *dst, ptrdiff_t y_stride, const uint16_t *above, const uint16_t *left, int bd";
328   specialize qw/vpx_highbd_dc_128_predictor_32x32 neon/;
329 }  # CONFIG_VP9_HIGHBITDEPTH
330
331 #
332 # Sub Pixel Filters
333 #
334 add_proto qw/void vpx_convolve_copy/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h";
335 specialize qw/vpx_convolve_copy neon dspr2 msa sse2 vsx/;
336
337 add_proto qw/void vpx_convolve_avg/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h";
338 specialize qw/vpx_convolve_avg neon dspr2 msa sse2 vsx/;
339
340 add_proto qw/void vpx_convolve8/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h";
341 specialize qw/vpx_convolve8 sse2 ssse3 avx2 neon dspr2 msa vsx/;
342
343 add_proto qw/void vpx_convolve8_horiz/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h";
344 specialize qw/vpx_convolve8_horiz sse2 ssse3 avx2 neon dspr2 msa vsx/;
345
346 add_proto qw/void vpx_convolve8_vert/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h";
347 specialize qw/vpx_convolve8_vert sse2 ssse3 avx2 neon dspr2 msa vsx/;
348
349 add_proto qw/void vpx_convolve8_avg/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h";
350 specialize qw/vpx_convolve8_avg sse2 ssse3 neon dspr2 msa vsx/;
351
352 add_proto qw/void vpx_convolve8_avg_horiz/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h";
353 specialize qw/vpx_convolve8_avg_horiz sse2 ssse3 neon dspr2 msa vsx/;
354
355 add_proto qw/void vpx_convolve8_avg_vert/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h";
356 specialize qw/vpx_convolve8_avg_vert sse2 ssse3 neon dspr2 msa vsx/;
357
358 add_proto qw/void vpx_scaled_2d/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h";
359 specialize qw/vpx_scaled_2d ssse3/;
360
361 add_proto qw/void vpx_scaled_horiz/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h";
362
363 add_proto qw/void vpx_scaled_vert/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h";
364
365 add_proto qw/void vpx_scaled_avg_2d/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h";
366
367 add_proto qw/void vpx_scaled_avg_horiz/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h";
368
369 add_proto qw/void vpx_scaled_avg_vert/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h";
370
371 if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
372   #
373   # Sub Pixel Filters
374   #
375   add_proto qw/void vpx_highbd_convolve_copy/, "const uint16_t *src, ptrdiff_t src_stride, uint16_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h, int bps";
376   specialize qw/vpx_highbd_convolve_copy sse2 avx2 neon/;
377
378   add_proto qw/void vpx_highbd_convolve_avg/, "const uint16_t *src, ptrdiff_t src_stride, uint16_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h, int bps";
379   specialize qw/vpx_highbd_convolve_avg sse2 avx2 neon/;
380
381   add_proto qw/void vpx_highbd_convolve8/, "const uint16_t *src, ptrdiff_t src_stride, uint16_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h, int bps";
382   specialize qw/vpx_highbd_convolve8 neon/, "$sse2_x86_64";
383
384   add_proto qw/void vpx_highbd_convolve8_horiz/, "const uint16_t *src, ptrdiff_t src_stride, uint16_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h, int bps";
385   specialize qw/vpx_highbd_convolve8_horiz neon/, "$sse2_x86_64";
386
387   add_proto qw/void vpx_highbd_convolve8_vert/, "const uint16_t *src, ptrdiff_t src_stride, uint16_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h, int bps";
388   specialize qw/vpx_highbd_convolve8_vert neon/, "$sse2_x86_64";
389
390   add_proto qw/void vpx_highbd_convolve8_avg/, "const uint16_t *src, ptrdiff_t src_stride, uint16_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h, int bps";
391   specialize qw/vpx_highbd_convolve8_avg neon/, "$sse2_x86_64";
392
393   add_proto qw/void vpx_highbd_convolve8_avg_horiz/, "const uint16_t *src, ptrdiff_t src_stride, uint16_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h, int bps";
394   specialize qw/vpx_highbd_convolve8_avg_horiz neon/, "$sse2_x86_64";
395
396   add_proto qw/void vpx_highbd_convolve8_avg_vert/, "const uint16_t *src, ptrdiff_t src_stride, uint16_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h, int bps";
397   specialize qw/vpx_highbd_convolve8_avg_vert neon/, "$sse2_x86_64";
398 }  # CONFIG_VP9_HIGHBITDEPTH
399
400 #
401 # Loopfilter
402 #
403 add_proto qw/void vpx_lpf_vertical_16/, "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh";
404 specialize qw/vpx_lpf_vertical_16 sse2 neon dspr2 msa/;
405
406 add_proto qw/void vpx_lpf_vertical_16_dual/, "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh";
407 specialize qw/vpx_lpf_vertical_16_dual sse2 neon dspr2 msa/;
408
409 add_proto qw/void vpx_lpf_vertical_8/, "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh";
410 specialize qw/vpx_lpf_vertical_8 sse2 neon dspr2 msa/;
411
412 add_proto qw/void vpx_lpf_vertical_8_dual/, "uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1";
413 specialize qw/vpx_lpf_vertical_8_dual sse2 neon dspr2 msa/;
414
415 add_proto qw/void vpx_lpf_vertical_4/, "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh";
416 specialize qw/vpx_lpf_vertical_4 sse2 neon dspr2 msa/;
417
418 add_proto qw/void vpx_lpf_vertical_4_dual/, "uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1";
419 specialize qw/vpx_lpf_vertical_4_dual sse2 neon dspr2 msa/;
420
421 add_proto qw/void vpx_lpf_horizontal_16/, "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh";
422 specialize qw/vpx_lpf_horizontal_16 sse2 avx2 neon dspr2 msa/;
423
424 add_proto qw/void vpx_lpf_horizontal_16_dual/, "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh";
425 specialize qw/vpx_lpf_horizontal_16_dual sse2 avx2 neon dspr2 msa/;
426
427 add_proto qw/void vpx_lpf_horizontal_8/, "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh";
428 specialize qw/vpx_lpf_horizontal_8 sse2 neon dspr2 msa/;
429
430 add_proto qw/void vpx_lpf_horizontal_8_dual/, "uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1";
431 specialize qw/vpx_lpf_horizontal_8_dual sse2 neon dspr2 msa/;
432
433 add_proto qw/void vpx_lpf_horizontal_4/, "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh";
434 specialize qw/vpx_lpf_horizontal_4 sse2 neon dspr2 msa/;
435
436 add_proto qw/void vpx_lpf_horizontal_4_dual/, "uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1";
437 specialize qw/vpx_lpf_horizontal_4_dual sse2 neon dspr2 msa/;
438
439 if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
440   add_proto qw/void vpx_highbd_lpf_vertical_16/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
441   specialize qw/vpx_highbd_lpf_vertical_16 sse2 neon/;
442
443   add_proto qw/void vpx_highbd_lpf_vertical_16_dual/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
444   specialize qw/vpx_highbd_lpf_vertical_16_dual sse2 neon/;
445
446   add_proto qw/void vpx_highbd_lpf_vertical_8/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
447   specialize qw/vpx_highbd_lpf_vertical_8 sse2 neon/;
448
449   add_proto qw/void vpx_highbd_lpf_vertical_8_dual/, "uint16_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1, int bd";
450   specialize qw/vpx_highbd_lpf_vertical_8_dual sse2 neon/;
451
452   add_proto qw/void vpx_highbd_lpf_vertical_4/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
453   specialize qw/vpx_highbd_lpf_vertical_4 sse2 neon/;
454
455   add_proto qw/void vpx_highbd_lpf_vertical_4_dual/, "uint16_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1, int bd";
456   specialize qw/vpx_highbd_lpf_vertical_4_dual sse2 neon/;
457
458   add_proto qw/void vpx_highbd_lpf_horizontal_16/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
459   specialize qw/vpx_highbd_lpf_horizontal_16 sse2 neon/;
460
461   add_proto qw/void vpx_highbd_lpf_horizontal_16_dual/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
462   specialize qw/vpx_highbd_lpf_horizontal_16_dual sse2 neon/;
463
464   add_proto qw/void vpx_highbd_lpf_horizontal_8/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
465   specialize qw/vpx_highbd_lpf_horizontal_8 sse2 neon/;
466
467   add_proto qw/void vpx_highbd_lpf_horizontal_8_dual/, "uint16_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1, int bd";
468   specialize qw/vpx_highbd_lpf_horizontal_8_dual sse2 neon/;
469
470   add_proto qw/void vpx_highbd_lpf_horizontal_4/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
471   specialize qw/vpx_highbd_lpf_horizontal_4 sse2 neon/;
472
473   add_proto qw/void vpx_highbd_lpf_horizontal_4_dual/, "uint16_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1, int bd";
474   specialize qw/vpx_highbd_lpf_horizontal_4_dual sse2 neon/;
475 }  # CONFIG_VP9_HIGHBITDEPTH
476
477 #
478 # Encoder functions.
479 #
480
481 #
482 # Forward transform
483 #
484 if (vpx_config("CONFIG_VP9_ENCODER") eq "yes") {
485 if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
486   add_proto qw/void vpx_fdct4x4/, "const int16_t *input, tran_low_t *output, int stride";
487   specialize qw/vpx_fdct4x4 sse2/;
488
489   add_proto qw/void vpx_fdct4x4_1/, "const int16_t *input, tran_low_t *output, int stride";
490   specialize qw/vpx_fdct4x4_1 sse2/;
491
492   add_proto qw/void vpx_fdct8x8/, "const int16_t *input, tran_low_t *output, int stride";
493   specialize qw/vpx_fdct8x8 neon sse2/;
494
495   add_proto qw/void vpx_fdct8x8_1/, "const int16_t *input, tran_low_t *output, int stride";
496   specialize qw/vpx_fdct8x8_1 neon sse2/;
497
498   add_proto qw/void vpx_fdct16x16/, "const int16_t *input, tran_low_t *output, int stride";
499   specialize qw/vpx_fdct16x16 sse2/;
500
501   add_proto qw/void vpx_fdct16x16_1/, "const int16_t *input, tran_low_t *output, int stride";
502   specialize qw/vpx_fdct16x16_1 sse2/;
503
504   add_proto qw/void vpx_fdct32x32/, "const int16_t *input, tran_low_t *output, int stride";
505   specialize qw/vpx_fdct32x32 sse2/;
506
507   add_proto qw/void vpx_fdct32x32_rd/, "const int16_t *input, tran_low_t *output, int stride";
508   specialize qw/vpx_fdct32x32_rd sse2/;
509
510   add_proto qw/void vpx_fdct32x32_1/, "const int16_t *input, tran_low_t *output, int stride";
511   specialize qw/vpx_fdct32x32_1 sse2/;
512
513   add_proto qw/void vpx_highbd_fdct4x4/, "const int16_t *input, tran_low_t *output, int stride";
514   specialize qw/vpx_highbd_fdct4x4 sse2/;
515
516   add_proto qw/void vpx_highbd_fdct8x8/, "const int16_t *input, tran_low_t *output, int stride";
517   specialize qw/vpx_highbd_fdct8x8 sse2/;
518
519   add_proto qw/void vpx_highbd_fdct8x8_1/, "const int16_t *input, tran_low_t *output, int stride";
520
521   add_proto qw/void vpx_highbd_fdct16x16/, "const int16_t *input, tran_low_t *output, int stride";
522   specialize qw/vpx_highbd_fdct16x16 sse2/;
523
524   add_proto qw/void vpx_highbd_fdct16x16_1/, "const int16_t *input, tran_low_t *output, int stride";
525
526   add_proto qw/void vpx_highbd_fdct32x32/, "const int16_t *input, tran_low_t *output, int stride";
527   specialize qw/vpx_highbd_fdct32x32 sse2/;
528
529   add_proto qw/void vpx_highbd_fdct32x32_rd/, "const int16_t *input, tran_low_t *output, int stride";
530   specialize qw/vpx_highbd_fdct32x32_rd sse2/;
531
532   add_proto qw/void vpx_highbd_fdct32x32_1/, "const int16_t *input, tran_low_t *output, int stride";
533 } else {
534   add_proto qw/void vpx_fdct4x4/, "const int16_t *input, tran_low_t *output, int stride";
535   specialize qw/vpx_fdct4x4 sse2 msa/;
536
537   add_proto qw/void vpx_fdct4x4_1/, "const int16_t *input, tran_low_t *output, int stride";
538   specialize qw/vpx_fdct4x4_1 sse2/;
539
540   add_proto qw/void vpx_fdct8x8/, "const int16_t *input, tran_low_t *output, int stride";
541   specialize qw/vpx_fdct8x8 sse2 neon msa/, "$ssse3_x86_64";
542
543   add_proto qw/void vpx_fdct8x8_1/, "const int16_t *input, tran_low_t *output, int stride";
544   specialize qw/vpx_fdct8x8_1 sse2 neon msa/;
545
546   add_proto qw/void vpx_fdct16x16/, "const int16_t *input, tran_low_t *output, int stride";
547   specialize qw/vpx_fdct16x16 sse2 msa/;
548
549   add_proto qw/void vpx_fdct16x16_1/, "const int16_t *input, tran_low_t *output, int stride";
550   specialize qw/vpx_fdct16x16_1 sse2 msa/;
551
552   add_proto qw/void vpx_fdct32x32/, "const int16_t *input, tran_low_t *output, int stride";
553   specialize qw/vpx_fdct32x32 sse2 avx2 msa/;
554
555   add_proto qw/void vpx_fdct32x32_rd/, "const int16_t *input, tran_low_t *output, int stride";
556   specialize qw/vpx_fdct32x32_rd sse2 avx2 msa/;
557
558   add_proto qw/void vpx_fdct32x32_1/, "const int16_t *input, tran_low_t *output, int stride";
559   specialize qw/vpx_fdct32x32_1 sse2 msa/;
560 }  # CONFIG_VP9_HIGHBITDEPTH
561 }  # CONFIG_VP9_ENCODER
562
563 #
564 # Inverse transform
565 if (vpx_config("CONFIG_VP9") eq "yes") {
566
567 add_proto qw/void vpx_idct4x4_16_add/, "const tran_low_t *input, uint8_t *dest, int stride";
568
569 add_proto qw/void vpx_idct4x4_1_add/, "const tran_low_t *input, uint8_t *dest, int stride";
570
571 add_proto qw/void vpx_idct8x8_64_add/, "const tran_low_t *input, uint8_t *dest, int stride";
572
573 add_proto qw/void vpx_idct8x8_12_add/, "const tran_low_t *input, uint8_t *dest, int stride";
574
575 add_proto qw/void vpx_idct8x8_1_add/, "const tran_low_t *input, uint8_t *dest, int stride";
576
577 add_proto qw/void vpx_idct16x16_256_add/, "const tran_low_t *input, uint8_t *dest, int stride";
578
579 add_proto qw/void vpx_idct16x16_38_add/, "const tran_low_t *input, uint8_t *dest, int stride";
580
581 add_proto qw/void vpx_idct16x16_10_add/, "const tran_low_t *input, uint8_t *dest, int stride";
582
583 add_proto qw/void vpx_idct16x16_1_add/, "const tran_low_t *input, uint8_t *dest, int stride";
584
585 add_proto qw/void vpx_idct32x32_1024_add/, "const tran_low_t *input, uint8_t *dest, int stride";
586
587 add_proto qw/void vpx_idct32x32_135_add/, "const tran_low_t *input, uint8_t *dest, int stride";
588
589 add_proto qw/void vpx_idct32x32_34_add/, "const tran_low_t *input, uint8_t *dest, int stride";
590
591 add_proto qw/void vpx_idct32x32_1_add/, "const tran_low_t *input, uint8_t *dest, int stride";
592
593 add_proto qw/void vpx_iwht4x4_16_add/, "const tran_low_t *input, uint8_t *dest, int stride";
594
595 add_proto qw/void vpx_iwht4x4_1_add/, "const tran_low_t *input, uint8_t *dest, int stride";
596
597 if (vpx_config("CONFIG_EMULATE_HARDWARE") ne "yes") {
598   specialize qw/vpx_idct4x4_16_add neon sse2/;
599
600   specialize qw/vpx_idct4x4_1_add neon sse2/;
601
602   specialize qw/vpx_idct8x8_64_add neon sse2 ssse3/;
603
604   specialize qw/vpx_idct8x8_12_add neon sse2 ssse3/;
605
606   specialize qw/vpx_idct8x8_1_add neon sse2/;
607
608   specialize qw/vpx_idct16x16_256_add neon sse2/;
609
610   specialize qw/vpx_idct16x16_38_add neon sse2/;
611   $vpx_idct16x16_38_add_sse2=vpx_idct16x16_256_add_sse2;
612
613   specialize qw/vpx_idct16x16_10_add neon sse2/;
614
615   specialize qw/vpx_idct16x16_1_add neon sse2/;
616
617   specialize qw/vpx_idct32x32_1024_add neon sse2 ssse3/;
618
619   specialize qw/vpx_idct32x32_135_add neon sse2 ssse3/;
620   $vpx_idct32x32_135_add_sse2=vpx_idct32x32_1024_add_sse2;
621
622   specialize qw/vpx_idct32x32_34_add neon sse2 ssse3/;
623
624   specialize qw/vpx_idct32x32_1_add neon sse2/;
625 }  # !CONFIG_EMULATE_HARDWARE
626
627 if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
628   # Note as optimized versions of these functions are added we need to add a check to ensure
629   # that when CONFIG_EMULATE_HARDWARE is on, it defaults to the C versions only.
630   specialize qw/vpx_iwht4x4_16_add sse2/;
631
632   add_proto qw/void vpx_highbd_idct4x4_16_add/, "const tran_low_t *input, uint8_t *dest, int stride, int bd";
633
634   add_proto qw/void vpx_highbd_idct4x4_1_add/, "const tran_low_t *input, uint8_t *dest, int stride, int bd";
635   specialize qw/vpx_highbd_idct4x4_1_add neon/;
636
637   add_proto qw/void vpx_highbd_idct8x8_64_add/, "const tran_low_t *input, uint8_t *dest, int stride, int bd";
638
639   add_proto qw/void vpx_highbd_idct8x8_12_add/, "const tran_low_t *input, uint8_t *dest, int stride, int bd";
640
641   add_proto qw/void vpx_highbd_idct8x8_1_add/, "const tran_low_t *input, uint8_t *dest, int stride, int bd";
642   specialize qw/vpx_highbd_idct8x8_1_add neon/;
643
644   add_proto qw/void vpx_highbd_idct16x16_256_add/, "const tran_low_t *input, uint8_t *dest, int stride, int bd";
645
646   add_proto qw/void vpx_highbd_idct16x16_38_add/, "const tran_low_t *input, uint8_t *dest, int stride, int bd";
647
648   add_proto qw/void vpx_highbd_idct16x16_10_add/, "const tran_low_t *input, uint8_t *dest, int stride, int bd";
649
650   add_proto qw/void vpx_highbd_idct16x16_1_add/, "const tran_low_t *input, uint8_t *dest, int stride, int bd";
651   specialize qw/vpx_highbd_idct16x16_1_add neon/;
652
653   add_proto qw/void vpx_highbd_idct32x32_1024_add/, "const tran_low_t *input, uint8_t *dest, int stride, int bd";
654
655   add_proto qw/void vpx_highbd_idct32x32_135_add/, "const tran_low_t *input, uint8_t *dest, int stride, int bd";
656
657   add_proto qw/void vpx_highbd_idct32x32_34_add/, "const tran_low_t *input, uint8_t *dest, int stride, int bd";
658
659   add_proto qw/void vpx_highbd_idct32x32_1_add/, "const tran_low_t *input, uint8_t *dest, int stride, int bd";
660   specialize qw/vpx_highbd_idct32x32_1_add neon sse2/;
661
662   add_proto qw/void vpx_highbd_iwht4x4_16_add/, "const tran_low_t *input, uint8_t *dest, int stride, int bd";
663
664   add_proto qw/void vpx_highbd_iwht4x4_1_add/, "const tran_low_t *input, uint8_t *dest, int stride, int bd";
665
666   if (vpx_config("CONFIG_EMULATE_HARDWARE") ne "yes") {
667     specialize qw/vpx_highbd_idct4x4_16_add neon sse2/;
668
669     specialize qw/vpx_highbd_idct8x8_64_add neon sse2/;
670
671     specialize qw/vpx_highbd_idct8x8_12_add neon sse2/;
672
673     specialize qw/vpx_highbd_idct16x16_256_add neon sse2/;
674
675     specialize qw/vpx_highbd_idct16x16_38_add neon sse2/;
676     $vpx_highbd_idct16x16_38_add_sse2=vpx_highbd_idct16x16_256_add_sse2;
677
678     specialize qw/vpx_highbd_idct16x16_10_add neon sse2/;
679
680     specialize qw/vpx_highbd_idct32x32_1024_add neon/;
681
682     specialize qw/vpx_highbd_idct32x32_135_add neon/;
683
684     specialize qw/vpx_highbd_idct32x32_34_add neon/;
685   }  # !CONFIG_EMULATE_HARDWARE
686 } else {
687   if (vpx_config("CONFIG_EMULATE_HARDWARE") ne "yes") {
688     specialize qw/vpx_idct4x4_16_add dspr2 msa/;
689
690     specialize qw/vpx_idct4x4_1_add dspr2 msa/;
691
692     specialize qw/vpx_idct8x8_64_add dspr2 msa/;
693
694     specialize qw/vpx_idct8x8_12_add dspr2 msa/;
695
696     specialize qw/vpx_idct8x8_1_add dspr2 msa/;
697
698     specialize qw/vpx_idct16x16_256_add dspr2 msa/;
699
700     specialize qw/vpx_idct16x16_38_add dspr2 msa/;
701     $vpx_idct16x16_38_add_dspr2=vpx_idct16x16_256_add_dspr2;
702     $vpx_idct16x16_38_add_msa=vpx_idct16x16_256_add_msa;
703
704     specialize qw/vpx_idct16x16_10_add dspr2 msa/;
705
706     specialize qw/vpx_idct16x16_1_add dspr2 msa/;
707
708     specialize qw/vpx_idct32x32_1024_add dspr2 msa/;
709
710     specialize qw/vpx_idct32x32_135_add dspr2 msa/;
711     $vpx_idct32x32_135_add_dspr2=vpx_idct32x32_1024_add_dspr2;
712     $vpx_idct32x32_135_add_msa=vpx_idct32x32_1024_add_msa;
713
714     specialize qw/vpx_idct32x32_34_add dspr2 msa/;
715
716     specialize qw/vpx_idct32x32_1_add dspr2 msa/;
717
718     specialize qw/vpx_iwht4x4_16_add msa sse2/;
719
720     specialize qw/vpx_iwht4x4_1_add msa/;
721   }  # !CONFIG_EMULATE_HARDWARE
722 }  # CONFIG_VP9_HIGHBITDEPTH
723 }  # CONFIG_VP9
724
725 #
726 # Quantization
727 #
728 if (vpx_config("CONFIG_VP9_ENCODER") eq "yes") {
729   add_proto qw/void vpx_quantize_b/, "const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan";
730   specialize qw/vpx_quantize_b sse2/, "$ssse3_x86_64", "$avx_x86_64";
731
732   add_proto qw/void vpx_quantize_b_32x32/, "const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan";
733   specialize qw/vpx_quantize_b_32x32/, "$ssse3_x86_64", "$avx_x86_64";
734
735   if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
736     add_proto qw/void vpx_highbd_quantize_b/, "const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan";
737     specialize qw/vpx_highbd_quantize_b sse2/;
738
739     add_proto qw/void vpx_highbd_quantize_b_32x32/, "const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan";
740     specialize qw/vpx_highbd_quantize_b_32x32 sse2/;
741   }  # CONFIG_VP9_HIGHBITDEPTH
742 }  # CONFIG_VP9_ENCODER
743
744 if (vpx_config("CONFIG_ENCODERS") eq "yes") {
745 #
746 # Block subtraction
747 #
748 add_proto qw/void vpx_subtract_block/, "int rows, int cols, int16_t *diff_ptr, ptrdiff_t diff_stride, const uint8_t *src_ptr, ptrdiff_t src_stride, const uint8_t *pred_ptr, ptrdiff_t pred_stride";
749 specialize qw/vpx_subtract_block neon msa sse2/;
750
751 #
752 # Single block SAD
753 #
754 add_proto qw/unsigned int vpx_sad64x64/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
755 specialize qw/vpx_sad64x64 avx2 neon msa sse2/;
756
757 add_proto qw/unsigned int vpx_sad64x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
758 specialize qw/vpx_sad64x32 avx2 msa sse2/;
759
760 add_proto qw/unsigned int vpx_sad32x64/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
761 specialize qw/vpx_sad32x64 avx2 msa sse2/;
762
763 add_proto qw/unsigned int vpx_sad32x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
764 specialize qw/vpx_sad32x32 avx2 neon msa sse2/;
765
766 add_proto qw/unsigned int vpx_sad32x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
767 specialize qw/vpx_sad32x16 avx2 msa sse2/;
768
769 add_proto qw/unsigned int vpx_sad16x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
770 specialize qw/vpx_sad16x32 msa sse2/;
771
772 add_proto qw/unsigned int vpx_sad16x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
773 specialize qw/vpx_sad16x16 neon msa sse2/;
774
775 add_proto qw/unsigned int vpx_sad16x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
776 specialize qw/vpx_sad16x8 neon msa sse2/;
777
778 add_proto qw/unsigned int vpx_sad8x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
779 specialize qw/vpx_sad8x16 neon msa sse2/;
780
781 add_proto qw/unsigned int vpx_sad8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
782 specialize qw/vpx_sad8x8 neon msa sse2/;
783
784 add_proto qw/unsigned int vpx_sad8x4/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
785 specialize qw/vpx_sad8x4 msa sse2/;
786
787 add_proto qw/unsigned int vpx_sad4x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
788 specialize qw/vpx_sad4x8 msa sse2/;
789
790 add_proto qw/unsigned int vpx_sad4x4/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
791 specialize qw/vpx_sad4x4 neon msa sse2/;
792
793 #
794 # Avg
795 #
796 if (vpx_config("CONFIG_VP9_ENCODER") eq "yes") {
797   add_proto qw/unsigned int vpx_avg_8x8/, "const uint8_t *, int p";
798   specialize qw/vpx_avg_8x8 sse2 neon msa/;
799
800   add_proto qw/unsigned int vpx_avg_4x4/, "const uint8_t *, int p";
801   specialize qw/vpx_avg_4x4 sse2 neon msa/;
802
803   add_proto qw/void vpx_minmax_8x8/, "const uint8_t *s, int p, const uint8_t *d, int dp, int *min, int *max";
804   specialize qw/vpx_minmax_8x8 sse2 neon msa/;
805
806   if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
807     add_proto qw/void vpx_hadamard_8x8/, "const int16_t *src_diff, int src_stride, tran_low_t *coeff";
808     specialize qw/vpx_hadamard_8x8 sse2 neon vsx/, "$ssse3_x86_64";
809
810     add_proto qw/void vpx_hadamard_16x16/, "const int16_t *src_diff, int src_stride, tran_low_t *coeff";
811     specialize qw/vpx_hadamard_16x16 sse2 neon vsx/;
812
813     add_proto qw/int vpx_satd/, "const tran_low_t *coeff, int length";
814     specialize qw/vpx_satd sse2 neon/;
815   } else {
816     add_proto qw/void vpx_hadamard_8x8/, "const int16_t *src_diff, int src_stride, int16_t *coeff";
817     specialize qw/vpx_hadamard_8x8 sse2 neon msa vsx/, "$ssse3_x86_64";
818
819     add_proto qw/void vpx_hadamard_16x16/, "const int16_t *src_diff, int src_stride, int16_t *coeff";
820     specialize qw/vpx_hadamard_16x16 sse2 neon msa vsx/;
821
822     add_proto qw/int vpx_satd/, "const int16_t *coeff, int length";
823     specialize qw/vpx_satd sse2 neon msa/;
824   }
825
826   add_proto qw/void vpx_int_pro_row/, "int16_t *hbuf, const uint8_t *ref, const int ref_stride, const int height";
827   specialize qw/vpx_int_pro_row sse2 neon msa/;
828
829   add_proto qw/int16_t vpx_int_pro_col/, "const uint8_t *ref, const int width";
830   specialize qw/vpx_int_pro_col sse2 neon msa/;
831
832   add_proto qw/int vpx_vector_var/, "const int16_t *ref, const int16_t *src, const int bwl";
833   specialize qw/vpx_vector_var neon sse2 msa/;
834 }  # CONFIG_VP9_ENCODER
835
836 add_proto qw/unsigned int vpx_sad64x64_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
837 specialize qw/vpx_sad64x64_avg avx2 msa sse2/;
838
839 add_proto qw/unsigned int vpx_sad64x32_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
840 specialize qw/vpx_sad64x32_avg avx2 msa sse2/;
841
842 add_proto qw/unsigned int vpx_sad32x64_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
843 specialize qw/vpx_sad32x64_avg avx2 msa sse2/;
844
845 add_proto qw/unsigned int vpx_sad32x32_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
846 specialize qw/vpx_sad32x32_avg avx2 msa sse2/;
847
848 add_proto qw/unsigned int vpx_sad32x16_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
849 specialize qw/vpx_sad32x16_avg avx2 msa sse2/;
850
851 add_proto qw/unsigned int vpx_sad16x32_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
852 specialize qw/vpx_sad16x32_avg msa sse2/;
853
854 add_proto qw/unsigned int vpx_sad16x16_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
855 specialize qw/vpx_sad16x16_avg msa sse2/;
856
857 add_proto qw/unsigned int vpx_sad16x8_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
858 specialize qw/vpx_sad16x8_avg msa sse2/;
859
860 add_proto qw/unsigned int vpx_sad8x16_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
861 specialize qw/vpx_sad8x16_avg msa sse2/;
862
863 add_proto qw/unsigned int vpx_sad8x8_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
864 specialize qw/vpx_sad8x8_avg msa sse2/;
865
866 add_proto qw/unsigned int vpx_sad8x4_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
867 specialize qw/vpx_sad8x4_avg msa sse2/;
868
869 add_proto qw/unsigned int vpx_sad4x8_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
870 specialize qw/vpx_sad4x8_avg msa sse2/;
871
872 add_proto qw/unsigned int vpx_sad4x4_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
873 specialize qw/vpx_sad4x4_avg msa sse2/;
874
875 #
876 # Multi-block SAD, comparing a reference to N blocks 1 pixel apart horizontally
877 #
878 # Blocks of 3
879 add_proto qw/void vpx_sad64x64x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
880 specialize qw/vpx_sad64x64x3 msa/;
881
882 add_proto qw/void vpx_sad32x32x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
883 specialize qw/vpx_sad32x32x3 msa/;
884
885 add_proto qw/void vpx_sad16x16x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
886 specialize qw/vpx_sad16x16x3 sse3 ssse3 msa/;
887
888 add_proto qw/void vpx_sad16x8x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
889 specialize qw/vpx_sad16x8x3 sse3 ssse3 msa/;
890
891 add_proto qw/void vpx_sad8x16x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
892 specialize qw/vpx_sad8x16x3 sse3 msa/;
893
894 add_proto qw/void vpx_sad8x8x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
895 specialize qw/vpx_sad8x8x3 sse3 msa/;
896
897 add_proto qw/void vpx_sad4x4x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
898 specialize qw/vpx_sad4x4x3 sse3 msa/;
899
900 # Blocks of 8
901 add_proto qw/void vpx_sad64x64x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
902 specialize qw/vpx_sad64x64x8 msa/;
903
904 add_proto qw/void vpx_sad32x32x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
905 specialize qw/vpx_sad32x32x8 msa/;
906
907 add_proto qw/void vpx_sad16x16x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
908 specialize qw/vpx_sad16x16x8 sse4_1 msa/;
909
910 add_proto qw/void vpx_sad16x8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
911 specialize qw/vpx_sad16x8x8 sse4_1 msa/;
912
913 add_proto qw/void vpx_sad8x16x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
914 specialize qw/vpx_sad8x16x8 sse4_1 msa/;
915
916 add_proto qw/void vpx_sad8x8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
917 specialize qw/vpx_sad8x8x8 sse4_1 msa/;
918
919 add_proto qw/void vpx_sad8x4x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
920 specialize qw/vpx_sad8x4x8 msa/;
921
922 add_proto qw/void vpx_sad4x8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
923 specialize qw/vpx_sad4x8x8 msa/;
924
925 add_proto qw/void vpx_sad4x4x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
926 specialize qw/vpx_sad4x4x8 sse4_1 msa/;
927
928 #
929 # Multi-block SAD, comparing a reference to N independent blocks
930 #
931 add_proto qw/void vpx_sad64x64x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array";
932 specialize qw/vpx_sad64x64x4d avx2 neon msa sse2/;
933
934 add_proto qw/void vpx_sad64x32x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array";
935 specialize qw/vpx_sad64x32x4d msa sse2/;
936
937 add_proto qw/void vpx_sad32x64x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array";
938 specialize qw/vpx_sad32x64x4d msa sse2/;
939
940 add_proto qw/void vpx_sad32x32x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array";
941 specialize qw/vpx_sad32x32x4d avx2 neon msa sse2/;
942
943 add_proto qw/void vpx_sad32x16x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array";
944 specialize qw/vpx_sad32x16x4d msa sse2/;
945
946 add_proto qw/void vpx_sad16x32x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array";
947 specialize qw/vpx_sad16x32x4d msa sse2/;
948
949 add_proto qw/void vpx_sad16x16x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array";
950 specialize qw/vpx_sad16x16x4d neon msa sse2/;
951
952 add_proto qw/void vpx_sad16x8x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array";
953 specialize qw/vpx_sad16x8x4d msa sse2/;
954
955 add_proto qw/void vpx_sad8x16x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array";
956 specialize qw/vpx_sad8x16x4d msa sse2/;
957
958 add_proto qw/void vpx_sad8x8x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array";
959 specialize qw/vpx_sad8x8x4d msa sse2/;
960
961 add_proto qw/void vpx_sad8x4x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array";
962 specialize qw/vpx_sad8x4x4d msa sse2/;
963
964 add_proto qw/void vpx_sad4x8x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array";
965 specialize qw/vpx_sad4x8x4d msa sse2/;
966
967 add_proto qw/void vpx_sad4x4x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array";
968 specialize qw/vpx_sad4x4x4d msa sse2/;
969
970 add_proto qw/uint64_t vpx_sum_squares_2d_i16/, "const int16_t *src, int stride, int size";
971 specialize qw/vpx_sum_squares_2d_i16 sse2 msa/;
972
973 #
974 # Structured Similarity (SSIM)
975 #
976 if (vpx_config("CONFIG_INTERNAL_STATS") eq "yes") {
977     add_proto qw/void vpx_ssim_parms_8x8/, "const uint8_t *s, int sp, const uint8_t *r, int rp, uint32_t *sum_s, uint32_t *sum_r, uint32_t *sum_sq_s, uint32_t *sum_sq_r, uint32_t *sum_sxr";
978     specialize qw/vpx_ssim_parms_8x8/, "$sse2_x86_64";
979
980     add_proto qw/void vpx_ssim_parms_16x16/, "const uint8_t *s, int sp, const uint8_t *r, int rp, uint32_t *sum_s, uint32_t *sum_r, uint32_t *sum_sq_s, uint32_t *sum_sq_r, uint32_t *sum_sxr";
981     specialize qw/vpx_ssim_parms_16x16/, "$sse2_x86_64";
982 }
983
984 if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
985   #
986   # Block subtraction
987   #
988   add_proto qw/void vpx_highbd_subtract_block/, "int rows, int cols, int16_t *diff_ptr, ptrdiff_t diff_stride, const uint8_t *src_ptr, ptrdiff_t src_stride, const uint8_t *pred_ptr, ptrdiff_t pred_stride, int bd";
989
990   #
991   # Single block SAD
992   #
993   add_proto qw/unsigned int vpx_highbd_sad64x64/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
994   specialize qw/vpx_highbd_sad64x64 sse2/;
995
996   add_proto qw/unsigned int vpx_highbd_sad64x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
997   specialize qw/vpx_highbd_sad64x32 sse2/;
998
999   add_proto qw/unsigned int vpx_highbd_sad32x64/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
1000   specialize qw/vpx_highbd_sad32x64 sse2/;
1001
1002   add_proto qw/unsigned int vpx_highbd_sad32x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
1003   specialize qw/vpx_highbd_sad32x32 sse2/;
1004
1005   add_proto qw/unsigned int vpx_highbd_sad32x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
1006   specialize qw/vpx_highbd_sad32x16 sse2/;
1007
1008   add_proto qw/unsigned int vpx_highbd_sad16x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
1009   specialize qw/vpx_highbd_sad16x32 sse2/;
1010
1011   add_proto qw/unsigned int vpx_highbd_sad16x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
1012   specialize qw/vpx_highbd_sad16x16 sse2/;
1013
1014   add_proto qw/unsigned int vpx_highbd_sad16x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
1015   specialize qw/vpx_highbd_sad16x8 sse2/;
1016
1017   add_proto qw/unsigned int vpx_highbd_sad8x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
1018   specialize qw/vpx_highbd_sad8x16 sse2/;
1019
1020   add_proto qw/unsigned int vpx_highbd_sad8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
1021   specialize qw/vpx_highbd_sad8x8 sse2/;
1022
1023   add_proto qw/unsigned int vpx_highbd_sad8x4/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
1024   specialize qw/vpx_highbd_sad8x4 sse2/;
1025
1026   add_proto qw/unsigned int vpx_highbd_sad4x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
1027
1028   add_proto qw/unsigned int vpx_highbd_sad4x4/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
1029
1030   #
1031   # Avg
1032   #
1033   add_proto qw/unsigned int vpx_highbd_avg_8x8/, "const uint8_t *, int p";
1034   add_proto qw/unsigned int vpx_highbd_avg_4x4/, "const uint8_t *, int p";
1035   add_proto qw/void vpx_highbd_minmax_8x8/, "const uint8_t *s, int p, const uint8_t *d, int dp, int *min, int *max";
1036
1037   add_proto qw/unsigned int vpx_highbd_sad64x64_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
1038   specialize qw/vpx_highbd_sad64x64_avg sse2/;
1039
1040   add_proto qw/unsigned int vpx_highbd_sad64x32_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
1041   specialize qw/vpx_highbd_sad64x32_avg sse2/;
1042
1043   add_proto qw/unsigned int vpx_highbd_sad32x64_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
1044   specialize qw/vpx_highbd_sad32x64_avg sse2/;
1045
1046   add_proto qw/unsigned int vpx_highbd_sad32x32_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
1047   specialize qw/vpx_highbd_sad32x32_avg sse2/;
1048
1049   add_proto qw/unsigned int vpx_highbd_sad32x16_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
1050   specialize qw/vpx_highbd_sad32x16_avg sse2/;
1051
1052   add_proto qw/unsigned int vpx_highbd_sad16x32_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
1053   specialize qw/vpx_highbd_sad16x32_avg sse2/;
1054
1055   add_proto qw/unsigned int vpx_highbd_sad16x16_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
1056   specialize qw/vpx_highbd_sad16x16_avg sse2/;
1057
1058   add_proto qw/unsigned int vpx_highbd_sad16x8_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
1059   specialize qw/vpx_highbd_sad16x8_avg sse2/;
1060
1061   add_proto qw/unsigned int vpx_highbd_sad8x16_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
1062   specialize qw/vpx_highbd_sad8x16_avg sse2/;
1063
1064   add_proto qw/unsigned int vpx_highbd_sad8x8_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
1065   specialize qw/vpx_highbd_sad8x8_avg sse2/;
1066
1067   add_proto qw/unsigned int vpx_highbd_sad8x4_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
1068   specialize qw/vpx_highbd_sad8x4_avg sse2/;
1069
1070   add_proto qw/unsigned int vpx_highbd_sad4x8_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
1071
1072   add_proto qw/unsigned int vpx_highbd_sad4x4_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
1073
1074   #
1075   # Multi-block SAD, comparing a reference to N blocks 1 pixel apart horizontally
1076   #
1077   # Blocks of 3
1078   add_proto qw/void vpx_highbd_sad64x64x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
1079
1080   add_proto qw/void vpx_highbd_sad32x32x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
1081
1082   add_proto qw/void vpx_highbd_sad16x16x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
1083
1084   add_proto qw/void vpx_highbd_sad16x8x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
1085
1086   add_proto qw/void vpx_highbd_sad8x16x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
1087
1088   add_proto qw/void vpx_highbd_sad8x8x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
1089
1090   add_proto qw/void vpx_highbd_sad4x4x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
1091
1092   # Blocks of 8
1093   add_proto qw/void vpx_highbd_sad64x64x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
1094
1095   add_proto qw/void vpx_highbd_sad32x32x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
1096
1097   add_proto qw/void vpx_highbd_sad16x16x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
1098
1099   add_proto qw/void vpx_highbd_sad16x8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
1100
1101   add_proto qw/void vpx_highbd_sad8x16x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
1102
1103   add_proto qw/void vpx_highbd_sad8x8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
1104
1105   add_proto qw/void vpx_highbd_sad8x4x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
1106
1107   add_proto qw/void vpx_highbd_sad4x8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
1108
1109   add_proto qw/void vpx_highbd_sad4x4x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
1110
1111   #
1112   # Multi-block SAD, comparing a reference to N independent blocks
1113   #
1114   add_proto qw/void vpx_highbd_sad64x64x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, uint32_t *sad_array";
1115   specialize qw/vpx_highbd_sad64x64x4d sse2/;
1116
1117   add_proto qw/void vpx_highbd_sad64x32x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, uint32_t *sad_array";
1118   specialize qw/vpx_highbd_sad64x32x4d sse2/;
1119
1120   add_proto qw/void vpx_highbd_sad32x64x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, uint32_t *sad_array";
1121   specialize qw/vpx_highbd_sad32x64x4d sse2/;
1122
1123   add_proto qw/void vpx_highbd_sad32x32x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, uint32_t *sad_array";
1124   specialize qw/vpx_highbd_sad32x32x4d sse2/;
1125
1126   add_proto qw/void vpx_highbd_sad32x16x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, uint32_t *sad_array";
1127   specialize qw/vpx_highbd_sad32x16x4d sse2/;
1128
1129   add_proto qw/void vpx_highbd_sad16x32x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, uint32_t *sad_array";
1130   specialize qw/vpx_highbd_sad16x32x4d sse2/;
1131
1132   add_proto qw/void vpx_highbd_sad16x16x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, uint32_t *sad_array";
1133   specialize qw/vpx_highbd_sad16x16x4d sse2/;
1134
1135   add_proto qw/void vpx_highbd_sad16x8x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, uint32_t *sad_array";
1136   specialize qw/vpx_highbd_sad16x8x4d sse2/;
1137
1138   add_proto qw/void vpx_highbd_sad8x16x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, uint32_t *sad_array";
1139   specialize qw/vpx_highbd_sad8x16x4d sse2/;
1140
1141   add_proto qw/void vpx_highbd_sad8x8x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, uint32_t *sad_array";
1142   specialize qw/vpx_highbd_sad8x8x4d sse2/;
1143
1144   add_proto qw/void vpx_highbd_sad8x4x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, uint32_t *sad_array";
1145   specialize qw/vpx_highbd_sad8x4x4d sse2/;
1146
1147   add_proto qw/void vpx_highbd_sad4x8x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, uint32_t *sad_array";
1148   specialize qw/vpx_highbd_sad4x8x4d sse2/;
1149
1150   add_proto qw/void vpx_highbd_sad4x4x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, uint32_t *sad_array";
1151   specialize qw/vpx_highbd_sad4x4x4d sse2/;
1152
1153   #
1154   # Structured Similarity (SSIM)
1155   #
1156   if (vpx_config("CONFIG_INTERNAL_STATS") eq "yes") {
1157     add_proto qw/void vpx_highbd_ssim_parms_8x8/, "const uint16_t *s, int sp, const uint16_t *r, int rp, uint32_t *sum_s, uint32_t *sum_r, uint32_t *sum_sq_s, uint32_t *sum_sq_r, uint32_t *sum_sxr";
1158   }
1159 }  # CONFIG_VP9_HIGHBITDEPTH
1160 }  # CONFIG_ENCODERS
1161
1162 if (vpx_config("CONFIG_ENCODERS") eq "yes" || vpx_config("CONFIG_POSTPROC") eq "yes" || vpx_config("CONFIG_VP9_POSTPROC") eq "yes") {
1163
1164 #
1165 # Variance
1166 #
1167 add_proto qw/unsigned int vpx_variance64x64/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1168   specialize qw/vpx_variance64x64 sse2 avx2 neon msa/;
1169
1170 add_proto qw/unsigned int vpx_variance64x32/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1171   specialize qw/vpx_variance64x32 sse2 avx2 neon msa/;
1172
1173 add_proto qw/unsigned int vpx_variance32x64/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1174   specialize qw/vpx_variance32x64 sse2 neon msa/;
1175
1176 add_proto qw/unsigned int vpx_variance32x32/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1177   specialize qw/vpx_variance32x32 sse2 avx2 neon msa/;
1178
1179 add_proto qw/unsigned int vpx_variance32x16/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1180   specialize qw/vpx_variance32x16 sse2 avx2 neon msa/;
1181
1182 add_proto qw/unsigned int vpx_variance16x32/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1183   specialize qw/vpx_variance16x32 sse2 neon msa/;
1184
1185 add_proto qw/unsigned int vpx_variance16x16/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1186   specialize qw/vpx_variance16x16 sse2 avx2 neon msa/;
1187
1188 add_proto qw/unsigned int vpx_variance16x8/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1189   specialize qw/vpx_variance16x8 sse2 neon msa/;
1190
1191 add_proto qw/unsigned int vpx_variance8x16/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1192   specialize qw/vpx_variance8x16 sse2 neon msa/;
1193
1194 add_proto qw/unsigned int vpx_variance8x8/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1195   specialize qw/vpx_variance8x8 sse2 neon msa/;
1196
1197 add_proto qw/unsigned int vpx_variance8x4/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1198   specialize qw/vpx_variance8x4 sse2 neon msa/;
1199
1200 add_proto qw/unsigned int vpx_variance4x8/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1201 # TODO(johannkoenig): neon
1202   specialize qw/vpx_variance4x8 sse2 msa/;
1203
1204 add_proto qw/unsigned int vpx_variance4x4/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1205 # TODO(johannkoenig): neon
1206   specialize qw/vpx_variance4x4 sse2 msa/;
1207
1208 #
1209 # Specialty Variance
1210 #
1211 add_proto qw/void vpx_get16x16var/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum";
1212   specialize qw/vpx_get16x16var sse2 avx2 neon msa/;
1213
1214 add_proto qw/void vpx_get8x8var/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum";
1215   specialize qw/vpx_get8x8var sse2 neon msa/;
1216
1217 add_proto qw/unsigned int vpx_mse16x16/, "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse";
1218   specialize qw/vpx_mse16x16 sse2 avx2 neon msa/;
1219
1220 add_proto qw/unsigned int vpx_mse16x8/, "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse";
1221   specialize qw/vpx_mse16x8 sse2 msa/;
1222
1223 add_proto qw/unsigned int vpx_mse8x16/, "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse";
1224   specialize qw/vpx_mse8x16 sse2 msa/;
1225
1226 add_proto qw/unsigned int vpx_mse8x8/, "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse";
1227   specialize qw/vpx_mse8x8 sse2 msa/;
1228
1229 add_proto qw/unsigned int vpx_get_mb_ss/, "const int16_t *";
1230   specialize qw/vpx_get_mb_ss sse2 msa/;
1231
1232 add_proto qw/unsigned int vpx_get4x4sse_cs/, "const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride";
1233   specialize qw/vpx_get4x4sse_cs neon msa/;
1234
1235 add_proto qw/void vpx_comp_avg_pred/, "uint8_t *comp_pred, const uint8_t *pred, int width, int height, const uint8_t *ref, int ref_stride";
1236   specialize qw/vpx_comp_avg_pred sse2/;
1237
1238 #
1239 # Subpixel Variance
1240 #
1241 add_proto qw/uint32_t vpx_sub_pixel_variance64x64/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1242   specialize qw/vpx_sub_pixel_variance64x64 avx2 neon msa sse2 ssse3/;
1243
1244 add_proto qw/uint32_t vpx_sub_pixel_variance64x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1245   specialize qw/vpx_sub_pixel_variance64x32 msa sse2 ssse3/;
1246
1247 add_proto qw/uint32_t vpx_sub_pixel_variance32x64/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1248   specialize qw/vpx_sub_pixel_variance32x64 msa sse2 ssse3/;
1249
1250 add_proto qw/uint32_t vpx_sub_pixel_variance32x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1251   specialize qw/vpx_sub_pixel_variance32x32 avx2 neon msa sse2 ssse3/;
1252
1253 add_proto qw/uint32_t vpx_sub_pixel_variance32x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1254   specialize qw/vpx_sub_pixel_variance32x16 msa sse2 ssse3/;
1255
1256 add_proto qw/uint32_t vpx_sub_pixel_variance16x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1257   specialize qw/vpx_sub_pixel_variance16x32 msa sse2 ssse3/;
1258
1259 add_proto qw/uint32_t vpx_sub_pixel_variance16x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1260   specialize qw/vpx_sub_pixel_variance16x16 neon msa sse2 ssse3/;
1261
1262 add_proto qw/uint32_t vpx_sub_pixel_variance16x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1263   specialize qw/vpx_sub_pixel_variance16x8 msa sse2 ssse3/;
1264
1265 add_proto qw/uint32_t vpx_sub_pixel_variance8x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1266   specialize qw/vpx_sub_pixel_variance8x16 msa sse2 ssse3/;
1267
1268 add_proto qw/uint32_t vpx_sub_pixel_variance8x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1269   specialize qw/vpx_sub_pixel_variance8x8 neon msa sse2 ssse3/;
1270
1271 add_proto qw/uint32_t vpx_sub_pixel_variance8x4/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1272   specialize qw/vpx_sub_pixel_variance8x4 msa sse2 ssse3/;
1273
1274 add_proto qw/uint32_t vpx_sub_pixel_variance4x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1275   specialize qw/vpx_sub_pixel_variance4x8 msa sse2 ssse3/;
1276
1277 add_proto qw/uint32_t vpx_sub_pixel_variance4x4/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1278   specialize qw/vpx_sub_pixel_variance4x4 msa sse2 ssse3/;
1279
1280 add_proto qw/uint32_t vpx_sub_pixel_avg_variance64x64/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1281   specialize qw/vpx_sub_pixel_avg_variance64x64 avx2 msa sse2 ssse3/;
1282
1283 add_proto qw/uint32_t vpx_sub_pixel_avg_variance64x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1284   specialize qw/vpx_sub_pixel_avg_variance64x32 msa sse2 ssse3/;
1285
1286 add_proto qw/uint32_t vpx_sub_pixel_avg_variance32x64/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1287   specialize qw/vpx_sub_pixel_avg_variance32x64 msa sse2 ssse3/;
1288
1289 add_proto qw/uint32_t vpx_sub_pixel_avg_variance32x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1290   specialize qw/vpx_sub_pixel_avg_variance32x32 avx2 msa sse2 ssse3/;
1291
1292 add_proto qw/uint32_t vpx_sub_pixel_avg_variance32x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1293   specialize qw/vpx_sub_pixel_avg_variance32x16 msa sse2 ssse3/;
1294
1295 add_proto qw/uint32_t vpx_sub_pixel_avg_variance16x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1296   specialize qw/vpx_sub_pixel_avg_variance16x32 msa sse2 ssse3/;
1297
1298 add_proto qw/uint32_t vpx_sub_pixel_avg_variance16x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1299   specialize qw/vpx_sub_pixel_avg_variance16x16 msa sse2 ssse3/;
1300
1301 add_proto qw/uint32_t vpx_sub_pixel_avg_variance16x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1302   specialize qw/vpx_sub_pixel_avg_variance16x8 msa sse2 ssse3/;
1303
1304 add_proto qw/uint32_t vpx_sub_pixel_avg_variance8x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1305   specialize qw/vpx_sub_pixel_avg_variance8x16 msa sse2 ssse3/;
1306
1307 add_proto qw/uint32_t vpx_sub_pixel_avg_variance8x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1308   specialize qw/vpx_sub_pixel_avg_variance8x8 msa sse2 ssse3/;
1309
1310 add_proto qw/uint32_t vpx_sub_pixel_avg_variance8x4/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1311   specialize qw/vpx_sub_pixel_avg_variance8x4 msa sse2 ssse3/;
1312
1313 add_proto qw/uint32_t vpx_sub_pixel_avg_variance4x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1314   specialize qw/vpx_sub_pixel_avg_variance4x8 msa sse2 ssse3/;
1315
1316 add_proto qw/uint32_t vpx_sub_pixel_avg_variance4x4/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1317   specialize qw/vpx_sub_pixel_avg_variance4x4 msa sse2 ssse3/;
1318
1319 if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
1320   add_proto qw/unsigned int vpx_highbd_12_variance64x64/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1321   specialize qw/vpx_highbd_12_variance64x64 sse2/;
1322
1323   add_proto qw/unsigned int vpx_highbd_12_variance64x32/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1324   specialize qw/vpx_highbd_12_variance64x32 sse2/;
1325
1326   add_proto qw/unsigned int vpx_highbd_12_variance32x64/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1327   specialize qw/vpx_highbd_12_variance32x64 sse2/;
1328
1329   add_proto qw/unsigned int vpx_highbd_12_variance32x32/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1330   specialize qw/vpx_highbd_12_variance32x32 sse2/;
1331
1332   add_proto qw/unsigned int vpx_highbd_12_variance32x16/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1333   specialize qw/vpx_highbd_12_variance32x16 sse2/;
1334
1335   add_proto qw/unsigned int vpx_highbd_12_variance16x32/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1336   specialize qw/vpx_highbd_12_variance16x32 sse2/;
1337
1338   add_proto qw/unsigned int vpx_highbd_12_variance16x16/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1339   specialize qw/vpx_highbd_12_variance16x16 sse2/;
1340
1341   add_proto qw/unsigned int vpx_highbd_12_variance16x8/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1342   specialize qw/vpx_highbd_12_variance16x8 sse2/;
1343
1344   add_proto qw/unsigned int vpx_highbd_12_variance8x16/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1345   specialize qw/vpx_highbd_12_variance8x16 sse2/;
1346
1347   add_proto qw/unsigned int vpx_highbd_12_variance8x8/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1348   specialize qw/vpx_highbd_12_variance8x8 sse2/;
1349
1350   add_proto qw/unsigned int vpx_highbd_12_variance8x4/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1351   add_proto qw/unsigned int vpx_highbd_12_variance4x8/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1352   add_proto qw/unsigned int vpx_highbd_12_variance4x4/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1353
1354   add_proto qw/unsigned int vpx_highbd_10_variance64x64/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1355   specialize qw/vpx_highbd_10_variance64x64 sse2/;
1356
1357   add_proto qw/unsigned int vpx_highbd_10_variance64x32/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1358   specialize qw/vpx_highbd_10_variance64x32 sse2/;
1359
1360   add_proto qw/unsigned int vpx_highbd_10_variance32x64/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1361   specialize qw/vpx_highbd_10_variance32x64 sse2/;
1362
1363   add_proto qw/unsigned int vpx_highbd_10_variance32x32/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1364   specialize qw/vpx_highbd_10_variance32x32 sse2/;
1365
1366   add_proto qw/unsigned int vpx_highbd_10_variance32x16/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1367   specialize qw/vpx_highbd_10_variance32x16 sse2/;
1368
1369   add_proto qw/unsigned int vpx_highbd_10_variance16x32/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1370   specialize qw/vpx_highbd_10_variance16x32 sse2/;
1371
1372   add_proto qw/unsigned int vpx_highbd_10_variance16x16/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1373   specialize qw/vpx_highbd_10_variance16x16 sse2/;
1374
1375   add_proto qw/unsigned int vpx_highbd_10_variance16x8/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1376   specialize qw/vpx_highbd_10_variance16x8 sse2/;
1377
1378   add_proto qw/unsigned int vpx_highbd_10_variance8x16/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1379   specialize qw/vpx_highbd_10_variance8x16 sse2/;
1380
1381   add_proto qw/unsigned int vpx_highbd_10_variance8x8/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1382   specialize qw/vpx_highbd_10_variance8x8 sse2/;
1383
1384   add_proto qw/unsigned int vpx_highbd_10_variance8x4/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1385   add_proto qw/unsigned int vpx_highbd_10_variance4x8/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1386   add_proto qw/unsigned int vpx_highbd_10_variance4x4/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1387
1388   add_proto qw/unsigned int vpx_highbd_8_variance64x64/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1389   specialize qw/vpx_highbd_8_variance64x64 sse2/;
1390
1391   add_proto qw/unsigned int vpx_highbd_8_variance64x32/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1392   specialize qw/vpx_highbd_8_variance64x32 sse2/;
1393
1394   add_proto qw/unsigned int vpx_highbd_8_variance32x64/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1395   specialize qw/vpx_highbd_8_variance32x64 sse2/;
1396
1397   add_proto qw/unsigned int vpx_highbd_8_variance32x32/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1398   specialize qw/vpx_highbd_8_variance32x32 sse2/;
1399
1400   add_proto qw/unsigned int vpx_highbd_8_variance32x16/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1401   specialize qw/vpx_highbd_8_variance32x16 sse2/;
1402
1403   add_proto qw/unsigned int vpx_highbd_8_variance16x32/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1404   specialize qw/vpx_highbd_8_variance16x32 sse2/;
1405
1406   add_proto qw/unsigned int vpx_highbd_8_variance16x16/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1407   specialize qw/vpx_highbd_8_variance16x16 sse2/;
1408
1409   add_proto qw/unsigned int vpx_highbd_8_variance16x8/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1410   specialize qw/vpx_highbd_8_variance16x8 sse2/;
1411
1412   add_proto qw/unsigned int vpx_highbd_8_variance8x16/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1413   specialize qw/vpx_highbd_8_variance8x16 sse2/;
1414
1415   add_proto qw/unsigned int vpx_highbd_8_variance8x8/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1416   specialize qw/vpx_highbd_8_variance8x8 sse2/;
1417
1418   add_proto qw/unsigned int vpx_highbd_8_variance8x4/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1419   add_proto qw/unsigned int vpx_highbd_8_variance4x8/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1420   add_proto qw/unsigned int vpx_highbd_8_variance4x4/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
1421
1422   add_proto qw/void vpx_highbd_8_get16x16var/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum";
1423   add_proto qw/void vpx_highbd_8_get8x8var/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum";
1424
1425   add_proto qw/void vpx_highbd_10_get16x16var/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum";
1426   add_proto qw/void vpx_highbd_10_get8x8var/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum";
1427
1428   add_proto qw/void vpx_highbd_12_get16x16var/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum";
1429   add_proto qw/void vpx_highbd_12_get8x8var/, "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum";
1430
1431   add_proto qw/unsigned int vpx_highbd_8_mse16x16/, "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse";
1432   specialize qw/vpx_highbd_8_mse16x16 sse2/;
1433
1434   add_proto qw/unsigned int vpx_highbd_8_mse16x8/, "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse";
1435   add_proto qw/unsigned int vpx_highbd_8_mse8x16/, "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse";
1436   add_proto qw/unsigned int vpx_highbd_8_mse8x8/, "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse";
1437   specialize qw/vpx_highbd_8_mse8x8 sse2/;
1438
1439   add_proto qw/unsigned int vpx_highbd_10_mse16x16/, "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse";
1440   specialize qw/vpx_highbd_10_mse16x16 sse2/;
1441
1442   add_proto qw/unsigned int vpx_highbd_10_mse16x8/, "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse";
1443   add_proto qw/unsigned int vpx_highbd_10_mse8x16/, "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse";
1444   add_proto qw/unsigned int vpx_highbd_10_mse8x8/, "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse";
1445   specialize qw/vpx_highbd_10_mse8x8 sse2/;
1446
1447   add_proto qw/unsigned int vpx_highbd_12_mse16x16/, "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse";
1448   specialize qw/vpx_highbd_12_mse16x16 sse2/;
1449
1450   add_proto qw/unsigned int vpx_highbd_12_mse16x8/, "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse";
1451   add_proto qw/unsigned int vpx_highbd_12_mse8x16/, "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse";
1452   add_proto qw/unsigned int vpx_highbd_12_mse8x8/, "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse";
1453   specialize qw/vpx_highbd_12_mse8x8 sse2/;
1454
1455   add_proto qw/void vpx_highbd_comp_avg_pred/, "uint16_t *comp_pred, const uint8_t *pred8, int width, int height, const uint8_t *ref8, int ref_stride";
1456
1457   #
1458   # Subpixel Variance
1459   #
1460   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance64x64/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1461   specialize qw/vpx_highbd_12_sub_pixel_variance64x64 sse2/;
1462
1463   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance64x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1464   specialize qw/vpx_highbd_12_sub_pixel_variance64x32 sse2/;
1465
1466   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance32x64/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1467   specialize qw/vpx_highbd_12_sub_pixel_variance32x64 sse2/;
1468
1469   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance32x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1470   specialize qw/vpx_highbd_12_sub_pixel_variance32x32 sse2/;
1471
1472   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance32x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1473   specialize qw/vpx_highbd_12_sub_pixel_variance32x16 sse2/;
1474
1475   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance16x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1476   specialize qw/vpx_highbd_12_sub_pixel_variance16x32 sse2/;
1477
1478   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance16x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1479   specialize qw/vpx_highbd_12_sub_pixel_variance16x16 sse2/;
1480
1481   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance16x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1482   specialize qw/vpx_highbd_12_sub_pixel_variance16x8 sse2/;
1483
1484   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance8x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1485   specialize qw/vpx_highbd_12_sub_pixel_variance8x16 sse2/;
1486
1487   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance8x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1488   specialize qw/vpx_highbd_12_sub_pixel_variance8x8 sse2/;
1489
1490   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance8x4/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1491   specialize qw/vpx_highbd_12_sub_pixel_variance8x4 sse2/;
1492
1493   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance4x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1494   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance4x4/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1495
1496   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance64x64/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1497   specialize qw/vpx_highbd_10_sub_pixel_variance64x64 sse2/;
1498
1499   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance64x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1500   specialize qw/vpx_highbd_10_sub_pixel_variance64x32 sse2/;
1501
1502   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance32x64/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1503   specialize qw/vpx_highbd_10_sub_pixel_variance32x64 sse2/;
1504
1505   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance32x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1506   specialize qw/vpx_highbd_10_sub_pixel_variance32x32 sse2/;
1507
1508   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance32x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1509   specialize qw/vpx_highbd_10_sub_pixel_variance32x16 sse2/;
1510
1511   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance16x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1512   specialize qw/vpx_highbd_10_sub_pixel_variance16x32 sse2/;
1513
1514   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance16x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1515   specialize qw/vpx_highbd_10_sub_pixel_variance16x16 sse2/;
1516
1517   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance16x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1518   specialize qw/vpx_highbd_10_sub_pixel_variance16x8 sse2/;
1519
1520   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance8x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1521   specialize qw/vpx_highbd_10_sub_pixel_variance8x16 sse2/;
1522
1523   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance8x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1524   specialize qw/vpx_highbd_10_sub_pixel_variance8x8 sse2/;
1525
1526   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance8x4/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1527   specialize qw/vpx_highbd_10_sub_pixel_variance8x4 sse2/;
1528
1529   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance4x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1530   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance4x4/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1531
1532   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance64x64/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1533   specialize qw/vpx_highbd_8_sub_pixel_variance64x64 sse2/;
1534
1535   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance64x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1536   specialize qw/vpx_highbd_8_sub_pixel_variance64x32 sse2/;
1537
1538   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance32x64/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1539   specialize qw/vpx_highbd_8_sub_pixel_variance32x64 sse2/;
1540
1541   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance32x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1542   specialize qw/vpx_highbd_8_sub_pixel_variance32x32 sse2/;
1543
1544   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance32x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1545   specialize qw/vpx_highbd_8_sub_pixel_variance32x16 sse2/;
1546
1547   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance16x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1548   specialize qw/vpx_highbd_8_sub_pixel_variance16x32 sse2/;
1549
1550   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance16x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1551   specialize qw/vpx_highbd_8_sub_pixel_variance16x16 sse2/;
1552
1553   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance16x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1554   specialize qw/vpx_highbd_8_sub_pixel_variance16x8 sse2/;
1555
1556   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance8x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1557   specialize qw/vpx_highbd_8_sub_pixel_variance8x16 sse2/;
1558
1559   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance8x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1560   specialize qw/vpx_highbd_8_sub_pixel_variance8x8 sse2/;
1561
1562   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance8x4/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1563   specialize qw/vpx_highbd_8_sub_pixel_variance8x4 sse2/;
1564
1565   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance4x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1566   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance4x4/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
1567
1568   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance64x64/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1569   specialize qw/vpx_highbd_12_sub_pixel_avg_variance64x64 sse2/;
1570
1571   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance64x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1572   specialize qw/vpx_highbd_12_sub_pixel_avg_variance64x32 sse2/;
1573
1574   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance32x64/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1575   specialize qw/vpx_highbd_12_sub_pixel_avg_variance32x64 sse2/;
1576
1577   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance32x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1578   specialize qw/vpx_highbd_12_sub_pixel_avg_variance32x32 sse2/;
1579
1580   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance32x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1581   specialize qw/vpx_highbd_12_sub_pixel_avg_variance32x16 sse2/;
1582
1583   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance16x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1584   specialize qw/vpx_highbd_12_sub_pixel_avg_variance16x32 sse2/;
1585
1586   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance16x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1587   specialize qw/vpx_highbd_12_sub_pixel_avg_variance16x16 sse2/;
1588
1589   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance16x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1590   specialize qw/vpx_highbd_12_sub_pixel_avg_variance16x8 sse2/;
1591
1592   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance8x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1593   specialize qw/vpx_highbd_12_sub_pixel_avg_variance8x16 sse2/;
1594
1595   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance8x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1596   specialize qw/vpx_highbd_12_sub_pixel_avg_variance8x8 sse2/;
1597
1598   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance8x4/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1599   specialize qw/vpx_highbd_12_sub_pixel_avg_variance8x4 sse2/;
1600
1601   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance4x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1602   add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance4x4/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1603
1604   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance64x64/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1605   specialize qw/vpx_highbd_10_sub_pixel_avg_variance64x64 sse2/;
1606
1607   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance64x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1608   specialize qw/vpx_highbd_10_sub_pixel_avg_variance64x32 sse2/;
1609
1610   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance32x64/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1611   specialize qw/vpx_highbd_10_sub_pixel_avg_variance32x64 sse2/;
1612
1613   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance32x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1614   specialize qw/vpx_highbd_10_sub_pixel_avg_variance32x32 sse2/;
1615
1616   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance32x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1617   specialize qw/vpx_highbd_10_sub_pixel_avg_variance32x16 sse2/;
1618
1619   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance16x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1620   specialize qw/vpx_highbd_10_sub_pixel_avg_variance16x32 sse2/;
1621
1622   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance16x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1623   specialize qw/vpx_highbd_10_sub_pixel_avg_variance16x16 sse2/;
1624
1625   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance16x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1626   specialize qw/vpx_highbd_10_sub_pixel_avg_variance16x8 sse2/;
1627
1628   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance8x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1629   specialize qw/vpx_highbd_10_sub_pixel_avg_variance8x16 sse2/;
1630
1631   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance8x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1632   specialize qw/vpx_highbd_10_sub_pixel_avg_variance8x8 sse2/;
1633
1634   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance8x4/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1635   specialize qw/vpx_highbd_10_sub_pixel_avg_variance8x4 sse2/;
1636
1637   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance4x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1638   add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance4x4/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1639
1640   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance64x64/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1641   specialize qw/vpx_highbd_8_sub_pixel_avg_variance64x64 sse2/;
1642
1643   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance64x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1644   specialize qw/vpx_highbd_8_sub_pixel_avg_variance64x32 sse2/;
1645
1646   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance32x64/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1647   specialize qw/vpx_highbd_8_sub_pixel_avg_variance32x64 sse2/;
1648
1649   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance32x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1650   specialize qw/vpx_highbd_8_sub_pixel_avg_variance32x32 sse2/;
1651
1652   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance32x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1653   specialize qw/vpx_highbd_8_sub_pixel_avg_variance32x16 sse2/;
1654
1655   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance16x32/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1656   specialize qw/vpx_highbd_8_sub_pixel_avg_variance16x32 sse2/;
1657
1658   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance16x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1659   specialize qw/vpx_highbd_8_sub_pixel_avg_variance16x16 sse2/;
1660
1661   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance16x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1662   specialize qw/vpx_highbd_8_sub_pixel_avg_variance16x8 sse2/;
1663
1664   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance8x16/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1665   specialize qw/vpx_highbd_8_sub_pixel_avg_variance8x16 sse2/;
1666
1667   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance8x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1668   specialize qw/vpx_highbd_8_sub_pixel_avg_variance8x8 sse2/;
1669
1670   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance8x4/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1671   specialize qw/vpx_highbd_8_sub_pixel_avg_variance8x4 sse2/;
1672
1673   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance4x8/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1674   add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance4x4/, "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
1675
1676 }  # CONFIG_VP9_HIGHBITDEPTH
1677
1678 #
1679 # Post Processing
1680 #
1681 if (vpx_config("CONFIG_POSTPROC") eq "yes" || vpx_config("CONFIG_VP9_POSTPROC") eq "yes") {
1682     add_proto qw/void vpx_plane_add_noise/, "uint8_t *start, const int8_t *noise, int blackclamp, int whiteclamp, int width, int height, int pitch";
1683     specialize qw/vpx_plane_add_noise sse2 msa/;
1684
1685     add_proto qw/void vpx_mbpost_proc_down/, "unsigned char *dst, int pitch, int rows, int cols,int flimit";
1686     specialize qw/vpx_mbpost_proc_down sse2 neon msa/;
1687
1688     add_proto qw/void vpx_mbpost_proc_across_ip/, "unsigned char *dst, int pitch, int rows, int cols,int flimit";
1689     specialize qw/vpx_mbpost_proc_across_ip sse2 neon msa/;
1690
1691     add_proto qw/void vpx_post_proc_down_and_across_mb_row/, "unsigned char *src, unsigned char *dst, int src_pitch, int dst_pitch, int cols, unsigned char *flimits, int size";
1692     specialize qw/vpx_post_proc_down_and_across_mb_row sse2 neon msa/;
1693
1694 }
1695
1696 }  # CONFIG_ENCODERS || CONFIG_POSTPROC || CONFIG_VP9_POSTPROC
1697
1698 1;