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