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/*
11 * VP8
12 */
13
14struct blockd;
15struct macroblockd;
16struct loop_filter_info;
17
18/* Encoder forward decls */
19struct block;
20struct macroblock;
21struct variance_vtable;
22union int_mv;
23struct yv12_buffer_config;
24
25#ifdef __cplusplus
26extern "C" {
27#endif
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_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
31void vp8_bilinear_predict16x16_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
32#define vp8_bilinear_predict16x16 vp8_bilinear_predict16x16_neon
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_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
36void vp8_bilinear_predict4x4_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
37#define vp8_bilinear_predict4x4 vp8_bilinear_predict4x4_neon
38
39void vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
40void vp8_bilinear_predict8x4_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
41void vp8_bilinear_predict8x4_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
42#define vp8_bilinear_predict8x4 vp8_bilinear_predict8x4_neon
43
44void vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
45void vp8_bilinear_predict8x8_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
46void vp8_bilinear_predict8x8_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
47#define vp8_bilinear_predict8x8 vp8_bilinear_predict8x8_neon
48
49void vp8_blend_b_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride);
50#define vp8_blend_b vp8_blend_b_c
51
52void vp8_blend_mb_inner_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride);
53#define vp8_blend_mb_inner vp8_blend_mb_inner_c
54
55void vp8_blend_mb_outer_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride);
56#define vp8_blend_mb_outer vp8_blend_mb_outer_c
57
58int vp8_block_error_c(short *coeff, short *dqcoeff);
59#define vp8_block_error vp8_block_error_c
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_neon(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_neon
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_neon(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_neon
68
69void vp8_clear_system_state_c();
70#define vp8_clear_system_state vp8_clear_system_state_c
71
72void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
73void vp8_copy_mem16x16_v6(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
74void vp8_copy_mem16x16_neon(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
75#define vp8_copy_mem16x16 vp8_copy_mem16x16_neon
76
77void vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
78void vp8_copy_mem8x4_v6(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
79void vp8_copy_mem8x4_neon(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
80#define vp8_copy_mem8x4 vp8_copy_mem8x4_neon
81
82void vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
83void vp8_copy_mem8x8_v6(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
84void vp8_copy_mem8x8_neon(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
85#define vp8_copy_mem8x8 vp8_copy_mem8x8_neon
86
87void vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
88void vp8_dc_only_idct_add_v6(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
89void vp8_dc_only_idct_add_neon(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
90#define vp8_dc_only_idct_add vp8_dc_only_idct_add_neon
91
92int 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);
93int vp8_denoiser_filter_neon(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);
94#define vp8_denoiser_filter vp8_denoiser_filter_neon
95
96int 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);
97int vp8_denoiser_filter_uv_neon(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);
98#define vp8_denoiser_filter_uv vp8_denoiser_filter_uv_neon
99
100void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int stride);
101void vp8_dequant_idct_add_v6(short *input, short *dq, unsigned char *output, int stride);
102void vp8_dequant_idct_add_neon(short *input, short *dq, unsigned char *output, int stride);
103#define vp8_dequant_idct_add vp8_dequant_idct_add_neon
104
105void vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
106void vp8_dequant_idct_add_uv_block_v6(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
107void vp8_dequant_idct_add_uv_block_neon(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
108#define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_neon
109
110void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
111void vp8_dequant_idct_add_y_block_v6(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
112void vp8_dequant_idct_add_y_block_neon(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
113#define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_neon
114
115void vp8_dequantize_b_c(struct blockd*, short *dqc);
116void vp8_dequantize_b_v6(struct blockd*, short *dqc);
117void vp8_dequantize_b_neon(struct blockd*, short *dqc);
118#define vp8_dequantize_b vp8_dequantize_b_neon
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_armv6(struct block *, struct blockd *);
125void vp8_fast_quantize_b_neon(struct block *, struct blockd *);
126#define vp8_fast_quantize_b vp8_fast_quantize_b_neon
127
128void vp8_fast_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
129void vp8_fast_quantize_b_pair_neon(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
130#define vp8_fast_quantize_b_pair vp8_fast_quantize_b_pair_neon
131
132void vp8_filter_by_weight16x16_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
133#define vp8_filter_by_weight16x16 vp8_filter_by_weight16x16_c
134
135void vp8_filter_by_weight4x4_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
136#define vp8_filter_by_weight4x4 vp8_filter_by_weight4x4_c
137
138void vp8_filter_by_weight8x8_c(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_c
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_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride);
146#define vp8_get4x4sse_cs vp8_get4x4sse_cs_neon
147
148unsigned int vp8_get_mb_ss_c(const short *);
149#define vp8_get_mb_ss vp8_get_mb_ss_c
150
151void 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);
152void vp8_intra4x4_predict_armv6(unsigned char *Above, unsigned char *yleft, int left_stride, int b_mode, unsigned char *dst, int dst_stride, unsigned char top_left);
153#define vp8_intra4x4_predict vp8_intra4x4_predict_armv6
154
155void vp8_loop_filter_bh_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
156void vp8_loop_filter_bh_armv6(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
157void vp8_loop_filter_bh_neon(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
158#define vp8_loop_filter_bh vp8_loop_filter_bh_neon
159
160void vp8_loop_filter_bv_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
161void vp8_loop_filter_bv_armv6(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
162void vp8_loop_filter_bv_neon(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
163#define vp8_loop_filter_bv vp8_loop_filter_bv_neon
164
165void vp8_loop_filter_mbh_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
166void vp8_loop_filter_mbh_armv6(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
167void vp8_loop_filter_mbh_neon(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
168#define vp8_loop_filter_mbh vp8_loop_filter_mbh_neon
169
170void vp8_loop_filter_mbv_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
171void vp8_loop_filter_mbv_armv6(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
172void vp8_loop_filter_mbv_neon(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
173#define vp8_loop_filter_mbv vp8_loop_filter_mbv_neon
174
175void vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *blimit);
176void vp8_loop_filter_bhs_armv6(unsigned char *y, int ystride, const unsigned char *blimit);
177void vp8_loop_filter_bhs_neon(unsigned char *y, int ystride, const unsigned char *blimit);
178#define vp8_loop_filter_simple_bh vp8_loop_filter_bhs_neon
179
180void vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *blimit);
181void vp8_loop_filter_bvs_armv6(unsigned char *y, int ystride, const unsigned char *blimit);
182void vp8_loop_filter_bvs_neon(unsigned char *y, int ystride, const unsigned char *blimit);
183#define vp8_loop_filter_simple_bv vp8_loop_filter_bvs_neon
184
185void vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
186void vp8_loop_filter_simple_horizontal_edge_armv6(unsigned char *y, int ystride, const unsigned char *blimit);
187void vp8_loop_filter_mbhs_neon(unsigned char *y, int ystride, const unsigned char *blimit);
188#define vp8_loop_filter_simple_mbh vp8_loop_filter_mbhs_neon
189
190void vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
191void vp8_loop_filter_simple_vertical_edge_armv6(unsigned char *y, int ystride, const unsigned char *blimit);
192void vp8_loop_filter_mbvs_neon(unsigned char *y, int ystride, const unsigned char *blimit);
193#define vp8_loop_filter_simple_mbv vp8_loop_filter_mbvs_neon
194
195int vp8_mbblock_error_c(struct macroblock *mb, int dc);
196#define vp8_mbblock_error vp8_mbblock_error_c
197
198void vp8_mbpost_proc_across_ip_c(unsigned char *dst, int pitch, int rows, int cols,int flimit);
199#define vp8_mbpost_proc_across_ip vp8_mbpost_proc_across_ip_c
200
201void vp8_mbpost_proc_down_c(unsigned char *dst, int pitch, int rows, int cols,int flimit);
202#define vp8_mbpost_proc_down vp8_mbpost_proc_down_c
203
204int vp8_mbuverror_c(struct macroblock *mb);
205#define vp8_mbuverror vp8_mbuverror_c
206
207unsigned int vp8_mse16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
208unsigned int vp8_mse16x16_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
209unsigned int vp8_mse16x16_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
210#define vp8_mse16x16 vp8_mse16x16_neon
211
212void 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);
213#define vp8_plane_add_noise vp8_plane_add_noise_c
214
215void 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);
216#define vp8_post_proc_down_and_across_mb_row vp8_post_proc_down_and_across_mb_row_c
217
218void vp8_quantize_mb_c(struct macroblock *);
219void vp8_quantize_mb_neon(struct macroblock *);
220#define vp8_quantize_mb vp8_quantize_mb_neon
221
222void vp8_quantize_mbuv_c(struct macroblock *);
223void vp8_quantize_mbuv_neon(struct macroblock *);
224#define vp8_quantize_mbuv vp8_quantize_mbuv_neon
225
226void vp8_quantize_mby_c(struct macroblock *);
227void vp8_quantize_mby_neon(struct macroblock *);
228#define vp8_quantize_mby vp8_quantize_mby_neon
229
230int 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);
231#define vp8_refining_search_sad vp8_refining_search_sad_c
232
233void vp8_regular_quantize_b_c(struct block *, struct blockd *);
234#define vp8_regular_quantize_b vp8_regular_quantize_b_c
235
236void vp8_regular_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
237#define vp8_regular_quantize_b_pair vp8_regular_quantize_b_pair_c
238
239unsigned int vp8_sad16x16_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
240unsigned int vp8_sad16x16_armv6(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
241unsigned int vp8_sad16x16_neon(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
242#define vp8_sad16x16 vp8_sad16x16_neon
243
244void vp8_sad16x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
245#define vp8_sad16x16x3 vp8_sad16x16x3_c
246
247void vp8_sad16x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
248#define vp8_sad16x16x4d vp8_sad16x16x4d_c
249
250void vp8_sad16x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
251#define vp8_sad16x16x8 vp8_sad16x16x8_c
252
253unsigned int vp8_sad16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
254unsigned int vp8_sad16x8_neon(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
255#define vp8_sad16x8 vp8_sad16x8_neon
256
257void vp8_sad16x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
258#define vp8_sad16x8x3 vp8_sad16x8x3_c
259
260void vp8_sad16x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
261#define vp8_sad16x8x4d vp8_sad16x8x4d_c
262
263void vp8_sad16x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
264#define vp8_sad16x8x8 vp8_sad16x8x8_c
265
266unsigned int vp8_sad4x4_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
267unsigned int vp8_sad4x4_neon(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
268#define vp8_sad4x4 vp8_sad4x4_neon
269
270void vp8_sad4x4x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
271#define vp8_sad4x4x3 vp8_sad4x4x3_c
272
273void vp8_sad4x4x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
274#define vp8_sad4x4x4d vp8_sad4x4x4d_c
275
276void vp8_sad4x4x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
277#define vp8_sad4x4x8 vp8_sad4x4x8_c
278
279unsigned int vp8_sad8x16_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
280unsigned int vp8_sad8x16_neon(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
281#define vp8_sad8x16 vp8_sad8x16_neon
282
283void vp8_sad8x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
284#define vp8_sad8x16x3 vp8_sad8x16x3_c
285
286void vp8_sad8x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
287#define vp8_sad8x16x4d vp8_sad8x16x4d_c
288
289void vp8_sad8x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
290#define vp8_sad8x16x8 vp8_sad8x16x8_c
291
292unsigned int vp8_sad8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
293unsigned int vp8_sad8x8_neon(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
294#define vp8_sad8x8 vp8_sad8x8_neon
295
296void vp8_sad8x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
297#define vp8_sad8x8x3 vp8_sad8x8x3_c
298
299void vp8_sad8x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
300#define vp8_sad8x8x4d vp8_sad8x8x4d_c
301
302void vp8_sad8x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
303#define vp8_sad8x8x8 vp8_sad8x8x8_c
304
305void vp8_short_fdct4x4_c(short *input, short *output, int pitch);
306void vp8_short_fdct4x4_armv6(short *input, short *output, int pitch);
307void vp8_short_fdct4x4_neon(short *input, short *output, int pitch);
308#define vp8_short_fdct4x4 vp8_short_fdct4x4_neon
309
310void vp8_short_fdct8x4_c(short *input, short *output, int pitch);
311void vp8_short_fdct8x4_armv6(short *input, short *output, int pitch);
312void vp8_short_fdct8x4_neon(short *input, short *output, int pitch);
313#define vp8_short_fdct8x4 vp8_short_fdct8x4_neon
314
315void vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
316void vp8_short_idct4x4llm_v6_dual(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
317void vp8_short_idct4x4llm_neon(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
318#define vp8_short_idct4x4llm vp8_short_idct4x4llm_neon
319
320void vp8_short_inv_walsh4x4_c(short *input, short *output);
321void vp8_short_inv_walsh4x4_v6(short *input, short *output);
322void vp8_short_inv_walsh4x4_neon(short *input, short *output);
323#define vp8_short_inv_walsh4x4 vp8_short_inv_walsh4x4_neon
324
325void vp8_short_inv_walsh4x4_1_c(short *input, short *output);
326#define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c
327
328void vp8_short_walsh4x4_c(short *input, short *output, int pitch);
329void vp8_short_walsh4x4_armv6(short *input, short *output, int pitch);
330void vp8_short_walsh4x4_neon(short *input, short *output, int pitch);
331#define vp8_short_walsh4x4 vp8_short_walsh4x4_neon
332
333void vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
334void vp8_sixtap_predict16x16_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
335void vp8_sixtap_predict16x16_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
336#define vp8_sixtap_predict16x16 vp8_sixtap_predict16x16_neon
337
338void vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
339void vp8_sixtap_predict4x4_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
340#define vp8_sixtap_predict4x4 vp8_sixtap_predict4x4_armv6
341
342void vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
343void vp8_sixtap_predict8x4_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
344void vp8_sixtap_predict8x4_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
345#define vp8_sixtap_predict8x4 vp8_sixtap_predict8x4_neon
346
347void vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
348void vp8_sixtap_predict8x8_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
349void vp8_sixtap_predict8x8_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
350#define vp8_sixtap_predict8x8 vp8_sixtap_predict8x8_neon
351
352unsigned 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);
353#define vp8_sub_pixel_mse16x16 vp8_sub_pixel_mse16x16_c
354
355unsigned 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);
356unsigned int vp8_sub_pixel_variance16x16_armv6(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
357unsigned int vp8_sub_pixel_variance16x16_neon(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
358#define vp8_sub_pixel_variance16x16 vp8_sub_pixel_variance16x16_neon
359
360unsigned 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);
361#define vp8_sub_pixel_variance16x8 vp8_sub_pixel_variance16x8_c
362
363unsigned 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);
364#define vp8_sub_pixel_variance4x4 vp8_sub_pixel_variance4x4_c
365
366unsigned 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);
367#define vp8_sub_pixel_variance8x16 vp8_sub_pixel_variance8x16_c
368
369unsigned 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);
370unsigned int vp8_sub_pixel_variance8x8_armv6(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
371unsigned int vp8_sub_pixel_variance8x8_neon(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
372#define vp8_sub_pixel_variance8x8 vp8_sub_pixel_variance8x8_neon
373
374void vp8_subtract_b_c(struct block *be, struct blockd *bd, int pitch);
375void vp8_subtract_b_armv6(struct block *be, struct blockd *bd, int pitch);
376void vp8_subtract_b_neon(struct block *be, struct blockd *bd, int pitch);
377#define vp8_subtract_b vp8_subtract_b_neon
378
379void vp8_subtract_mbuv_c(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
380void vp8_subtract_mbuv_armv6(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
381void vp8_subtract_mbuv_neon(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
382#define vp8_subtract_mbuv vp8_subtract_mbuv_neon
383
384void vp8_subtract_mby_c(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
385void vp8_subtract_mby_armv6(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
386void vp8_subtract_mby_neon(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
387#define vp8_subtract_mby vp8_subtract_mby_neon
388
389unsigned int vp8_variance16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
390unsigned int vp8_variance16x16_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
391unsigned int vp8_variance16x16_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
392#define vp8_variance16x16 vp8_variance16x16_neon
393
394unsigned int vp8_variance16x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
395unsigned int vp8_variance16x8_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
396#define vp8_variance16x8 vp8_variance16x8_neon
397
398unsigned int vp8_variance4x4_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
399#define vp8_variance4x4 vp8_variance4x4_c
400
401unsigned int vp8_variance8x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
402unsigned int vp8_variance8x16_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
403#define vp8_variance8x16 vp8_variance8x16_neon
404
405unsigned int vp8_variance8x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
406unsigned int vp8_variance8x8_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
407unsigned int vp8_variance8x8_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
408#define vp8_variance8x8 vp8_variance8x8_neon
409
410unsigned 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);
411unsigned int vp8_variance_halfpixvar16x16_h_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
412unsigned int vp8_variance_halfpixvar16x16_h_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
413#define vp8_variance_halfpixvar16x16_h vp8_variance_halfpixvar16x16_h_neon
414
415unsigned 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);
416unsigned int vp8_variance_halfpixvar16x16_hv_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
417unsigned int vp8_variance_halfpixvar16x16_hv_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
418#define vp8_variance_halfpixvar16x16_hv vp8_variance_halfpixvar16x16_hv_neon
419
420unsigned 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);
421unsigned int vp8_variance_halfpixvar16x16_v_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
422unsigned int vp8_variance_halfpixvar16x16_v_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
423#define vp8_variance_halfpixvar16x16_v vp8_variance_halfpixvar16x16_v_neon
424
425void vp8_rtcd(void);
426
427#include "vpx_config.h"
428
429#ifdef RTCD_C
430#include "vpx_ports/arm.h"
431static void setup_rtcd_internal(void)
432{
433    int flags = arm_cpu_caps();
434
435    (void)flags;
436
437}
438#endif
439
440#ifdef __cplusplus
441}  // extern "C"
442#endif
443
444#endif
445