14b95526e5c4eb4fecde1cd642cf991a82c51b9f2johannkoenig@chromium.org#ifndef VP8_RTCD_H_
24b95526e5c4eb4fecde1cd642cf991a82c51b9f2johannkoenig@chromium.org#define VP8_RTCD_H_
36fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
46fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#ifdef RTCD_C
56fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#define RTCD_EXTERN
66fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#else
76fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#define RTCD_EXTERN extern
86fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#endif
96fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
106fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org/*
116fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org * VP8
126fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org */
136fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
146fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgstruct blockd;
156fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgstruct macroblockd;
166fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgstruct loop_filter_info;
176fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
186fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org/* Encoder forward decls */
196fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgstruct block;
206fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgstruct macroblock;
216fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgstruct variance_vtable;
226fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgunion int_mv;
236fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgstruct yv12_buffer_config;
246fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
2587997d490ae52aa962a985c95b3cddf7f8832641johannkoenig@chromium.org#ifdef __cplusplus
2687997d490ae52aa962a985c95b3cddf7f8832641johannkoenig@chromium.orgextern "C" {
2787997d490ae52aa962a985c95b3cddf7f8832641johannkoenig@chromium.org#endif
2887997d490ae52aa962a985c95b3cddf7f8832641johannkoenig@chromium.org
29daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_bilinear_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
30daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_bilinear_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
31daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_bilinear_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
32daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_bilinear_predict16x16_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
33daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_EXTERN void (*vp8_bilinear_predict16x16)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
346fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
35daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_bilinear_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
36daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_bilinear_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
37daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_bilinear_predict4x4 vp8_bilinear_predict4x4_mmx
386fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
39daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
40daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_bilinear_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
41daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_bilinear_predict8x4 vp8_bilinear_predict8x4_mmx
426fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
43daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
44daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_bilinear_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
45daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_bilinear_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
46daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_bilinear_predict8x8_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
47daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_EXTERN void (*vp8_bilinear_predict8x8)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
486fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
49daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_blend_b_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride);
50daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_blend_b vp8_blend_b_c
516fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
52daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_blend_mb_inner_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride);
53daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_blend_mb_inner vp8_blend_mb_inner_c
546fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
55daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_blend_mb_outer_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride);
56daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_blend_mb_outer vp8_blend_mb_outer_c
576fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
58daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgint vp8_block_error_c(short *coeff, short *dqcoeff);
59daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgint vp8_block_error_mmx(short *coeff, short *dqcoeff);
60daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgint vp8_block_error_xmm(short *coeff, short *dqcoeff);
61daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_block_error vp8_block_error_xmm
626fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
63daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid 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);
64daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid 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);
65daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid 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);
66daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_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);
676fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
68daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid 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);
69daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid 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);
70daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid 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);
71daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_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);
726fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
73daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_clear_system_state_c();
74daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vpx_reset_mmx_state();
75daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_clear_system_state vpx_reset_mmx_state
766fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
77daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_copy32xn_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n);
78daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_copy32xn_sse2(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n);
79daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_copy32xn_sse3(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n);
80daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_EXTERN void (*vp8_copy32xn)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n);
816fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
826fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
836fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_copy_mem16x16_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
846fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_copy_mem16x16_sse2(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
856fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#define vp8_copy_mem16x16 vp8_copy_mem16x16_sse2
866fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
876fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
886fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_copy_mem8x4_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
896fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#define vp8_copy_mem8x4 vp8_copy_mem8x4_mmx
906fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
91daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
92daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_copy_mem8x8_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
93daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_copy_mem8x8 vp8_copy_mem8x8_mmx
946fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
95daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
96daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_dc_only_idct_add_mmx(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
97daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_dc_only_idct_add vp8_dc_only_idct_add_mmx
986fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
99118f379ec73bf762ee63784bc5f41ffd41107470johannkoenig@chromium.orgint vp8_denoiser_filter_c(unsigned char *mc_running_avg_y, int mc_avg_y_stride, unsigned char *running_avg_y, int avg_y_stride, unsigned char *sig, int sig_stride, unsigned int motion_magnitude, int increase_denoising);
100118f379ec73bf762ee63784bc5f41ffd41107470johannkoenig@chromium.orgint vp8_denoiser_filter_sse2(unsigned char *mc_running_avg_y, int mc_avg_y_stride, unsigned char *running_avg_y, int avg_y_stride, unsigned char *sig, int sig_stride, unsigned int motion_magnitude, int increase_denoising);
101daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_denoiser_filter vp8_denoiser_filter_sse2
1026fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
103e2064011d36b2008099446503f28e64d445060ecjohannkoenig@chromium.orgint vp8_denoiser_filter_uv_c(unsigned char *mc_running_avg, int mc_avg_stride, unsigned char *running_avg, int avg_stride, unsigned char *sig, int sig_stride, unsigned int motion_magnitude, int increase_denoising);
104e2064011d36b2008099446503f28e64d445060ecjohannkoenig@chromium.orgint vp8_denoiser_filter_uv_sse2(unsigned char *mc_running_avg, int mc_avg_stride, unsigned char *running_avg, int avg_stride, unsigned char *sig, int sig_stride, unsigned int motion_magnitude, int increase_denoising);
105e2064011d36b2008099446503f28e64d445060ecjohannkoenig@chromium.org#define vp8_denoiser_filter_uv vp8_denoiser_filter_uv_sse2
106e2064011d36b2008099446503f28e64d445060ecjohannkoenig@chromium.org
107daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int stride);
108daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_dequant_idct_add_mmx(short *input, short *dq, unsigned char *output, int stride);
109daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_dequant_idct_add vp8_dequant_idct_add_mmx
1106fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
111daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
112daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_dequant_idct_add_uv_block_mmx(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
113daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_dequant_idct_add_uv_block_sse2(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
114daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_sse2
1156fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
116daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
117daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_dequant_idct_add_y_block_mmx(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
118daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_dequant_idct_add_y_block_sse2(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
119daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_sse2
1206fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
121daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_dequantize_b_c(struct blockd*, short *dqc);
122daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_dequantize_b_mmx(struct blockd*, short *dqc);
123daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_dequantize_b vp8_dequantize_b_mmx
1246fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
125daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgint 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);
126daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgint 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);
127daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_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);
1286fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
129daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_fast_quantize_b_c(struct block *, struct blockd *);
130daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_fast_quantize_b_sse2(struct block *, struct blockd *);
131daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_fast_quantize_b_ssse3(struct block *, struct blockd *);
132daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_EXTERN void (*vp8_fast_quantize_b)(struct block *, struct blockd *);
1336fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
134daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_fast_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
135daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_fast_quantize_b_pair vp8_fast_quantize_b_pair_c
1366fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
1376fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_filter_by_weight16x16_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
1386fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_filter_by_weight16x16_sse2(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
1396fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#define vp8_filter_by_weight16x16 vp8_filter_by_weight16x16_sse2
1406fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
141daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_filter_by_weight4x4_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
142daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_filter_by_weight4x4 vp8_filter_by_weight4x4_c
143daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org
1446fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_filter_by_weight8x8_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
1456fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_filter_by_weight8x8_sse2(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
1466fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#define vp8_filter_by_weight8x8 vp8_filter_by_weight8x8_sse2
1476fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
148daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgint 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);
149daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgint 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);
150daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgint 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);
151daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_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);
1526fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
153daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_get4x4sse_cs_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride);
154daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_get4x4sse_cs_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride);
155daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_get4x4sse_cs vp8_get4x4sse_cs_mmx
1566fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
157daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_get_mb_ss_c(const short *);
158daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_get_mb_ss_mmx(const short *);
159daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_get_mb_ss_sse2(const short *);
160daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_get_mb_ss vp8_get_mb_ss_sse2
1616fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
162daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid 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);
163daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_intra4x4_predict vp8_intra4x4_predict_c
1646fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
165daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_bh_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
166daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_bh_mmx(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
167daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_bh_sse2(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
168daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_loop_filter_bh vp8_loop_filter_bh_sse2
1696fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
170daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_bv_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
171daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_bv_mmx(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
172daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_bv_sse2(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
173daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_loop_filter_bv vp8_loop_filter_bv_sse2
1746fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
175daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_mbh_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
176daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_mbh_mmx(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
177daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_mbh_sse2(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
178daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_loop_filter_mbh vp8_loop_filter_mbh_sse2
1796fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
180daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_mbv_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
181daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_mbv_mmx(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
182daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_mbv_sse2(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
183daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_loop_filter_mbv vp8_loop_filter_mbv_sse2
1846fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
185daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *blimit);
186daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_bhs_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
187daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_bhs_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
188daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_loop_filter_simple_bh vp8_loop_filter_bhs_sse2
1896fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
190daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *blimit);
191daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_bvs_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
192daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_bvs_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
193daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_loop_filter_simple_bv vp8_loop_filter_bvs_sse2
1946fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
195daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
196daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_simple_horizontal_edge_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
197daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_simple_horizontal_edge_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
198daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_loop_filter_simple_mbh vp8_loop_filter_simple_horizontal_edge_sse2
1996fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
200daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
201daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_simple_vertical_edge_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
202daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_loop_filter_simple_vertical_edge_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
203daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_loop_filter_simple_mbv vp8_loop_filter_simple_vertical_edge_sse2
2046fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
205daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgint vp8_mbblock_error_c(struct macroblock *mb, int dc);
206daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgint vp8_mbblock_error_mmx(struct macroblock *mb, int dc);
207daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgint vp8_mbblock_error_xmm(struct macroblock *mb, int dc);
208daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_mbblock_error vp8_mbblock_error_xmm
2096fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
210daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_mbpost_proc_across_ip_c(unsigned char *dst, int pitch, int rows, int cols,int flimit);
211daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_mbpost_proc_across_ip_xmm(unsigned char *dst, int pitch, int rows, int cols,int flimit);
212daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_mbpost_proc_across_ip vp8_mbpost_proc_across_ip_xmm
2136fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
214daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_mbpost_proc_down_c(unsigned char *dst, int pitch, int rows, int cols,int flimit);
215daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_mbpost_proc_down_mmx(unsigned char *dst, int pitch, int rows, int cols,int flimit);
216daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_mbpost_proc_down_xmm(unsigned char *dst, int pitch, int rows, int cols,int flimit);
217daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_mbpost_proc_down vp8_mbpost_proc_down_xmm
2186fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
219daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgint vp8_mbuverror_c(struct macroblock *mb);
220daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgint vp8_mbuverror_mmx(struct macroblock *mb);
221daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgint vp8_mbuverror_xmm(struct macroblock *mb);
222daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_mbuverror vp8_mbuverror_xmm
2236fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
224daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_mse16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
225daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_mse16x16_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
226daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_mse16x16_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
227daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_mse16x16 vp8_mse16x16_wmt
2286fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
229daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid 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);
230daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid 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);
231daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid 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);
232daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_plane_add_noise vp8_plane_add_noise_wmt
2336fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
234daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid 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);
235daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid 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);
236daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_post_proc_down_and_across_mb_row vp8_post_proc_down_and_across_mb_row_sse2
2376fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
238daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_quantize_mb_c(struct macroblock *);
239daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_quantize_mb vp8_quantize_mb_c
2406fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
241daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_quantize_mbuv_c(struct macroblock *);
242daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_quantize_mbuv vp8_quantize_mbuv_c
2436fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
244daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_quantize_mby_c(struct macroblock *);
245daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_quantize_mby vp8_quantize_mby_c
2466fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
247daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgint 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);
248daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgint 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);
249daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_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);
2506fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
251daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_regular_quantize_b_c(struct block *, struct blockd *);
252daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_regular_quantize_b_sse2(struct block *, struct blockd *);
25388b47b29cc274dd19cddc37c1ce1834d97df282efgalligan@chromium.orgvoid vp8_regular_quantize_b_sse4_1(struct block *, struct blockd *);
25488b47b29cc274dd19cddc37c1ce1834d97df282efgalligan@chromium.orgRTCD_EXTERN void (*vp8_regular_quantize_b)(struct block *, struct blockd *);
2556fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
256daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_regular_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
257daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_regular_quantize_b_pair vp8_regular_quantize_b_pair_c
2586fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
2596fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgunsigned int vp8_sad16x16_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
2606fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgunsigned int vp8_sad16x16_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
2616fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgunsigned int vp8_sad16x16_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
2626fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgunsigned int vp8_sad16x16_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
2636fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgRTCD_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);
2646fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
265daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad16x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
266daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad16x16x3_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
267daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad16x16x3_ssse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
268daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_EXTERN void (*vp8_sad16x16x3)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
2696fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
270daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad16x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
271daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad16x16x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
272daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_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);
2736fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
274daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad16x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
275daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad16x16x8_sse4(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
276daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_EXTERN void (*vp8_sad16x16x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
277daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org
278daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_sad16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
279daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_sad16x8_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
280daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_sad16x8_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
281daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_sad16x8 vp8_sad16x8_wmt
2826fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
2836fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_sad16x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
2846fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_sad16x8x3_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
2856fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_sad16x8x3_ssse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
2866fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgRTCD_EXTERN void (*vp8_sad16x8x3)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
2876fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
288daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad16x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
289daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad16x8x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
290daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_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);
2916fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
2926fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_sad16x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
2936fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_sad16x8x8_sse4(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
2946fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgRTCD_EXTERN void (*vp8_sad16x8x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
2956fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
296daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_sad4x4_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
297daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_sad4x4_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
298daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_sad4x4_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
299daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_sad4x4 vp8_sad4x4_wmt
300daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org
301daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad4x4x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
302daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad4x4x3_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
303daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_EXTERN void (*vp8_sad4x4x3)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
3046fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
3056fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_sad4x4x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
3066fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_sad4x4x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
3076fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgRTCD_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);
3086fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
309daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad4x4x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
310daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad4x4x8_sse4(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
311daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_EXTERN void (*vp8_sad4x4x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
312daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org
313daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_sad8x16_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
314daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_sad8x16_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
315daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_sad8x16_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
316daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_sad8x16 vp8_sad8x16_wmt
317daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org
318daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad8x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
319daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad8x16x3_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
320daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_EXTERN void (*vp8_sad8x16x3)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
3216fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
3226fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_sad8x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
3236fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_sad8x16x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
3246fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgRTCD_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);
3256fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
326daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad8x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
327daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad8x16x8_sse4(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
328daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_EXTERN void (*vp8_sad8x16x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
3296fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
330daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_sad8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
331daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_sad8x8_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
332daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_sad8x8_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
333daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_sad8x8 vp8_sad8x8_wmt
3346fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
335daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad8x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
336daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad8x8x3_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
337daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_EXTERN void (*vp8_sad8x8x3)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
3386fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
339daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad8x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
340daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad8x8x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
341daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_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);
3426fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
343daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad8x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
344daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sad8x8x8_sse4(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
345daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_EXTERN void (*vp8_sad8x8x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
3466fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
3476fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_short_fdct4x4_c(short *input, short *output, int pitch);
3486fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_short_fdct4x4_mmx(short *input, short *output, int pitch);
3496fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_short_fdct4x4_sse2(short *input, short *output, int pitch);
3506fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#define vp8_short_fdct4x4 vp8_short_fdct4x4_sse2
3516fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
3526fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_short_fdct8x4_c(short *input, short *output, int pitch);
3536fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_short_fdct8x4_mmx(short *input, short *output, int pitch);
3546fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_short_fdct8x4_sse2(short *input, short *output, int pitch);
3556fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#define vp8_short_fdct8x4 vp8_short_fdct8x4_sse2
3566fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
357daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
358daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_short_idct4x4llm_mmx(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
359daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_short_idct4x4llm vp8_short_idct4x4llm_mmx
360daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org
361daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_short_inv_walsh4x4_c(short *input, short *output);
362daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_short_inv_walsh4x4_mmx(short *input, short *output);
363daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_short_inv_walsh4x4_sse2(short *input, short *output);
364daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_short_inv_walsh4x4 vp8_short_inv_walsh4x4_sse2
365daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org
366daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_short_inv_walsh4x4_1_c(short *input, short *output);
367daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c
368daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org
3696fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_short_walsh4x4_c(short *input, short *output, int pitch);
3706fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_short_walsh4x4_sse2(short *input, short *output, int pitch);
3716fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#define vp8_short_walsh4x4 vp8_short_walsh4x4_sse2
3726fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
373daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
374daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sixtap_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
375daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sixtap_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
376daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sixtap_predict16x16_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
377daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_EXTERN void (*vp8_sixtap_predict16x16)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
3786fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
379daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
380daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sixtap_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
381daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sixtap_predict4x4_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
382daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_EXTERN void (*vp8_sixtap_predict4x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
3836fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
384daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
385daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sixtap_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
386daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sixtap_predict8x4_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
387daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sixtap_predict8x4_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
388daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_EXTERN void (*vp8_sixtap_predict8x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
3896fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
390daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
391daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sixtap_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
392daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sixtap_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
393daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_sixtap_predict8x8_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
394daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_EXTERN void (*vp8_sixtap_predict8x8)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
3956fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
396daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
397daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
398daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
399daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_sub_pixel_mse16x16 vp8_sub_pixel_mse16x16_wmt
4006fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
401daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
402daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
403daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
404daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
405daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_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);
4066fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
407daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
408daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
409daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
410daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
411daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgRTCD_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);
4126fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
413daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
414daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
415daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
416daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_sub_pixel_variance4x4 vp8_sub_pixel_variance4x4_wmt
4176fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
418daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
419daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
420daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
421daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_sub_pixel_variance8x16 vp8_sub_pixel_variance8x16_wmt
4226fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
423daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
424daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
425daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
426daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_sub_pixel_variance8x8 vp8_sub_pixel_variance8x8_wmt
4276fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
4286fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_subtract_b_c(struct block *be, struct blockd *bd, int pitch);
4296fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_subtract_b_mmx(struct block *be, struct blockd *bd, int pitch);
4306fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_subtract_b_sse2(struct block *be, struct blockd *bd, int pitch);
4316fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#define vp8_subtract_b vp8_subtract_b_sse2
4326fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
433daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_subtract_mbuv_c(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
434daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_subtract_mbuv_mmx(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
435daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgvoid vp8_subtract_mbuv_sse2(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
436daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_subtract_mbuv vp8_subtract_mbuv_sse2
437daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org
4386fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_subtract_mby_c(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
4396fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_subtract_mby_mmx(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
4406fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_subtract_mby_sse2(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
4416fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#define vp8_subtract_mby vp8_subtract_mby_sse2
4426fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
443daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_variance16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
444daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_variance16x16_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
445daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_variance16x16_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
446daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_variance16x16 vp8_variance16x16_wmt
4476fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
448daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_variance16x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
449daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_variance16x8_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
450daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_variance16x8_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
451daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_variance16x8 vp8_variance16x8_wmt
4526fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
453daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_variance4x4_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
454daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_variance4x4_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
455daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_variance4x4_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
456daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_variance4x4 vp8_variance4x4_wmt
4576fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
458daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_variance8x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
459daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_variance8x16_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
460daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_variance8x16_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
461daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_variance8x16 vp8_variance8x16_wmt
462daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org
463daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_variance8x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
464daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_variance8x8_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
465daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned int vp8_variance8x8_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
466daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_variance8x8 vp8_variance8x8_wmt
467daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org
468daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
469daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
470daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
471daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_variance_halfpixvar16x16_h vp8_variance_halfpixvar16x16_h_wmt
472daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org
473daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
474daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
475daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
476daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_variance_halfpixvar16x16_hv vp8_variance_halfpixvar16x16_hv_wmt
477daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org
478daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
479daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
480daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.orgunsigned 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);
481daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org#define vp8_variance_halfpixvar16x16_v vp8_variance_halfpixvar16x16_v_wmt
4826fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
4836fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_rtcd(void);
4846fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
4856fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#ifdef RTCD_C
4866fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#include "vpx_ports/x86.h"
4876fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgstatic void setup_rtcd_internal(void)
4886fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org{
4896fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    int flags = x86_simd_caps();
4906fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
4916fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    (void)flags;
4926fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
493daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_sse2;
494daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_ssse3;
495daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sse2;
496daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_ssse3;
497daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_sse2;
498daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_ssse3;
499daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_sse2;
500daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_ssse3;
501daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_copy32xn = vp8_copy32xn_sse2;
502daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSE3) vp8_copy32xn = vp8_copy32xn_sse3;
503daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_diamond_search_sad = vp8_diamond_search_sad_c;
504daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSE3) vp8_diamond_search_sad = vp8_diamond_search_sadx4;
505daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_fast_quantize_b = vp8_fast_quantize_b_sse2;
506daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_fast_quantize_b = vp8_fast_quantize_b_ssse3;
507daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_full_search_sad = vp8_full_search_sad_c;
508daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSE3) vp8_full_search_sad = vp8_full_search_sadx3;
509daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_full_search_sad = vp8_full_search_sadx8;
510daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_refining_search_sad = vp8_refining_search_sad_c;
511daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSE3) vp8_refining_search_sad = vp8_refining_search_sadx4;
51288b47b29cc274dd19cddc37c1ce1834d97df282efgalligan@chromium.org    vp8_regular_quantize_b = vp8_regular_quantize_b_sse2;
51388b47b29cc274dd19cddc37c1ce1834d97df282efgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_regular_quantize_b = vp8_regular_quantize_b_sse4_1;
5146fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    vp8_sad16x16 = vp8_sad16x16_wmt;
5156fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad16x16 = vp8_sad16x16_sse3;
5166fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    vp8_sad16x16x3 = vp8_sad16x16x3_c;
5176fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad16x16x3 = vp8_sad16x16x3_sse3;
5186fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sad16x16x3 = vp8_sad16x16x3_ssse3;
519daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_sad16x16x4d = vp8_sad16x16x4d_c;
520daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad16x16x4d = vp8_sad16x16x4d_sse3;
5216fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    vp8_sad16x16x8 = vp8_sad16x16x8_c;
5226fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_sad16x16x8 = vp8_sad16x16x8_sse4;
523daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_sad16x8x3 = vp8_sad16x8x3_c;
524daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad16x8x3 = vp8_sad16x8x3_sse3;
525daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sad16x8x3 = vp8_sad16x8x3_ssse3;
5266fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    vp8_sad16x8x4d = vp8_sad16x8x4d_c;
5276fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad16x8x4d = vp8_sad16x8x4d_sse3;
528daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_sad16x8x8 = vp8_sad16x8x8_c;
529daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_sad16x8x8 = vp8_sad16x8x8_sse4;
530daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_sad4x4x3 = vp8_sad4x4x3_c;
531daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad4x4x3 = vp8_sad4x4x3_sse3;
532daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_sad4x4x4d = vp8_sad4x4x4d_c;
533daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad4x4x4d = vp8_sad4x4x4d_sse3;
534daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_sad4x4x8 = vp8_sad4x4x8_c;
535daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_sad4x4x8 = vp8_sad4x4x8_sse4;
536daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_sad8x16x3 = vp8_sad8x16x3_c;
537daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad8x16x3 = vp8_sad8x16x3_sse3;
538daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_sad8x16x4d = vp8_sad8x16x4d_c;
539daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad8x16x4d = vp8_sad8x16x4d_sse3;
540daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_sad8x16x8 = vp8_sad8x16x8_c;
541daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_sad8x16x8 = vp8_sad8x16x8_sse4;
542daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_sad8x8x3 = vp8_sad8x8x3_c;
543daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad8x8x3 = vp8_sad8x8x3_sse3;
544daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_sad8x8x4d = vp8_sad8x8x4d_c;
545daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad8x8x4d = vp8_sad8x8x4d_sse3;
546daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_sad8x8x8 = vp8_sad8x8x8_c;
547daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_sad8x8x8 = vp8_sad8x8x8_sse4;
548daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_sse2;
549daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_ssse3;
550daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_mmx;
551daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_ssse3;
552daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_sse2;
553daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_ssse3;
554daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_sse2;
555daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_ssse3;
556daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_wmt;
557daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_ssse3;
558daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_wmt;
559daa317752787969f0b39e74dacf35acc11e4b79afgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_ssse3;
5606fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org}
5616fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#endif
562dddee1ec7cedf276305b107429f684539b105276johannkoenig@chromium.org
563dddee1ec7cedf276305b107429f684539b105276johannkoenig@chromium.org#ifdef __cplusplus
564dddee1ec7cedf276305b107429f684539b105276johannkoenig@chromium.org}  // extern "C"
565dddee1ec7cedf276305b107429f684539b105276johannkoenig@chromium.org#endif
566dddee1ec7cedf276305b107429f684539b105276johannkoenig@chromium.org
5676fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#endif
568