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