|
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 |
|
14 struct blockd; |
|
15 struct macroblockd; |
|
16 struct loop_filter_info; |
|
17 |
|
18 /* Encoder forward decls */ |
|
19 struct block; |
|
20 struct macroblock; |
|
21 struct variance_vtable; |
|
22 union int_mv; |
|
23 struct yv12_buffer_config; |
|
24 |
|
25 void vp8_clear_system_state_c(); |
|
26 #define vp8_clear_system_state vp8_clear_system_state_c |
|
27 |
|
28 void vp8_dequantize_b_c(struct blockd*, short *dqc); |
|
29 void vp8_dequantize_b_v6(struct blockd*, short *dqc); |
|
30 void vp8_dequantize_b_neon(struct blockd*, short *dqc); |
|
31 RTCD_EXTERN void (*vp8_dequantize_b)(struct blockd*, short *dqc); |
|
32 |
|
33 void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int stride); |
|
34 void vp8_dequant_idct_add_v6(short *input, short *dq, unsigned char *output, int stride); |
|
35 void vp8_dequant_idct_add_neon(short *input, short *dq, unsigned char *output, int stride); |
|
36 RTCD_EXTERN void (*vp8_dequant_idct_add)(short *input, short *dq, unsigned char *output, int stride); |
|
37 |
|
38 void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int stride, char *eobs); |
|
39 void vp8_dequant_idct_add_y_block_v6(short *q, short *dq, unsigned char *dst, int stride, char *eobs); |
|
40 void vp8_dequant_idct_add_y_block_neon(short *q, short *dq, unsigned char *dst, int stride, char *eobs); |
|
41 RTCD_EXTERN void (*vp8_dequant_idct_add_y_block)(short *q, short *dq, unsigned char *dst, int stride, char *eobs); |
|
42 |
|
43 void vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs); |
|
44 void vp8_dequant_idct_add_uv_block_v6(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs); |
|
45 void vp8_dequant_idct_add_uv_block_neon(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs); |
|
46 RTCD_EXTERN void (*vp8_dequant_idct_add_uv_block)(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs); |
|
47 |
|
48 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); |
|
49 void vp8_loop_filter_mbv_armv6(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
|
50 void vp8_loop_filter_mbv_neon(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
|
51 RTCD_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); |
|
52 |
|
53 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); |
|
54 void vp8_loop_filter_bv_armv6(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
|
55 void vp8_loop_filter_bv_neon(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
|
56 RTCD_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); |
|
57 |
|
58 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); |
|
59 void vp8_loop_filter_mbh_armv6(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
|
60 void vp8_loop_filter_mbh_neon(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
|
61 RTCD_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); |
|
62 |
|
63 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); |
|
64 void vp8_loop_filter_bh_armv6(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
|
65 void vp8_loop_filter_bh_neon(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
|
66 RTCD_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); |
|
67 |
|
68 void vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const unsigned char *blimit); |
|
69 void vp8_loop_filter_simple_vertical_edge_armv6(unsigned char *y, int ystride, const unsigned char *blimit); |
|
70 void vp8_loop_filter_mbvs_neon(unsigned char *y, int ystride, const unsigned char *blimit); |
|
71 RTCD_EXTERN void (*vp8_loop_filter_simple_mbv)(unsigned char *y, int ystride, const unsigned char *blimit); |
|
72 |
|
73 void vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, const unsigned char *blimit); |
|
74 void vp8_loop_filter_simple_horizontal_edge_armv6(unsigned char *y, int ystride, const unsigned char *blimit); |
|
75 void vp8_loop_filter_mbhs_neon(unsigned char *y, int ystride, const unsigned char *blimit); |
|
76 RTCD_EXTERN void (*vp8_loop_filter_simple_mbh)(unsigned char *y, int ystride, const unsigned char *blimit); |
|
77 |
|
78 void vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *blimit); |
|
79 void vp8_loop_filter_bvs_armv6(unsigned char *y, int ystride, const unsigned char *blimit); |
|
80 void vp8_loop_filter_bvs_neon(unsigned char *y, int ystride, const unsigned char *blimit); |
|
81 RTCD_EXTERN void (*vp8_loop_filter_simple_bv)(unsigned char *y, int ystride, const unsigned char *blimit); |
|
82 |
|
83 void vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *blimit); |
|
84 void vp8_loop_filter_bhs_armv6(unsigned char *y, int ystride, const unsigned char *blimit); |
|
85 void vp8_loop_filter_bhs_neon(unsigned char *y, int ystride, const unsigned char *blimit); |
|
86 RTCD_EXTERN void (*vp8_loop_filter_simple_bh)(unsigned char *y, int ystride, const unsigned char *blimit); |
|
87 |
|
88 void vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride); |
|
89 void vp8_short_idct4x4llm_v6_dual(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride); |
|
90 void vp8_short_idct4x4llm_neon(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride); |
|
91 RTCD_EXTERN void (*vp8_short_idct4x4llm)(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride); |
|
92 |
|
93 void vp8_short_inv_walsh4x4_1_c(short *input, short *output); |
|
94 #define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c |
|
95 |
|
96 void vp8_short_inv_walsh4x4_c(short *input, short *output); |
|
97 void vp8_short_inv_walsh4x4_v6(short *input, short *output); |
|
98 void vp8_short_inv_walsh4x4_neon(short *input, short *output); |
|
99 RTCD_EXTERN void (*vp8_short_inv_walsh4x4)(short *input, short *output); |
|
100 |
|
101 void vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride); |
|
102 void vp8_dc_only_idct_add_v6(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride); |
|
103 void vp8_dc_only_idct_add_neon(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride); |
|
104 RTCD_EXTERN void (*vp8_dc_only_idct_add)(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride); |
|
105 |
|
106 void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
107 void vp8_copy_mem16x16_v6(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
108 void vp8_copy_mem16x16_neon(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
109 RTCD_EXTERN void (*vp8_copy_mem16x16)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
110 |
|
111 void vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
112 void vp8_copy_mem8x8_v6(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
113 void vp8_copy_mem8x8_neon(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
114 RTCD_EXTERN void (*vp8_copy_mem8x8)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
115 |
|
116 void vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
117 void vp8_copy_mem8x4_v6(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
118 void vp8_copy_mem8x4_neon(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
119 RTCD_EXTERN void (*vp8_copy_mem8x4)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
120 |
|
121 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); |
|
122 #define vp8_build_intra_predictors_mby_s vp8_build_intra_predictors_mby_s_c |
|
123 |
|
124 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); |
|
125 #define vp8_build_intra_predictors_mbuv_s vp8_build_intra_predictors_mbuv_s_c |
|
126 |
|
127 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); |
|
128 void 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); |
|
129 RTCD_EXTERN void (*vp8_intra4x4_predict)(unsigned char *Above, unsigned char *yleft, int left_stride, int b_mode, unsigned char *dst, int dst_stride, unsigned char top_left); |
|
130 |
|
131 void vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
132 void vp8_sixtap_predict16x16_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
133 void vp8_sixtap_predict16x16_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
134 RTCD_EXTERN void (*vp8_sixtap_predict16x16)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
135 |
|
136 void vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
137 void vp8_sixtap_predict8x8_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
138 void vp8_sixtap_predict8x8_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
139 RTCD_EXTERN void (*vp8_sixtap_predict8x8)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
140 |
|
141 void vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
142 void vp8_sixtap_predict8x4_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
143 void vp8_sixtap_predict8x4_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
144 RTCD_EXTERN void (*vp8_sixtap_predict8x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
145 |
|
146 void vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
147 void vp8_sixtap_predict4x4_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
148 void vp8_sixtap_predict4x4_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
149 RTCD_EXTERN void (*vp8_sixtap_predict4x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
150 |
|
151 void vp8_bilinear_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
152 void vp8_bilinear_predict16x16_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
153 void vp8_bilinear_predict16x16_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
154 RTCD_EXTERN void (*vp8_bilinear_predict16x16)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
155 |
|
156 void vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
157 void vp8_bilinear_predict8x8_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
158 void vp8_bilinear_predict8x8_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
159 RTCD_EXTERN void (*vp8_bilinear_predict8x8)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
160 |
|
161 void vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
162 void vp8_bilinear_predict8x4_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
163 void vp8_bilinear_predict8x4_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
164 RTCD_EXTERN void (*vp8_bilinear_predict8x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
165 |
|
166 void vp8_bilinear_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
167 void vp8_bilinear_predict4x4_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
168 void vp8_bilinear_predict4x4_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
169 RTCD_EXTERN void (*vp8_bilinear_predict4x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
170 |
|
171 unsigned int vp8_variance4x4_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
172 #define vp8_variance4x4 vp8_variance4x4_c |
|
173 |
|
174 unsigned int vp8_variance8x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
175 unsigned int vp8_variance8x8_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
176 unsigned int vp8_variance8x8_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
177 RTCD_EXTERN unsigned int (*vp8_variance8x8)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
178 |
|
179 unsigned int vp8_variance8x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
180 unsigned int vp8_variance8x16_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
181 RTCD_EXTERN unsigned int (*vp8_variance8x16)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
182 |
|
183 unsigned int vp8_variance16x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
184 unsigned int vp8_variance16x8_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
185 RTCD_EXTERN unsigned int (*vp8_variance16x8)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
186 |
|
187 unsigned int vp8_variance16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
188 unsigned int vp8_variance16x16_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
189 unsigned int vp8_variance16x16_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
190 RTCD_EXTERN unsigned int (*vp8_variance16x16)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
191 |
|
192 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); |
|
193 #define vp8_sub_pixel_variance4x4 vp8_sub_pixel_variance4x4_c |
|
194 |
|
195 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); |
|
196 unsigned 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); |
|
197 unsigned 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); |
|
198 RTCD_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); |
|
199 |
|
200 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); |
|
201 #define vp8_sub_pixel_variance8x16 vp8_sub_pixel_variance8x16_c |
|
202 |
|
203 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); |
|
204 #define vp8_sub_pixel_variance16x8 vp8_sub_pixel_variance16x8_c |
|
205 |
|
206 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); |
|
207 unsigned 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); |
|
208 unsigned 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); |
|
209 RTCD_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); |
|
210 |
|
211 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); |
|
212 unsigned 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); |
|
213 unsigned 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); |
|
214 RTCD_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); |
|
215 |
|
216 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); |
|
217 unsigned 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); |
|
218 unsigned 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); |
|
219 RTCD_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); |
|
220 |
|
221 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); |
|
222 unsigned 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); |
|
223 unsigned 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); |
|
224 RTCD_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); |
|
225 |
|
226 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); |
|
227 unsigned int vp8_sad4x4_neon(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
|
228 RTCD_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); |
|
229 |
|
230 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); |
|
231 unsigned int vp8_sad8x8_neon(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
|
232 RTCD_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); |
|
233 |
|
234 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); |
|
235 unsigned int vp8_sad8x16_neon(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
|
236 RTCD_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); |
|
237 |
|
238 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); |
|
239 unsigned int vp8_sad16x8_neon(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
|
240 RTCD_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); |
|
241 |
|
242 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); |
|
243 unsigned int vp8_sad16x16_armv6(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
|
244 unsigned int vp8_sad16x16_neon(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
|
245 RTCD_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); |
|
246 |
|
247 void vp8_sad4x4x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
|
248 #define vp8_sad4x4x3 vp8_sad4x4x3_c |
|
249 |
|
250 void vp8_sad8x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
|
251 #define vp8_sad8x8x3 vp8_sad8x8x3_c |
|
252 |
|
253 void vp8_sad8x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
|
254 #define vp8_sad8x16x3 vp8_sad8x16x3_c |
|
255 |
|
256 void vp8_sad16x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
|
257 #define vp8_sad16x8x3 vp8_sad16x8x3_c |
|
258 |
|
259 void vp8_sad16x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
|
260 #define vp8_sad16x16x3 vp8_sad16x16x3_c |
|
261 |
|
262 void vp8_sad4x4x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
|
263 #define vp8_sad4x4x8 vp8_sad4x4x8_c |
|
264 |
|
265 void vp8_sad8x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
|
266 #define vp8_sad8x8x8 vp8_sad8x8x8_c |
|
267 |
|
268 void vp8_sad8x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
|
269 #define vp8_sad8x16x8 vp8_sad8x16x8_c |
|
270 |
|
271 void vp8_sad16x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
|
272 #define vp8_sad16x8x8 vp8_sad16x8x8_c |
|
273 |
|
274 void vp8_sad16x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
|
275 #define vp8_sad16x16x8 vp8_sad16x16x8_c |
|
276 |
|
277 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); |
|
278 #define vp8_sad4x4x4d vp8_sad4x4x4d_c |
|
279 |
|
280 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); |
|
281 #define vp8_sad8x8x4d vp8_sad8x8x4d_c |
|
282 |
|
283 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); |
|
284 #define vp8_sad8x16x4d vp8_sad8x16x4d_c |
|
285 |
|
286 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); |
|
287 #define vp8_sad16x8x4d vp8_sad16x8x4d_c |
|
288 |
|
289 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); |
|
290 #define vp8_sad16x16x4d vp8_sad16x16x4d_c |
|
291 |
|
292 unsigned int vp8_get_mb_ss_c(const short *); |
|
293 #define vp8_get_mb_ss vp8_get_mb_ss_c |
|
294 |
|
295 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); |
|
296 #define vp8_sub_pixel_mse16x16 vp8_sub_pixel_mse16x16_c |
|
297 |
|
298 unsigned int vp8_mse16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
299 unsigned int vp8_mse16x16_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
300 unsigned int vp8_mse16x16_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
301 RTCD_EXTERN unsigned int (*vp8_mse16x16)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
302 |
|
303 unsigned int vp8_get4x4sse_cs_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride); |
|
304 unsigned int vp8_get4x4sse_cs_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride); |
|
305 RTCD_EXTERN unsigned int (*vp8_get4x4sse_cs)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride); |
|
306 |
|
307 void vp8_short_fdct4x4_c(short *input, short *output, int pitch); |
|
308 void vp8_short_fdct4x4_armv6(short *input, short *output, int pitch); |
|
309 void vp8_short_fdct4x4_neon(short *input, short *output, int pitch); |
|
310 RTCD_EXTERN void (*vp8_short_fdct4x4)(short *input, short *output, int pitch); |
|
311 |
|
312 void vp8_short_fdct8x4_c(short *input, short *output, int pitch); |
|
313 void vp8_short_fdct8x4_armv6(short *input, short *output, int pitch); |
|
314 void vp8_short_fdct8x4_neon(short *input, short *output, int pitch); |
|
315 RTCD_EXTERN void (*vp8_short_fdct8x4)(short *input, short *output, int pitch); |
|
316 |
|
317 void vp8_short_walsh4x4_c(short *input, short *output, int pitch); |
|
318 void vp8_short_walsh4x4_armv6(short *input, short *output, int pitch); |
|
319 void vp8_short_walsh4x4_neon(short *input, short *output, int pitch); |
|
320 RTCD_EXTERN void (*vp8_short_walsh4x4)(short *input, short *output, int pitch); |
|
321 |
|
322 void vp8_regular_quantize_b_c(struct block *, struct blockd *); |
|
323 #define vp8_regular_quantize_b vp8_regular_quantize_b_c |
|
324 |
|
325 void vp8_fast_quantize_b_c(struct block *, struct blockd *); |
|
326 void vp8_fast_quantize_b_armv6(struct block *, struct blockd *); |
|
327 void vp8_fast_quantize_b_neon(struct block *, struct blockd *); |
|
328 RTCD_EXTERN void (*vp8_fast_quantize_b)(struct block *, struct blockd *); |
|
329 |
|
330 void vp8_regular_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2); |
|
331 #define vp8_regular_quantize_b_pair vp8_regular_quantize_b_pair_c |
|
332 |
|
333 void vp8_fast_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2); |
|
334 void vp8_fast_quantize_b_pair_neon(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2); |
|
335 RTCD_EXTERN void (*vp8_fast_quantize_b_pair)(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2); |
|
336 |
|
337 void vp8_quantize_mb_c(struct macroblock *); |
|
338 void vp8_quantize_mb_neon(struct macroblock *); |
|
339 RTCD_EXTERN void (*vp8_quantize_mb)(struct macroblock *); |
|
340 |
|
341 void vp8_quantize_mby_c(struct macroblock *); |
|
342 void vp8_quantize_mby_neon(struct macroblock *); |
|
343 RTCD_EXTERN void (*vp8_quantize_mby)(struct macroblock *); |
|
344 |
|
345 void vp8_quantize_mbuv_c(struct macroblock *); |
|
346 void vp8_quantize_mbuv_neon(struct macroblock *); |
|
347 RTCD_EXTERN void (*vp8_quantize_mbuv)(struct macroblock *); |
|
348 |
|
349 int vp8_block_error_c(short *coeff, short *dqcoeff); |
|
350 #define vp8_block_error vp8_block_error_c |
|
351 |
|
352 int vp8_mbblock_error_c(struct macroblock *mb, int dc); |
|
353 #define vp8_mbblock_error vp8_mbblock_error_c |
|
354 |
|
355 int vp8_mbuverror_c(struct macroblock *mb); |
|
356 #define vp8_mbuverror vp8_mbuverror_c |
|
357 |
|
358 void vp8_subtract_b_c(struct block *be, struct blockd *bd, int pitch); |
|
359 void vp8_subtract_b_armv6(struct block *be, struct blockd *bd, int pitch); |
|
360 void vp8_subtract_b_neon(struct block *be, struct blockd *bd, int pitch); |
|
361 RTCD_EXTERN void (*vp8_subtract_b)(struct block *be, struct blockd *bd, int pitch); |
|
362 |
|
363 void vp8_subtract_mby_c(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride); |
|
364 void vp8_subtract_mby_armv6(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride); |
|
365 void vp8_subtract_mby_neon(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride); |
|
366 RTCD_EXTERN void (*vp8_subtract_mby)(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride); |
|
367 |
|
368 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); |
|
369 void vp8_subtract_mbuv_armv6(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride); |
|
370 void vp8_subtract_mbuv_neon(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride); |
|
371 RTCD_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); |
|
372 |
|
373 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); |
|
374 #define vp8_full_search_sad vp8_full_search_sad_c |
|
375 |
|
376 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); |
|
377 #define vp8_refining_search_sad vp8_refining_search_sad_c |
|
378 |
|
379 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); |
|
380 #define vp8_diamond_search_sad vp8_diamond_search_sad_c |
|
381 |
|
382 void vp8_yv12_copy_partial_frame_c(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc); |
|
383 void vp8_yv12_copy_partial_frame_neon(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc); |
|
384 RTCD_EXTERN void (*vp8_yv12_copy_partial_frame)(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc); |
|
385 |
|
386 int 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); |
|
387 #define vp8_denoiser_filter vp8_denoiser_filter_c |
|
388 |
|
389 void vp8_rtcd(void); |
|
390 #include "vpx_config.h" |
|
391 |
|
392 #ifdef RTCD_C |
|
393 #include "vpx_ports/arm.h" |
|
394 static void setup_rtcd_internal(void) |
|
395 { |
|
396 int flags = arm_cpu_caps(); |
|
397 |
|
398 (void)flags; |
|
399 |
|
400 |
|
401 vp8_dequantize_b = vp8_dequantize_b_c; |
|
402 if (flags & HAS_MEDIA) vp8_dequantize_b = vp8_dequantize_b_v6; |
|
403 if (flags & HAS_NEON) vp8_dequantize_b = vp8_dequantize_b_neon; |
|
404 |
|
405 vp8_dequant_idct_add = vp8_dequant_idct_add_c; |
|
406 if (flags & HAS_MEDIA) vp8_dequant_idct_add = vp8_dequant_idct_add_v6; |
|
407 if (flags & HAS_NEON) vp8_dequant_idct_add = vp8_dequant_idct_add_neon; |
|
408 |
|
409 vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_c; |
|
410 if (flags & HAS_MEDIA) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_v6; |
|
411 if (flags & HAS_NEON) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_neon; |
|
412 |
|
413 vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_c; |
|
414 if (flags & HAS_MEDIA) vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_v6; |
|
415 if (flags & HAS_NEON) vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_neon; |
|
416 |
|
417 vp8_loop_filter_mbv = vp8_loop_filter_mbv_c; |
|
418 if (flags & HAS_MEDIA) vp8_loop_filter_mbv = vp8_loop_filter_mbv_armv6; |
|
419 if (flags & HAS_NEON) vp8_loop_filter_mbv = vp8_loop_filter_mbv_neon; |
|
420 |
|
421 vp8_loop_filter_bv = vp8_loop_filter_bv_c; |
|
422 if (flags & HAS_MEDIA) vp8_loop_filter_bv = vp8_loop_filter_bv_armv6; |
|
423 if (flags & HAS_NEON) vp8_loop_filter_bv = vp8_loop_filter_bv_neon; |
|
424 |
|
425 vp8_loop_filter_mbh = vp8_loop_filter_mbh_c; |
|
426 if (flags & HAS_MEDIA) vp8_loop_filter_mbh = vp8_loop_filter_mbh_armv6; |
|
427 if (flags & HAS_NEON) vp8_loop_filter_mbh = vp8_loop_filter_mbh_neon; |
|
428 |
|
429 vp8_loop_filter_bh = vp8_loop_filter_bh_c; |
|
430 if (flags & HAS_MEDIA) vp8_loop_filter_bh = vp8_loop_filter_bh_armv6; |
|
431 if (flags & HAS_NEON) vp8_loop_filter_bh = vp8_loop_filter_bh_neon; |
|
432 |
|
433 vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_vertical_edge_c; |
|
434 if (flags & HAS_MEDIA) vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_vertical_edge_armv6; |
|
435 if (flags & HAS_NEON) vp8_loop_filter_simple_mbv = vp8_loop_filter_mbvs_neon; |
|
436 |
|
437 vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_horizontal_edge_c; |
|
438 if (flags & HAS_MEDIA) vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_horizontal_edge_armv6; |
|
439 if (flags & HAS_NEON) vp8_loop_filter_simple_mbh = vp8_loop_filter_mbhs_neon; |
|
440 |
|
441 vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_c; |
|
442 if (flags & HAS_MEDIA) vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_armv6; |
|
443 if (flags & HAS_NEON) vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_neon; |
|
444 |
|
445 vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_c; |
|
446 if (flags & HAS_MEDIA) vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_armv6; |
|
447 if (flags & HAS_NEON) vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_neon; |
|
448 |
|
449 vp8_short_idct4x4llm = vp8_short_idct4x4llm_c; |
|
450 if (flags & HAS_MEDIA) vp8_short_idct4x4llm = vp8_short_idct4x4llm_v6_dual; |
|
451 if (flags & HAS_NEON) vp8_short_idct4x4llm = vp8_short_idct4x4llm_neon; |
|
452 |
|
453 |
|
454 vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_c; |
|
455 if (flags & HAS_MEDIA) vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_v6; |
|
456 if (flags & HAS_NEON) vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_neon; |
|
457 |
|
458 vp8_dc_only_idct_add = vp8_dc_only_idct_add_c; |
|
459 if (flags & HAS_MEDIA) vp8_dc_only_idct_add = vp8_dc_only_idct_add_v6; |
|
460 if (flags & HAS_NEON) vp8_dc_only_idct_add = vp8_dc_only_idct_add_neon; |
|
461 |
|
462 vp8_copy_mem16x16 = vp8_copy_mem16x16_c; |
|
463 if (flags & HAS_MEDIA) vp8_copy_mem16x16 = vp8_copy_mem16x16_v6; |
|
464 if (flags & HAS_NEON) vp8_copy_mem16x16 = vp8_copy_mem16x16_neon; |
|
465 |
|
466 vp8_copy_mem8x8 = vp8_copy_mem8x8_c; |
|
467 if (flags & HAS_MEDIA) vp8_copy_mem8x8 = vp8_copy_mem8x8_v6; |
|
468 if (flags & HAS_NEON) vp8_copy_mem8x8 = vp8_copy_mem8x8_neon; |
|
469 |
|
470 vp8_copy_mem8x4 = vp8_copy_mem8x4_c; |
|
471 if (flags & HAS_MEDIA) vp8_copy_mem8x4 = vp8_copy_mem8x4_v6; |
|
472 if (flags & HAS_NEON) vp8_copy_mem8x4 = vp8_copy_mem8x4_neon; |
|
473 |
|
474 |
|
475 |
|
476 vp8_intra4x4_predict = vp8_intra4x4_predict_c; |
|
477 if (flags & HAS_MEDIA) vp8_intra4x4_predict = vp8_intra4x4_predict_armv6; |
|
478 |
|
479 vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_c; |
|
480 if (flags & HAS_MEDIA) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_armv6; |
|
481 if (flags & HAS_NEON) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_neon; |
|
482 |
|
483 vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_c; |
|
484 if (flags & HAS_MEDIA) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_armv6; |
|
485 if (flags & HAS_NEON) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_neon; |
|
486 |
|
487 vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_c; |
|
488 if (flags & HAS_MEDIA) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_armv6; |
|
489 if (flags & HAS_NEON) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_neon; |
|
490 |
|
491 vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_c; |
|
492 if (flags & HAS_MEDIA) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_armv6; |
|
493 if (flags & HAS_NEON) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_neon; |
|
494 |
|
495 vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_c; |
|
496 if (flags & HAS_MEDIA) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_armv6; |
|
497 if (flags & HAS_NEON) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_neon; |
|
498 |
|
499 vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_c; |
|
500 if (flags & HAS_MEDIA) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_armv6; |
|
501 if (flags & HAS_NEON) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_neon; |
|
502 |
|
503 vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_c; |
|
504 if (flags & HAS_MEDIA) vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_armv6; |
|
505 if (flags & HAS_NEON) vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_neon; |
|
506 |
|
507 vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_c; |
|
508 if (flags & HAS_MEDIA) vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_armv6; |
|
509 if (flags & HAS_NEON) vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_neon; |
|
510 |
|
511 |
|
512 vp8_variance8x8 = vp8_variance8x8_c; |
|
513 if (flags & HAS_MEDIA) vp8_variance8x8 = vp8_variance8x8_armv6; |
|
514 if (flags & HAS_NEON) vp8_variance8x8 = vp8_variance8x8_neon; |
|
515 |
|
516 vp8_variance8x16 = vp8_variance8x16_c; |
|
517 if (flags & HAS_NEON) vp8_variance8x16 = vp8_variance8x16_neon; |
|
518 |
|
519 vp8_variance16x8 = vp8_variance16x8_c; |
|
520 if (flags & HAS_NEON) vp8_variance16x8 = vp8_variance16x8_neon; |
|
521 |
|
522 vp8_variance16x16 = vp8_variance16x16_c; |
|
523 if (flags & HAS_MEDIA) vp8_variance16x16 = vp8_variance16x16_armv6; |
|
524 if (flags & HAS_NEON) vp8_variance16x16 = vp8_variance16x16_neon; |
|
525 |
|
526 |
|
527 vp8_sub_pixel_variance8x8 = vp8_sub_pixel_variance8x8_c; |
|
528 if (flags & HAS_MEDIA) vp8_sub_pixel_variance8x8 = vp8_sub_pixel_variance8x8_armv6; |
|
529 if (flags & HAS_NEON) vp8_sub_pixel_variance8x8 = vp8_sub_pixel_variance8x8_neon; |
|
530 |
|
531 |
|
532 |
|
533 vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_c; |
|
534 if (flags & HAS_MEDIA) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_armv6; |
|
535 if (flags & HAS_NEON) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_neon; |
|
536 |
|
537 vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_c; |
|
538 if (flags & HAS_MEDIA) vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_armv6; |
|
539 if (flags & HAS_NEON) vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_neon; |
|
540 |
|
541 vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_c; |
|
542 if (flags & HAS_MEDIA) vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_armv6; |
|
543 if (flags & HAS_NEON) vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_neon; |
|
544 |
|
545 vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_c; |
|
546 if (flags & HAS_MEDIA) vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_armv6; |
|
547 if (flags & HAS_NEON) vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_neon; |
|
548 |
|
549 vp8_sad4x4 = vp8_sad4x4_c; |
|
550 if (flags & HAS_NEON) vp8_sad4x4 = vp8_sad4x4_neon; |
|
551 |
|
552 vp8_sad8x8 = vp8_sad8x8_c; |
|
553 if (flags & HAS_NEON) vp8_sad8x8 = vp8_sad8x8_neon; |
|
554 |
|
555 vp8_sad8x16 = vp8_sad8x16_c; |
|
556 if (flags & HAS_NEON) vp8_sad8x16 = vp8_sad8x16_neon; |
|
557 |
|
558 vp8_sad16x8 = vp8_sad16x8_c; |
|
559 if (flags & HAS_NEON) vp8_sad16x8 = vp8_sad16x8_neon; |
|
560 |
|
561 vp8_sad16x16 = vp8_sad16x16_c; |
|
562 if (flags & HAS_MEDIA) vp8_sad16x16 = vp8_sad16x16_armv6; |
|
563 if (flags & HAS_NEON) vp8_sad16x16 = vp8_sad16x16_neon; |
|
564 |
|
565 |
|
566 |
|
567 |
|
568 |
|
569 |
|
570 |
|
571 |
|
572 |
|
573 |
|
574 |
|
575 |
|
576 |
|
577 |
|
578 |
|
579 |
|
580 |
|
581 |
|
582 vp8_mse16x16 = vp8_mse16x16_c; |
|
583 if (flags & HAS_MEDIA) vp8_mse16x16 = vp8_mse16x16_armv6; |
|
584 if (flags & HAS_NEON) vp8_mse16x16 = vp8_mse16x16_neon; |
|
585 |
|
586 vp8_get4x4sse_cs = vp8_get4x4sse_cs_c; |
|
587 if (flags & HAS_NEON) vp8_get4x4sse_cs = vp8_get4x4sse_cs_neon; |
|
588 |
|
589 vp8_short_fdct4x4 = vp8_short_fdct4x4_c; |
|
590 if (flags & HAS_MEDIA) vp8_short_fdct4x4 = vp8_short_fdct4x4_armv6; |
|
591 if (flags & HAS_NEON) vp8_short_fdct4x4 = vp8_short_fdct4x4_neon; |
|
592 |
|
593 vp8_short_fdct8x4 = vp8_short_fdct8x4_c; |
|
594 if (flags & HAS_MEDIA) vp8_short_fdct8x4 = vp8_short_fdct8x4_armv6; |
|
595 if (flags & HAS_NEON) vp8_short_fdct8x4 = vp8_short_fdct8x4_neon; |
|
596 |
|
597 vp8_short_walsh4x4 = vp8_short_walsh4x4_c; |
|
598 if (flags & HAS_MEDIA) vp8_short_walsh4x4 = vp8_short_walsh4x4_armv6; |
|
599 if (flags & HAS_NEON) vp8_short_walsh4x4 = vp8_short_walsh4x4_neon; |
|
600 |
|
601 |
|
602 vp8_fast_quantize_b = vp8_fast_quantize_b_c; |
|
603 if (flags & HAS_MEDIA) vp8_fast_quantize_b = vp8_fast_quantize_b_armv6; |
|
604 if (flags & HAS_NEON) vp8_fast_quantize_b = vp8_fast_quantize_b_neon; |
|
605 |
|
606 |
|
607 vp8_fast_quantize_b_pair = vp8_fast_quantize_b_pair_c; |
|
608 if (flags & HAS_NEON) vp8_fast_quantize_b_pair = vp8_fast_quantize_b_pair_neon; |
|
609 |
|
610 vp8_quantize_mb = vp8_quantize_mb_c; |
|
611 if (flags & HAS_NEON) vp8_quantize_mb = vp8_quantize_mb_neon; |
|
612 |
|
613 vp8_quantize_mby = vp8_quantize_mby_c; |
|
614 if (flags & HAS_NEON) vp8_quantize_mby = vp8_quantize_mby_neon; |
|
615 |
|
616 vp8_quantize_mbuv = vp8_quantize_mbuv_c; |
|
617 if (flags & HAS_NEON) vp8_quantize_mbuv = vp8_quantize_mbuv_neon; |
|
618 |
|
619 |
|
620 |
|
621 |
|
622 vp8_subtract_b = vp8_subtract_b_c; |
|
623 if (flags & HAS_MEDIA) vp8_subtract_b = vp8_subtract_b_armv6; |
|
624 if (flags & HAS_NEON) vp8_subtract_b = vp8_subtract_b_neon; |
|
625 |
|
626 vp8_subtract_mby = vp8_subtract_mby_c; |
|
627 if (flags & HAS_MEDIA) vp8_subtract_mby = vp8_subtract_mby_armv6; |
|
628 if (flags & HAS_NEON) vp8_subtract_mby = vp8_subtract_mby_neon; |
|
629 |
|
630 vp8_subtract_mbuv = vp8_subtract_mbuv_c; |
|
631 if (flags & HAS_MEDIA) vp8_subtract_mbuv = vp8_subtract_mbuv_armv6; |
|
632 if (flags & HAS_NEON) vp8_subtract_mbuv = vp8_subtract_mbuv_neon; |
|
633 |
|
634 |
|
635 |
|
636 |
|
637 vp8_yv12_copy_partial_frame = vp8_yv12_copy_partial_frame_c; |
|
638 if (flags & HAS_NEON) vp8_yv12_copy_partial_frame = vp8_yv12_copy_partial_frame_neon; |
|
639 } |
|
640 #endif |
|
641 #endif |