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
11 extern "C" {
12 #endif
13 
14 /*
15  * VP8
16  */
17 
18 struct blockd;
19 struct macroblockd;
20 struct loop_filter_info;
21 
22 /* Encoder forward decls */
23 struct block;
24 struct macroblock;
25 struct variance_vtable;
26 union int_mv;
27 struct yv12_buffer_config;
28 
29 void vp8_bilinear_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
30 void vp8_bilinear_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
31 void 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 
34 void vp8_bilinear_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
35 void 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 
38 void vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
39 void 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 
42 void vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
43 void vp8_bilinear_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
44 void 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 
47 void 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 
50 void 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 
53 void 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 
56 int vp8_block_error_c(short *coeff, short *dqcoeff);
57 int vp8_block_error_mmx(short *coeff, short *dqcoeff);
58 int vp8_block_error_xmm(short *coeff, short *dqcoeff);
59 #define vp8_block_error vp8_block_error_xmm
60 
61 void 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);
62 void 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 
65 void 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);
66 void 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 
69 void vp8_clear_system_state_c();
70 void vpx_reset_mmx_state();
71 #define vp8_clear_system_state vpx_reset_mmx_state
72 
73 void vp8_copy32xn_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n);
74 void 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 
77 void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
78 void vp8_copy_mem16x16_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
79 void 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 
82 void vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
83 void 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 
86 void vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
87 void 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 
90 void vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
91 void 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 
94 int 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);
95 int 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 
98 int 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);
99 int 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 
102 void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int stride);
103 void 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 
106 void vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
107 void vp8_dequant_idct_add_uv_block_mmx(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
108 void 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 
111 void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
112 void vp8_dequant_idct_add_y_block_mmx(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
113 void 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 
116 void vp8_dequantize_b_c(struct blockd*, short *dqc);
117 void vp8_dequantize_b_mmx(struct blockd*, short *dqc);
118 #define vp8_dequantize_b vp8_dequantize_b_mmx
119 
120 int 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 
123 void vp8_fast_quantize_b_c(struct block *, struct blockd *);
124 void vp8_fast_quantize_b_sse2(struct block *, struct blockd *);
125 #define vp8_fast_quantize_b vp8_fast_quantize_b_sse2
126 
127 void 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 
130 void vp8_filter_by_weight16x16_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
131 void 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 
134 void 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 
137 void vp8_filter_by_weight8x8_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
138 void 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 
141 int 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 
144 unsigned int vp8_get4x4sse_cs_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride);
145 unsigned 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 
148 unsigned int vp8_get_mb_ss_c(const short *);
149 unsigned int vp8_get_mb_ss_mmx(const short *);
150 unsigned int vp8_get_mb_ss_sse2(const short *);
151 #define vp8_get_mb_ss vp8_get_mb_ss_sse2
152 
153 void 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 
156 void vp8_loop_filter_bh_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
157 void vp8_loop_filter_bh_mmx(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
158 void 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 
161 void vp8_loop_filter_bv_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
162 void vp8_loop_filter_bv_mmx(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
163 void 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 
166 void vp8_loop_filter_mbh_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
167 void vp8_loop_filter_mbh_mmx(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
168 void 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 
171 void vp8_loop_filter_mbv_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
172 void vp8_loop_filter_mbv_mmx(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
173 void 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 
176 void vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *blimit);
177 void vp8_loop_filter_bhs_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
178 void 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 
181 void vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *blimit);
182 void vp8_loop_filter_bvs_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
183 void 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 
186 void vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
187 void vp8_loop_filter_simple_horizontal_edge_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
188 void 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 
191 void vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
192 void vp8_loop_filter_simple_vertical_edge_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
193 void 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 
196 int vp8_mbblock_error_c(struct macroblock *mb, int dc);
197 int vp8_mbblock_error_mmx(struct macroblock *mb, int dc);
198 int vp8_mbblock_error_xmm(struct macroblock *mb, int dc);
199 #define vp8_mbblock_error vp8_mbblock_error_xmm
200 
201 void vp8_mbpost_proc_across_ip_c(unsigned char *dst, int pitch, int rows, int cols,int flimit);
202 void 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 
205 void vp8_mbpost_proc_down_c(unsigned char *dst, int pitch, int rows, int cols,int flimit);
206 void vp8_mbpost_proc_down_mmx(unsigned char *dst, int pitch, int rows, int cols,int flimit);
207 void 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 
210 int vp8_mbuverror_c(struct macroblock *mb);
211 int vp8_mbuverror_mmx(struct macroblock *mb);
212 int vp8_mbuverror_xmm(struct macroblock *mb);
213 #define vp8_mbuverror vp8_mbuverror_xmm
214 
215 unsigned int vp8_mse16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
216 unsigned int vp8_mse16x16_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
217 unsigned 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 
220 void 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);
221 void 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);
222 void 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 
225 void 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);
226 void 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 
229 void vp8_quantize_mb_c(struct macroblock *);
230 #define vp8_quantize_mb vp8_quantize_mb_c
231 
232 void vp8_quantize_mbuv_c(struct macroblock *);
233 #define vp8_quantize_mbuv vp8_quantize_mbuv_c
234 
235 void vp8_quantize_mby_c(struct macroblock *);
236 #define vp8_quantize_mby vp8_quantize_mby_c
237 
238 int 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 
241 void vp8_regular_quantize_b_c(struct block *, struct blockd *);
242 void vp8_regular_quantize_b_sse2(struct block *, struct blockd *);
243 #define vp8_regular_quantize_b vp8_regular_quantize_b_sse2
244 
245 void 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 
248 unsigned int vp8_sad16x16_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
249 unsigned int vp8_sad16x16_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
250 unsigned 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 
253 void 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 
256 void 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 
259 void 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 
262 unsigned int vp8_sad16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
263 unsigned int vp8_sad16x8_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
264 unsigned 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 
267 void 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 
270 void 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 
273 void 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 
276 unsigned int vp8_sad4x4_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
277 unsigned int vp8_sad4x4_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
278 unsigned 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 
281 void 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 
284 void 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 
287 void 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 
290 unsigned int vp8_sad8x16_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
291 unsigned int vp8_sad8x16_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
292 unsigned 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 
295 void 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 
298 void 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 
301 void 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 
304 unsigned int vp8_sad8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
305 unsigned int vp8_sad8x8_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
306 unsigned 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 
309 void 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 
312 void 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 
315 void 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 
318 void vp8_short_fdct4x4_c(short *input, short *output, int pitch);
319 void vp8_short_fdct4x4_mmx(short *input, short *output, int pitch);
320 void vp8_short_fdct4x4_sse2(short *input, short *output, int pitch);
321 #define vp8_short_fdct4x4 vp8_short_fdct4x4_sse2
322 
323 void vp8_short_fdct8x4_c(short *input, short *output, int pitch);
324 void vp8_short_fdct8x4_mmx(short *input, short *output, int pitch);
325 void vp8_short_fdct8x4_sse2(short *input, short *output, int pitch);
326 #define vp8_short_fdct8x4 vp8_short_fdct8x4_sse2
327 
328 void vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
329 void 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 
332 void vp8_short_inv_walsh4x4_c(short *input, short *output);
333 void vp8_short_inv_walsh4x4_mmx(short *input, short *output);
334 void vp8_short_inv_walsh4x4_sse2(short *input, short *output);
335 #define vp8_short_inv_walsh4x4 vp8_short_inv_walsh4x4_sse2
336 
337 void vp8_short_inv_walsh4x4_1_c(short *input, short *output);
338 #define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c
339 
340 void vp8_short_walsh4x4_c(short *input, short *output, int pitch);
341 void vp8_short_walsh4x4_sse2(short *input, short *output, int pitch);
342 #define vp8_short_walsh4x4 vp8_short_walsh4x4_sse2
343 
344 void vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
345 void vp8_sixtap_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
346 void 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 
349 void vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
350 void 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 
353 void vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
354 void vp8_sixtap_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
355 void 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 
358 void vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
359 void vp8_sixtap_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
360 void 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 
363 unsigned 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);
364 unsigned 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);
365 unsigned 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 
368 unsigned 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);
369 unsigned 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);
370 unsigned 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 
373 unsigned 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);
374 unsigned 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);
375 unsigned 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 
378 unsigned 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);
379 unsigned 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);
380 unsigned 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 
383 unsigned 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);
384 unsigned 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);
385 unsigned 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 
388 unsigned 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);
389 unsigned 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);
390 unsigned 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 
393 void vp8_subtract_b_c(struct block *be, struct blockd *bd, int pitch);
394 void vp8_subtract_b_mmx(struct block *be, struct blockd *bd, int pitch);
395 void vp8_subtract_b_sse2(struct block *be, struct blockd *bd, int pitch);
396 #define vp8_subtract_b vp8_subtract_b_sse2
397 
398 void vp8_subtract_mbuv_c(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
399 void vp8_subtract_mbuv_mmx(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
400 void 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 
403 void vp8_subtract_mby_c(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
404 void vp8_subtract_mby_mmx(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
405 void 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 
408 unsigned int vp8_variance16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
409 unsigned int vp8_variance16x16_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
410 unsigned 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 
413 unsigned int vp8_variance16x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
414 unsigned int vp8_variance16x8_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
415 unsigned 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 
418 unsigned int vp8_variance4x4_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
419 unsigned int vp8_variance4x4_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
420 unsigned 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 
423 unsigned int vp8_variance8x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
424 unsigned int vp8_variance8x16_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
425 unsigned 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 
428 unsigned int vp8_variance8x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
429 unsigned int vp8_variance8x8_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
430 unsigned 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 
433 unsigned 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);
434 unsigned 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);
435 unsigned 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 
438 unsigned 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);
439 unsigned 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);
440 unsigned 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 
443 unsigned 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);
444 unsigned 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);
445 unsigned 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 
448 void 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 
451 void vp8_rtcd(void);
452 
453 #ifdef RTCD_C
454 #include "vpx_ports/x86.h"
setup_rtcd_internal(void)455 static 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