vp9_rtcd_defs.sh 43.5 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
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
96
specialize vp9_d63_predictor_8x8

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
135
specialize vp9_d63_predictor_16x16

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
174
specialize vp9_d63_predictor_32x32

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

Yunqing Wang's avatar
Yunqing Wang committed
205
if [ "$CONFIG_VP9_DECODER" = "yes" ]; then
206
prototype void vp9_add_constant_residual_8x8 "const int16_t diff, uint8_t *dest, int stride"
207
specialize vp9_add_constant_residual_8x8 sse2 neon
208

209
prototype void vp9_add_constant_residual_16x16 "const int16_t diff, uint8_t *dest, int stride"
210
specialize vp9_add_constant_residual_16x16 sse2 neon
211

212
prototype void vp9_add_constant_residual_32x32 "const int16_t diff, uint8_t *dest, int stride"
213
specialize vp9_add_constant_residual_32x32 sse2 neon
Yunqing Wang's avatar
Yunqing Wang committed
214
215
fi

216
217
218
#
# Loopfilter
#
219
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"
220
specialize vp9_mb_lpf_vertical_edge_w sse2 neon
221
222

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"
223
specialize vp9_mbloop_filter_vertical_edge sse2 neon
224
225

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"
226
specialize vp9_loop_filter_vertical_edge mmx neon
227

228
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"
229
specialize vp9_mb_lpf_horizontal_edge_w sse2 neon
230
231

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"
232
specialize vp9_mbloop_filter_horizontal_edge sse2 neon
233
234

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"
235
specialize vp9_loop_filter_horizontal_edge mmx neon
236

Jim Bankoski's avatar
Jim Bankoski committed
237
238
239
#
# post proc
#
240
if [ "$CONFIG_POSTPROC" = "yes" ]; then
241
prototype void vp9_mbpost_proc_down "uint8_t *dst, int pitch, int rows, int cols, int flimit"
Jim Bankoski's avatar
Jim Bankoski committed
242
243
244
specialize vp9_mbpost_proc_down mmx sse2
vp9_mbpost_proc_down_sse2=vp9_mbpost_proc_down_xmm

245
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
246
247
248
specialize vp9_mbpost_proc_across_ip sse2
vp9_mbpost_proc_across_ip_sse2=vp9_mbpost_proc_across_ip_xmm

249
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
250
251
252
specialize vp9_post_proc_down_and_across mmx sse2
vp9_post_proc_down_and_across_sse2=vp9_post_proc_down_and_across_xmm

253
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
254
255
specialize vp9_plane_add_noise mmx sse2
vp9_plane_add_noise_sse2=vp9_plane_add_noise_wmt
256
fi
Jim Bankoski's avatar
Jim Bankoski committed
257

258
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
259
260
specialize vp9_blend_mb_inner

261
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
262
263
specialize vp9_blend_mb_outer

264
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
265
266
specialize vp9_blend_b

267
268
269
#
# Sub Pixel Filters
#
270
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"
271
specialize vp9_convolve_copy $sse2_x86inc
272
273

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"
274
specialize vp9_convolve_avg $sse2_x86inc
275
276

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"
Johann's avatar
Johann committed
277
specialize vp9_convolve8 ssse3 neon
278

279
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"
Johann's avatar
Johann committed
280
specialize vp9_convolve8_horiz ssse3 neon
281

282
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"
Johann's avatar
Johann committed
283
specialize vp9_convolve8_vert ssse3 neon
284

285
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"
Johann's avatar
Johann committed
286
specialize vp9_convolve8_avg ssse3 neon
287

288
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"
Johann's avatar
Johann committed
289
specialize vp9_convolve8_avg_horiz ssse3 neon
290

291
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"
Johann's avatar
Johann committed
292
specialize vp9_convolve8_avg_vert ssse3 neon
293

294
295
296
#
# dct
#
Scott LaVarnway's avatar
Scott LaVarnway committed
297
prototype void vp9_short_idct4x4_1_add "int16_t *input, uint8_t *dest, int dest_stride"
298
specialize vp9_short_idct4x4_1_add sse2
299

Scott LaVarnway's avatar
Scott LaVarnway committed
300
prototype void vp9_short_idct4x4_add "int16_t *input, uint8_t *dest, int dest_stride"
301
specialize vp9_short_idct4x4_add sse2 neon
302

303
304
305
prototype void vp9_short_idct8x8_1_add "int16_t *input, uint8_t *dest, int dest_stride"
specialize vp9_short_idct8x8_1_add sse2

Scott LaVarnway's avatar
Scott LaVarnway committed
306
prototype void vp9_short_idct8x8_add "int16_t *input, uint8_t *dest, int dest_stride"
307
specialize vp9_short_idct8x8_add sse2 neon
308

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

312
313
314
prototype void vp9_short_idct16x16_1_add "int16_t *input, uint8_t *dest, int dest_stride"
specialize vp9_short_idct16x16_1_add sse2

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

Scott LaVarnway's avatar
Scott LaVarnway committed
318
319
prototype void vp9_short_idct10_16x16_add "int16_t *input, uint8_t *dest, int dest_stride"
specialize vp9_short_idct10_16x16_add sse2
320

Scott LaVarnway's avatar
Scott LaVarnway committed
321
322
prototype void vp9_short_idct32x32_add "int16_t *input, uint8_t *dest, int dest_stride"
specialize vp9_short_idct32x32_add sse2
323

324
325
326
prototype void vp9_short_idct1_32x32 "int16_t *input, int16_t *output"
specialize vp9_short_idct1_32x32

Scott LaVarnway's avatar
Scott LaVarnway committed
327
prototype void vp9_short_iht4x4_add "int16_t *input, uint8_t *dest, int dest_stride, int tx_type"
328
specialize vp9_short_iht4x4_add sse2
Scott LaVarnway's avatar
Scott LaVarnway committed
329

Scott LaVarnway's avatar
Scott LaVarnway committed
330
prototype void vp9_short_iht8x8_add "int16_t *input, uint8_t *dest, int dest_stride, int tx_type"
331
specialize vp9_short_iht8x8_add sse2
332

Scott LaVarnway's avatar
Scott LaVarnway committed
333
prototype void vp9_short_iht16x16_add "int16_t *input, uint8_t *output, int pitch, int tx_type"
334
specialize vp9_short_iht16x16_add sse2
335

Yunqing Wang's avatar
Yunqing Wang committed
336
337
prototype void vp9_idct4_1d "int16_t *input, int16_t *output"
specialize vp9_idct4_1d sse2
338
339
# dct and add

Scott LaVarnway's avatar
Scott LaVarnway committed
340
341
342
343
344
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
345

346
prototype unsigned int vp9_sad32x3 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int ref_stride, int max_sad"
347
348
specialize vp9_sad32x3

349
prototype unsigned int vp9_sad3x32 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int ref_stride, int max_sad"
350
351
specialize vp9_sad3x32

352
353
354
#
# Encoder functions below this point.
#
355
if [ "$CONFIG_VP9_ENCODER" = "yes" ]; then
356
357
358


# variance
359
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
360
specialize vp9_variance32x16 $sse2_x86inc
361
362

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

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

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
369
specialize vp9_variance32x64 $sse2_x86inc
370

371
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
372
specialize vp9_variance32x32 $sse2_x86inc
373

Ronald S. Bultje's avatar
Ronald S. Bultje committed
374
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
375
specialize vp9_variance64x64 $sse2_x86inc
Ronald S. Bultje's avatar
Ronald S. Bultje committed
376

377
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
378
specialize vp9_variance16x16 mmx $sse2_x86inc
379

380
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
381
specialize vp9_variance16x8 mmx $sse2_x86inc
382

383
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
384
specialize vp9_variance8x16 mmx $sse2_x86inc
385

386
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
387
specialize vp9_variance8x8 mmx $sse2_x86inc
388

Jim Bankoski's avatar
Jim Bankoski committed
389
390
391
392
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

393
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
394
specialize vp9_variance8x4 $sse2_x86inc
395
396

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
397
specialize vp9_variance4x8 $sse2_x86inc
398

399
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
400
specialize vp9_variance4x4 mmx $sse2_x86inc
401

Yaowu Xu's avatar
Yaowu Xu committed
402
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
403
specialize vp9_sub_pixel_variance64x64 $sse2_x86inc $ssse3_x86inc
Ronald S. Bultje's avatar
Ronald S. Bultje committed
404

405
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
406
specialize vp9_sub_pixel_avg_variance64x64 $sse2_x86inc $ssse3_x86inc
407

408
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
409
specialize vp9_sub_pixel_variance32x64 $sse2_x86inc $ssse3_x86inc
410

411
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
412
specialize vp9_sub_pixel_avg_variance32x64 $sse2_x86inc $ssse3_x86inc
413

414
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
415
specialize vp9_sub_pixel_variance64x32 $sse2_x86inc $ssse3_x86inc
416

417
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
418
specialize vp9_sub_pixel_avg_variance64x32 $sse2_x86inc $ssse3_x86inc
419

420
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
421
specialize vp9_sub_pixel_variance32x16 $sse2_x86inc $ssse3_x86inc
422

423
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
424
specialize vp9_sub_pixel_avg_variance32x16 $sse2_x86inc $ssse3_x86inc
425

426
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
427
specialize vp9_sub_pixel_variance16x32 $sse2_x86inc $ssse3_x86inc
428

429
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
430
specialize vp9_sub_pixel_avg_variance16x32 $sse2_x86inc $ssse3_x86inc
431

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

435
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
436
specialize vp9_sub_pixel_avg_variance32x32 $sse2_x86inc $ssse3_x86inc
437

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

441
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
442
specialize vp9_sub_pixel_avg_variance16x16 $sse2_x86inc $ssse3_x86inc
443

Yaowu Xu's avatar
Yaowu Xu committed
444
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
445
specialize vp9_sub_pixel_variance8x16 $sse2_x86inc $ssse3_x86inc
446

447
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
448
specialize vp9_sub_pixel_avg_variance8x16 $sse2_x86inc $ssse3_x86inc
449

Yaowu Xu's avatar
Yaowu Xu committed
450
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
451
specialize vp9_sub_pixel_variance16x8 $sse2_x86inc $ssse3_x86inc
452

453
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
454
specialize vp9_sub_pixel_avg_variance16x8 $sse2_x86inc $ssse3_x86inc
455

Yaowu Xu's avatar
Yaowu Xu committed
456
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
457
specialize vp9_sub_pixel_variance8x8 $sse2_x86inc $ssse3_x86inc
458

459
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
460
specialize vp9_sub_pixel_avg_variance8x8 $sse2_x86inc $ssse3_x86inc
461

462
463
# 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
464
specialize vp9_sub_pixel_variance8x4 $sse2_x86inc $ssse3_x86inc
465
466

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
467
specialize vp9_sub_pixel_avg_variance8x4 $sse2_x86inc $ssse3_x86inc
468
469

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
470
specialize vp9_sub_pixel_variance4x8 $sse_x86inc $ssse3_x86inc
471
472

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
473
specialize vp9_sub_pixel_avg_variance4x8 $sse_x86inc $ssse3_x86inc
474

Yaowu Xu's avatar
Yaowu Xu committed
475
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
476
specialize vp9_sub_pixel_variance4x4 $sse_x86inc $ssse3_x86inc
477
#vp9_sub_pixel_variance4x4_sse2=vp9_sub_pixel_variance4x4_wmt
478

479
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
480
specialize vp9_sub_pixel_avg_variance4x4 $sse_x86inc $ssse3_x86inc
481

Ronald S. Bultje's avatar
Ronald S. Bultje committed
482
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
483
specialize vp9_sad64x64 $sse2_x86inc
Ronald S. Bultje's avatar
Ronald S. Bultje committed
484

485
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
486
specialize vp9_sad32x64 $sse2_x86inc
487
488

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

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

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
495
specialize vp9_sad16x32 $sse2_x86inc
496

497
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
498
specialize vp9_sad32x32 $sse2_x86inc
499

500
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
501
specialize vp9_sad16x16 mmx $sse2_x86inc
502

503
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
504
specialize vp9_sad16x8 mmx $sse2_x86inc
505

506
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
507
specialize vp9_sad8x16 mmx $sse2_x86inc
508

509
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
510
specialize vp9_sad8x8 mmx $sse2_x86inc
511

512
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
513
specialize vp9_sad8x4 $sse2_x86inc
514
515

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
516
specialize vp9_sad4x8 $sse_x86inc
517

518
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
519
specialize vp9_sad4x4 mmx $sse_x86inc
520

521
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
522
specialize vp9_sad64x64_avg $sse2_x86inc
523
524

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
525
specialize vp9_sad32x64_avg $sse2_x86inc
526
527

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
528
specialize vp9_sad64x32_avg $sse2_x86inc
529
530

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
531
specialize vp9_sad32x16_avg $sse2_x86inc
532
533

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
534
specialize vp9_sad16x32_avg $sse2_x86inc
535
536

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
537
specialize vp9_sad32x32_avg $sse2_x86inc
538
539

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
540
specialize vp9_sad16x16_avg $sse2_x86inc
541
542

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

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

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

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
552
specialize vp9_sad8x4_avg $sse2_x86inc
553
554

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
555
specialize vp9_sad4x8_avg $sse_x86inc
556
557

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
558
specialize vp9_sad4x4_avg $sse_x86inc
559

560
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
561
specialize vp9_variance_halfpixvar16x16_h $sse2_x86inc
562

563
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
564
specialize vp9_variance_halfpixvar16x16_v $sse2_x86inc
565

566
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
567
specialize vp9_variance_halfpixvar16x16_hv $sse2_x86inc
568

Ronald S. Bultje's avatar
Ronald S. Bultje committed
569
570
571
572
573
574
575
576
577
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

578
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"
579
specialize vp9_variance_halfpixvar32x32_h
580

581
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"
582
specialize vp9_variance_halfpixvar32x32_v
583

584
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"
585
specialize vp9_variance_halfpixvar32x32_hv
586

Ronald S. Bultje's avatar
Ronald S. Bultje committed
587
588
589
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

590
prototype void vp9_sad32x32x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
591
specialize vp9_sad32x32x3
592

593
prototype void vp9_sad16x16x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
594
specialize vp9_sad16x16x3 sse3 ssse3
595

596
prototype void vp9_sad16x8x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
597
specialize vp9_sad16x8x3 sse3 ssse3
598

599
prototype void vp9_sad8x16x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
600
specialize vp9_sad8x16x3 sse3
601

602
prototype void vp9_sad8x8x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
603
specialize vp9_sad8x8x3 sse3
604

605
prototype void vp9_sad4x4x3 "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int  ref_stride, unsigned int *sad_array"
606
specialize vp9_sad4x4x3 sse3
607

608
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
609
610
specialize vp9_sad64x64x8

611
prototype void vp9_sad32x32x8 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int  ref_stride, uint32_t *sad_array"
612
specialize vp9_sad32x32x8
613

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

617
prototype void vp9_sad16x8x8 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int  ref_stride, uint32_t *sad_array"
618
specialize vp9_sad16x8x8 sse4
619

620
prototype void vp9_sad8x16x8 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int  ref_stride, uint32_t *sad_array"
621
specialize vp9_sad8x16x8 sse4
622

623
prototype void vp9_sad8x8x8 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int  ref_stride, uint32_t *sad_array"
624
specialize vp9_sad8x8x8 sse4
625

626
627
628
629
630
631
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

632
prototype void vp9_sad4x4x8 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int  ref_stride, uint32_t *sad_array"
633
specialize vp9_sad4x4x8 sse4
634

635
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"
636
specialize vp9_sad64x64x4d sse2
Ronald S. Bultje's avatar
Ronald S. Bultje committed
637

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

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

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

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"
648
649
specialize vp9_sad16x32x4d sse2

650
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"
651
specialize vp9_sad32x32x4d sse2
652

653
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"
654
specialize vp9_sad16x16x4d sse2
655

656
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"
657
specialize vp9_sad16x8x4d sse2
658

659
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"
660
specialize vp9_sad8x16x4d sse2
661

662
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"
Ronald S. Bultje's avatar