media/libvpx/vpx_rtcd_x86-win32-vs8.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

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

mercurial