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