Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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 | void vpx_reset_mmx_state(); |
michael@0 | 27 | RTCD_EXTERN void (*vp8_clear_system_state)(); |
michael@0 | 28 | |
michael@0 | 29 | void vp8_dequantize_b_c(struct blockd*, short *dqc); |
michael@0 | 30 | void vp8_dequantize_b_mmx(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_mmx(short *input, short *dq, unsigned char *output, int stride); |
michael@0 | 35 | RTCD_EXTERN void (*vp8_dequant_idct_add)(short *input, short *dq, unsigned char *output, int stride); |
michael@0 | 36 | |
michael@0 | 37 | void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int stride, char *eobs); |
michael@0 | 38 | void vp8_dequant_idct_add_y_block_mmx(short *q, short *dq, unsigned char *dst, int stride, char *eobs); |
michael@0 | 39 | void vp8_dequant_idct_add_y_block_sse2(short *q, short *dq, unsigned char *dst, int stride, char *eobs); |
michael@0 | 40 | RTCD_EXTERN void (*vp8_dequant_idct_add_y_block)(short *q, short *dq, unsigned char *dst, int stride, char *eobs); |
michael@0 | 41 | |
michael@0 | 42 | 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 | 43 | void vp8_dequant_idct_add_uv_block_mmx(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_sse2(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs); |
michael@0 | 45 | 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 | 46 | |
michael@0 | 47 | 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 | 48 | void vp8_loop_filter_mbv_mmx(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_sse2(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
michael@0 | 50 | 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 | 51 | |
michael@0 | 52 | 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 | 53 | void vp8_loop_filter_bv_mmx(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_sse2(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
michael@0 | 55 | 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 | 56 | |
michael@0 | 57 | 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 | 58 | void vp8_loop_filter_mbh_mmx(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_sse2(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
michael@0 | 60 | 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 | 61 | |
michael@0 | 62 | 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 | 63 | void vp8_loop_filter_bh_mmx(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_sse2(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
michael@0 | 65 | 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 | 66 | |
michael@0 | 67 | void vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const unsigned char *blimit); |
michael@0 | 68 | void vp8_loop_filter_simple_vertical_edge_mmx(unsigned char *y, int ystride, const unsigned char *blimit); |
michael@0 | 69 | void vp8_loop_filter_simple_vertical_edge_sse2(unsigned char *y, int ystride, const unsigned char *blimit); |
michael@0 | 70 | RTCD_EXTERN void (*vp8_loop_filter_simple_mbv)(unsigned char *y, int ystride, const unsigned char *blimit); |
michael@0 | 71 | |
michael@0 | 72 | void vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, const unsigned char *blimit); |
michael@0 | 73 | void vp8_loop_filter_simple_horizontal_edge_mmx(unsigned char *y, int ystride, const unsigned char *blimit); |
michael@0 | 74 | void vp8_loop_filter_simple_horizontal_edge_sse2(unsigned char *y, int ystride, const unsigned char *blimit); |
michael@0 | 75 | RTCD_EXTERN void (*vp8_loop_filter_simple_mbh)(unsigned char *y, int ystride, const unsigned char *blimit); |
michael@0 | 76 | |
michael@0 | 77 | void vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *blimit); |
michael@0 | 78 | void vp8_loop_filter_bvs_mmx(unsigned char *y, int ystride, const unsigned char *blimit); |
michael@0 | 79 | void vp8_loop_filter_bvs_sse2(unsigned char *y, int ystride, const unsigned char *blimit); |
michael@0 | 80 | RTCD_EXTERN void (*vp8_loop_filter_simple_bv)(unsigned char *y, int ystride, const unsigned char *blimit); |
michael@0 | 81 | |
michael@0 | 82 | void vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *blimit); |
michael@0 | 83 | void vp8_loop_filter_bhs_mmx(unsigned char *y, int ystride, const unsigned char *blimit); |
michael@0 | 84 | void vp8_loop_filter_bhs_sse2(unsigned char *y, int ystride, const unsigned char *blimit); |
michael@0 | 85 | RTCD_EXTERN void (*vp8_loop_filter_simple_bh)(unsigned char *y, int ystride, const unsigned char *blimit); |
michael@0 | 86 | |
michael@0 | 87 | void vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride); |
michael@0 | 88 | void vp8_short_idct4x4llm_mmx(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride); |
michael@0 | 89 | RTCD_EXTERN void (*vp8_short_idct4x4llm)(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride); |
michael@0 | 90 | |
michael@0 | 91 | void vp8_short_inv_walsh4x4_1_c(short *input, short *output); |
michael@0 | 92 | #define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c |
michael@0 | 93 | |
michael@0 | 94 | void vp8_short_inv_walsh4x4_c(short *input, short *output); |
michael@0 | 95 | void vp8_short_inv_walsh4x4_mmx(short *input, short *output); |
michael@0 | 96 | void vp8_short_inv_walsh4x4_sse2(short *input, short *output); |
michael@0 | 97 | RTCD_EXTERN void (*vp8_short_inv_walsh4x4)(short *input, short *output); |
michael@0 | 98 | |
michael@0 | 99 | void vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride); |
michael@0 | 100 | void vp8_dc_only_idct_add_mmx(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride); |
michael@0 | 101 | RTCD_EXTERN void (*vp8_dc_only_idct_add)(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride); |
michael@0 | 102 | |
michael@0 | 103 | void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
michael@0 | 104 | void vp8_copy_mem16x16_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
michael@0 | 105 | void vp8_copy_mem16x16_sse2(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
michael@0 | 106 | RTCD_EXTERN void (*vp8_copy_mem16x16)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
michael@0 | 107 | |
michael@0 | 108 | void vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
michael@0 | 109 | void vp8_copy_mem8x8_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
michael@0 | 110 | RTCD_EXTERN void (*vp8_copy_mem8x8)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
michael@0 | 111 | |
michael@0 | 112 | void vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
michael@0 | 113 | void vp8_copy_mem8x4_mmx(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 | void vp8_build_intra_predictors_mby_s_sse2(struct macroblockd *x, unsigned char * yabove_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, int y_stride); |
michael@0 | 118 | void vp8_build_intra_predictors_mby_s_ssse3(struct macroblockd *x, unsigned char * yabove_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, int y_stride); |
michael@0 | 119 | RTCD_EXTERN void (*vp8_build_intra_predictors_mby_s)(struct macroblockd *x, unsigned char * yabove_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, int y_stride); |
michael@0 | 120 | |
michael@0 | 121 | 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 | 122 | void vp8_build_intra_predictors_mbuv_s_sse2(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 | 123 | void vp8_build_intra_predictors_mbuv_s_ssse3(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 | 124 | RTCD_EXTERN void (*vp8_build_intra_predictors_mbuv_s)(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 | |
michael@0 | 126 | 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 | 127 | #define vp8_intra4x4_predict vp8_intra4x4_predict_c |
michael@0 | 128 | |
michael@0 | 129 | void vp8_mbpost_proc_down_c(unsigned char *dst, int pitch, int rows, int cols,int flimit); |
michael@0 | 130 | void vp8_mbpost_proc_down_mmx(unsigned char *dst, int pitch, int rows, int cols,int flimit); |
michael@0 | 131 | void vp8_mbpost_proc_down_xmm(unsigned char *dst, int pitch, int rows, int cols,int flimit); |
michael@0 | 132 | RTCD_EXTERN void (*vp8_mbpost_proc_down)(unsigned char *dst, int pitch, int rows, int cols,int flimit); |
michael@0 | 133 | |
michael@0 | 134 | void vp8_mbpost_proc_across_ip_c(unsigned char *dst, int pitch, int rows, int cols,int flimit); |
michael@0 | 135 | void vp8_mbpost_proc_across_ip_xmm(unsigned char *dst, int pitch, int rows, int cols,int flimit); |
michael@0 | 136 | RTCD_EXTERN void (*vp8_mbpost_proc_across_ip)(unsigned char *dst, int pitch, int rows, int cols,int flimit); |
michael@0 | 137 | |
michael@0 | 138 | void vp8_post_proc_down_and_across_mb_row_c(unsigned char *src, unsigned char *dst, int src_pitch, int dst_pitch, int cols, unsigned char *flimits, int size); |
michael@0 | 139 | void vp8_post_proc_down_and_across_mb_row_sse2(unsigned char *src, unsigned char *dst, int src_pitch, int dst_pitch, int cols, unsigned char *flimits, int size); |
michael@0 | 140 | RTCD_EXTERN void (*vp8_post_proc_down_and_across_mb_row)(unsigned char *src, unsigned char *dst, int src_pitch, int dst_pitch, int cols, unsigned char *flimits, int size); |
michael@0 | 141 | |
michael@0 | 142 | void vp8_plane_add_noise_c(unsigned char *s, char *noise, char blackclamp[16], char whiteclamp[16], char bothclamp[16], unsigned int w, unsigned int h, int pitch); |
michael@0 | 143 | void vp8_plane_add_noise_mmx(unsigned char *s, char *noise, char blackclamp[16], char whiteclamp[16], char bothclamp[16], unsigned int w, unsigned int h, int pitch); |
michael@0 | 144 | void vp8_plane_add_noise_wmt(unsigned char *s, char *noise, char blackclamp[16], char whiteclamp[16], char bothclamp[16], unsigned int w, unsigned int h, int pitch); |
michael@0 | 145 | RTCD_EXTERN void (*vp8_plane_add_noise)(unsigned char *s, char *noise, char blackclamp[16], char whiteclamp[16], char bothclamp[16], unsigned int w, unsigned int h, int pitch); |
michael@0 | 146 | |
michael@0 | 147 | void vp8_blend_mb_inner_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride); |
michael@0 | 148 | #define vp8_blend_mb_inner vp8_blend_mb_inner_c |
michael@0 | 149 | |
michael@0 | 150 | void vp8_blend_mb_outer_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride); |
michael@0 | 151 | #define vp8_blend_mb_outer vp8_blend_mb_outer_c |
michael@0 | 152 | |
michael@0 | 153 | void vp8_blend_b_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride); |
michael@0 | 154 | #define vp8_blend_b vp8_blend_b_c |
michael@0 | 155 | |
michael@0 | 156 | void vp8_filter_by_weight16x16_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight); |
michael@0 | 157 | void vp8_filter_by_weight16x16_sse2(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight); |
michael@0 | 158 | RTCD_EXTERN void (*vp8_filter_by_weight16x16)(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight); |
michael@0 | 159 | |
michael@0 | 160 | void vp8_filter_by_weight8x8_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight); |
michael@0 | 161 | void vp8_filter_by_weight8x8_sse2(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight); |
michael@0 | 162 | RTCD_EXTERN void (*vp8_filter_by_weight8x8)(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight); |
michael@0 | 163 | |
michael@0 | 164 | void vp8_filter_by_weight4x4_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight); |
michael@0 | 165 | #define vp8_filter_by_weight4x4 vp8_filter_by_weight4x4_c |
michael@0 | 166 | |
michael@0 | 167 | void vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 168 | void vp8_sixtap_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 169 | void vp8_sixtap_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 170 | void vp8_sixtap_predict16x16_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 171 | RTCD_EXTERN void (*vp8_sixtap_predict16x16)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 172 | |
michael@0 | 173 | void vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 174 | void vp8_sixtap_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 175 | void vp8_sixtap_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 176 | void vp8_sixtap_predict8x8_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 177 | RTCD_EXTERN void (*vp8_sixtap_predict8x8)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 178 | |
michael@0 | 179 | void vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 180 | void vp8_sixtap_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 181 | void vp8_sixtap_predict8x4_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 182 | void vp8_sixtap_predict8x4_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 183 | RTCD_EXTERN void (*vp8_sixtap_predict8x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 184 | |
michael@0 | 185 | void vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 186 | void vp8_sixtap_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 187 | void vp8_sixtap_predict4x4_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 188 | RTCD_EXTERN void (*vp8_sixtap_predict4x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 189 | |
michael@0 | 190 | void vp8_bilinear_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 191 | void vp8_bilinear_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 192 | void vp8_bilinear_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 193 | void vp8_bilinear_predict16x16_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 194 | RTCD_EXTERN void (*vp8_bilinear_predict16x16)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 195 | |
michael@0 | 196 | void vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 197 | void vp8_bilinear_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 198 | void vp8_bilinear_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 199 | void vp8_bilinear_predict8x8_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 200 | RTCD_EXTERN void (*vp8_bilinear_predict8x8)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 201 | |
michael@0 | 202 | void vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 203 | void vp8_bilinear_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 204 | RTCD_EXTERN void (*vp8_bilinear_predict8x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 205 | |
michael@0 | 206 | void vp8_bilinear_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 207 | void vp8_bilinear_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 208 | RTCD_EXTERN void (*vp8_bilinear_predict4x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
michael@0 | 209 | |
michael@0 | 210 | 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 | 211 | unsigned int vp8_variance4x4_mmx(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_variance4x4_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
michael@0 | 213 | RTCD_EXTERN unsigned int (*vp8_variance4x4)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
michael@0 | 214 | |
michael@0 | 215 | 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 | 216 | unsigned int vp8_variance8x8_mmx(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_variance8x8_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
michael@0 | 218 | 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 | 219 | |
michael@0 | 220 | 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 | 221 | unsigned int vp8_variance8x16_mmx(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_variance8x16_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
michael@0 | 223 | 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 | 224 | |
michael@0 | 225 | 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 | 226 | unsigned int vp8_variance16x8_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
michael@0 | 227 | unsigned int vp8_variance16x8_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
michael@0 | 228 | 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 | 229 | |
michael@0 | 230 | 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 | 231 | unsigned int vp8_variance16x16_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
michael@0 | 232 | unsigned int vp8_variance16x16_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
michael@0 | 233 | 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 | 234 | |
michael@0 | 235 | 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 | 236 | unsigned int vp8_sub_pixel_variance4x4_mmx(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
michael@0 | 237 | unsigned int vp8_sub_pixel_variance4x4_wmt(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
michael@0 | 238 | RTCD_EXTERN unsigned int (*vp8_sub_pixel_variance4x4)(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
michael@0 | 239 | |
michael@0 | 240 | 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 | 241 | unsigned int vp8_sub_pixel_variance8x8_mmx(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
michael@0 | 242 | unsigned int vp8_sub_pixel_variance8x8_wmt(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
michael@0 | 243 | 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 | 244 | |
michael@0 | 245 | 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 | 246 | unsigned int vp8_sub_pixel_variance8x16_mmx(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
michael@0 | 247 | unsigned int vp8_sub_pixel_variance8x16_wmt(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
michael@0 | 248 | RTCD_EXTERN unsigned int (*vp8_sub_pixel_variance8x16)(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
michael@0 | 249 | |
michael@0 | 250 | 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 | 251 | unsigned int vp8_sub_pixel_variance16x8_mmx(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
michael@0 | 252 | unsigned int vp8_sub_pixel_variance16x8_wmt(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
michael@0 | 253 | unsigned int vp8_sub_pixel_variance16x8_ssse3(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
michael@0 | 254 | RTCD_EXTERN unsigned int (*vp8_sub_pixel_variance16x8)(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
michael@0 | 255 | |
michael@0 | 256 | 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 | 257 | unsigned int vp8_sub_pixel_variance16x16_mmx(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
michael@0 | 258 | unsigned int vp8_sub_pixel_variance16x16_wmt(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
michael@0 | 259 | unsigned int vp8_sub_pixel_variance16x16_ssse3(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
michael@0 | 260 | 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 | 261 | |
michael@0 | 262 | 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 | 263 | unsigned int vp8_variance_halfpixvar16x16_h_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
michael@0 | 264 | unsigned int vp8_variance_halfpixvar16x16_h_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
michael@0 | 265 | 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 | 266 | |
michael@0 | 267 | 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 | 268 | unsigned int vp8_variance_halfpixvar16x16_v_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
michael@0 | 269 | unsigned int vp8_variance_halfpixvar16x16_v_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
michael@0 | 270 | 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 | 271 | |
michael@0 | 272 | 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 | 273 | unsigned int vp8_variance_halfpixvar16x16_hv_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
michael@0 | 274 | unsigned int vp8_variance_halfpixvar16x16_hv_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
michael@0 | 275 | 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 | 276 | |
michael@0 | 277 | 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 | 278 | unsigned int vp8_sad4x4_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
michael@0 | 279 | unsigned int vp8_sad4x4_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
michael@0 | 280 | 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 | 281 | |
michael@0 | 282 | 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 | 283 | unsigned int vp8_sad8x8_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
michael@0 | 284 | unsigned int vp8_sad8x8_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
michael@0 | 285 | 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 | 286 | |
michael@0 | 287 | 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 | 288 | unsigned int vp8_sad8x16_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
michael@0 | 289 | unsigned int vp8_sad8x16_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
michael@0 | 290 | 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 | 291 | |
michael@0 | 292 | 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 | 293 | unsigned int vp8_sad16x8_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
michael@0 | 294 | unsigned int vp8_sad16x8_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
michael@0 | 295 | 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 | 296 | |
michael@0 | 297 | 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 | 298 | unsigned int vp8_sad16x16_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
michael@0 | 299 | unsigned int vp8_sad16x16_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
michael@0 | 300 | unsigned int vp8_sad16x16_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
michael@0 | 301 | 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 | 302 | |
michael@0 | 303 | 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 | 304 | void vp8_sad4x4x3_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
michael@0 | 305 | RTCD_EXTERN void (*vp8_sad4x4x3)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
michael@0 | 306 | |
michael@0 | 307 | 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 | 308 | void vp8_sad8x8x3_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
michael@0 | 309 | RTCD_EXTERN void (*vp8_sad8x8x3)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
michael@0 | 310 | |
michael@0 | 311 | 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 | 312 | void vp8_sad8x16x3_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
michael@0 | 313 | RTCD_EXTERN void (*vp8_sad8x16x3)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
michael@0 | 314 | |
michael@0 | 315 | 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 | 316 | void vp8_sad16x8x3_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
michael@0 | 317 | void vp8_sad16x8x3_ssse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
michael@0 | 318 | RTCD_EXTERN void (*vp8_sad16x8x3)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
michael@0 | 319 | |
michael@0 | 320 | 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 | 321 | void vp8_sad16x16x3_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
michael@0 | 322 | void vp8_sad16x16x3_ssse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
michael@0 | 323 | RTCD_EXTERN void (*vp8_sad16x16x3)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
michael@0 | 324 | |
michael@0 | 325 | 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 | 326 | void vp8_sad4x4x8_sse4(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
michael@0 | 327 | RTCD_EXTERN void (*vp8_sad4x4x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
michael@0 | 328 | |
michael@0 | 329 | 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 | 330 | void vp8_sad8x8x8_sse4(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
michael@0 | 331 | RTCD_EXTERN void (*vp8_sad8x8x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
michael@0 | 332 | |
michael@0 | 333 | 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 | 334 | void vp8_sad8x16x8_sse4(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
michael@0 | 335 | RTCD_EXTERN void (*vp8_sad8x16x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
michael@0 | 336 | |
michael@0 | 337 | 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 | 338 | void vp8_sad16x8x8_sse4(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
michael@0 | 339 | RTCD_EXTERN void (*vp8_sad16x8x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
michael@0 | 340 | |
michael@0 | 341 | 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 | 342 | void vp8_sad16x16x8_sse4(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
michael@0 | 343 | RTCD_EXTERN void (*vp8_sad16x16x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
michael@0 | 344 | |
michael@0 | 345 | 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 | 346 | void vp8_sad4x4x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
michael@0 | 347 | RTCD_EXTERN void (*vp8_sad4x4x4d)(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
michael@0 | 348 | |
michael@0 | 349 | 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 | 350 | void vp8_sad8x8x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
michael@0 | 351 | RTCD_EXTERN void (*vp8_sad8x8x4d)(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
michael@0 | 352 | |
michael@0 | 353 | 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 | 354 | void vp8_sad8x16x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
michael@0 | 355 | RTCD_EXTERN void (*vp8_sad8x16x4d)(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
michael@0 | 356 | |
michael@0 | 357 | 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 | 358 | void vp8_sad16x8x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
michael@0 | 359 | RTCD_EXTERN void (*vp8_sad16x8x4d)(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
michael@0 | 360 | |
michael@0 | 361 | 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 | 362 | void vp8_sad16x16x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
michael@0 | 363 | RTCD_EXTERN void (*vp8_sad16x16x4d)(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
michael@0 | 364 | |
michael@0 | 365 | unsigned int vp8_get_mb_ss_c(const short *); |
michael@0 | 366 | unsigned int vp8_get_mb_ss_mmx(const short *); |
michael@0 | 367 | unsigned int vp8_get_mb_ss_sse2(const short *); |
michael@0 | 368 | RTCD_EXTERN unsigned int (*vp8_get_mb_ss)(const short *); |
michael@0 | 369 | |
michael@0 | 370 | 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 | 371 | unsigned int vp8_sub_pixel_mse16x16_mmx(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
michael@0 | 372 | unsigned int vp8_sub_pixel_mse16x16_wmt(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
michael@0 | 373 | RTCD_EXTERN unsigned int (*vp8_sub_pixel_mse16x16)(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
michael@0 | 374 | |
michael@0 | 375 | 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 | 376 | unsigned int vp8_mse16x16_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
michael@0 | 377 | unsigned int vp8_mse16x16_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
michael@0 | 378 | 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 | 379 | |
michael@0 | 380 | unsigned int vp8_get4x4sse_cs_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride); |
michael@0 | 381 | unsigned int vp8_get4x4sse_cs_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride); |
michael@0 | 382 | 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 | 383 | |
michael@0 | 384 | void vp8_copy32xn_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n); |
michael@0 | 385 | void vp8_copy32xn_sse2(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n); |
michael@0 | 386 | void vp8_copy32xn_sse3(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n); |
michael@0 | 387 | RTCD_EXTERN void (*vp8_copy32xn)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n); |
michael@0 | 388 | |
michael@0 | 389 | void vp8_short_fdct4x4_c(short *input, short *output, int pitch); |
michael@0 | 390 | void vp8_short_fdct4x4_mmx(short *input, short *output, int pitch); |
michael@0 | 391 | void vp8_short_fdct4x4_sse2(short *input, short *output, int pitch); |
michael@0 | 392 | RTCD_EXTERN void (*vp8_short_fdct4x4)(short *input, short *output, int pitch); |
michael@0 | 393 | |
michael@0 | 394 | void vp8_short_fdct8x4_c(short *input, short *output, int pitch); |
michael@0 | 395 | void vp8_short_fdct8x4_mmx(short *input, short *output, int pitch); |
michael@0 | 396 | void vp8_short_fdct8x4_sse2(short *input, short *output, int pitch); |
michael@0 | 397 | RTCD_EXTERN void (*vp8_short_fdct8x4)(short *input, short *output, int pitch); |
michael@0 | 398 | |
michael@0 | 399 | void vp8_short_walsh4x4_c(short *input, short *output, int pitch); |
michael@0 | 400 | void vp8_short_walsh4x4_sse2(short *input, short *output, int pitch); |
michael@0 | 401 | RTCD_EXTERN void (*vp8_short_walsh4x4)(short *input, short *output, int pitch); |
michael@0 | 402 | |
michael@0 | 403 | void vp8_regular_quantize_b_c(struct block *, struct blockd *); |
michael@0 | 404 | void vp8_regular_quantize_b_sse2(struct block *, struct blockd *); |
michael@0 | 405 | RTCD_EXTERN void (*vp8_regular_quantize_b)(struct block *, struct blockd *); |
michael@0 | 406 | |
michael@0 | 407 | void vp8_fast_quantize_b_c(struct block *, struct blockd *); |
michael@0 | 408 | void vp8_fast_quantize_b_sse2(struct block *, struct blockd *); |
michael@0 | 409 | void vp8_fast_quantize_b_ssse3(struct block *, struct blockd *); |
michael@0 | 410 | RTCD_EXTERN void (*vp8_fast_quantize_b)(struct block *, struct blockd *); |
michael@0 | 411 | |
michael@0 | 412 | void vp8_regular_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2); |
michael@0 | 413 | #define vp8_regular_quantize_b_pair vp8_regular_quantize_b_pair_c |
michael@0 | 414 | |
michael@0 | 415 | void vp8_fast_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2); |
michael@0 | 416 | #define vp8_fast_quantize_b_pair vp8_fast_quantize_b_pair_c |
michael@0 | 417 | |
michael@0 | 418 | void vp8_quantize_mb_c(struct macroblock *); |
michael@0 | 419 | #define vp8_quantize_mb vp8_quantize_mb_c |
michael@0 | 420 | |
michael@0 | 421 | void vp8_quantize_mby_c(struct macroblock *); |
michael@0 | 422 | #define vp8_quantize_mby vp8_quantize_mby_c |
michael@0 | 423 | |
michael@0 | 424 | void vp8_quantize_mbuv_c(struct macroblock *); |
michael@0 | 425 | #define vp8_quantize_mbuv vp8_quantize_mbuv_c |
michael@0 | 426 | |
michael@0 | 427 | int vp8_block_error_c(short *coeff, short *dqcoeff); |
michael@0 | 428 | int vp8_block_error_mmx(short *coeff, short *dqcoeff); |
michael@0 | 429 | int vp8_block_error_xmm(short *coeff, short *dqcoeff); |
michael@0 | 430 | RTCD_EXTERN int (*vp8_block_error)(short *coeff, short *dqcoeff); |
michael@0 | 431 | |
michael@0 | 432 | int vp8_mbblock_error_c(struct macroblock *mb, int dc); |
michael@0 | 433 | int vp8_mbblock_error_mmx(struct macroblock *mb, int dc); |
michael@0 | 434 | int vp8_mbblock_error_xmm(struct macroblock *mb, int dc); |
michael@0 | 435 | RTCD_EXTERN int (*vp8_mbblock_error)(struct macroblock *mb, int dc); |
michael@0 | 436 | |
michael@0 | 437 | int vp8_mbuverror_c(struct macroblock *mb); |
michael@0 | 438 | int vp8_mbuverror_mmx(struct macroblock *mb); |
michael@0 | 439 | int vp8_mbuverror_xmm(struct macroblock *mb); |
michael@0 | 440 | RTCD_EXTERN int (*vp8_mbuverror)(struct macroblock *mb); |
michael@0 | 441 | |
michael@0 | 442 | void vp8_subtract_b_c(struct block *be, struct blockd *bd, int pitch); |
michael@0 | 443 | void vp8_subtract_b_mmx(struct block *be, struct blockd *bd, int pitch); |
michael@0 | 444 | void vp8_subtract_b_sse2(struct block *be, struct blockd *bd, int pitch); |
michael@0 | 445 | RTCD_EXTERN void (*vp8_subtract_b)(struct block *be, struct blockd *bd, int pitch); |
michael@0 | 446 | |
michael@0 | 447 | void vp8_subtract_mby_c(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride); |
michael@0 | 448 | void vp8_subtract_mby_mmx(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride); |
michael@0 | 449 | void vp8_subtract_mby_sse2(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride); |
michael@0 | 450 | RTCD_EXTERN void (*vp8_subtract_mby)(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride); |
michael@0 | 451 | |
michael@0 | 452 | 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 | 453 | void vp8_subtract_mbuv_mmx(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride); |
michael@0 | 454 | void vp8_subtract_mbuv_sse2(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride); |
michael@0 | 455 | 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 | 456 | |
michael@0 | 457 | 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 | 458 | int vp8_full_search_sadx3(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 | 459 | int vp8_full_search_sadx8(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 | 460 | RTCD_EXTERN int (*vp8_full_search_sad)(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 | 461 | |
michael@0 | 462 | 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 | 463 | int vp8_refining_search_sadx4(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 | 464 | RTCD_EXTERN int (*vp8_refining_search_sad)(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 | 465 | |
michael@0 | 466 | 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 | 467 | int vp8_diamond_search_sadx4(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 | 468 | RTCD_EXTERN int (*vp8_diamond_search_sad)(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 | 469 | |
michael@0 | 470 | void vp8_temporal_filter_apply_c(unsigned char *frame1, unsigned int stride, unsigned char *frame2, unsigned int block_size, int strength, int filter_weight, unsigned int *accumulator, unsigned short *count); |
michael@0 | 471 | void vp8_temporal_filter_apply_sse2(unsigned char *frame1, unsigned int stride, unsigned char *frame2, unsigned int block_size, int strength, int filter_weight, unsigned int *accumulator, unsigned short *count); |
michael@0 | 472 | RTCD_EXTERN void (*vp8_temporal_filter_apply)(unsigned char *frame1, unsigned int stride, unsigned char *frame2, unsigned int block_size, int strength, int filter_weight, unsigned int *accumulator, unsigned short *count); |
michael@0 | 473 | |
michael@0 | 474 | void vp8_yv12_copy_partial_frame_c(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc); |
michael@0 | 475 | #define vp8_yv12_copy_partial_frame vp8_yv12_copy_partial_frame_c |
michael@0 | 476 | |
michael@0 | 477 | 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 | 478 | int vp8_denoiser_filter_sse2(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 | 479 | RTCD_EXTERN int (*vp8_denoiser_filter)(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 | 480 | |
michael@0 | 481 | void vp8_rtcd(void); |
michael@0 | 482 | |
michael@0 | 483 | #ifdef RTCD_C |
michael@0 | 484 | #include "vpx_ports/x86.h" |
michael@0 | 485 | static void setup_rtcd_internal(void) |
michael@0 | 486 | { |
michael@0 | 487 | int flags = x86_simd_caps(); |
michael@0 | 488 | |
michael@0 | 489 | (void)flags; |
michael@0 | 490 | |
michael@0 | 491 | vp8_clear_system_state = vp8_clear_system_state_c; |
michael@0 | 492 | if (flags & HAS_MMX) vp8_clear_system_state = vpx_reset_mmx_state; |
michael@0 | 493 | |
michael@0 | 494 | vp8_dequantize_b = vp8_dequantize_b_c; |
michael@0 | 495 | if (flags & HAS_MMX) vp8_dequantize_b = vp8_dequantize_b_mmx; |
michael@0 | 496 | |
michael@0 | 497 | vp8_dequant_idct_add = vp8_dequant_idct_add_c; |
michael@0 | 498 | if (flags & HAS_MMX) vp8_dequant_idct_add = vp8_dequant_idct_add_mmx; |
michael@0 | 499 | |
michael@0 | 500 | vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_c; |
michael@0 | 501 | if (flags & HAS_MMX) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_mmx; |
michael@0 | 502 | if (flags & HAS_SSE2) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_sse2; |
michael@0 | 503 | |
michael@0 | 504 | vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_c; |
michael@0 | 505 | if (flags & HAS_MMX) vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_mmx; |
michael@0 | 506 | if (flags & HAS_SSE2) vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_sse2; |
michael@0 | 507 | |
michael@0 | 508 | vp8_loop_filter_mbv = vp8_loop_filter_mbv_c; |
michael@0 | 509 | if (flags & HAS_MMX) vp8_loop_filter_mbv = vp8_loop_filter_mbv_mmx; |
michael@0 | 510 | if (flags & HAS_SSE2) vp8_loop_filter_mbv = vp8_loop_filter_mbv_sse2; |
michael@0 | 511 | |
michael@0 | 512 | vp8_loop_filter_bv = vp8_loop_filter_bv_c; |
michael@0 | 513 | if (flags & HAS_MMX) vp8_loop_filter_bv = vp8_loop_filter_bv_mmx; |
michael@0 | 514 | if (flags & HAS_SSE2) vp8_loop_filter_bv = vp8_loop_filter_bv_sse2; |
michael@0 | 515 | |
michael@0 | 516 | vp8_loop_filter_mbh = vp8_loop_filter_mbh_c; |
michael@0 | 517 | if (flags & HAS_MMX) vp8_loop_filter_mbh = vp8_loop_filter_mbh_mmx; |
michael@0 | 518 | if (flags & HAS_SSE2) vp8_loop_filter_mbh = vp8_loop_filter_mbh_sse2; |
michael@0 | 519 | |
michael@0 | 520 | vp8_loop_filter_bh = vp8_loop_filter_bh_c; |
michael@0 | 521 | if (flags & HAS_MMX) vp8_loop_filter_bh = vp8_loop_filter_bh_mmx; |
michael@0 | 522 | if (flags & HAS_SSE2) vp8_loop_filter_bh = vp8_loop_filter_bh_sse2; |
michael@0 | 523 | |
michael@0 | 524 | vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_vertical_edge_c; |
michael@0 | 525 | if (flags & HAS_MMX) vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_vertical_edge_mmx; |
michael@0 | 526 | if (flags & HAS_SSE2) vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_vertical_edge_sse2; |
michael@0 | 527 | |
michael@0 | 528 | vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_horizontal_edge_c; |
michael@0 | 529 | if (flags & HAS_MMX) vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_horizontal_edge_mmx; |
michael@0 | 530 | if (flags & HAS_SSE2) vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_horizontal_edge_sse2; |
michael@0 | 531 | |
michael@0 | 532 | vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_c; |
michael@0 | 533 | if (flags & HAS_MMX) vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_mmx; |
michael@0 | 534 | if (flags & HAS_SSE2) vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_sse2; |
michael@0 | 535 | |
michael@0 | 536 | vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_c; |
michael@0 | 537 | if (flags & HAS_MMX) vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_mmx; |
michael@0 | 538 | if (flags & HAS_SSE2) vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_sse2; |
michael@0 | 539 | |
michael@0 | 540 | vp8_short_idct4x4llm = vp8_short_idct4x4llm_c; |
michael@0 | 541 | if (flags & HAS_MMX) vp8_short_idct4x4llm = vp8_short_idct4x4llm_mmx; |
michael@0 | 542 | |
michael@0 | 543 | |
michael@0 | 544 | vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_c; |
michael@0 | 545 | if (flags & HAS_MMX) vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_mmx; |
michael@0 | 546 | if (flags & HAS_SSE2) vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_sse2; |
michael@0 | 547 | |
michael@0 | 548 | vp8_dc_only_idct_add = vp8_dc_only_idct_add_c; |
michael@0 | 549 | if (flags & HAS_MMX) vp8_dc_only_idct_add = vp8_dc_only_idct_add_mmx; |
michael@0 | 550 | |
michael@0 | 551 | vp8_copy_mem16x16 = vp8_copy_mem16x16_c; |
michael@0 | 552 | if (flags & HAS_MMX) vp8_copy_mem16x16 = vp8_copy_mem16x16_mmx; |
michael@0 | 553 | if (flags & HAS_SSE2) vp8_copy_mem16x16 = vp8_copy_mem16x16_sse2; |
michael@0 | 554 | |
michael@0 | 555 | vp8_copy_mem8x8 = vp8_copy_mem8x8_c; |
michael@0 | 556 | if (flags & HAS_MMX) vp8_copy_mem8x8 = vp8_copy_mem8x8_mmx; |
michael@0 | 557 | |
michael@0 | 558 | vp8_copy_mem8x4 = vp8_copy_mem8x4_c; |
michael@0 | 559 | if (flags & HAS_MMX) vp8_copy_mem8x4 = vp8_copy_mem8x4_mmx; |
michael@0 | 560 | |
michael@0 | 561 | vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_c; |
michael@0 | 562 | if (flags & HAS_SSE2) vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_sse2; |
michael@0 | 563 | if (flags & HAS_SSSE3) vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_ssse3; |
michael@0 | 564 | |
michael@0 | 565 | vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_c; |
michael@0 | 566 | if (flags & HAS_SSE2) vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_sse2; |
michael@0 | 567 | if (flags & HAS_SSSE3) vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_ssse3; |
michael@0 | 568 | |
michael@0 | 569 | |
michael@0 | 570 | vp8_mbpost_proc_down = vp8_mbpost_proc_down_c; |
michael@0 | 571 | if (flags & HAS_MMX) vp8_mbpost_proc_down = vp8_mbpost_proc_down_mmx; |
michael@0 | 572 | if (flags & HAS_SSE2) vp8_mbpost_proc_down = vp8_mbpost_proc_down_xmm; |
michael@0 | 573 | |
michael@0 | 574 | vp8_mbpost_proc_across_ip = vp8_mbpost_proc_across_ip_c; |
michael@0 | 575 | if (flags & HAS_SSE2) vp8_mbpost_proc_across_ip = vp8_mbpost_proc_across_ip_xmm; |
michael@0 | 576 | |
michael@0 | 577 | vp8_post_proc_down_and_across_mb_row = vp8_post_proc_down_and_across_mb_row_c; |
michael@0 | 578 | if (flags & HAS_SSE2) vp8_post_proc_down_and_across_mb_row = vp8_post_proc_down_and_across_mb_row_sse2; |
michael@0 | 579 | |
michael@0 | 580 | vp8_plane_add_noise = vp8_plane_add_noise_c; |
michael@0 | 581 | if (flags & HAS_MMX) vp8_plane_add_noise = vp8_plane_add_noise_mmx; |
michael@0 | 582 | if (flags & HAS_SSE2) vp8_plane_add_noise = vp8_plane_add_noise_wmt; |
michael@0 | 583 | |
michael@0 | 584 | |
michael@0 | 585 | |
michael@0 | 586 | |
michael@0 | 587 | vp8_filter_by_weight16x16 = vp8_filter_by_weight16x16_c; |
michael@0 | 588 | if (flags & HAS_SSE2) vp8_filter_by_weight16x16 = vp8_filter_by_weight16x16_sse2; |
michael@0 | 589 | |
michael@0 | 590 | vp8_filter_by_weight8x8 = vp8_filter_by_weight8x8_c; |
michael@0 | 591 | if (flags & HAS_SSE2) vp8_filter_by_weight8x8 = vp8_filter_by_weight8x8_sse2; |
michael@0 | 592 | |
michael@0 | 593 | |
michael@0 | 594 | vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_c; |
michael@0 | 595 | if (flags & HAS_MMX) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_mmx; |
michael@0 | 596 | if (flags & HAS_SSE2) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_sse2; |
michael@0 | 597 | if (flags & HAS_SSSE3) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_ssse3; |
michael@0 | 598 | |
michael@0 | 599 | vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_c; |
michael@0 | 600 | if (flags & HAS_MMX) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_mmx; |
michael@0 | 601 | if (flags & HAS_SSE2) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_sse2; |
michael@0 | 602 | if (flags & HAS_SSSE3) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_ssse3; |
michael@0 | 603 | |
michael@0 | 604 | vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_c; |
michael@0 | 605 | if (flags & HAS_MMX) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_mmx; |
michael@0 | 606 | if (flags & HAS_SSE2) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_sse2; |
michael@0 | 607 | if (flags & HAS_SSSE3) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_ssse3; |
michael@0 | 608 | |
michael@0 | 609 | vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_c; |
michael@0 | 610 | if (flags & HAS_MMX) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_mmx; |
michael@0 | 611 | if (flags & HAS_SSSE3) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_ssse3; |
michael@0 | 612 | |
michael@0 | 613 | vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_c; |
michael@0 | 614 | if (flags & HAS_MMX) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_mmx; |
michael@0 | 615 | if (flags & HAS_SSE2) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_sse2; |
michael@0 | 616 | if (flags & HAS_SSSE3) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_ssse3; |
michael@0 | 617 | |
michael@0 | 618 | vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_c; |
michael@0 | 619 | if (flags & HAS_MMX) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_mmx; |
michael@0 | 620 | if (flags & HAS_SSE2) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sse2; |
michael@0 | 621 | if (flags & HAS_SSSE3) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_ssse3; |
michael@0 | 622 | |
michael@0 | 623 | vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_c; |
michael@0 | 624 | if (flags & HAS_MMX) vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_mmx; |
michael@0 | 625 | |
michael@0 | 626 | vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_c; |
michael@0 | 627 | if (flags & HAS_MMX) vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_mmx; |
michael@0 | 628 | |
michael@0 | 629 | vp8_variance4x4 = vp8_variance4x4_c; |
michael@0 | 630 | if (flags & HAS_MMX) vp8_variance4x4 = vp8_variance4x4_mmx; |
michael@0 | 631 | if (flags & HAS_SSE2) vp8_variance4x4 = vp8_variance4x4_wmt; |
michael@0 | 632 | |
michael@0 | 633 | vp8_variance8x8 = vp8_variance8x8_c; |
michael@0 | 634 | if (flags & HAS_MMX) vp8_variance8x8 = vp8_variance8x8_mmx; |
michael@0 | 635 | if (flags & HAS_SSE2) vp8_variance8x8 = vp8_variance8x8_wmt; |
michael@0 | 636 | |
michael@0 | 637 | vp8_variance8x16 = vp8_variance8x16_c; |
michael@0 | 638 | if (flags & HAS_MMX) vp8_variance8x16 = vp8_variance8x16_mmx; |
michael@0 | 639 | if (flags & HAS_SSE2) vp8_variance8x16 = vp8_variance8x16_wmt; |
michael@0 | 640 | |
michael@0 | 641 | vp8_variance16x8 = vp8_variance16x8_c; |
michael@0 | 642 | if (flags & HAS_MMX) vp8_variance16x8 = vp8_variance16x8_mmx; |
michael@0 | 643 | if (flags & HAS_SSE2) vp8_variance16x8 = vp8_variance16x8_wmt; |
michael@0 | 644 | |
michael@0 | 645 | vp8_variance16x16 = vp8_variance16x16_c; |
michael@0 | 646 | if (flags & HAS_MMX) vp8_variance16x16 = vp8_variance16x16_mmx; |
michael@0 | 647 | if (flags & HAS_SSE2) vp8_variance16x16 = vp8_variance16x16_wmt; |
michael@0 | 648 | |
michael@0 | 649 | vp8_sub_pixel_variance4x4 = vp8_sub_pixel_variance4x4_c; |
michael@0 | 650 | if (flags & HAS_MMX) vp8_sub_pixel_variance4x4 = vp8_sub_pixel_variance4x4_mmx; |
michael@0 | 651 | if (flags & HAS_SSE2) vp8_sub_pixel_variance4x4 = vp8_sub_pixel_variance4x4_wmt; |
michael@0 | 652 | |
michael@0 | 653 | vp8_sub_pixel_variance8x8 = vp8_sub_pixel_variance8x8_c; |
michael@0 | 654 | if (flags & HAS_MMX) vp8_sub_pixel_variance8x8 = vp8_sub_pixel_variance8x8_mmx; |
michael@0 | 655 | if (flags & HAS_SSE2) vp8_sub_pixel_variance8x8 = vp8_sub_pixel_variance8x8_wmt; |
michael@0 | 656 | |
michael@0 | 657 | vp8_sub_pixel_variance8x16 = vp8_sub_pixel_variance8x16_c; |
michael@0 | 658 | if (flags & HAS_MMX) vp8_sub_pixel_variance8x16 = vp8_sub_pixel_variance8x16_mmx; |
michael@0 | 659 | if (flags & HAS_SSE2) vp8_sub_pixel_variance8x16 = vp8_sub_pixel_variance8x16_wmt; |
michael@0 | 660 | |
michael@0 | 661 | vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_c; |
michael@0 | 662 | if (flags & HAS_MMX) vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_mmx; |
michael@0 | 663 | if (flags & HAS_SSE2) vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_wmt; |
michael@0 | 664 | if (flags & HAS_SSSE3) vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_ssse3; |
michael@0 | 665 | |
michael@0 | 666 | vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_c; |
michael@0 | 667 | if (flags & HAS_MMX) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_mmx; |
michael@0 | 668 | if (flags & HAS_SSE2) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_wmt; |
michael@0 | 669 | if (flags & HAS_SSSE3) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_ssse3; |
michael@0 | 670 | |
michael@0 | 671 | vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_c; |
michael@0 | 672 | if (flags & HAS_MMX) vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_mmx; |
michael@0 | 673 | if (flags & HAS_SSE2) vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_wmt; |
michael@0 | 674 | |
michael@0 | 675 | vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_c; |
michael@0 | 676 | if (flags & HAS_MMX) vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_mmx; |
michael@0 | 677 | if (flags & HAS_SSE2) vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_wmt; |
michael@0 | 678 | |
michael@0 | 679 | vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_c; |
michael@0 | 680 | if (flags & HAS_MMX) vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_mmx; |
michael@0 | 681 | if (flags & HAS_SSE2) vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_wmt; |
michael@0 | 682 | |
michael@0 | 683 | vp8_sad4x4 = vp8_sad4x4_c; |
michael@0 | 684 | if (flags & HAS_MMX) vp8_sad4x4 = vp8_sad4x4_mmx; |
michael@0 | 685 | if (flags & HAS_SSE2) vp8_sad4x4 = vp8_sad4x4_wmt; |
michael@0 | 686 | |
michael@0 | 687 | vp8_sad8x8 = vp8_sad8x8_c; |
michael@0 | 688 | if (flags & HAS_MMX) vp8_sad8x8 = vp8_sad8x8_mmx; |
michael@0 | 689 | if (flags & HAS_SSE2) vp8_sad8x8 = vp8_sad8x8_wmt; |
michael@0 | 690 | |
michael@0 | 691 | vp8_sad8x16 = vp8_sad8x16_c; |
michael@0 | 692 | if (flags & HAS_MMX) vp8_sad8x16 = vp8_sad8x16_mmx; |
michael@0 | 693 | if (flags & HAS_SSE2) vp8_sad8x16 = vp8_sad8x16_wmt; |
michael@0 | 694 | |
michael@0 | 695 | vp8_sad16x8 = vp8_sad16x8_c; |
michael@0 | 696 | if (flags & HAS_MMX) vp8_sad16x8 = vp8_sad16x8_mmx; |
michael@0 | 697 | if (flags & HAS_SSE2) vp8_sad16x8 = vp8_sad16x8_wmt; |
michael@0 | 698 | |
michael@0 | 699 | vp8_sad16x16 = vp8_sad16x16_c; |
michael@0 | 700 | if (flags & HAS_MMX) vp8_sad16x16 = vp8_sad16x16_mmx; |
michael@0 | 701 | if (flags & HAS_SSE2) vp8_sad16x16 = vp8_sad16x16_wmt; |
michael@0 | 702 | if (flags & HAS_SSE3) vp8_sad16x16 = vp8_sad16x16_sse3; |
michael@0 | 703 | |
michael@0 | 704 | vp8_sad4x4x3 = vp8_sad4x4x3_c; |
michael@0 | 705 | if (flags & HAS_SSE3) vp8_sad4x4x3 = vp8_sad4x4x3_sse3; |
michael@0 | 706 | |
michael@0 | 707 | vp8_sad8x8x3 = vp8_sad8x8x3_c; |
michael@0 | 708 | if (flags & HAS_SSE3) vp8_sad8x8x3 = vp8_sad8x8x3_sse3; |
michael@0 | 709 | |
michael@0 | 710 | vp8_sad8x16x3 = vp8_sad8x16x3_c; |
michael@0 | 711 | if (flags & HAS_SSE3) vp8_sad8x16x3 = vp8_sad8x16x3_sse3; |
michael@0 | 712 | |
michael@0 | 713 | vp8_sad16x8x3 = vp8_sad16x8x3_c; |
michael@0 | 714 | if (flags & HAS_SSE3) vp8_sad16x8x3 = vp8_sad16x8x3_sse3; |
michael@0 | 715 | if (flags & HAS_SSSE3) vp8_sad16x8x3 = vp8_sad16x8x3_ssse3; |
michael@0 | 716 | |
michael@0 | 717 | vp8_sad16x16x3 = vp8_sad16x16x3_c; |
michael@0 | 718 | if (flags & HAS_SSE3) vp8_sad16x16x3 = vp8_sad16x16x3_sse3; |
michael@0 | 719 | if (flags & HAS_SSSE3) vp8_sad16x16x3 = vp8_sad16x16x3_ssse3; |
michael@0 | 720 | |
michael@0 | 721 | vp8_sad4x4x8 = vp8_sad4x4x8_c; |
michael@0 | 722 | if (flags & HAS_SSE4_1) vp8_sad4x4x8 = vp8_sad4x4x8_sse4; |
michael@0 | 723 | |
michael@0 | 724 | vp8_sad8x8x8 = vp8_sad8x8x8_c; |
michael@0 | 725 | if (flags & HAS_SSE4_1) vp8_sad8x8x8 = vp8_sad8x8x8_sse4; |
michael@0 | 726 | |
michael@0 | 727 | vp8_sad8x16x8 = vp8_sad8x16x8_c; |
michael@0 | 728 | if (flags & HAS_SSE4_1) vp8_sad8x16x8 = vp8_sad8x16x8_sse4; |
michael@0 | 729 | |
michael@0 | 730 | vp8_sad16x8x8 = vp8_sad16x8x8_c; |
michael@0 | 731 | if (flags & HAS_SSE4_1) vp8_sad16x8x8 = vp8_sad16x8x8_sse4; |
michael@0 | 732 | |
michael@0 | 733 | vp8_sad16x16x8 = vp8_sad16x16x8_c; |
michael@0 | 734 | if (flags & HAS_SSE4_1) vp8_sad16x16x8 = vp8_sad16x16x8_sse4; |
michael@0 | 735 | |
michael@0 | 736 | vp8_sad4x4x4d = vp8_sad4x4x4d_c; |
michael@0 | 737 | if (flags & HAS_SSE3) vp8_sad4x4x4d = vp8_sad4x4x4d_sse3; |
michael@0 | 738 | |
michael@0 | 739 | vp8_sad8x8x4d = vp8_sad8x8x4d_c; |
michael@0 | 740 | if (flags & HAS_SSE3) vp8_sad8x8x4d = vp8_sad8x8x4d_sse3; |
michael@0 | 741 | |
michael@0 | 742 | vp8_sad8x16x4d = vp8_sad8x16x4d_c; |
michael@0 | 743 | if (flags & HAS_SSE3) vp8_sad8x16x4d = vp8_sad8x16x4d_sse3; |
michael@0 | 744 | |
michael@0 | 745 | vp8_sad16x8x4d = vp8_sad16x8x4d_c; |
michael@0 | 746 | if (flags & HAS_SSE3) vp8_sad16x8x4d = vp8_sad16x8x4d_sse3; |
michael@0 | 747 | |
michael@0 | 748 | vp8_sad16x16x4d = vp8_sad16x16x4d_c; |
michael@0 | 749 | if (flags & HAS_SSE3) vp8_sad16x16x4d = vp8_sad16x16x4d_sse3; |
michael@0 | 750 | |
michael@0 | 751 | vp8_get_mb_ss = vp8_get_mb_ss_c; |
michael@0 | 752 | if (flags & HAS_MMX) vp8_get_mb_ss = vp8_get_mb_ss_mmx; |
michael@0 | 753 | if (flags & HAS_SSE2) vp8_get_mb_ss = vp8_get_mb_ss_sse2; |
michael@0 | 754 | |
michael@0 | 755 | vp8_sub_pixel_mse16x16 = vp8_sub_pixel_mse16x16_c; |
michael@0 | 756 | if (flags & HAS_MMX) vp8_sub_pixel_mse16x16 = vp8_sub_pixel_mse16x16_mmx; |
michael@0 | 757 | if (flags & HAS_SSE2) vp8_sub_pixel_mse16x16 = vp8_sub_pixel_mse16x16_wmt; |
michael@0 | 758 | |
michael@0 | 759 | vp8_mse16x16 = vp8_mse16x16_c; |
michael@0 | 760 | if (flags & HAS_MMX) vp8_mse16x16 = vp8_mse16x16_mmx; |
michael@0 | 761 | if (flags & HAS_SSE2) vp8_mse16x16 = vp8_mse16x16_wmt; |
michael@0 | 762 | |
michael@0 | 763 | vp8_get4x4sse_cs = vp8_get4x4sse_cs_c; |
michael@0 | 764 | if (flags & HAS_MMX) vp8_get4x4sse_cs = vp8_get4x4sse_cs_mmx; |
michael@0 | 765 | |
michael@0 | 766 | vp8_copy32xn = vp8_copy32xn_c; |
michael@0 | 767 | if (flags & HAS_SSE2) vp8_copy32xn = vp8_copy32xn_sse2; |
michael@0 | 768 | if (flags & HAS_SSE3) vp8_copy32xn = vp8_copy32xn_sse3; |
michael@0 | 769 | |
michael@0 | 770 | vp8_short_fdct4x4 = vp8_short_fdct4x4_c; |
michael@0 | 771 | if (flags & HAS_MMX) vp8_short_fdct4x4 = vp8_short_fdct4x4_mmx; |
michael@0 | 772 | if (flags & HAS_SSE2) vp8_short_fdct4x4 = vp8_short_fdct4x4_sse2; |
michael@0 | 773 | |
michael@0 | 774 | vp8_short_fdct8x4 = vp8_short_fdct8x4_c; |
michael@0 | 775 | if (flags & HAS_MMX) vp8_short_fdct8x4 = vp8_short_fdct8x4_mmx; |
michael@0 | 776 | if (flags & HAS_SSE2) vp8_short_fdct8x4 = vp8_short_fdct8x4_sse2; |
michael@0 | 777 | |
michael@0 | 778 | vp8_short_walsh4x4 = vp8_short_walsh4x4_c; |
michael@0 | 779 | if (flags & HAS_SSE2) vp8_short_walsh4x4 = vp8_short_walsh4x4_sse2; |
michael@0 | 780 | |
michael@0 | 781 | vp8_regular_quantize_b = vp8_regular_quantize_b_c; |
michael@0 | 782 | if (flags & HAS_SSE2) vp8_regular_quantize_b = vp8_regular_quantize_b_sse2; |
michael@0 | 783 | |
michael@0 | 784 | vp8_fast_quantize_b = vp8_fast_quantize_b_c; |
michael@0 | 785 | if (flags & HAS_SSE2) vp8_fast_quantize_b = vp8_fast_quantize_b_sse2; |
michael@0 | 786 | if (flags & HAS_SSSE3) vp8_fast_quantize_b = vp8_fast_quantize_b_ssse3; |
michael@0 | 787 | |
michael@0 | 788 | |
michael@0 | 789 | |
michael@0 | 790 | |
michael@0 | 791 | |
michael@0 | 792 | |
michael@0 | 793 | vp8_block_error = vp8_block_error_c; |
michael@0 | 794 | if (flags & HAS_MMX) vp8_block_error = vp8_block_error_mmx; |
michael@0 | 795 | if (flags & HAS_SSE2) vp8_block_error = vp8_block_error_xmm; |
michael@0 | 796 | |
michael@0 | 797 | vp8_mbblock_error = vp8_mbblock_error_c; |
michael@0 | 798 | if (flags & HAS_MMX) vp8_mbblock_error = vp8_mbblock_error_mmx; |
michael@0 | 799 | if (flags & HAS_SSE2) vp8_mbblock_error = vp8_mbblock_error_xmm; |
michael@0 | 800 | |
michael@0 | 801 | vp8_mbuverror = vp8_mbuverror_c; |
michael@0 | 802 | if (flags & HAS_MMX) vp8_mbuverror = vp8_mbuverror_mmx; |
michael@0 | 803 | if (flags & HAS_SSE2) vp8_mbuverror = vp8_mbuverror_xmm; |
michael@0 | 804 | |
michael@0 | 805 | vp8_subtract_b = vp8_subtract_b_c; |
michael@0 | 806 | if (flags & HAS_MMX) vp8_subtract_b = vp8_subtract_b_mmx; |
michael@0 | 807 | if (flags & HAS_SSE2) vp8_subtract_b = vp8_subtract_b_sse2; |
michael@0 | 808 | |
michael@0 | 809 | vp8_subtract_mby = vp8_subtract_mby_c; |
michael@0 | 810 | if (flags & HAS_MMX) vp8_subtract_mby = vp8_subtract_mby_mmx; |
michael@0 | 811 | if (flags & HAS_SSE2) vp8_subtract_mby = vp8_subtract_mby_sse2; |
michael@0 | 812 | |
michael@0 | 813 | vp8_subtract_mbuv = vp8_subtract_mbuv_c; |
michael@0 | 814 | if (flags & HAS_MMX) vp8_subtract_mbuv = vp8_subtract_mbuv_mmx; |
michael@0 | 815 | if (flags & HAS_SSE2) vp8_subtract_mbuv = vp8_subtract_mbuv_sse2; |
michael@0 | 816 | |
michael@0 | 817 | vp8_full_search_sad = vp8_full_search_sad_c; |
michael@0 | 818 | if (flags & HAS_SSE3) vp8_full_search_sad = vp8_full_search_sadx3; |
michael@0 | 819 | if (flags & HAS_SSE4_1) vp8_full_search_sad = vp8_full_search_sadx8; |
michael@0 | 820 | |
michael@0 | 821 | vp8_refining_search_sad = vp8_refining_search_sad_c; |
michael@0 | 822 | if (flags & HAS_SSE3) vp8_refining_search_sad = vp8_refining_search_sadx4; |
michael@0 | 823 | |
michael@0 | 824 | vp8_diamond_search_sad = vp8_diamond_search_sad_c; |
michael@0 | 825 | if (flags & HAS_SSE3) vp8_diamond_search_sad = vp8_diamond_search_sadx4; |
michael@0 | 826 | |
michael@0 | 827 | vp8_temporal_filter_apply = vp8_temporal_filter_apply_c; |
michael@0 | 828 | if (flags & HAS_SSE2) vp8_temporal_filter_apply = vp8_temporal_filter_apply_sse2; |
michael@0 | 829 | |
michael@0 | 830 | |
michael@0 | 831 | vp8_denoiser_filter = vp8_denoiser_filter_c; |
michael@0 | 832 | if (flags & HAS_SSE2) vp8_denoiser_filter = vp8_denoiser_filter_sse2; |
michael@0 | 833 | } |
michael@0 | 834 | #endif |
michael@0 | 835 | #endif |