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 #define vp8_dequantize_b vp8_dequantize_b_neon 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 #define vp8_dequant_idct_add vp8_dequant_idct_add_neon 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 #define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_neon 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 #define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_neon 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 #define vp8_loop_filter_mbv vp8_loop_filter_mbv_neon 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 #define vp8_loop_filter_bv vp8_loop_filter_bv_neon 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 #define vp8_loop_filter_mbh vp8_loop_filter_mbh_neon 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 #define vp8_loop_filter_bh vp8_loop_filter_bh_neon 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 #define vp8_loop_filter_simple_mbv vp8_loop_filter_mbvs_neon 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 #define vp8_loop_filter_simple_mbh vp8_loop_filter_mbhs_neon 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 #define vp8_loop_filter_simple_bv vp8_loop_filter_bvs_neon 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 #define vp8_loop_filter_simple_bh vp8_loop_filter_bhs_neon 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 #define vp8_short_idct4x4llm vp8_short_idct4x4llm_neon 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 #define vp8_short_inv_walsh4x4 vp8_short_inv_walsh4x4_neon 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 #define vp8_dc_only_idct_add vp8_dc_only_idct_add_neon 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 #define vp8_copy_mem16x16 vp8_copy_mem16x16_neon 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 #define vp8_copy_mem8x8 vp8_copy_mem8x8_neon 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 #define vp8_copy_mem8x4 vp8_copy_mem8x4_neon 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 #define vp8_intra4x4_predict vp8_intra4x4_predict_armv6 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 #define vp8_sixtap_predict16x16 vp8_sixtap_predict16x16_neon 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 #define vp8_sixtap_predict8x8 vp8_sixtap_predict8x8_neon 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 #define vp8_sixtap_predict8x4 vp8_sixtap_predict8x4_neon 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 #define vp8_sixtap_predict4x4 vp8_sixtap_predict4x4_neon 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 #define vp8_bilinear_predict16x16 vp8_bilinear_predict16x16_neon 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 #define vp8_bilinear_predict8x8 vp8_bilinear_predict8x8_neon 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 #define vp8_bilinear_predict8x4 vp8_bilinear_predict8x4_neon 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 #define vp8_bilinear_predict4x4 vp8_bilinear_predict4x4_neon 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 #define vp8_variance8x8 vp8_variance8x8_neon 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 #define vp8_variance8x16 vp8_variance8x16_neon 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 #define vp8_variance16x8 vp8_variance16x8_neon 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 #define vp8_variance16x16 vp8_variance16x16_neon 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 #define vp8_sub_pixel_variance8x8 vp8_sub_pixel_variance8x8_neon 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 #define vp8_sub_pixel_variance16x16 vp8_sub_pixel_variance16x16_neon 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 #define vp8_variance_halfpixvar16x16_h vp8_variance_halfpixvar16x16_h_neon 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 #define vp8_variance_halfpixvar16x16_v vp8_variance_halfpixvar16x16_v_neon 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 #define vp8_variance_halfpixvar16x16_hv vp8_variance_halfpixvar16x16_hv_neon 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 #define vp8_sad4x4 vp8_sad4x4_neon 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 #define vp8_sad8x8 vp8_sad8x8_neon 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 #define vp8_sad8x16 vp8_sad8x16_neon 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 #define vp8_sad16x8 vp8_sad16x8_neon 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 #define vp8_sad16x16 vp8_sad16x16_neon 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 #define vp8_mse16x16 vp8_mse16x16_neon 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 #define vp8_get4x4sse_cs vp8_get4x4sse_cs_neon 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 #define vp8_short_fdct4x4 vp8_short_fdct4x4_neon 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 #define vp8_short_fdct8x4 vp8_short_fdct8x4_neon 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 #define vp8_short_walsh4x4 vp8_short_walsh4x4_neon 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 #define vp8_fast_quantize_b vp8_fast_quantize_b_neon 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 #define vp8_fast_quantize_b_pair vp8_fast_quantize_b_pair_neon 331 332 void vp8_quantize_mb_c(struct macroblock *); 333 void vp8_quantize_mb_neon(struct macroblock *); 334 #define vp8_quantize_mb vp8_quantize_mb_neon 335 336 void vp8_quantize_mby_c(struct macroblock *); 337 void vp8_quantize_mby_neon(struct macroblock *); 338 #define vp8_quantize_mby vp8_quantize_mby_neon 339 340 void vp8_quantize_mbuv_c(struct macroblock *); 341 void vp8_quantize_mbuv_neon(struct macroblock *); 342 #define vp8_quantize_mbuv vp8_quantize_mbuv_neon 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 #define vp8_subtract_b vp8_subtract_b_neon 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 #define vp8_subtract_mby vp8_subtract_mby_neon 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 #define vp8_subtract_mbuv vp8_subtract_mbuv_neon 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 #define vp8_yv12_copy_partial_frame vp8_yv12_copy_partial_frame_neon 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 #define vp8_yv12_extend_frame_borders vp8_yv12_extend_frame_borders_neon 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 #define vp8_yv12_copy_frame vp8_yv12_copy_frame_neon 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 #define vp8_yv12_copy_y vp8_yv12_copy_y_neon 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 474 } 475 #endif 476 #endif 477