1#ifndef VPX_RTCD_
2#define VPX_RTCD_
3
4#ifdef RTCD_C
5#define RTCD_EXTERN
6#else
7#define RTCD_EXTERN extern
8#endif
9
10#include "vp8/common/blockd.h"
11
12struct blockd;
13struct macroblockd;
14struct loop_filter_info;
15
16/* Encoder forward decls */
17struct block;
18struct macroblock;
19struct variance_vtable;
20union int_mv;
21struct yv12_buffer_config;
22
23void vp8_dequantize_b_c(struct blockd*, short *dqc);
24void vp8_dequantize_b_v6(struct blockd*, short *dqc);
25void vp8_dequantize_b_neon(struct blockd*, short *dqc);
26RTCD_EXTERN void (*vp8_dequantize_b)(struct blockd*, short *dqc);
27
28void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int stride);
29void vp8_dequant_idct_add_v6(short *input, short *dq, unsigned char *output, int stride);
30void vp8_dequant_idct_add_neon(short *input, short *dq, unsigned char *output, int stride);
31RTCD_EXTERN void (*vp8_dequant_idct_add)(short *input, short *dq, unsigned char *output, int stride);
32
33void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
34void vp8_dequant_idct_add_y_block_v6(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
35void vp8_dequant_idct_add_y_block_neon(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
36RTCD_EXTERN void (*vp8_dequant_idct_add_y_block)(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
37
38void vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
39void vp8_dequant_idct_add_uv_block_v6(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
40void vp8_dequant_idct_add_uv_block_neon(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
41RTCD_EXTERN void (*vp8_dequant_idct_add_uv_block)(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
42
43void vp8_loop_filter_mbv_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
44void vp8_loop_filter_mbv_armv6(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
45void vp8_loop_filter_mbv_neon(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
46RTCD_EXTERN void (*vp8_loop_filter_mbv)(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
47
48void vp8_loop_filter_bv_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
49void vp8_loop_filter_bv_armv6(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
50void vp8_loop_filter_bv_neon(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
51RTCD_EXTERN void (*vp8_loop_filter_bv)(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
52
53void vp8_loop_filter_mbh_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
54void vp8_loop_filter_mbh_armv6(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
55void vp8_loop_filter_mbh_neon(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
56RTCD_EXTERN void (*vp8_loop_filter_mbh)(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
57
58void vp8_loop_filter_bh_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
59void vp8_loop_filter_bh_armv6(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
60void vp8_loop_filter_bh_neon(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
61RTCD_EXTERN void (*vp8_loop_filter_bh)(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
62
63void vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
64void vp8_loop_filter_simple_vertical_edge_armv6(unsigned char *y, int ystride, const unsigned char *blimit);
65void vp8_loop_filter_mbvs_neon(unsigned char *y, int ystride, const unsigned char *blimit);
66RTCD_EXTERN void (*vp8_loop_filter_simple_mbv)(unsigned char *y, int ystride, const unsigned char *blimit);
67
68void vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
69void vp8_loop_filter_simple_horizontal_edge_armv6(unsigned char *y, int ystride, const unsigned char *blimit);
70void vp8_loop_filter_mbhs_neon(unsigned char *y, int ystride, const unsigned char *blimit);
71RTCD_EXTERN void (*vp8_loop_filter_simple_mbh)(unsigned char *y, int ystride, const unsigned char *blimit);
72
73void vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *blimit);
74void vp8_loop_filter_bvs_armv6(unsigned char *y, int ystride, const unsigned char *blimit);
75void vp8_loop_filter_bvs_neon(unsigned char *y, int ystride, const unsigned char *blimit);
76RTCD_EXTERN void (*vp8_loop_filter_simple_bv)(unsigned char *y, int ystride, const unsigned char *blimit);
77
78void vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *blimit);
79void vp8_loop_filter_bhs_armv6(unsigned char *y, int ystride, const unsigned char *blimit);
80void vp8_loop_filter_bhs_neon(unsigned char *y, int ystride, const unsigned char *blimit);
81RTCD_EXTERN void (*vp8_loop_filter_simple_bh)(unsigned char *y, int ystride, const unsigned char *blimit);
82
83void vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
84void vp8_short_idct4x4llm_v6_dual(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
85void vp8_short_idct4x4llm_neon(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
86RTCD_EXTERN void (*vp8_short_idct4x4llm)(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
87
88void vp8_short_inv_walsh4x4_1_c(short *input, short *output);
89#define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c
90
91void vp8_short_inv_walsh4x4_c(short *input, short *output);
92void vp8_short_inv_walsh4x4_v6(short *input, short *output);
93void vp8_short_inv_walsh4x4_neon(short *input, short *output);
94RTCD_EXTERN void (*vp8_short_inv_walsh4x4)(short *input, short *output);
95
96void vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
97void vp8_dc_only_idct_add_v6(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
98void vp8_dc_only_idct_add_neon(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
99RTCD_EXTERN void (*vp8_dc_only_idct_add)(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
100
101void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
102void vp8_copy_mem16x16_v6(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
103void vp8_copy_mem16x16_neon(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
104RTCD_EXTERN void (*vp8_copy_mem16x16)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
105
106void vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
107void vp8_copy_mem8x8_v6(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
108void vp8_copy_mem8x8_neon(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
109RTCD_EXTERN void (*vp8_copy_mem8x8)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
110
111void vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
112void vp8_copy_mem8x4_v6(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
113void vp8_copy_mem8x4_neon(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
114RTCD_EXTERN void (*vp8_copy_mem8x4)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
115
116void 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);
117#define vp8_build_intra_predictors_mby_s vp8_build_intra_predictors_mby_s_c
118
119void 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);
120#define vp8_build_intra_predictors_mbuv_s vp8_build_intra_predictors_mbuv_s_c
121
122void vp8_intra4x4_predict_c(unsigned char *Above, unsigned char *yleft, int left_stride, B_PREDICTION_MODE b_mode, unsigned char *dst, int dst_stride, unsigned char top_left);
123void vp8_intra4x4_predict_armv6(unsigned char *Above, unsigned char *yleft, int left_stride, B_PREDICTION_MODE b_mode, unsigned char *dst, int dst_stride, unsigned char top_left);
124RTCD_EXTERN void (*vp8_intra4x4_predict)(unsigned char *Above, unsigned char *yleft, int left_stride, B_PREDICTION_MODE b_mode, unsigned char *dst, int dst_stride, unsigned char top_left);
125
126void vp8_mbpost_proc_down_c(unsigned char *dst, int pitch, int rows, int cols,int flimit);
127#define vp8_mbpost_proc_down vp8_mbpost_proc_down_c
128
129void vp8_mbpost_proc_across_ip_c(unsigned char *dst, int pitch, int rows, int cols,int flimit);
130#define vp8_mbpost_proc_across_ip vp8_mbpost_proc_across_ip_c
131
132void 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);
133#define vp8_post_proc_down_and_across_mb_row vp8_post_proc_down_and_across_mb_row_c
134
135void 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);
136#define vp8_plane_add_noise vp8_plane_add_noise_c
137
138void vp8_blend_mb_inner_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride);
139#define vp8_blend_mb_inner vp8_blend_mb_inner_c
140
141void vp8_blend_mb_outer_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride);
142#define vp8_blend_mb_outer vp8_blend_mb_outer_c
143
144void vp8_blend_b_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride);
145#define vp8_blend_b vp8_blend_b_c
146
147void vp8_filter_by_weight16x16_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
148#define vp8_filter_by_weight16x16 vp8_filter_by_weight16x16_c
149
150void vp8_filter_by_weight8x8_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
151#define vp8_filter_by_weight8x8 vp8_filter_by_weight8x8_c
152
153void vp8_filter_by_weight4x4_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
154#define vp8_filter_by_weight4x4 vp8_filter_by_weight4x4_c
155
156void vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
157void vp8_sixtap_predict16x16_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
158void vp8_sixtap_predict16x16_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
159RTCD_EXTERN void (*vp8_sixtap_predict16x16)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
160
161void vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
162void vp8_sixtap_predict8x8_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
163void vp8_sixtap_predict8x8_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
164RTCD_EXTERN void (*vp8_sixtap_predict8x8)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
165
166void vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
167void vp8_sixtap_predict8x4_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
168void vp8_sixtap_predict8x4_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
169RTCD_EXTERN void (*vp8_sixtap_predict8x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
170
171void vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
172void vp8_sixtap_predict4x4_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
173void vp8_sixtap_predict4x4_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
174RTCD_EXTERN void (*vp8_sixtap_predict4x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
175
176void vp8_bilinear_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
177void vp8_bilinear_predict16x16_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
178void vp8_bilinear_predict16x16_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
179RTCD_EXTERN void (*vp8_bilinear_predict16x16)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
180
181void vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
182void vp8_bilinear_predict8x8_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
183void vp8_bilinear_predict8x8_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
184RTCD_EXTERN void (*vp8_bilinear_predict8x8)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
185
186void vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
187void vp8_bilinear_predict8x4_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
188void vp8_bilinear_predict8x4_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
189RTCD_EXTERN void (*vp8_bilinear_predict8x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
190
191void vp8_bilinear_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
192void vp8_bilinear_predict4x4_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
193void vp8_bilinear_predict4x4_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
194RTCD_EXTERN void (*vp8_bilinear_predict4x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
195
196unsigned int vp8_variance4x4_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
197#define vp8_variance4x4 vp8_variance4x4_c
198
199unsigned int vp8_variance8x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
200unsigned int vp8_variance8x8_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
201unsigned int vp8_variance8x8_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
202RTCD_EXTERN unsigned int (*vp8_variance8x8)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
203
204unsigned int vp8_variance8x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
205unsigned int vp8_variance8x16_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
206RTCD_EXTERN unsigned int (*vp8_variance8x16)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
207
208unsigned int vp8_variance16x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
209unsigned int vp8_variance16x8_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
210RTCD_EXTERN unsigned int (*vp8_variance16x8)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
211
212unsigned int vp8_variance16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
213unsigned int vp8_variance16x16_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
214unsigned int vp8_variance16x16_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
215RTCD_EXTERN unsigned int (*vp8_variance16x16)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
216
217unsigned 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);
218#define vp8_sub_pixel_variance4x4 vp8_sub_pixel_variance4x4_c
219
220unsigned 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);
221unsigned 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);
222unsigned 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);
223RTCD_EXTERN unsigned int (*vp8_sub_pixel_variance8x8)(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
224
225unsigned 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);
226#define vp8_sub_pixel_variance8x16 vp8_sub_pixel_variance8x16_c
227
228unsigned 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);
229#define vp8_sub_pixel_variance16x8 vp8_sub_pixel_variance16x8_c
230
231unsigned 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);
232unsigned 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);
233unsigned 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);
234RTCD_EXTERN unsigned int (*vp8_sub_pixel_variance16x16)(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
235
236unsigned 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);
237unsigned 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);
238unsigned 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);
239RTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_h)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
240
241unsigned 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);
242unsigned 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);
243unsigned 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);
244RTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_v)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
245
246unsigned 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);
247unsigned 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);
248unsigned 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);
249RTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_hv)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
250
251unsigned int vp8_sad4x4_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
252unsigned int vp8_sad4x4_neon(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
253RTCD_EXTERN unsigned int (*vp8_sad4x4)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
254
255unsigned int vp8_sad8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
256unsigned int vp8_sad8x8_neon(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
257RTCD_EXTERN unsigned int (*vp8_sad8x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
258
259unsigned int vp8_sad8x16_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
260unsigned int vp8_sad8x16_neon(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
261RTCD_EXTERN unsigned int (*vp8_sad8x16)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
262
263unsigned int vp8_sad16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
264unsigned int vp8_sad16x8_neon(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
265RTCD_EXTERN unsigned int (*vp8_sad16x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
266
267unsigned int vp8_sad16x16_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
268unsigned int vp8_sad16x16_armv6(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
269unsigned int vp8_sad16x16_neon(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
270RTCD_EXTERN unsigned int (*vp8_sad16x16)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
271
272void vp8_sad4x4x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
273#define vp8_sad4x4x3 vp8_sad4x4x3_c
274
275void vp8_sad8x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
276#define vp8_sad8x8x3 vp8_sad8x8x3_c
277
278void vp8_sad8x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
279#define vp8_sad8x16x3 vp8_sad8x16x3_c
280
281void vp8_sad16x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
282#define vp8_sad16x8x3 vp8_sad16x8x3_c
283
284void vp8_sad16x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
285#define vp8_sad16x16x3 vp8_sad16x16x3_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
290void vp8_sad8x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
291#define vp8_sad8x8x8 vp8_sad8x8x8_c
292
293void vp8_sad8x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
294#define vp8_sad8x16x8 vp8_sad8x16x8_c
295
296void vp8_sad16x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
297#define vp8_sad16x8x8 vp8_sad16x8x8_c
298
299void vp8_sad16x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
300#define vp8_sad16x16x8 vp8_sad16x16x8_c
301
302void vp8_sad4x4x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
303#define vp8_sad4x4x4d vp8_sad4x4x4d_c
304
305void vp8_sad8x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
306#define vp8_sad8x8x4d vp8_sad8x8x4d_c
307
308void vp8_sad8x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
309#define vp8_sad8x16x4d vp8_sad8x16x4d_c
310
311void vp8_sad16x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
312#define vp8_sad16x8x4d vp8_sad16x8x4d_c
313
314void vp8_sad16x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
315#define vp8_sad16x16x4d vp8_sad16x16x4d_c
316
317unsigned int vp8_get_mb_ss_c(const short *);
318#define vp8_get_mb_ss vp8_get_mb_ss_c
319
320unsigned 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);
321#define vp8_sub_pixel_mse16x16 vp8_sub_pixel_mse16x16_c
322
323unsigned int vp8_mse16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
324unsigned int vp8_mse16x16_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
325unsigned int vp8_mse16x16_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
326RTCD_EXTERN unsigned int (*vp8_mse16x16)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
327
328unsigned int vp8_get4x4sse_cs_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride);
329unsigned int vp8_get4x4sse_cs_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride);
330RTCD_EXTERN unsigned int (*vp8_get4x4sse_cs)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride);
331
332void vp8_short_fdct4x4_c(short *input, short *output, int pitch);
333void vp8_short_fdct4x4_armv6(short *input, short *output, int pitch);
334void vp8_short_fdct4x4_neon(short *input, short *output, int pitch);
335RTCD_EXTERN void (*vp8_short_fdct4x4)(short *input, short *output, int pitch);
336
337void vp8_short_fdct8x4_c(short *input, short *output, int pitch);
338void vp8_short_fdct8x4_armv6(short *input, short *output, int pitch);
339void vp8_short_fdct8x4_neon(short *input, short *output, int pitch);
340RTCD_EXTERN void (*vp8_short_fdct8x4)(short *input, short *output, int pitch);
341
342void vp8_short_walsh4x4_c(short *input, short *output, int pitch);
343void vp8_short_walsh4x4_armv6(short *input, short *output, int pitch);
344void vp8_short_walsh4x4_neon(short *input, short *output, int pitch);
345RTCD_EXTERN void (*vp8_short_walsh4x4)(short *input, short *output, int pitch);
346
347void vp8_regular_quantize_b_c(struct block *, struct blockd *);
348#define vp8_regular_quantize_b vp8_regular_quantize_b_c
349
350void vp8_fast_quantize_b_c(struct block *, struct blockd *);
351void vp8_fast_quantize_b_armv6(struct block *, struct blockd *);
352void vp8_fast_quantize_b_neon(struct block *, struct blockd *);
353RTCD_EXTERN void (*vp8_fast_quantize_b)(struct block *, struct blockd *);
354
355void vp8_regular_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
356#define vp8_regular_quantize_b_pair vp8_regular_quantize_b_pair_c
357
358void vp8_fast_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
359void vp8_fast_quantize_b_pair_neon(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
360RTCD_EXTERN void (*vp8_fast_quantize_b_pair)(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
361
362void vp8_quantize_mb_c(struct macroblock *);
363void vp8_quantize_mb_neon(struct macroblock *);
364RTCD_EXTERN void (*vp8_quantize_mb)(struct macroblock *);
365
366void vp8_quantize_mby_c(struct macroblock *);
367void vp8_quantize_mby_neon(struct macroblock *);
368RTCD_EXTERN void (*vp8_quantize_mby)(struct macroblock *);
369
370void vp8_quantize_mbuv_c(struct macroblock *);
371void vp8_quantize_mbuv_neon(struct macroblock *);
372RTCD_EXTERN void (*vp8_quantize_mbuv)(struct macroblock *);
373
374int vp8_block_error_c(short *coeff, short *dqcoeff);
375#define vp8_block_error vp8_block_error_c
376
377int vp8_mbblock_error_c(struct macroblock *mb, int dc);
378#define vp8_mbblock_error vp8_mbblock_error_c
379
380int vp8_mbuverror_c(struct macroblock *mb);
381#define vp8_mbuverror vp8_mbuverror_c
382
383void vp8_subtract_b_c(struct block *be, struct blockd *bd, int pitch);
384void vp8_subtract_b_armv6(struct block *be, struct blockd *bd, int pitch);
385void vp8_subtract_b_neon(struct block *be, struct blockd *bd, int pitch);
386RTCD_EXTERN void (*vp8_subtract_b)(struct block *be, struct blockd *bd, int pitch);
387
388void vp8_subtract_mby_c(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
389void vp8_subtract_mby_armv6(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
390void vp8_subtract_mby_neon(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
391RTCD_EXTERN void (*vp8_subtract_mby)(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
392
393void vp8_subtract_mbuv_c(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
394void vp8_subtract_mbuv_armv6(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
395void vp8_subtract_mbuv_neon(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
396RTCD_EXTERN void (*vp8_subtract_mbuv)(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
397
398int 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);
399#define vp8_full_search_sad vp8_full_search_sad_c
400
401int 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);
402#define vp8_refining_search_sad vp8_refining_search_sad_c
403
404int 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);
405#define vp8_diamond_search_sad vp8_diamond_search_sad_c
406
407void vp8_yv12_copy_partial_frame_c(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
408void vp8_yv12_copy_partial_frame_neon(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
409RTCD_EXTERN void (*vp8_yv12_copy_partial_frame)(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
410
411int vp8_denoiser_filter_c(struct yv12_buffer_config* mc_running_avg, struct yv12_buffer_config* running_avg, struct macroblock* signal, unsigned int motion_magnitude2, int y_offset, int uv_offset);
412#define vp8_denoiser_filter vp8_denoiser_filter_c
413
414void vp8_horizontal_line_4_5_scale_c(const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width);
415#define vp8_horizontal_line_4_5_scale vp8_horizontal_line_4_5_scale_c
416
417void vp8_vertical_band_4_5_scale_c(unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width);
418#define vp8_vertical_band_4_5_scale vp8_vertical_band_4_5_scale_c
419
420void vp8_last_vertical_band_4_5_scale_c(unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width);
421#define vp8_last_vertical_band_4_5_scale vp8_last_vertical_band_4_5_scale_c
422
423void vp8_horizontal_line_2_3_scale_c(const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width);
424#define vp8_horizontal_line_2_3_scale vp8_horizontal_line_2_3_scale_c
425
426void vp8_vertical_band_2_3_scale_c(unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width);
427#define vp8_vertical_band_2_3_scale vp8_vertical_band_2_3_scale_c
428
429void vp8_last_vertical_band_2_3_scale_c(unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width);
430#define vp8_last_vertical_band_2_3_scale vp8_last_vertical_band_2_3_scale_c
431
432void vp8_horizontal_line_3_5_scale_c(const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width);
433#define vp8_horizontal_line_3_5_scale vp8_horizontal_line_3_5_scale_c
434
435void vp8_vertical_band_3_5_scale_c(unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width);
436#define vp8_vertical_band_3_5_scale vp8_vertical_band_3_5_scale_c
437
438void vp8_last_vertical_band_3_5_scale_c(unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width);
439#define vp8_last_vertical_band_3_5_scale vp8_last_vertical_band_3_5_scale_c
440
441void vp8_horizontal_line_3_4_scale_c(const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width);
442#define vp8_horizontal_line_3_4_scale vp8_horizontal_line_3_4_scale_c
443
444void vp8_vertical_band_3_4_scale_c(unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width);
445#define vp8_vertical_band_3_4_scale vp8_vertical_band_3_4_scale_c
446
447void vp8_last_vertical_band_3_4_scale_c(unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width);
448#define vp8_last_vertical_band_3_4_scale vp8_last_vertical_band_3_4_scale_c
449
450void vp8_horizontal_line_1_2_scale_c(const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width);
451#define vp8_horizontal_line_1_2_scale vp8_horizontal_line_1_2_scale_c
452
453void vp8_vertical_band_1_2_scale_c(unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width);
454#define vp8_vertical_band_1_2_scale vp8_vertical_band_1_2_scale_c
455
456void vp8_last_vertical_band_1_2_scale_c(unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width);
457#define vp8_last_vertical_band_1_2_scale vp8_last_vertical_band_1_2_scale_c
458
459void vp8_horizontal_line_5_4_scale_c(const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width);
460#define vp8_horizontal_line_5_4_scale vp8_horizontal_line_5_4_scale_c
461
462void vp8_vertical_band_5_4_scale_c(unsigned char *source, unsigned int src_pitch, unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width);
463#define vp8_vertical_band_5_4_scale vp8_vertical_band_5_4_scale_c
464
465void vp8_horizontal_line_5_3_scale_c(const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width);
466#define vp8_horizontal_line_5_3_scale vp8_horizontal_line_5_3_scale_c
467
468void vp8_vertical_band_5_3_scale_c(unsigned char *source, unsigned int src_pitch, unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width);
469#define vp8_vertical_band_5_3_scale vp8_vertical_band_5_3_scale_c
470
471void vp8_horizontal_line_2_1_scale_c(const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width);
472#define vp8_horizontal_line_2_1_scale vp8_horizontal_line_2_1_scale_c
473
474void vp8_vertical_band_2_1_scale_c(unsigned char *source, unsigned int src_pitch, unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width);
475#define vp8_vertical_band_2_1_scale vp8_vertical_band_2_1_scale_c
476
477void vp8_vertical_band_2_1_scale_i_c(unsigned char *source, unsigned int src_pitch, unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width);
478#define vp8_vertical_band_2_1_scale_i vp8_vertical_band_2_1_scale_i_c
479
480void vp8_yv12_extend_frame_borders_c(struct yv12_buffer_config *ybf);
481void vp8_yv12_extend_frame_borders_neon(struct yv12_buffer_config *ybf);
482RTCD_EXTERN void (*vp8_yv12_extend_frame_borders)(struct yv12_buffer_config *ybf);
483
484void vp8_yv12_copy_frame_c(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
485void vp8_yv12_copy_frame_neon(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
486RTCD_EXTERN void (*vp8_yv12_copy_frame)(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
487
488void vp8_yv12_copy_y_c(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
489void vp8_yv12_copy_y_neon(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
490RTCD_EXTERN void (*vp8_yv12_copy_y)(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
491
492void vpx_rtcd(void);
493#include "vpx_config.h"
494
495#ifdef RTCD_C
496#include "vpx_ports/arm.h"
497static void setup_rtcd_internal(void)
498{
499    int flags = arm_cpu_caps();
500
501    (void)flags;
502
503    vp8_dequantize_b = vp8_dequantize_b_c;
504    if (flags & HAS_MEDIA) vp8_dequantize_b = vp8_dequantize_b_v6;
505    if (flags & HAS_NEON) vp8_dequantize_b = vp8_dequantize_b_neon;
506
507    vp8_dequant_idct_add = vp8_dequant_idct_add_c;
508    if (flags & HAS_MEDIA) vp8_dequant_idct_add = vp8_dequant_idct_add_v6;
509    if (flags & HAS_NEON) vp8_dequant_idct_add = vp8_dequant_idct_add_neon;
510
511    vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_c;
512    if (flags & HAS_MEDIA) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_v6;
513    if (flags & HAS_NEON) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_neon;
514
515    vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_c;
516    if (flags & HAS_MEDIA) vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_v6;
517    if (flags & HAS_NEON) vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_neon;
518
519    vp8_loop_filter_mbv = vp8_loop_filter_mbv_c;
520    if (flags & HAS_MEDIA) vp8_loop_filter_mbv = vp8_loop_filter_mbv_armv6;
521    if (flags & HAS_NEON) vp8_loop_filter_mbv = vp8_loop_filter_mbv_neon;
522
523    vp8_loop_filter_bv = vp8_loop_filter_bv_c;
524    if (flags & HAS_MEDIA) vp8_loop_filter_bv = vp8_loop_filter_bv_armv6;
525    if (flags & HAS_NEON) vp8_loop_filter_bv = vp8_loop_filter_bv_neon;
526
527    vp8_loop_filter_mbh = vp8_loop_filter_mbh_c;
528    if (flags & HAS_MEDIA) vp8_loop_filter_mbh = vp8_loop_filter_mbh_armv6;
529    if (flags & HAS_NEON) vp8_loop_filter_mbh = vp8_loop_filter_mbh_neon;
530
531    vp8_loop_filter_bh = vp8_loop_filter_bh_c;
532    if (flags & HAS_MEDIA) vp8_loop_filter_bh = vp8_loop_filter_bh_armv6;
533    if (flags & HAS_NEON) vp8_loop_filter_bh = vp8_loop_filter_bh_neon;
534
535    vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_vertical_edge_c;
536    if (flags & HAS_MEDIA) vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_vertical_edge_armv6;
537    if (flags & HAS_NEON) vp8_loop_filter_simple_mbv = vp8_loop_filter_mbvs_neon;
538
539    vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_horizontal_edge_c;
540    if (flags & HAS_MEDIA) vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_horizontal_edge_armv6;
541    if (flags & HAS_NEON) vp8_loop_filter_simple_mbh = vp8_loop_filter_mbhs_neon;
542
543    vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_c;
544    if (flags & HAS_MEDIA) vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_armv6;
545    if (flags & HAS_NEON) vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_neon;
546
547    vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_c;
548    if (flags & HAS_MEDIA) vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_armv6;
549    if (flags & HAS_NEON) vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_neon;
550
551    vp8_short_idct4x4llm = vp8_short_idct4x4llm_c;
552    if (flags & HAS_MEDIA) vp8_short_idct4x4llm = vp8_short_idct4x4llm_v6_dual;
553    if (flags & HAS_NEON) vp8_short_idct4x4llm = vp8_short_idct4x4llm_neon;
554
555
556    vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_c;
557    if (flags & HAS_MEDIA) vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_v6;
558    if (flags & HAS_NEON) vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_neon;
559
560    vp8_dc_only_idct_add = vp8_dc_only_idct_add_c;
561    if (flags & HAS_MEDIA) vp8_dc_only_idct_add = vp8_dc_only_idct_add_v6;
562    if (flags & HAS_NEON) vp8_dc_only_idct_add = vp8_dc_only_idct_add_neon;
563
564    vp8_copy_mem16x16 = vp8_copy_mem16x16_c;
565    if (flags & HAS_MEDIA) vp8_copy_mem16x16 = vp8_copy_mem16x16_v6;
566    if (flags & HAS_NEON) vp8_copy_mem16x16 = vp8_copy_mem16x16_neon;
567
568    vp8_copy_mem8x8 = vp8_copy_mem8x8_c;
569    if (flags & HAS_MEDIA) vp8_copy_mem8x8 = vp8_copy_mem8x8_v6;
570    if (flags & HAS_NEON) vp8_copy_mem8x8 = vp8_copy_mem8x8_neon;
571
572    vp8_copy_mem8x4 = vp8_copy_mem8x4_c;
573    if (flags & HAS_MEDIA) vp8_copy_mem8x4 = vp8_copy_mem8x4_v6;
574    if (flags & HAS_NEON) vp8_copy_mem8x4 = vp8_copy_mem8x4_neon;
575
576
577
578    vp8_intra4x4_predict = vp8_intra4x4_predict_c;
579    if (flags & HAS_MEDIA) vp8_intra4x4_predict = vp8_intra4x4_predict_armv6;
580
581
582
583
584
585
586
587
588
589
590
591    vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_c;
592    if (flags & HAS_MEDIA) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_armv6;
593    if (flags & HAS_NEON) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_neon;
594
595    vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_c;
596    if (flags & HAS_MEDIA) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_armv6;
597    if (flags & HAS_NEON) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_neon;
598
599    vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_c;
600    if (flags & HAS_MEDIA) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_armv6;
601    if (flags & HAS_NEON) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_neon;
602
603    vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_c;
604    if (flags & HAS_MEDIA) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_armv6;
605    if (flags & HAS_NEON) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_neon;
606
607    vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_c;
608    if (flags & HAS_MEDIA) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_armv6;
609    if (flags & HAS_NEON) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_neon;
610
611    vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_c;
612    if (flags & HAS_MEDIA) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_armv6;
613    if (flags & HAS_NEON) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_neon;
614
615    vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_c;
616    if (flags & HAS_MEDIA) vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_armv6;
617    if (flags & HAS_NEON) vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_neon;
618
619    vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_c;
620    if (flags & HAS_MEDIA) vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_armv6;
621    if (flags & HAS_NEON) vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_neon;
622
623
624    vp8_variance8x8 = vp8_variance8x8_c;
625    if (flags & HAS_MEDIA) vp8_variance8x8 = vp8_variance8x8_armv6;
626    if (flags & HAS_NEON) vp8_variance8x8 = vp8_variance8x8_neon;
627
628    vp8_variance8x16 = vp8_variance8x16_c;
629    if (flags & HAS_NEON) vp8_variance8x16 = vp8_variance8x16_neon;
630
631    vp8_variance16x8 = vp8_variance16x8_c;
632    if (flags & HAS_NEON) vp8_variance16x8 = vp8_variance16x8_neon;
633
634    vp8_variance16x16 = vp8_variance16x16_c;
635    if (flags & HAS_MEDIA) vp8_variance16x16 = vp8_variance16x16_armv6;
636    if (flags & HAS_NEON) vp8_variance16x16 = vp8_variance16x16_neon;
637
638
639    vp8_sub_pixel_variance8x8 = vp8_sub_pixel_variance8x8_c;
640    if (flags & HAS_MEDIA) vp8_sub_pixel_variance8x8 = vp8_sub_pixel_variance8x8_armv6;
641    if (flags & HAS_NEON) vp8_sub_pixel_variance8x8 = vp8_sub_pixel_variance8x8_neon;
642
643
644
645    vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_c;
646    if (flags & HAS_MEDIA) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_armv6;
647    if (flags & HAS_NEON) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_neon;
648
649    vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_c;
650    if (flags & HAS_MEDIA) vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_armv6;
651    if (flags & HAS_NEON) vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_neon;
652
653    vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_c;
654    if (flags & HAS_MEDIA) vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_armv6;
655    if (flags & HAS_NEON) vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_neon;
656
657    vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_c;
658    if (flags & HAS_MEDIA) vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_armv6;
659    if (flags & HAS_NEON) vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_neon;
660
661    vp8_sad4x4 = vp8_sad4x4_c;
662    if (flags & HAS_NEON) vp8_sad4x4 = vp8_sad4x4_neon;
663
664    vp8_sad8x8 = vp8_sad8x8_c;
665    if (flags & HAS_NEON) vp8_sad8x8 = vp8_sad8x8_neon;
666
667    vp8_sad8x16 = vp8_sad8x16_c;
668    if (flags & HAS_NEON) vp8_sad8x16 = vp8_sad8x16_neon;
669
670    vp8_sad16x8 = vp8_sad16x8_c;
671    if (flags & HAS_NEON) vp8_sad16x8 = vp8_sad16x8_neon;
672
673    vp8_sad16x16 = vp8_sad16x16_c;
674    if (flags & HAS_MEDIA) vp8_sad16x16 = vp8_sad16x16_armv6;
675    if (flags & HAS_NEON) vp8_sad16x16 = vp8_sad16x16_neon;
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694    vp8_mse16x16 = vp8_mse16x16_c;
695    if (flags & HAS_MEDIA) vp8_mse16x16 = vp8_mse16x16_armv6;
696    if (flags & HAS_NEON) vp8_mse16x16 = vp8_mse16x16_neon;
697
698    vp8_get4x4sse_cs = vp8_get4x4sse_cs_c;
699    if (flags & HAS_NEON) vp8_get4x4sse_cs = vp8_get4x4sse_cs_neon;
700
701    vp8_short_fdct4x4 = vp8_short_fdct4x4_c;
702    if (flags & HAS_MEDIA) vp8_short_fdct4x4 = vp8_short_fdct4x4_armv6;
703    if (flags & HAS_NEON) vp8_short_fdct4x4 = vp8_short_fdct4x4_neon;
704
705    vp8_short_fdct8x4 = vp8_short_fdct8x4_c;
706    if (flags & HAS_MEDIA) vp8_short_fdct8x4 = vp8_short_fdct8x4_armv6;
707    if (flags & HAS_NEON) vp8_short_fdct8x4 = vp8_short_fdct8x4_neon;
708
709    vp8_short_walsh4x4 = vp8_short_walsh4x4_c;
710    if (flags & HAS_MEDIA) vp8_short_walsh4x4 = vp8_short_walsh4x4_armv6;
711    if (flags & HAS_NEON) vp8_short_walsh4x4 = vp8_short_walsh4x4_neon;
712
713
714    vp8_fast_quantize_b = vp8_fast_quantize_b_c;
715    if (flags & HAS_MEDIA) vp8_fast_quantize_b = vp8_fast_quantize_b_armv6;
716    if (flags & HAS_NEON) vp8_fast_quantize_b = vp8_fast_quantize_b_neon;
717
718
719    vp8_fast_quantize_b_pair = vp8_fast_quantize_b_pair_c;
720    if (flags & HAS_NEON) vp8_fast_quantize_b_pair = vp8_fast_quantize_b_pair_neon;
721
722    vp8_quantize_mb = vp8_quantize_mb_c;
723    if (flags & HAS_NEON) vp8_quantize_mb = vp8_quantize_mb_neon;
724
725    vp8_quantize_mby = vp8_quantize_mby_c;
726    if (flags & HAS_NEON) vp8_quantize_mby = vp8_quantize_mby_neon;
727
728    vp8_quantize_mbuv = vp8_quantize_mbuv_c;
729    if (flags & HAS_NEON) vp8_quantize_mbuv = vp8_quantize_mbuv_neon;
730
731
732
733
734    vp8_subtract_b = vp8_subtract_b_c;
735    if (flags & HAS_MEDIA) vp8_subtract_b = vp8_subtract_b_armv6;
736    if (flags & HAS_NEON) vp8_subtract_b = vp8_subtract_b_neon;
737
738    vp8_subtract_mby = vp8_subtract_mby_c;
739    if (flags & HAS_MEDIA) vp8_subtract_mby = vp8_subtract_mby_armv6;
740    if (flags & HAS_NEON) vp8_subtract_mby = vp8_subtract_mby_neon;
741
742    vp8_subtract_mbuv = vp8_subtract_mbuv_c;
743    if (flags & HAS_MEDIA) vp8_subtract_mbuv = vp8_subtract_mbuv_armv6;
744    if (flags & HAS_NEON) vp8_subtract_mbuv = vp8_subtract_mbuv_neon;
745
746
747
748
749    vp8_yv12_copy_partial_frame = vp8_yv12_copy_partial_frame_c;
750    if (flags & HAS_NEON) vp8_yv12_copy_partial_frame = vp8_yv12_copy_partial_frame_neon;
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775    vp8_yv12_extend_frame_borders = vp8_yv12_extend_frame_borders_c;
776    if (flags & HAS_NEON) vp8_yv12_extend_frame_borders = vp8_yv12_extend_frame_borders_neon;
777
778    vp8_yv12_copy_frame = vp8_yv12_copy_frame_c;
779    if (flags & HAS_NEON) vp8_yv12_copy_frame = vp8_yv12_copy_frame_neon;
780
781    vp8_yv12_copy_y = vp8_yv12_copy_y_c;
782    if (flags & HAS_NEON) vp8_yv12_copy_y = vp8_yv12_copy_y_neon;
783}
784#endif
785#endif
786