vp9_rtcd_defs.sh 42.6 KB
Newer Older
1
vp9_common_forward_decls() {
2
cat <<EOF
3
4
5
/*
 * VP9
 */
6

7
#include "vpx/vpx_integer.h"
8
#include "vp9/common/vp9_enums.h"
9

Jim Bankoski's avatar
Jim Bankoski committed
10
struct macroblockd;
11

Jim Bankoski's avatar
Jim Bankoski committed
12
13
/* Encoder forward decls */
struct macroblock;
14
struct vp9_variance_vtable;
Jim Bankoski's avatar
Jim Bankoski committed
15

Jim Bankoski's avatar
Jim Bankoski committed
16
#define DEC_MVCOSTS int *mvjcost, int *mvcost[2]
17
18
union int_mv;
struct yv12_buffer_config;
19
20
EOF
}
21
forward_decls vp9_common_forward_decls
22

23
# x86inc.asm doesn't work if pic is enabled on 32 bit platforms so no assembly.
Jim Bankoski's avatar
Jim Bankoski committed
24
[ "$CONFIG_USE_X86INC" = "yes" ] && mmx_x86inc=mmx && sse_x86inc=sse &&
25
  sse2_x86inc=sse2 && ssse3_x86inc=ssse3 && avx_x86inc=avx && avx2_x86inc=avx2
26
27

# this variable is for functions that are 64 bit only.
28
29
[ $arch = "x86_64" ] && mmx_x86_64=mmx && sse2_x86_64=sse2 && 
  ssse3_x86_64=ssse3 && avx_x86_64=avx && avx2_x86_64=avx2
30

Jim Bankoski's avatar
Jim Bankoski committed
31
32
33
#
# RECON
#
34
prototype void vp9_d207_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
35
specialize vp9_d207_predictor_4x4 $ssse3_x86inc
36

37
prototype void vp9_d45_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
Jim Bankoski's avatar
Jim Bankoski committed
38
specialize vp9_d45_predictor_4x4 $ssse3_x86inc
39

40
prototype void vp9_d63_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
41
specialize vp9_d63_predictor_4x4 $ssse3_x86inc
42

43
prototype void vp9_h_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
44
specialize vp9_h_predictor_4x4 $ssse3_x86inc dspr2
45

46
prototype void vp9_d117_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
47
specialize vp9_d117_predictor_4x4
48

49
prototype void vp9_d135_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
50
specialize vp9_d135_predictor_4x4
51

52
prototype void vp9_d153_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
53
specialize vp9_d153_predictor_4x4 $ssse3_x86inc
54

55
prototype void vp9_v_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
Jim Bankoski's avatar
Jim Bankoski committed
56
specialize vp9_v_predictor_4x4 $sse_x86inc
57

58
prototype void vp9_tm_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
59
specialize vp9_tm_predictor_4x4 $sse_x86inc dspr2
60

61
prototype void vp9_dc_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
62
specialize vp9_dc_predictor_4x4 $sse_x86inc dspr2
63

64
prototype void vp9_dc_top_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
65
specialize vp9_dc_top_predictor_4x4
66

67
prototype void vp9_dc_left_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
68
specialize vp9_dc_left_predictor_4x4
69

70
prototype void vp9_dc_128_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
71
72
specialize vp9_dc_128_predictor_4x4

73
prototype void vp9_d207_predictor_8x8 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
74
specialize vp9_d207_predictor_8x8 $ssse3_x86inc
75

76
prototype void vp9_d45_predictor_8x8 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
Jim Bankoski's avatar
Jim Bankoski committed
77
specialize vp9_d45_predictor_8x8 $ssse3_x86inc
78

79
prototype void vp9_d63_predictor_8x8 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
80
specialize vp9_d63_predictor_8x8 $ssse3_x86inc
81

82
prototype void vp9_h_predictor_8x8 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
83
specialize vp9_h_predictor_8x8 $ssse3_x86inc dspr2
84

85
prototype void vp9_d117_predictor_8x8 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
86
87
specialize vp9_d117_predictor_8x8

88
prototype void vp9_d135_predictor_8x8 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
89
90
specialize vp9_d135_predictor_8x8

91
prototype void vp9_d153_predictor_8x8 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
92
specialize vp9_d153_predictor_8x8 $ssse3_x86inc
93

94
prototype void vp9_v_predictor_8x8 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
Jim Bankoski's avatar
Jim Bankoski committed
95
specialize vp9_v_predictor_8x8 $sse_x86inc
96

97
prototype void vp9_tm_predictor_8x8 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
98
specialize vp9_tm_predictor_8x8 $sse2_x86inc dspr2
99

100
prototype void vp9_dc_predictor_8x8 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
101
specialize vp9_dc_predictor_8x8 $sse_x86inc dspr2
102

103
prototype void vp9_dc_top_predictor_8x8 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
104
105
specialize vp9_dc_top_predictor_8x8

106
prototype void vp9_dc_left_predictor_8x8 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
107
108
specialize vp9_dc_left_predictor_8x8

109
prototype void vp9_dc_128_predictor_8x8 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
110
111
specialize vp9_dc_128_predictor_8x8

112
prototype void vp9_d207_predictor_16x16 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
113
specialize vp9_d207_predictor_16x16 $ssse3_x86inc
114

115
prototype void vp9_d45_predictor_16x16 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
Jim Bankoski's avatar
Jim Bankoski committed
116
specialize vp9_d45_predictor_16x16 $ssse3_x86inc
117

118
prototype void vp9_d63_predictor_16x16 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
119
specialize vp9_d63_predictor_16x16 $ssse3_x86inc
120

121
prototype void vp9_h_predictor_16x16 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
122
specialize vp9_h_predictor_16x16 $ssse3_x86inc dspr2
123

124
prototype void vp9_d117_predictor_16x16 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
125
126
specialize vp9_d117_predictor_16x16

127
prototype void vp9_d135_predictor_16x16 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
128
129
specialize vp9_d135_predictor_16x16

130
prototype void vp9_d153_predictor_16x16 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
131
specialize vp9_d153_predictor_16x16 $ssse3_x86inc
132

133
prototype void vp9_v_predictor_16x16 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
Jim Bankoski's avatar
Jim Bankoski committed
134
specialize vp9_v_predictor_16x16 $sse2_x86inc
135

136
prototype void vp9_tm_predictor_16x16 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
Jim Bankoski's avatar
Jim Bankoski committed
137
specialize vp9_tm_predictor_16x16 $sse2_x86inc
138

139
prototype void vp9_dc_predictor_16x16 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
140
specialize vp9_dc_predictor_16x16 $sse2_x86inc dspr2
141

142
prototype void vp9_dc_top_predictor_16x16 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
143
144
specialize vp9_dc_top_predictor_16x16

145
prototype void vp9_dc_left_predictor_16x16 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
146
147
specialize vp9_dc_left_predictor_16x16

148
prototype void vp9_dc_128_predictor_16x16 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
149
150
specialize vp9_dc_128_predictor_16x16

151
prototype void vp9_d207_predictor_32x32 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
152
specialize vp9_d207_predictor_32x32 $ssse3_x86inc
153

154
prototype void vp9_d45_predictor_32x32 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
Jim Bankoski's avatar
Jim Bankoski committed
155
specialize vp9_d45_predictor_32x32 $ssse3_x86inc
156

157
prototype void vp9_d63_predictor_32x32 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
158
specialize vp9_d63_predictor_32x32 $ssse3_x86inc
159

160
prototype void vp9_h_predictor_32x32 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
161
specialize vp9_h_predictor_32x32 $ssse3_x86inc
162

163
prototype void vp9_d117_predictor_32x32 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
164
165
specialize vp9_d117_predictor_32x32

166
prototype void vp9_d135_predictor_32x32 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
167
168
specialize vp9_d135_predictor_32x32

169
prototype void vp9_d153_predictor_32x32 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
170
171
specialize vp9_d153_predictor_32x32

172
prototype void vp9_v_predictor_32x32 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
Jim Bankoski's avatar
Jim Bankoski committed
173
specialize vp9_v_predictor_32x32 $sse2_x86inc
174

175
prototype void vp9_tm_predictor_32x32 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
Jim Bankoski's avatar
Jim Bankoski committed
176
specialize vp9_tm_predictor_32x32 $sse2_x86_64
177

178
prototype void vp9_dc_predictor_32x32 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
Jim Bankoski's avatar
Jim Bankoski committed
179
specialize vp9_dc_predictor_32x32 $sse2_x86inc
180

181
prototype void vp9_dc_top_predictor_32x32 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
182
183
specialize vp9_dc_top_predictor_32x32

184
prototype void vp9_dc_left_predictor_32x32 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
185
186
specialize vp9_dc_left_predictor_32x32

187
prototype void vp9_dc_128_predictor_32x32 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
188
specialize vp9_dc_128_predictor_32x32
189

190
191
192
#
# Loopfilter
#
193
prototype void vp9_mb_lpf_vertical_edge_w "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh"
194
specialize vp9_mb_lpf_vertical_edge_w sse2 neon
195
196

prototype void vp9_mbloop_filter_vertical_edge "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count"
197
specialize vp9_mbloop_filter_vertical_edge sse2 neon
198
199

prototype void vp9_loop_filter_vertical_edge "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count"
200
specialize vp9_loop_filter_vertical_edge mmx neon
201

202
prototype void vp9_mb_lpf_horizontal_edge_w "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count"
203
specialize vp9_mb_lpf_horizontal_edge_w sse2 avx2 neon
204
205

prototype void vp9_mbloop_filter_horizontal_edge "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count"
206
specialize vp9_mbloop_filter_horizontal_edge sse2 neon
207
208

prototype void vp9_loop_filter_horizontal_edge "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count"
209
specialize vp9_loop_filter_horizontal_edge mmx neon
210

Jim Bankoski's avatar
Jim Bankoski committed
211
212
213
#
# post proc
#
214
if [ "$CONFIG_VP9_POSTPROC" = "yes" ]; then
215
prototype void vp9_mbpost_proc_down "uint8_t *dst, int pitch, int rows, int cols, int flimit"
Jim Bankoski's avatar
Jim Bankoski committed
216
217
218
specialize vp9_mbpost_proc_down mmx sse2
vp9_mbpost_proc_down_sse2=vp9_mbpost_proc_down_xmm

219
prototype void vp9_mbpost_proc_across_ip "uint8_t *src, int pitch, int rows, int cols, int flimit"
Jim Bankoski's avatar
Jim Bankoski committed
220
221
222
specialize vp9_mbpost_proc_across_ip sse2
vp9_mbpost_proc_across_ip_sse2=vp9_mbpost_proc_across_ip_xmm

223
prototype void vp9_post_proc_down_and_across "const uint8_t *src_ptr, uint8_t *dst_ptr, int src_pixels_per_line, int dst_pixels_per_line, int rows, int cols, int flimit"
Jim Bankoski's avatar
Jim Bankoski committed
224
225
226
specialize vp9_post_proc_down_and_across mmx sse2
vp9_post_proc_down_and_across_sse2=vp9_post_proc_down_and_across_xmm

227
prototype void vp9_plane_add_noise "uint8_t *Start, char *noise, char blackclamp[16], char whiteclamp[16], char bothclamp[16], unsigned int Width, unsigned int Height, int Pitch"
Jim Bankoski's avatar
Jim Bankoski committed
228
229
specialize vp9_plane_add_noise mmx sse2
vp9_plane_add_noise_sse2=vp9_plane_add_noise_wmt
230
fi
Jim Bankoski's avatar
Jim Bankoski committed
231

232
prototype void vp9_blend_mb_inner "uint8_t *y, uint8_t *u, uint8_t *v, int y1, int u1, int v1, int alpha, int stride"
Jim Bankoski's avatar
Jim Bankoski committed
233
234
specialize vp9_blend_mb_inner

235
prototype void vp9_blend_mb_outer "uint8_t *y, uint8_t *u, uint8_t *v, int y1, int u1, int v1, int alpha, int stride"
Jim Bankoski's avatar
Jim Bankoski committed
236
237
specialize vp9_blend_mb_outer

238
prototype void vp9_blend_b "uint8_t *y, uint8_t *u, uint8_t *v, int y1, int u1, int v1, int alpha, int stride"
Jim Bankoski's avatar
Jim Bankoski committed
239
240
specialize vp9_blend_b

241
242
243
#
# Sub Pixel Filters
#
244
prototype void vp9_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"
245
specialize vp9_convolve_copy $sse2_x86inc neon dspr2
246
247

prototype void vp9_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"
248
specialize vp9_convolve_avg $sse2_x86inc neon dspr2
249
250

prototype void vp9_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"
251
specialize vp9_convolve8 sse2 ssse3 neon dspr2
252

253
prototype void vp9_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"
254
specialize vp9_convolve8_horiz sse2 ssse3 neon dspr2
255

256
prototype void vp9_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"
257
specialize vp9_convolve8_vert sse2 ssse3 neon dspr2
258

259
prototype void vp9_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"
260
specialize vp9_convolve8_avg sse2 ssse3 neon dspr2
261

262
prototype void vp9_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"
263
specialize vp9_convolve8_avg_horiz sse2 ssse3 neon dspr2
264

265
prototype void vp9_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"
266
specialize vp9_convolve8_avg_vert sse2 ssse3 neon dspr2
267

268
269
270
#
# dct
#
271
prototype void vp9_idct4x4_1_add "const int16_t *input, uint8_t *dest, int dest_stride"
272
specialize vp9_idct4x4_1_add sse2 neon dspr2
273

274
prototype void vp9_idct4x4_16_add "const int16_t *input, uint8_t *dest, int dest_stride"
275
specialize vp9_idct4x4_16_add sse2 neon dspr2
276

277
prototype void vp9_idct8x8_1_add "const int16_t *input, uint8_t *dest, int dest_stride"
278
specialize vp9_idct8x8_1_add sse2 neon dspr2
279

280
prototype void vp9_idct8x8_64_add "const int16_t *input, uint8_t *dest, int dest_stride"
281
specialize vp9_idct8x8_64_add sse2 neon dspr2
282

283
prototype void vp9_idct8x8_10_add "const int16_t *input, uint8_t *dest, int dest_stride"
284
specialize vp9_idct8x8_10_add sse2 neon dspr2
285

286
prototype void vp9_idct16x16_1_add "const int16_t *input, uint8_t *dest, int dest_stride"
287
specialize vp9_idct16x16_1_add sse2 neon dspr2
288

289
prototype void vp9_idct16x16_256_add "const int16_t *input, uint8_t *dest, int dest_stride"
290
specialize vp9_idct16x16_256_add sse2 neon dspr2
291

292
prototype void vp9_idct16x16_10_add "const int16_t *input, uint8_t *dest, int dest_stride"
293
specialize vp9_idct16x16_10_add sse2 neon dspr2
294

295
prototype void vp9_idct32x32_1024_add "const int16_t *input, uint8_t *dest, int dest_stride"
296
specialize vp9_idct32x32_1024_add sse2 neon dspr2
297

298
prototype void vp9_idct32x32_34_add "const int16_t *input, uint8_t *dest, int dest_stride"
299
specialize vp9_idct32x32_34_add sse2 dspr2
300

301
prototype void vp9_idct32x32_1_add "const int16_t *input, uint8_t *dest, int dest_stride"
302
specialize vp9_idct32x32_1_add sse2 neon dspr2
303

304
prototype void vp9_iht4x4_16_add "const int16_t *input, uint8_t *dest, int dest_stride, int tx_type"
305
specialize vp9_iht4x4_16_add sse2 neon dspr2
Scott LaVarnway's avatar
Scott LaVarnway committed
306

307
prototype void vp9_iht8x8_64_add "const int16_t *input, uint8_t *dest, int dest_stride, int tx_type"
308
specialize vp9_iht8x8_64_add sse2 neon dspr2
309

310
prototype void vp9_iht16x16_256_add "const int16_t *input, uint8_t *output, int pitch, int tx_type"
311
specialize vp9_iht16x16_256_add sse2 dspr2
312
313
314

# dct and add

315
prototype void vp9_iwht4x4_1_add "const int16_t *input, uint8_t *dest, int dest_stride"
316
specialize vp9_iwht4x4_1_add
Scott LaVarnway's avatar
Scott LaVarnway committed
317

318
prototype void vp9_iwht4x4_16_add "const int16_t *input, uint8_t *dest, int dest_stride"
319
specialize vp9_iwht4x4_16_add
320

321
322
323
#
# Encoder functions below this point.
#
324
if [ "$CONFIG_VP9_ENCODER" = "yes" ]; then
325
326
327


# variance
328
prototype unsigned int vp9_variance32x16 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
329
specialize vp9_variance32x16 $sse2_x86inc
330
331

prototype unsigned int vp9_variance16x32 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
332
specialize vp9_variance16x32 $sse2_x86inc
333
334

prototype unsigned int vp9_variance64x32 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
335
specialize vp9_variance64x32 $sse2_x86inc
336
337

prototype unsigned int vp9_variance32x64 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
338
specialize vp9_variance32x64 $sse2_x86inc
339

340
prototype unsigned int vp9_variance32x32 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
341
specialize vp9_variance32x32 $sse2_x86inc
342

Ronald S. Bultje's avatar
Ronald S. Bultje committed
343
prototype unsigned int vp9_variance64x64 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
344
specialize vp9_variance64x64 $sse2_x86inc
Ronald S. Bultje's avatar
Ronald S. Bultje committed
345

346
prototype unsigned int vp9_variance16x16 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
347
specialize vp9_variance16x16 mmx $sse2_x86inc
348

349
prototype unsigned int vp9_variance16x8 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
350
specialize vp9_variance16x8 mmx $sse2_x86inc
351

352
prototype unsigned int vp9_variance8x16 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
353
specialize vp9_variance8x16 mmx $sse2_x86inc
354

355
prototype unsigned int vp9_variance8x8 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
356
specialize vp9_variance8x8 mmx $sse2_x86inc
357

Jim Bankoski's avatar
Jim Bankoski committed
358
359
360
361
prototype void vp9_get_sse_sum_8x8 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum"
specialize vp9_get_sse_sum_8x8 sse2
vp9_get_sse_sum_8x8_sse2=vp9_get8x8var_sse2

362
prototype unsigned int vp9_variance8x4 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
363
specialize vp9_variance8x4 $sse2_x86inc
364
365

prototype unsigned int vp9_variance4x8 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
366
specialize vp9_variance4x8 $sse2_x86inc
367

368
prototype unsigned int vp9_variance4x4 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
369
specialize vp9_variance4x4 mmx $sse2_x86inc
370

Yaowu Xu's avatar
Yaowu Xu committed
371
prototype unsigned int vp9_sub_pixel_variance64x64 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
372
specialize vp9_sub_pixel_variance64x64 $sse2_x86inc $ssse3_x86inc
Ronald S. Bultje's avatar
Ronald S. Bultje committed
373

374
prototype unsigned int vp9_sub_pixel_avg_variance64x64 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred"
Jim Bankoski's avatar
Jim Bankoski committed
375
specialize vp9_sub_pixel_avg_variance64x64 $sse2_x86inc $ssse3_x86inc
376

377
prototype unsigned int vp9_sub_pixel_variance32x64 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
378
specialize vp9_sub_pixel_variance32x64 $sse2_x86inc $ssse3_x86inc
379

380
prototype unsigned int vp9_sub_pixel_avg_variance32x64 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred"
Jim Bankoski's avatar
Jim Bankoski committed
381
specialize vp9_sub_pixel_avg_variance32x64 $sse2_x86inc $ssse3_x86inc
382

383
prototype unsigned int vp9_sub_pixel_variance64x32 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
384
specialize vp9_sub_pixel_variance64x32 $sse2_x86inc $ssse3_x86inc
385

386
prototype unsigned int vp9_sub_pixel_avg_variance64x32 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred"
Jim Bankoski's avatar
Jim Bankoski committed
387
specialize vp9_sub_pixel_avg_variance64x32 $sse2_x86inc $ssse3_x86inc
388

389
prototype unsigned int vp9_sub_pixel_variance32x16 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
390
specialize vp9_sub_pixel_variance32x16 $sse2_x86inc $ssse3_x86inc
391

392
prototype unsigned int vp9_sub_pixel_avg_variance32x16 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred"
Jim Bankoski's avatar
Jim Bankoski committed
393
specialize vp9_sub_pixel_avg_variance32x16 $sse2_x86inc $ssse3_x86inc
394

395
prototype unsigned int vp9_sub_pixel_variance16x32 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
396
specialize vp9_sub_pixel_variance16x32 $sse2_x86inc $ssse3_x86inc
397

398
prototype unsigned int vp9_sub_pixel_avg_variance16x32 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred"
Jim Bankoski's avatar
Jim Bankoski committed
399
specialize vp9_sub_pixel_avg_variance16x32 $sse2_x86inc $ssse3_x86inc
400

Yaowu Xu's avatar
Yaowu Xu committed
401
prototype unsigned int vp9_sub_pixel_variance32x32 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
402
specialize vp9_sub_pixel_variance32x32 $sse2_x86inc $ssse3_x86inc
403

404
prototype unsigned int vp9_sub_pixel_avg_variance32x32 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred"
Jim Bankoski's avatar
Jim Bankoski committed
405
specialize vp9_sub_pixel_avg_variance32x32 $sse2_x86inc $ssse3_x86inc
406

Yaowu Xu's avatar
Yaowu Xu committed
407
prototype unsigned int vp9_sub_pixel_variance16x16 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
408
specialize vp9_sub_pixel_variance16x16 $sse2_x86inc $ssse3_x86inc
409

410
prototype unsigned int vp9_sub_pixel_avg_variance16x16 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred"
Jim Bankoski's avatar
Jim Bankoski committed
411
specialize vp9_sub_pixel_avg_variance16x16 $sse2_x86inc $ssse3_x86inc
412

Yaowu Xu's avatar
Yaowu Xu committed
413
prototype unsigned int vp9_sub_pixel_variance8x16 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
414
specialize vp9_sub_pixel_variance8x16 $sse2_x86inc $ssse3_x86inc
415

416
prototype unsigned int vp9_sub_pixel_avg_variance8x16 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred"
Jim Bankoski's avatar
Jim Bankoski committed
417
specialize vp9_sub_pixel_avg_variance8x16 $sse2_x86inc $ssse3_x86inc
418

Yaowu Xu's avatar
Yaowu Xu committed
419
prototype unsigned int vp9_sub_pixel_variance16x8 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
420
specialize vp9_sub_pixel_variance16x8 $sse2_x86inc $ssse3_x86inc
421

422
prototype unsigned int vp9_sub_pixel_avg_variance16x8 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred"
Jim Bankoski's avatar
Jim Bankoski committed
423
specialize vp9_sub_pixel_avg_variance16x8 $sse2_x86inc $ssse3_x86inc
424

Yaowu Xu's avatar
Yaowu Xu committed
425
prototype unsigned int vp9_sub_pixel_variance8x8 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
426
specialize vp9_sub_pixel_variance8x8 $sse2_x86inc $ssse3_x86inc
427

428
prototype unsigned int vp9_sub_pixel_avg_variance8x8 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred"
Jim Bankoski's avatar
Jim Bankoski committed
429
specialize vp9_sub_pixel_avg_variance8x8 $sse2_x86inc $ssse3_x86inc
430

431
432
# TODO(jingning): need to convert 8x4/4x8 functions into mmx/sse form
prototype unsigned int vp9_sub_pixel_variance8x4 "const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
433
specialize vp9_sub_pixel_variance8x4 $sse2_x86inc $ssse3_x86inc
434
435

prototype unsigned int vp9_sub_pixel_avg_variance8x4 "const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred"
Jim Bankoski's avatar
Jim Bankoski committed
436
specialize vp9_sub_pixel_avg_variance8x4 $sse2_x86inc $ssse3_x86inc
437
438

prototype unsigned int vp9_sub_pixel_variance4x8 "const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
439
specialize vp9_sub_pixel_variance4x8 $sse_x86inc $ssse3_x86inc
440
441

prototype unsigned int vp9_sub_pixel_avg_variance4x8 "const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred"
Jim Bankoski's avatar
Jim Bankoski committed
442
specialize vp9_sub_pixel_avg_variance4x8 $sse_x86inc $ssse3_x86inc
443

Yaowu Xu's avatar
Yaowu Xu committed
444
prototype unsigned int vp9_sub_pixel_variance4x4 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
445
specialize vp9_sub_pixel_variance4x4 $sse_x86inc $ssse3_x86inc
446
#vp9_sub_pixel_variance4x4_sse2=vp9_sub_pixel_variance4x4_wmt
447

448
prototype unsigned int vp9_sub_pixel_avg_variance4x4 "const uint8_t *src_ptr, int source_stride, int xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred"
Jim Bankoski's avatar
Jim Bankoski committed
449
specialize vp9_sub_pixel_avg_variance4x4 $sse_x86inc $ssse3_x86inc
450

Ronald S. Bultje's avatar
Ronald S. Bultje committed
451
prototype unsigned int vp9_sad64x64 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
452
specialize vp9_sad64x64 $sse2_x86inc
Ronald S. Bultje's avatar
Ronald S. Bultje committed
453

454
prototype unsigned int vp9_sad32x64 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
455
specialize vp9_sad32x64 $sse2_x86inc
456
457

prototype unsigned int vp9_sad64x32 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
458
specialize vp9_sad64x32 $sse2_x86inc
459
460

prototype unsigned int vp9_sad32x16 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
461
specialize vp9_sad32x16 $sse2_x86inc
462
463

prototype unsigned int vp9_sad16x32 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
464
specialize vp9_sad16x32 $sse2_x86inc
465

466
prototype unsigned int vp9_sad32x32 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
467
specialize vp9_sad32x32 $sse2_x86inc
468

469
prototype unsigned int vp9_sad16x16 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
470
specialize vp9_sad16x16 mmx $sse2_x86inc
471

472
prototype unsigned int vp9_sad16x8 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
473
specialize vp9_sad16x8 mmx $sse2_x86inc
474

475
prototype unsigned int vp9_sad8x16 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
476
specialize vp9_sad8x16 mmx $sse2_x86inc
477

478
prototype unsigned int vp9_sad8x8 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
479
specialize vp9_sad8x8 mmx $sse2_x86inc
480

481
prototype unsigned int vp9_sad8x4 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
482
specialize vp9_sad8x4 $sse2_x86inc
483
484

prototype unsigned int vp9_sad4x8 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
485
specialize vp9_sad4x8 $sse_x86inc
486

487
prototype unsigned int vp9_sad4x4 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
488
specialize vp9_sad4x4 mmx $sse_x86inc
489

490
prototype unsigned int vp9_sad64x64_avg "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, const uint8_t *second_pred, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
491
specialize vp9_sad64x64_avg $sse2_x86inc
492
493

prototype unsigned int vp9_sad32x64_avg "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
494
specialize vp9_sad32x64_avg $sse2_x86inc
495
496

prototype unsigned int vp9_sad64x32_avg "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
497
specialize vp9_sad64x32_avg $sse2_x86inc
498
499

prototype unsigned int vp9_sad32x16_avg "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
500
specialize vp9_sad32x16_avg $sse2_x86inc
501
502

prototype unsigned int vp9_sad16x32_avg "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
503
specialize vp9_sad16x32_avg $sse2_x86inc
504
505

prototype unsigned int vp9_sad32x32_avg "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, const uint8_t *second_pred, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
506
specialize vp9_sad32x32_avg $sse2_x86inc
507
508

prototype unsigned int vp9_sad16x16_avg "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, const uint8_t *second_pred, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
509
specialize vp9_sad16x16_avg $sse2_x86inc
510
511

prototype unsigned int vp9_sad16x8_avg "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, const uint8_t *second_pred, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
512
specialize vp9_sad16x8_avg $sse2_x86inc
513
514

prototype unsigned int vp9_sad8x16_avg "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, const uint8_t *second_pred, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
515
specialize vp9_sad8x16_avg $sse2_x86inc
516
517

prototype unsigned int vp9_sad8x8_avg "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, const uint8_t *second_pred, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
518
specialize vp9_sad8x8_avg $sse2_x86inc
519
520

prototype unsigned int vp9_sad8x4_avg "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
521
specialize vp9_sad8x4_avg $sse2_x86inc
522
523

prototype unsigned int vp9_sad4x8_avg "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
524
specialize vp9_sad4x8_avg $sse_x86inc
525
526

prototype unsigned int vp9_sad4x4_avg "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, const uint8_t *second_pred, unsigned int max_sad"
Jim Bankoski's avatar
Jim Bankoski committed
527
specialize vp9_sad4x4_avg $sse_x86inc
528

529
prototype unsigned int vp9_variance_halfpixvar16x16_h "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
530
specialize vp9_variance_halfpixvar16x16_h $sse2_x86inc
531

532
prototype unsigned int vp9_variance_halfpixvar16x16_v "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
533
specialize vp9_variance_halfpixvar16x16_v $sse2_x86inc
534

535
prototype unsigned int vp9_variance_halfpixvar16x16_hv "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
536
specialize vp9_variance_halfpixvar16x16_hv $sse2_x86inc
537

Ronald S. Bultje's avatar
Ronald S. Bultje committed
538
539
540
541
542
543
544
545
546
prototype unsigned int vp9_variance_halfpixvar64x64_h "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
specialize vp9_variance_halfpixvar64x64_h

prototype unsigned int vp9_variance_halfpixvar64x64_v "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
specialize vp9_variance_halfpixvar64x64_v

prototype unsigned int vp9_variance_halfpixvar64x64_hv "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
specialize vp9_variance_halfpixvar64x64_hv

547
prototype unsigned int vp9_variance_halfpixvar32x32_h "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
548
specialize vp9_variance_halfpixvar32x32_h
549

550
prototype unsigned int vp9_variance_halfpixvar32x32_v "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
551
specialize vp9_variance_halfpixvar32x32_v
552

553
prototype unsigned int vp9_variance_halfpixvar32x32_hv "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
554
specialize vp9_variance_halfpixvar32x32_hv
555

Ronald S. Bultje's avatar
Ronald S. Bultje committed
556
557
558
prototype void vp9_sad64x64x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
specialize vp9_sad64x64x3

559
prototype void vp9_sad32x32x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
560
specialize vp9_sad32x32x3
561

562
prototype void vp9_sad16x16x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
563
specialize vp9_sad16x16x3 sse3 ssse3
564

565
prototype void vp9_sad16x8x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
566
specialize vp9_sad16x8x3 sse3 ssse3
567

568
prototype void vp9_sad8x16x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
569
specialize vp9_sad8x16x3 sse3
570

571
prototype void vp9_sad8x8x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
572
specialize vp9_sad8x8x3 sse3
573

574
prototype void vp9_sad4x4x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
575
specialize vp9_sad4x4x3 sse3
576

577
prototype void vp9_sad64x64x8 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int  ref_stride, uint32_t *sad_array"
Ronald S. Bultje's avatar
Ronald S. Bultje committed
578
579
specialize vp9_sad64x64x8

580
prototype void vp9_sad32x32x8 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int  ref_stride, uint32_t *sad_array"
581
specialize vp9_sad32x32x8
582

583
prototype void vp9_sad16x16x8 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int  ref_stride, uint32_t *sad_array"
584
specialize vp9_sad16x16x8 sse4
585

586
prototype void vp9_sad16x8x8 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int  ref_stride, uint32_t *sad_array"
587
specialize vp9_sad16x8x8 sse4
588

589
prototype void vp9_sad8x16x8 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int  ref_stride, uint32_t *sad_array"
590
specialize vp9_sad8x16x8 sse4
591

592
prototype void vp9_sad8x8x8 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int  ref_stride, uint32_t *sad_array"
593
specialize vp9_sad8x8x8 sse4
594

595
596
597
598
599
600
prototype void vp9_sad8x4x8 "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array"
specialize vp9_sad8x4x8

prototype void vp9_sad4x8x8 "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array"
specialize vp9_sad4x8x8

601
prototype void vp9_sad4x4x8 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int  ref_stride, uint32_t *sad_array"
602
specialize vp9_sad4x4x8 sse4
603

604
prototype void vp9_sad64x64x4d "const uint8_t *src_ptr, int  src_stride, const uint8_t* const ref_ptr[], int  ref_stride, unsigned int *sad_array"
605
specialize vp9_sad64x64x4d sse2
Ronald S. Bultje's avatar
Ronald S. Bultje committed
606

607
prototype void vp9_sad32x64x4d "const uint8_t *src_ptr, int  src_stride, const uint8_t* const ref_ptr[], int  ref_stride, unsigned int *sad_array"
608
specialize vp9_sad32x64x4d sse2
609
610

prototype void vp9_sad64x32x4d "const uint8_t *src_ptr, int  src_stride, const uint8_t* const ref_ptr[], int  ref_stride, unsigned int *sad_array"
611
specialize vp9_sad64x32x4d sse2
612
613

prototype void vp9_sad32x16x4d "const uint8_t *src_ptr, int  src_stride, const uint8_t* const ref_ptr[], int  ref_stride, unsigned int *sad_array"
614
specialize vp9_sad32x16x4d sse2
615
616

prototype void vp9_sad16x32x4d "const uint8_t *src_ptr, int  src_stride, const uint8_t* const ref_ptr[], int  ref_stride, unsigned int *sad_array"
617
618
specialize vp9_sad16x32x4d sse2

619
prototype void vp9_sad32x32x4d "const uint8_t *src_ptr, int  src_stride, const uint8_t* const ref_ptr[], int  ref_stride, unsigned int *sad_array"
620
specialize vp9_sad32x32x4d sse2
621

622
prototype void vp9_sad16x16x4d "const uint8_t *src_ptr, int  src_stride, const uint8_t* const ref_ptr[], int  ref_stride, unsigned int *sad_array"
623
specialize vp9_sad16x16x4d sse2
624

625
prototype void vp9_sad16x8x4d "const uint8_t *src_ptr, int  src_stride, const uint8_t* const ref_ptr[], int  ref_stride, unsigned int *sad_array"
626
specialize vp9_sad16x8x4d sse2
627

628
prototype void vp9_sad8x16x4d "const uint8_t *src_ptr, int  src_stride, const uint8_t* const ref_ptr[], int  ref_stride, unsigned int *sad_array"
629
specialize vp9_sad8x16x4d sse2
630

631
prototype void vp9_sad8x8x4d "const uint8_t *src_ptr, int  src_stride, const uint8_t* const ref_ptr[], int  ref_stride, unsigned int *sad_array"
632
specialize vp9_sad8x8x4d sse2
633

634
635
# TODO(jingning): need to convert these 4x8/8x4 functions into sse2 form
prototype void vp9_sad8x4x4d "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, unsigned int *sad_array"
636
specialize vp9_sad8x4x4d sse2
637
638

prototype void vp9_sad4x8x4d "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, unsigned int *sad_array"
639
specialize vp9_sad4x8x4d sse
640

641
prototype void vp9_sad4x4x4d "const uint8_t *src_ptr, int  src_stride, const uint8_t* const ref_ptr[], int  ref_stride, unsigned int *sad_array"
642
specialize vp9_sad4x4x4d sse
643

644
645
#prototype unsigned int vp9_sub_pixel_mse16x16 "const uint8_t *src_ptr, int  src_pixels_per_line, int  xoffset, int  yoffset, const uint8_t *dst_ptr, int dst_pixels_per_line, unsigned int *sse"
#specialize vp9_sub_pixel_mse16x16 sse2 mmx
646

647
prototype unsigned int vp9_mse16x16 "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse"
Jim Bankoski's avatar
Jim Bankoski committed
648
specialize vp9_mse16x16 mmx $sse2_x86inc
649

650
651
652
653
654
655
656
657
658
prototype unsigned int vp9_mse8x16 "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse"
specialize vp9_mse8x16

prototype unsigned int vp9_mse16x8 "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse"
specialize vp9_mse16x8

prototype unsigned int vp9_mse8x8 "const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse"
specialize vp9_mse8x8

Yaowu Xu's avatar
Yaowu Xu committed
659
prototype unsigned int vp9_sub_pixel_mse64x64 "const uint8_t *src_ptr, int  source_stride, int  xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
Ronald S. Bultje's avatar
Ronald S. Bultje committed
660
661
specialize vp9_sub_pixel_mse64x64

Yaowu Xu's avatar
Yaowu Xu committed
662
prototype unsigned int vp9_sub_pixel_mse32x32 "const uint8_t *src_ptr, int  source_stride, int  xoffset, int  yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
663
specialize vp9_sub_pixel_mse32x32
664

665
prototype unsigned int vp9_get_mb_ss "const int16_t *"
Ronald S. Bultje's avatar