1#ifndef VP8_RTCD_H_
2#define VP8_RTCD_H_
3
4#ifdef RTCD_C
5#define RTCD_EXTERN
6#else
7#define RTCD_EXTERN extern
8#endif
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14/*
15 * VP8
16 */
17
18struct blockd;
19struct macroblockd;
20struct loop_filter_info;
21
22/* Encoder forward decls */
23struct block;
24struct macroblock;
25struct variance_vtable;
26union int_mv;
27struct yv12_buffer_config;
28
29void vp8_bilinear_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
30void vp8_bilinear_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
31void vp8_bilinear_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
32#define vp8_bilinear_predict16x16 vp8_bilinear_predict16x16_sse2
33
34void vp8_bilinear_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
35void vp8_bilinear_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
36#define vp8_bilinear_predict4x4 vp8_bilinear_predict4x4_mmx
37
38void vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
39void vp8_bilinear_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
40#define vp8_bilinear_predict8x4 vp8_bilinear_predict8x4_mmx
41
42void vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
43void vp8_bilinear_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
44void vp8_bilinear_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
45#define vp8_bilinear_predict8x8 vp8_bilinear_predict8x8_sse2
46
47void vp8_blend_b_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride);
48#define vp8_blend_b vp8_blend_b_c
49
50void vp8_blend_mb_inner_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride);
51#define vp8_blend_mb_inner vp8_blend_mb_inner_c
52
53void vp8_blend_mb_outer_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride);
54#define vp8_blend_mb_outer vp8_blend_mb_outer_c
55
56int vp8_block_error_c(short *coeff, short *dqcoeff);
57int vp8_block_error_mmx(short *coeff, short *dqcoeff);
58int vp8_block_error_xmm(short *coeff, short *dqcoeff);
59#define vp8_block_error vp8_block_error_xmm
60
61void vp8_build_intra_predictors_mbuv_s_c(struct macroblockd *x, unsigned char * uabove_row, unsigned char * vabove_row,  unsigned char *uleft, unsigned char *vleft, int left_stride, unsigned char * upred_ptr, unsigned char * vpred_ptr, int pred_stride);
62void vp8_build_intra_predictors_mbuv_s_sse2(struct macroblockd *x, unsigned char * uabove_row, unsigned char * vabove_row,  unsigned char *uleft, unsigned char *vleft, int left_stride, unsigned char * upred_ptr, unsigned char * vpred_ptr, int pred_stride);
63#define vp8_build_intra_predictors_mbuv_s vp8_build_intra_predictors_mbuv_s_sse2
64
65void vp8_build_intra_predictors_mby_s_c(struct macroblockd *x, unsigned char * yabove_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, int y_stride);
66void vp8_build_intra_predictors_mby_s_sse2(struct macroblockd *x, unsigned char * yabove_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, int y_stride);
67#define vp8_build_intra_predictors_mby_s vp8_build_intra_predictors_mby_s_sse2
68
69void vp8_clear_system_state_c();
70void vpx_reset_mmx_state();
71#define vp8_clear_system_state vpx_reset_mmx_state
72
73void vp8_copy32xn_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n);
74void vp8_copy32xn_sse2(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n);
75#define vp8_copy32xn vp8_copy32xn_sse2
76
77void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
78void vp8_copy_mem16x16_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
79void vp8_copy_mem16x16_sse2(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
80#define vp8_copy_mem16x16 vp8_copy_mem16x16_sse2
81
82void vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
83void vp8_copy_mem8x4_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
84#define vp8_copy_mem8x4 vp8_copy_mem8x4_mmx
85
86void vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
87void vp8_copy_mem8x8_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
88#define vp8_copy_mem8x8 vp8_copy_mem8x8_mmx
89
90void vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
91void vp8_dc_only_idct_add_mmx(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
92#define vp8_dc_only_idct_add vp8_dc_only_idct_add_mmx
93
94int vp8_denoiser_filter_c(unsigned char *mc_running_avg_y, int mc_avg_y_stride, unsigned char *running_avg_y, int avg_y_stride, unsigned char *sig, int sig_stride, unsigned int motion_magnitude, int increase_denoising);
95int vp8_denoiser_filter_sse2(unsigned char *mc_running_avg_y, int mc_avg_y_stride, unsigned char *running_avg_y, int avg_y_stride, unsigned char *sig, int sig_stride, unsigned int motion_magnitude, int increase_denoising);
96#define vp8_denoiser_filter vp8_denoiser_filter_sse2
97
98int vp8_denoiser_filter_uv_c(unsigned char *mc_running_avg, int mc_avg_stride, unsigned char *running_avg, int avg_stride, unsigned char *sig, int sig_stride, unsigned int motion_magnitude, int increase_denoising);
99int vp8_denoiser_filter_uv_sse2(unsigned char *mc_running_avg, int mc_avg_stride, unsigned char *running_avg, int avg_stride, unsigned char *sig, int sig_stride, unsigned int motion_magnitude, int increase_denoising);
100#define vp8_denoiser_filter_uv vp8_denoiser_filter_uv_sse2
101
102void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int stride);
103void vp8_dequant_idct_add_mmx(short *input, short *dq, unsigned char *output, int stride);
104#define vp8_dequant_idct_add vp8_dequant_idct_add_mmx
105
106void vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
107void vp8_dequant_idct_add_uv_block_mmx(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
108void vp8_dequant_idct_add_uv_block_sse2(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
109#define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_sse2
110
111void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
112void vp8_dequant_idct_add_y_block_mmx(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
113void vp8_dequant_idct_add_y_block_sse2(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
114#define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_sse2
115
116void vp8_dequantize_b_c(struct blockd*, short *dqc);
117void vp8_dequantize_b_mmx(struct blockd*, short *dqc);
118#define vp8_dequantize_b vp8_dequantize_b_mmx
119
120int vp8_diamond_search_sad_c(struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, union int_mv *best_mv, int search_param, int sad_per_bit, int *num00, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv);
121#define vp8_diamond_search_sad vp8_diamond_search_sad_c
122
123void vp8_fast_quantize_b_c(struct block *, struct blockd *);
124void vp8_fast_quantize_b_sse2(struct block *, struct blockd *);
125#define vp8_fast_quantize_b vp8_fast_quantize_b_sse2
126
127void vp8_fast_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
128#define vp8_fast_quantize_b_pair vp8_fast_quantize_b_pair_c
129
130void vp8_filter_by_weight16x16_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
131void vp8_filter_by_weight16x16_sse2(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
132#define vp8_filter_by_weight16x16 vp8_filter_by_weight16x16_sse2
133
134void vp8_filter_by_weight4x4_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
135#define vp8_filter_by_weight4x4 vp8_filter_by_weight4x4_c
136
137void vp8_filter_by_weight8x8_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
138void vp8_filter_by_weight8x8_sse2(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
139#define vp8_filter_by_weight8x8 vp8_filter_by_weight8x8_sse2
140
141int vp8_full_search_sad_c(struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv);
142#define vp8_full_search_sad vp8_full_search_sad_c
143
144unsigned int vp8_get4x4sse_cs_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride);
145unsigned int vp8_get4x4sse_cs_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride);
146#define vp8_get4x4sse_cs vp8_get4x4sse_cs_mmx
147
148unsigned int vp8_get_mb_ss_c(const short *);
149unsigned int vp8_get_mb_ss_mmx(const short *);
150unsigned int vp8_get_mb_ss_sse2(const short *);
151#define vp8_get_mb_ss vp8_get_mb_ss_sse2
152
153void vp8_intra4x4_predict_c(unsigned char *Above, unsigned char *yleft, int left_stride, int b_mode, unsigned char *dst, int dst_stride, unsigned char top_left);
154#define vp8_intra4x4_predict vp8_intra4x4_predict_c
155
156void vp8_loop_filter_bh_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
157void vp8_loop_filter_bh_mmx(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
158void vp8_loop_filter_bh_sse2(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
159#define vp8_loop_filter_bh vp8_loop_filter_bh_sse2
160
161void vp8_loop_filter_bv_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
162void vp8_loop_filter_bv_mmx(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
163void vp8_loop_filter_bv_sse2(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
164#define vp8_loop_filter_bv vp8_loop_filter_bv_sse2
165
166void vp8_loop_filter_mbh_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
167void vp8_loop_filter_mbh_mmx(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
168void vp8_loop_filter_mbh_sse2(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
169#define vp8_loop_filter_mbh vp8_loop_filter_mbh_sse2
170
171void vp8_loop_filter_mbv_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
172void vp8_loop_filter_mbv_mmx(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
173void vp8_loop_filter_mbv_sse2(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
174#define vp8_loop_filter_mbv vp8_loop_filter_mbv_sse2
175
176void vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *blimit);
177void vp8_loop_filter_bhs_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
178void vp8_loop_filter_bhs_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
179#define vp8_loop_filter_simple_bh vp8_loop_filter_bhs_sse2
180
181void vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *blimit);
182void vp8_loop_filter_bvs_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
183void vp8_loop_filter_bvs_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
184#define vp8_loop_filter_simple_bv vp8_loop_filter_bvs_sse2
185
186void vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
187void vp8_loop_filter_simple_horizontal_edge_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
188void vp8_loop_filter_simple_horizontal_edge_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
189#define vp8_loop_filter_simple_mbh vp8_loop_filter_simple_horizontal_edge_sse2
190
191void vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
192void vp8_loop_filter_simple_vertical_edge_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
193void vp8_loop_filter_simple_vertical_edge_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
194#define vp8_loop_filter_simple_mbv vp8_loop_filter_simple_vertical_edge_sse2
195
196int vp8_mbblock_error_c(struct macroblock *mb, int dc);
197int vp8_mbblock_error_mmx(struct macroblock *mb, int dc);
198int vp8_mbblock_error_xmm(struct macroblock *mb, int dc);
199#define vp8_mbblock_error vp8_mbblock_error_xmm
200
201void vp8_mbpost_proc_across_ip_c(unsigned char *dst, int pitch, int rows, int cols,int flimit);
202void vp8_mbpost_proc_across_ip_xmm(unsigned char *dst, int pitch, int rows, int cols,int flimit);
203#define vp8_mbpost_proc_across_ip vp8_mbpost_proc_across_ip_xmm
204
205void vp8_mbpost_proc_down_c(unsigned char *dst, int pitch, int rows, int cols,int flimit);
206void vp8_mbpost_proc_down_mmx(unsigned char *dst, int pitch, int rows, int cols,int flimit);
207void vp8_mbpost_proc_down_xmm(unsigned char *dst, int pitch, int rows, int cols,int flimit);
208#define vp8_mbpost_proc_down vp8_mbpost_proc_down_xmm
209
210int vp8_mbuverror_c(struct macroblock *mb);
211int vp8_mbuverror_mmx(struct macroblock *mb);
212int vp8_mbuverror_xmm(struct macroblock *mb);
213#define vp8_mbuverror vp8_mbuverror_xmm
214
215unsigned int vp8_mse16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
216unsigned int vp8_mse16x16_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
217unsigned int vp8_mse16x16_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
218#define vp8_mse16x16 vp8_mse16x16_wmt
219
220void vp8_plane_add_noise_c(unsigned char *s, char *noise, char blackclamp[16], char whiteclamp[16], char bothclamp[16], unsigned int w, unsigned int h, int pitch);
221void vp8_plane_add_noise_mmx(unsigned char *s, char *noise, char blackclamp[16], char whiteclamp[16], char bothclamp[16], unsigned int w, unsigned int h, int pitch);
222void vp8_plane_add_noise_wmt(unsigned char *s, char *noise, char blackclamp[16], char whiteclamp[16], char bothclamp[16], unsigned int w, unsigned int h, int pitch);
223#define vp8_plane_add_noise vp8_plane_add_noise_wmt
224
225void vp8_post_proc_down_and_across_mb_row_c(unsigned char *src, unsigned char *dst, int src_pitch, int dst_pitch, int cols, unsigned char *flimits, int size);
226void vp8_post_proc_down_and_across_mb_row_sse2(unsigned char *src, unsigned char *dst, int src_pitch, int dst_pitch, int cols, unsigned char *flimits, int size);
227#define vp8_post_proc_down_and_across_mb_row vp8_post_proc_down_and_across_mb_row_sse2
228
229void vp8_quantize_mb_c(struct macroblock *);
230#define vp8_quantize_mb vp8_quantize_mb_c
231
232void vp8_quantize_mbuv_c(struct macroblock *);
233#define vp8_quantize_mbuv vp8_quantize_mbuv_c
234
235void vp8_quantize_mby_c(struct macroblock *);
236#define vp8_quantize_mby vp8_quantize_mby_c
237
238int vp8_refining_search_sad_c(struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv);
239#define vp8_refining_search_sad vp8_refining_search_sad_c
240
241void vp8_regular_quantize_b_c(struct block *, struct blockd *);
242void vp8_regular_quantize_b_sse2(struct block *, struct blockd *);
243#define vp8_regular_quantize_b vp8_regular_quantize_b_sse2
244
245void vp8_regular_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
246#define vp8_regular_quantize_b_pair vp8_regular_quantize_b_pair_c
247
248unsigned int vp8_sad16x16_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
249unsigned int vp8_sad16x16_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
250unsigned int vp8_sad16x16_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
251#define vp8_sad16x16 vp8_sad16x16_wmt
252
253void vp8_sad16x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
254#define vp8_sad16x16x3 vp8_sad16x16x3_c
255
256void vp8_sad16x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
257#define vp8_sad16x16x4d vp8_sad16x16x4d_c
258
259void vp8_sad16x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
260#define vp8_sad16x16x8 vp8_sad16x16x8_c
261
262unsigned int vp8_sad16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
263unsigned int vp8_sad16x8_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
264unsigned int vp8_sad16x8_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
265#define vp8_sad16x8 vp8_sad16x8_wmt
266
267void vp8_sad16x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
268#define vp8_sad16x8x3 vp8_sad16x8x3_c
269
270void vp8_sad16x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
271#define vp8_sad16x8x4d vp8_sad16x8x4d_c
272
273void vp8_sad16x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
274#define vp8_sad16x8x8 vp8_sad16x8x8_c
275
276unsigned int vp8_sad4x4_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
277unsigned int vp8_sad4x4_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
278unsigned int vp8_sad4x4_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
279#define vp8_sad4x4 vp8_sad4x4_wmt
280
281void vp8_sad4x4x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
282#define vp8_sad4x4x3 vp8_sad4x4x3_c
283
284void vp8_sad4x4x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
285#define vp8_sad4x4x4d vp8_sad4x4x4d_c
286
287void vp8_sad4x4x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
288#define vp8_sad4x4x8 vp8_sad4x4x8_c
289
290unsigned int vp8_sad8x16_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
291unsigned int vp8_sad8x16_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
292unsigned int vp8_sad8x16_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
293#define vp8_sad8x16 vp8_sad8x16_wmt
294
295void vp8_sad8x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
296#define vp8_sad8x16x3 vp8_sad8x16x3_c
297
298void vp8_sad8x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
299#define vp8_sad8x16x4d vp8_sad8x16x4d_c
300
301void vp8_sad8x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
302#define vp8_sad8x16x8 vp8_sad8x16x8_c
303
304unsigned int vp8_sad8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
305unsigned int vp8_sad8x8_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
306unsigned int vp8_sad8x8_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
307#define vp8_sad8x8 vp8_sad8x8_wmt
308
309void vp8_sad8x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
310#define vp8_sad8x8x3 vp8_sad8x8x3_c
311
312void vp8_sad8x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
313#define vp8_sad8x8x4d vp8_sad8x8x4d_c
314
315void vp8_sad8x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
316#define vp8_sad8x8x8 vp8_sad8x8x8_c
317
318void vp8_short_fdct4x4_c(short *input, short *output, int pitch);
319void vp8_short_fdct4x4_mmx(short *input, short *output, int pitch);
320void vp8_short_fdct4x4_sse2(short *input, short *output, int pitch);
321#define vp8_short_fdct4x4 vp8_short_fdct4x4_sse2
322
323void vp8_short_fdct8x4_c(short *input, short *output, int pitch);
324void vp8_short_fdct8x4_mmx(short *input, short *output, int pitch);
325void vp8_short_fdct8x4_sse2(short *input, short *output, int pitch);
326#define vp8_short_fdct8x4 vp8_short_fdct8x4_sse2
327
328void vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
329void vp8_short_idct4x4llm_mmx(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
330#define vp8_short_idct4x4llm vp8_short_idct4x4llm_mmx
331
332void vp8_short_inv_walsh4x4_c(short *input, short *output);
333void vp8_short_inv_walsh4x4_mmx(short *input, short *output);
334void vp8_short_inv_walsh4x4_sse2(short *input, short *output);
335#define vp8_short_inv_walsh4x4 vp8_short_inv_walsh4x4_sse2
336
337void vp8_short_inv_walsh4x4_1_c(short *input, short *output);
338#define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c
339
340void vp8_short_walsh4x4_c(short *input, short *output, int pitch);
341void vp8_short_walsh4x4_sse2(short *input, short *output, int pitch);
342#define vp8_short_walsh4x4 vp8_short_walsh4x4_sse2
343
344void vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
345void vp8_sixtap_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
346void vp8_sixtap_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
347#define vp8_sixtap_predict16x16 vp8_sixtap_predict16x16_sse2
348
349void vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
350void vp8_sixtap_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
351#define vp8_sixtap_predict4x4 vp8_sixtap_predict4x4_mmx
352
353void vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
354void vp8_sixtap_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
355void vp8_sixtap_predict8x4_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
356#define vp8_sixtap_predict8x4 vp8_sixtap_predict8x4_sse2
357
358void vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
359void vp8_sixtap_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
360void vp8_sixtap_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
361#define vp8_sixtap_predict8x8 vp8_sixtap_predict8x8_sse2
362
363unsigned int vp8_sub_pixel_mse16x16_c(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
364unsigned int vp8_sub_pixel_mse16x16_mmx(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
365unsigned int vp8_sub_pixel_mse16x16_wmt(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
366#define vp8_sub_pixel_mse16x16 vp8_sub_pixel_mse16x16_wmt
367
368unsigned int vp8_sub_pixel_variance16x16_c(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
369unsigned int vp8_sub_pixel_variance16x16_mmx(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
370unsigned int vp8_sub_pixel_variance16x16_wmt(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
371#define vp8_sub_pixel_variance16x16 vp8_sub_pixel_variance16x16_wmt
372
373unsigned int vp8_sub_pixel_variance16x8_c(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
374unsigned int vp8_sub_pixel_variance16x8_mmx(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
375unsigned int vp8_sub_pixel_variance16x8_wmt(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
376#define vp8_sub_pixel_variance16x8 vp8_sub_pixel_variance16x8_wmt
377
378unsigned int vp8_sub_pixel_variance4x4_c(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
379unsigned int vp8_sub_pixel_variance4x4_mmx(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
380unsigned int vp8_sub_pixel_variance4x4_wmt(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
381#define vp8_sub_pixel_variance4x4 vp8_sub_pixel_variance4x4_wmt
382
383unsigned int vp8_sub_pixel_variance8x16_c(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
384unsigned int vp8_sub_pixel_variance8x16_mmx(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
385unsigned int vp8_sub_pixel_variance8x16_wmt(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
386#define vp8_sub_pixel_variance8x16 vp8_sub_pixel_variance8x16_wmt
387
388unsigned int vp8_sub_pixel_variance8x8_c(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
389unsigned int vp8_sub_pixel_variance8x8_mmx(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
390unsigned int vp8_sub_pixel_variance8x8_wmt(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
391#define vp8_sub_pixel_variance8x8 vp8_sub_pixel_variance8x8_wmt
392
393void vp8_subtract_b_c(struct block *be, struct blockd *bd, int pitch);
394void vp8_subtract_b_mmx(struct block *be, struct blockd *bd, int pitch);
395void vp8_subtract_b_sse2(struct block *be, struct blockd *bd, int pitch);
396#define vp8_subtract_b vp8_subtract_b_sse2
397
398void vp8_subtract_mbuv_c(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
399void vp8_subtract_mbuv_mmx(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
400void vp8_subtract_mbuv_sse2(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
401#define vp8_subtract_mbuv vp8_subtract_mbuv_sse2
402
403void vp8_subtract_mby_c(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
404void vp8_subtract_mby_mmx(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
405void vp8_subtract_mby_sse2(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
406#define vp8_subtract_mby vp8_subtract_mby_sse2
407
408unsigned int vp8_variance16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
409unsigned int vp8_variance16x16_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
410unsigned int vp8_variance16x16_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
411#define vp8_variance16x16 vp8_variance16x16_wmt
412
413unsigned int vp8_variance16x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
414unsigned int vp8_variance16x8_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
415unsigned int vp8_variance16x8_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
416#define vp8_variance16x8 vp8_variance16x8_wmt
417
418unsigned int vp8_variance4x4_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
419unsigned int vp8_variance4x4_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
420unsigned int vp8_variance4x4_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
421#define vp8_variance4x4 vp8_variance4x4_wmt
422
423unsigned int vp8_variance8x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
424unsigned int vp8_variance8x16_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
425unsigned int vp8_variance8x16_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
426#define vp8_variance8x16 vp8_variance8x16_wmt
427
428unsigned int vp8_variance8x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
429unsigned int vp8_variance8x8_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
430unsigned int vp8_variance8x8_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
431#define vp8_variance8x8 vp8_variance8x8_wmt
432
433unsigned int vp8_variance_halfpixvar16x16_h_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
434unsigned int vp8_variance_halfpixvar16x16_h_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
435unsigned int vp8_variance_halfpixvar16x16_h_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
436#define vp8_variance_halfpixvar16x16_h vp8_variance_halfpixvar16x16_h_wmt
437
438unsigned int vp8_variance_halfpixvar16x16_hv_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
439unsigned int vp8_variance_halfpixvar16x16_hv_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
440unsigned int vp8_variance_halfpixvar16x16_hv_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
441#define vp8_variance_halfpixvar16x16_hv vp8_variance_halfpixvar16x16_hv_wmt
442
443unsigned int vp8_variance_halfpixvar16x16_v_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
444unsigned int vp8_variance_halfpixvar16x16_v_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
445unsigned int vp8_variance_halfpixvar16x16_v_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
446#define vp8_variance_halfpixvar16x16_v vp8_variance_halfpixvar16x16_v_wmt
447
448void vp8_yv12_copy_partial_frame_c(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
449#define vp8_yv12_copy_partial_frame vp8_yv12_copy_partial_frame_c
450
451void vp8_rtcd(void);
452
453#ifdef RTCD_C
454#include "vpx_ports/x86.h"
455static void setup_rtcd_internal(void)
456{
457    int flags = x86_simd_caps();
458
459    (void)flags;
460
461}
462#endif
463
464#ifdef __cplusplus
465}  // extern "C"
466#endif
467
468#endif
469