vp9_rtcd_defs.sh 42.9 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
25
[ "$CONFIG_USE_X86INC" = "yes" ] && mmx_x86inc=mmx && sse_x86inc=sse &&
  sse2_x86inc=sse2 && ssse3_x86inc=ssse3
26
27

# this variable is for functions that are 64 bit only.
Jim Bankoski's avatar
Jim Bankoski committed
28
[ $arch = "x86_64" ] && mmx_x86_64=mmx && sse2_x86_64=sse2 && ssse3_x86_64=ssse3
29

Scott LaVarnway's avatar
Scott LaVarnway committed
30
31
32
33
#
# Dequant
#

34
35
prototype void vp9_idct_add_16x16 "int16_t *input, uint8_t *dest, int stride, int eob"
specialize vp9_idct_add_16x16
Scott LaVarnway's avatar
Scott LaVarnway committed
36

37
38
prototype void vp9_idct_add_8x8 "int16_t *input, uint8_t *dest, int stride, int eob"
specialize vp9_idct_add_8x8
39

40
41
prototype void vp9_idct_add "int16_t *input, uint8_t *dest, int stride, int eob"
specialize vp9_idct_add
Scott LaVarnway's avatar
Scott LaVarnway committed
42

43
44
prototype void vp9_idct_add_32x32 "int16_t *q, uint8_t *dst, int stride, int eob"
specialize vp9_idct_add_32x32
45

Jim Bankoski's avatar
Jim Bankoski committed
46
47
48
#
# RECON
#
49
50
prototype void vp9_d207_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
specialize vp9_d207_predictor_4x4
51

52
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
53
specialize vp9_d45_predictor_4x4 $ssse3_x86inc
54

55
prototype void vp9_d63_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
56
specialize vp9_d63_predictor_4x4 $ssse3_x86inc
57

58
prototype void vp9_h_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
Jim Bankoski's avatar
Jim Bankoski committed
59
specialize vp9_h_predictor_4x4 $ssse3_x86inc
60

61
prototype void vp9_d117_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
62
specialize vp9_d117_predictor_4x4
63

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

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

70
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
71
specialize vp9_v_predictor_4x4 $sse_x86inc
72

73
prototype void vp9_tm_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
Jim Bankoski's avatar
Jim Bankoski committed
74
specialize vp9_tm_predictor_4x4 $sse_x86inc
75

76
prototype void vp9_dc_predictor_4x4 "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_dc_predictor_4x4 $sse_x86inc
78

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

82
prototype void vp9_dc_left_predictor_4x4 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
83
specialize vp9_dc_left_predictor_4x4
84

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

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

91
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
92
specialize vp9_d45_predictor_8x8 $ssse3_x86inc
93

94
prototype void vp9_d63_predictor_8x8 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
95
specialize vp9_d63_predictor_8x8 $ssse3_x86inc
96

97
prototype void vp9_h_predictor_8x8 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
Jim Bankoski's avatar
Jim Bankoski committed
98
specialize vp9_h_predictor_8x8 $ssse3_x86inc
99

100
prototype void vp9_d117_predictor_8x8 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
101
102
specialize vp9_d117_predictor_8x8

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

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

109
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
110
specialize vp9_v_predictor_8x8 $sse_x86inc
111

112
prototype void vp9_tm_predictor_8x8 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
Jim Bankoski's avatar
Jim Bankoski committed
113
specialize vp9_tm_predictor_8x8 $sse2_x86inc
114

115
prototype void vp9_dc_predictor_8x8 "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_dc_predictor_8x8 $sse_x86inc
117

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

121
prototype void vp9_dc_left_predictor_8x8 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
122
123
specialize vp9_dc_left_predictor_8x8

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

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

130
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
131
specialize vp9_d45_predictor_16x16 $ssse3_x86inc
132

133
prototype void vp9_d63_predictor_16x16 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
134
specialize vp9_d63_predictor_16x16 $ssse3_x86inc
135

136
prototype void vp9_h_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_h_predictor_16x16 $ssse3_x86inc
138

139
prototype void vp9_d117_predictor_16x16 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
140
141
specialize vp9_d117_predictor_16x16

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

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

148
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
149
specialize vp9_v_predictor_16x16 $sse2_x86inc
150

151
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
152
specialize vp9_tm_predictor_16x16 $sse2_x86inc
153

154
prototype void vp9_dc_predictor_16x16 "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_dc_predictor_16x16 $sse2_x86inc
156

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

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

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

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

169
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
170
specialize vp9_d45_predictor_32x32 $ssse3_x86inc
171

172
prototype void vp9_d63_predictor_32x32 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
173
specialize vp9_d63_predictor_32x32 $ssse3_x86inc
174

175
prototype void vp9_h_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_h_predictor_32x32 $ssse3 x86inc
177

178
prototype void vp9_d117_predictor_32x32 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
179
180
specialize vp9_d117_predictor_32x32

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

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

187
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
188
specialize vp9_v_predictor_32x32 $sse2_x86inc
189

190
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
191
specialize vp9_tm_predictor_32x32 $sse2_x86_64
192

193
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
194
specialize vp9_dc_predictor_32x32 $sse2_x86inc
195

196
prototype void vp9_dc_top_predictor_32x32 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
197
198
specialize vp9_dc_top_predictor_32x32

199
prototype void vp9_dc_left_predictor_32x32 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
200
201
specialize vp9_dc_left_predictor_32x32

202
prototype void vp9_dc_128_predictor_32x32 "uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left"
203
specialize vp9_dc_128_predictor_32x32
204

205
206
207
#
# Loopfilter
#
208
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"
209
specialize vp9_mb_lpf_vertical_edge_w sse2 neon
210
211

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"
212
specialize vp9_mbloop_filter_vertical_edge sse2 neon
213
214

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"
215
specialize vp9_loop_filter_vertical_edge mmx neon
216

217
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"
218
specialize vp9_mb_lpf_horizontal_edge_w sse2 neon
219
220

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"
221
specialize vp9_mbloop_filter_horizontal_edge sse2 neon
222
223

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"
224
specialize vp9_loop_filter_horizontal_edge mmx neon
225

Jim Bankoski's avatar
Jim Bankoski committed
226
227
228
#
# post proc
#
229
if [ "$CONFIG_VP9_POSTPROC" = "yes" ]; then
230
prototype void vp9_mbpost_proc_down "uint8_t *dst, int pitch, int rows, int cols, int flimit"
Jim Bankoski's avatar
Jim Bankoski committed
231
232
233
specialize vp9_mbpost_proc_down mmx sse2
vp9_mbpost_proc_down_sse2=vp9_mbpost_proc_down_xmm

234
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
235
236
237
specialize vp9_mbpost_proc_across_ip sse2
vp9_mbpost_proc_across_ip_sse2=vp9_mbpost_proc_across_ip_xmm

238
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
239
240
241
specialize vp9_post_proc_down_and_across mmx sse2
vp9_post_proc_down_and_across_sse2=vp9_post_proc_down_and_across_xmm

242
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
243
244
specialize vp9_plane_add_noise mmx sse2
vp9_plane_add_noise_sse2=vp9_plane_add_noise_wmt
245
fi
Jim Bankoski's avatar
Jim Bankoski committed
246

247
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
248
249
specialize vp9_blend_mb_inner

250
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
251
252
specialize vp9_blend_mb_outer

253
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
254
255
specialize vp9_blend_b

256
257
258
#
# Sub Pixel Filters
#
259
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"
260
specialize vp9_convolve_copy $sse2_x86inc neon dspr2
261
262

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"
263
specialize vp9_convolve_avg $sse2_x86inc neon dspr2
264
265

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"
266
specialize vp9_convolve8 ssse3 neon dspr2
267

268
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"
269
specialize vp9_convolve8_horiz ssse3 neon dspr2
270

271
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"
272
specialize vp9_convolve8_vert ssse3 neon dspr2
273

274
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"
275
specialize vp9_convolve8_avg ssse3 neon dspr2
276

277
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"
278
specialize vp9_convolve8_avg_horiz ssse3 neon dspr2
279

280
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"
281
specialize vp9_convolve8_avg_vert ssse3 neon dspr2
282

283
284
285
#
# dct
#
Scott LaVarnway's avatar
Scott LaVarnway committed
286
prototype void vp9_short_idct4x4_1_add "int16_t *input, uint8_t *dest, int dest_stride"
287
specialize vp9_short_idct4x4_1_add sse2 neon
288

Scott LaVarnway's avatar
Scott LaVarnway committed
289
prototype void vp9_short_idct4x4_add "int16_t *input, uint8_t *dest, int dest_stride"
290
specialize vp9_short_idct4x4_add sse2 neon
291

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

Scott LaVarnway's avatar
Scott LaVarnway committed
295
prototype void vp9_short_idct8x8_add "int16_t *input, uint8_t *dest, int dest_stride"
296
specialize vp9_short_idct8x8_add sse2 neon
297

298
299
prototype void vp9_short_idct8x8_10_add "int16_t *input, uint8_t *dest, int dest_stride"
specialize vp9_short_idct8x8_10_add sse2 neon
300

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

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

307
308
prototype void vp9_short_idct16x16_10_add "int16_t *input, uint8_t *dest, int dest_stride"
specialize vp9_short_idct16x16_10_add sse2 neon
309

Scott LaVarnway's avatar
Scott LaVarnway committed
310
prototype void vp9_short_idct32x32_add "int16_t *input, uint8_t *dest, int dest_stride"
311
specialize vp9_short_idct32x32_add sse2 neon
312

313
prototype void vp9_short_idct32x32_1_add "int16_t *input, uint8_t *dest, int dest_stride"
314
specialize vp9_short_idct32x32_1_add sse2
315

Scott LaVarnway's avatar
Scott LaVarnway committed
316
prototype void vp9_short_iht4x4_add "int16_t *input, uint8_t *dest, int dest_stride, int tx_type"
317
specialize vp9_short_iht4x4_add sse2 neon
Scott LaVarnway's avatar
Scott LaVarnway committed
318

Scott LaVarnway's avatar
Scott LaVarnway committed
319
prototype void vp9_short_iht8x8_add "int16_t *input, uint8_t *dest, int dest_stride, int tx_type"
320
specialize vp9_short_iht8x8_add sse2 neon
321

Scott LaVarnway's avatar
Scott LaVarnway committed
322
prototype void vp9_short_iht16x16_add "int16_t *input, uint8_t *output, int pitch, int tx_type"
323
specialize vp9_short_iht16x16_add sse2
324

Yunqing Wang's avatar
Yunqing Wang committed
325
326
prototype void vp9_idct4_1d "int16_t *input, int16_t *output"
specialize vp9_idct4_1d sse2
327
328
# dct and add

Scott LaVarnway's avatar
Scott LaVarnway committed
329
330
331
332
333
prototype void vp9_short_iwalsh4x4_1_add "int16_t *input, uint8_t *dest, int dest_stride"
specialize vp9_short_iwalsh4x4_1_add

prototype void vp9_short_iwalsh4x4_add "int16_t *input, uint8_t *dest, int dest_stride"
specialize vp9_short_iwalsh4x4_add
334

335
336
337
#
# Encoder functions below this point.
#
338
if [ "$CONFIG_VP9_ENCODER" = "yes" ]; then
339
340
341


# variance
342
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
343
specialize vp9_variance32x16 $sse2_x86inc
344
345

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
346
specialize vp9_variance16x32 $sse2_x86inc
347
348

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
349
specialize vp9_variance64x32 $sse2_x86inc
350
351

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
352
specialize vp9_variance32x64 $sse2_x86inc
353

354
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
355
specialize vp9_variance32x32 $sse2_x86inc
356

Ronald S. Bultje's avatar
Ronald S. Bultje committed
357
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
358
specialize vp9_variance64x64 $sse2_x86inc
Ronald S. Bultje's avatar
Ronald S. Bultje committed
359

360
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
361
specialize vp9_variance16x16 mmx $sse2_x86inc
362

363
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
364
specialize vp9_variance16x8 mmx $sse2_x86inc
365

366
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
367
specialize vp9_variance8x16 mmx $sse2_x86inc
368

369
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
370
specialize vp9_variance8x8 mmx $sse2_x86inc
371

Jim Bankoski's avatar
Jim Bankoski committed
372
373
374
375
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

376
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
377
specialize vp9_variance8x4 $sse2_x86inc
378
379

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
380
specialize vp9_variance4x8 $sse2_x86inc
381

382
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
383
specialize vp9_variance4x4 mmx $sse2_x86inc
384

Yaowu Xu's avatar
Yaowu Xu committed
385
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
386
specialize vp9_sub_pixel_variance64x64 $sse2_x86inc $ssse3_x86inc
Ronald S. Bultje's avatar
Ronald S. Bultje committed
387

388
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
389
specialize vp9_sub_pixel_avg_variance64x64 $sse2_x86inc $ssse3_x86inc
390

391
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
392
specialize vp9_sub_pixel_variance32x64 $sse2_x86inc $ssse3_x86inc
393

394
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
395
specialize vp9_sub_pixel_avg_variance32x64 $sse2_x86inc $ssse3_x86inc
396

397
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
398
specialize vp9_sub_pixel_variance64x32 $sse2_x86inc $ssse3_x86inc
399

400
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
401
specialize vp9_sub_pixel_avg_variance64x32 $sse2_x86inc $ssse3_x86inc
402

403
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
404
specialize vp9_sub_pixel_variance32x16 $sse2_x86inc $ssse3_x86inc
405

406
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
407
specialize vp9_sub_pixel_avg_variance32x16 $sse2_x86inc $ssse3_x86inc
408

409
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
410
specialize vp9_sub_pixel_variance16x32 $sse2_x86inc $ssse3_x86inc
411

412
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
413
specialize vp9_sub_pixel_avg_variance16x32 $sse2_x86inc $ssse3_x86inc
414

Yaowu Xu's avatar
Yaowu Xu committed
415
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
416
specialize vp9_sub_pixel_variance32x32 $sse2_x86inc $ssse3_x86inc
417

418
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
419
specialize vp9_sub_pixel_avg_variance32x32 $sse2_x86inc $ssse3_x86inc
420

Yaowu Xu's avatar
Yaowu Xu committed
421
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
422
specialize vp9_sub_pixel_variance16x16 $sse2_x86inc $ssse3_x86inc
423

424
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
425
specialize vp9_sub_pixel_avg_variance16x16 $sse2_x86inc $ssse3_x86inc
426

Yaowu Xu's avatar
Yaowu Xu committed
427
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
428
specialize vp9_sub_pixel_variance8x16 $sse2_x86inc $ssse3_x86inc
429

430
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
431
specialize vp9_sub_pixel_avg_variance8x16 $sse2_x86inc $ssse3_x86inc
432

Yaowu Xu's avatar
Yaowu Xu committed
433
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
434
specialize vp9_sub_pixel_variance16x8 $sse2_x86inc $ssse3_x86inc
435

436
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
437
specialize vp9_sub_pixel_avg_variance16x8 $sse2_x86inc $ssse3_x86inc
438

Yaowu Xu's avatar
Yaowu Xu committed
439
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
440
specialize vp9_sub_pixel_variance8x8 $sse2_x86inc $ssse3_x86inc
441

442
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
443
specialize vp9_sub_pixel_avg_variance8x8 $sse2_x86inc $ssse3_x86inc
444

445
446
# 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
447
specialize vp9_sub_pixel_variance8x4 $sse2_x86inc $ssse3_x86inc
448
449

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
450
specialize vp9_sub_pixel_avg_variance8x4 $sse2_x86inc $ssse3_x86inc
451
452

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
453
specialize vp9_sub_pixel_variance4x8 $sse_x86inc $ssse3_x86inc
454
455

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
456
specialize vp9_sub_pixel_avg_variance4x8 $sse_x86inc $ssse3_x86inc
457

Yaowu Xu's avatar
Yaowu Xu committed
458
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
459
specialize vp9_sub_pixel_variance4x4 $sse_x86inc $ssse3_x86inc
460
#vp9_sub_pixel_variance4x4_sse2=vp9_sub_pixel_variance4x4_wmt
461

462
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
463
specialize vp9_sub_pixel_avg_variance4x4 $sse_x86inc $ssse3_x86inc
464

Ronald S. Bultje's avatar
Ronald S. Bultje committed
465
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
466
specialize vp9_sad64x64 $sse2_x86inc
Ronald S. Bultje's avatar
Ronald S. Bultje committed
467

468
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
469
specialize vp9_sad32x64 $sse2_x86inc
470
471

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
472
specialize vp9_sad64x32 $sse2_x86inc
473
474

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
475
specialize vp9_sad32x16 $sse2_x86inc
476
477

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
478
specialize vp9_sad16x32 $sse2_x86inc
479

480
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
481
specialize vp9_sad32x32 $sse2_x86inc
482

483
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
484
specialize vp9_sad16x16 mmx $sse2_x86inc
485

486
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
487
specialize vp9_sad16x8 mmx $sse2_x86inc
488

489
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
490
specialize vp9_sad8x16 mmx $sse2_x86inc
491

492
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
493
specialize vp9_sad8x8 mmx $sse2_x86inc
494

495
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
496
specialize vp9_sad8x4 $sse2_x86inc
497
498

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
499
specialize vp9_sad4x8 $sse_x86inc
500

501
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
502
specialize vp9_sad4x4 mmx $sse_x86inc
503

504
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
505
specialize vp9_sad64x64_avg $sse2_x86inc
506
507

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
508
specialize vp9_sad32x64_avg $sse2_x86inc
509
510

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
511
specialize vp9_sad64x32_avg $sse2_x86inc
512
513

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
514
specialize vp9_sad32x16_avg $sse2_x86inc
515
516

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
517
specialize vp9_sad16x32_avg $sse2_x86inc
518
519

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
520
specialize vp9_sad32x32_avg $sse2_x86inc
521
522

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
523
specialize vp9_sad16x16_avg $sse2_x86inc
524
525

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
526
specialize vp9_sad16x8_avg $sse2_x86inc
527
528

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
529
specialize vp9_sad8x16_avg $sse2_x86inc
530
531

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
532
specialize vp9_sad8x8_avg $sse2_x86inc
533
534

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
535
specialize vp9_sad8x4_avg $sse2_x86inc
536
537

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
538
specialize vp9_sad4x8_avg $sse_x86inc
539
540

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
541
specialize vp9_sad4x4_avg $sse_x86inc
542

543
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
544
specialize vp9_variance_halfpixvar16x16_h $sse2_x86inc
545

546
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
547
specialize vp9_variance_halfpixvar16x16_v $sse2_x86inc
548

549
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
550
specialize vp9_variance_halfpixvar16x16_hv $sse2_x86inc
551

Ronald S. Bultje's avatar
Ronald S. Bultje committed
552
553
554
555
556
557
558
559
560
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

561
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"
562
specialize vp9_variance_halfpixvar32x32_h
563

564
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"
565
specialize vp9_variance_halfpixvar32x32_v
566

567
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"
568
specialize vp9_variance_halfpixvar32x32_hv
569

Ronald S. Bultje's avatar
Ronald S. Bultje committed
570
571
572
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

573
prototype void vp9_sad32x32x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
574
specialize vp9_sad32x32x3
575

576
prototype void vp9_sad16x16x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
577
specialize vp9_sad16x16x3 sse3 ssse3
578

579
prototype void vp9_sad16x8x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
580
specialize vp9_sad16x8x3 sse3 ssse3
581

582
prototype void vp9_sad8x16x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
583
specialize vp9_sad8x16x3 sse3
584

585
prototype void vp9_sad8x8x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
586
specialize vp9_sad8x8x3 sse3
587

588
prototype void vp9_sad4x4x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
589
specialize vp9_sad4x4x3 sse3
590

591
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
592
593
specialize vp9_sad64x64x8

594
prototype void vp9_sad32x32x8 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int  ref_stride, uint32_t *sad_array"
595
specialize vp9_sad32x32x8
596

597
prototype void vp9_sad16x16x8 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int  ref_stride, uint32_t *sad_array"
598
specialize vp9_sad16x16x8 sse4
599

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

603
prototype void vp9_sad8x16x8 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int  ref_stride, uint32_t *sad_array"
604
specialize vp9_sad8x16x8 sse4
605

606
prototype void vp9_sad8x8x8 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int  ref_stride, uint32_t *sad_array"
607
specialize vp9_sad8x8x8 sse4
608

609
610
611
612
613
614
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

615
prototype void vp9_sad4x4x8 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int  ref_stride, uint32_t *sad_array"
616
specialize vp9_sad4x4x8 sse4
617

618
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"
619
specialize vp9_sad64x64x4d sse2
Ronald S. Bultje's avatar
Ronald S. Bultje committed
620

621
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"
622
specialize vp9_sad32x64x4d sse2
623
624

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"
625
specialize vp9_sad64x32x4d sse2
626
627

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"
628
specialize vp9_sad32x16x4d sse2
629
630

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"
631
632
specialize vp9_sad16x32x4d sse2

633
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"
634
specialize vp9_sad32x32x4d sse2
635

636
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"
637
specialize vp9_sad16x16x4d sse2
638

639
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"
640
specialize vp9_sad16x8x4d sse2
641

642
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"
643
specialize vp9_sad8x16x4d sse2
644

645
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"
646
specialize vp9_sad8x8x4d sse2
647

648
649
# 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"
650
specialize vp9_sad8x4x4d sse2