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