14b95526e5c4eb4fecde1cd642cf991a82c51b9f2johannkoenig@chromium.org#ifndef VP8_RTCD_H_
24b95526e5c4eb4fecde1cd642cf991a82c51b9f2johannkoenig@chromium.org#define VP8_RTCD_H_
38ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
48ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org#ifdef RTCD_C
58ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org#define RTCD_EXTERN
68ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org#else
78ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org#define RTCD_EXTERN extern
88ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org#endif
98ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
108ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org/*
118ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org * VP8
128ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org */
138ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
148ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgstruct blockd;
158ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgstruct macroblockd;
168ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgstruct loop_filter_info;
178ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
188ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org/* Encoder forward decls */
198ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgstruct block;
208ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgstruct macroblock;
218ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgstruct variance_vtable;
228ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgunion int_mv;
238ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgstruct yv12_buffer_config;
248ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
2587997d490ae52aa962a985c95b3cddf7f8832641johannkoenig@chromium.org#ifdef __cplusplus
2687997d490ae52aa962a985c95b3cddf7f8832641johannkoenig@chromium.orgextern "C" {
2787997d490ae52aa962a985c95b3cddf7f8832641johannkoenig@chromium.org#endif
2887997d490ae52aa962a985c95b3cddf7f8832641johannkoenig@chromium.org
2962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_bilinear_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
3062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_bilinear_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
3162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_bilinear_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
3262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_bilinear_predict16x16_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
3362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgRTCD_EXTERN void (*vp8_bilinear_predict16x16)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
348ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
3562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_bilinear_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
3662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_bilinear_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
3762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_bilinear_predict4x4 vp8_bilinear_predict4x4_mmx
388ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
3962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
4062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_bilinear_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
4162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_bilinear_predict8x4 vp8_bilinear_predict8x4_mmx
428ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
4362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
4462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_bilinear_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
4562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_bilinear_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
4662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_bilinear_predict8x8_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
4762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgRTCD_EXTERN void (*vp8_bilinear_predict8x8)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
488ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
4962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
5062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_blend_b vp8_blend_b_c
518ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
5262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
5362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_blend_mb_inner vp8_blend_mb_inner_c
548ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
5562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
5662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_blend_mb_outer vp8_blend_mb_outer_c
578ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
5862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgint vp8_block_error_c(short *coeff, short *dqcoeff);
5962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgint vp8_block_error_mmx(short *coeff, short *dqcoeff);
6062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgint vp8_block_error_xmm(short *coeff, short *dqcoeff);
6162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_block_error vp8_block_error_xmm
628ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
6362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
6462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
6562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
6662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
678ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
6862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
6962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
7062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
7162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
728ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
7362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_clear_system_state_c();
7462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vpx_reset_mmx_state();
7562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_clear_system_state vpx_reset_mmx_state
768ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
7762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_copy32xn_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n);
7862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_copy32xn_sse2(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n);
7962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_copy32xn_sse3(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n);
8062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgRTCD_EXTERN void (*vp8_copy32xn)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n);
818ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
828ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
838ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_copy_mem16x16_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
848ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_copy_mem16x16_sse2(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
858ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org#define vp8_copy_mem16x16 vp8_copy_mem16x16_sse2
868ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
878ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
888ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_copy_mem8x4_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
898ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org#define vp8_copy_mem8x4 vp8_copy_mem8x4_mmx
908ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
9162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
9262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_copy_mem8x8_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
9362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_copy_mem8x8 vp8_copy_mem8x8_mmx
948ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
9562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
9662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_dc_only_idct_add_mmx(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
9762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_dc_only_idct_add vp8_dc_only_idct_add_mmx
988ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
10162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_denoiser_filter vp8_denoiser_filter_sse2
1028ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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
10762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int stride);
10862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_dequant_idct_add_mmx(short *input, short *dq, unsigned char *output, int stride);
10962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_dequant_idct_add vp8_dequant_idct_add_mmx
1108ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
11162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
11262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
11362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
11462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_sse2
1158ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
11662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
11762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_dequant_idct_add_y_block_mmx(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
11862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_dequant_idct_add_y_block_sse2(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
11962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_sse2
1208ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
12162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_dequantize_b_c(struct blockd*, short *dqc);
12262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_dequantize_b_mmx(struct blockd*, short *dqc);
12362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_dequantize_b vp8_dequantize_b_mmx
1248ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
12562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
12662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
12762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
1288ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
12962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_fast_quantize_b_c(struct block *, struct blockd *);
13062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_fast_quantize_b_sse2(struct block *, struct blockd *);
13162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_fast_quantize_b_ssse3(struct block *, struct blockd *);
13262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgRTCD_EXTERN void (*vp8_fast_quantize_b)(struct block *, struct blockd *);
1338ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
13462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_fast_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
13562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_fast_quantize_b_pair vp8_fast_quantize_b_pair_c
1368ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
1378ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_filter_by_weight16x16_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
1388ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_filter_by_weight16x16_sse2(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
1398ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org#define vp8_filter_by_weight16x16 vp8_filter_by_weight16x16_sse2
1408ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
14162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_filter_by_weight4x4_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
14262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_filter_by_weight4x4 vp8_filter_by_weight4x4_c
14362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org
1448ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_filter_by_weight8x8_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
1458ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_filter_by_weight8x8_sse2(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
1468ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org#define vp8_filter_by_weight8x8 vp8_filter_by_weight8x8_sse2
1478ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
14862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
14962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
15062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
15162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
1528ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
15362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgunsigned int vp8_get4x4sse_cs_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride);
15462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgunsigned int vp8_get4x4sse_cs_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride);
15562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_get4x4sse_cs vp8_get4x4sse_cs_mmx
1568ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
15762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgunsigned int vp8_get_mb_ss_c(const short *);
15862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgunsigned int vp8_get_mb_ss_mmx(const short *);
15962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgunsigned int vp8_get_mb_ss_sse2(const short *);
16062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_get_mb_ss vp8_get_mb_ss_sse2
1618ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
16262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
16362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_intra4x4_predict vp8_intra4x4_predict_c
1648ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
16562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
16662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
16762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
16862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_loop_filter_bh vp8_loop_filter_bh_sse2
1698ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
17062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
17162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
17262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
17362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_loop_filter_bv vp8_loop_filter_bv_sse2
1748ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
17562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
17662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
17762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
17862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_loop_filter_mbh vp8_loop_filter_mbh_sse2
1798ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
18062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
18162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
18262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
18362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_loop_filter_mbv vp8_loop_filter_mbv_sse2
1848ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
18562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *blimit);
18662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_loop_filter_bhs_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
18762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_loop_filter_bhs_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
18862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_loop_filter_simple_bh vp8_loop_filter_bhs_sse2
1898ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
19062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *blimit);
19162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_loop_filter_bvs_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
19262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_loop_filter_bvs_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
19362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_loop_filter_simple_bv vp8_loop_filter_bvs_sse2
1948ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
19562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
19662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_loop_filter_simple_horizontal_edge_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
19762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_loop_filter_simple_horizontal_edge_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
19862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_loop_filter_simple_mbh vp8_loop_filter_simple_horizontal_edge_sse2
1998ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
20062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
20162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_loop_filter_simple_vertical_edge_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
20262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_loop_filter_simple_vertical_edge_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
20362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_loop_filter_simple_mbv vp8_loop_filter_simple_vertical_edge_sse2
2048ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
20562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgint vp8_mbblock_error_c(struct macroblock *mb, int dc);
20662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgint vp8_mbblock_error_mmx(struct macroblock *mb, int dc);
20762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgint vp8_mbblock_error_xmm(struct macroblock *mb, int dc);
20862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_mbblock_error vp8_mbblock_error_xmm
2098ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
21062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_mbpost_proc_across_ip_c(unsigned char *dst, int pitch, int rows, int cols,int flimit);
21162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_mbpost_proc_across_ip_xmm(unsigned char *dst, int pitch, int rows, int cols,int flimit);
21262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_mbpost_proc_across_ip vp8_mbpost_proc_across_ip_xmm
2138ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
21462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_mbpost_proc_down_c(unsigned char *dst, int pitch, int rows, int cols,int flimit);
21562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_mbpost_proc_down_mmx(unsigned char *dst, int pitch, int rows, int cols,int flimit);
21662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_mbpost_proc_down_xmm(unsigned char *dst, int pitch, int rows, int cols,int flimit);
21762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_mbpost_proc_down vp8_mbpost_proc_down_xmm
2188ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
21962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgint vp8_mbuverror_c(struct macroblock *mb);
22062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgint vp8_mbuverror_mmx(struct macroblock *mb);
22162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgint vp8_mbuverror_xmm(struct macroblock *mb);
22262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_mbuverror vp8_mbuverror_xmm
2238ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
22462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
22562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
22662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
22762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_mse16x16 vp8_mse16x16_wmt
2288ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
22962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
23062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
23162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
23262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_plane_add_noise vp8_plane_add_noise_wmt
2338ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
23462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
23562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
23662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_post_proc_down_and_across_mb_row vp8_post_proc_down_and_across_mb_row_sse2
2378ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
23862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_quantize_mb_c(struct macroblock *);
23962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_quantize_mb vp8_quantize_mb_c
2408ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
24162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_quantize_mbuv_c(struct macroblock *);
24262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_quantize_mbuv vp8_quantize_mbuv_c
2438ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
24462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_quantize_mby_c(struct macroblock *);
24562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_quantize_mby vp8_quantize_mby_c
2468ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
24762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
24862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
24962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
2508ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
25162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_regular_quantize_b_c(struct block *, struct blockd *);
25262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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 *);
2558ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
25662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_regular_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
25762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_regular_quantize_b_pair vp8_regular_quantize_b_pair_c
2588ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
2598ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
2608ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
2618ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
2628ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
2638ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
2648ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
26562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
26662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
26762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
26862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
2698ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
27062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
27162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
27262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
2738ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
27462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
27562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
27662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
27762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org
27862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
27962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
28062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
28162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_sad16x8 vp8_sad16x8_wmt
2828ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
2838ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
2848ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
2858ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
2868ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
2878ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
28862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
28962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
29062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
2918ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
2928ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
2938ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
2948ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
2958ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
29662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
29762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
29862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
29962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_sad4x4 vp8_sad4x4_wmt
30062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org
30162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
30262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
30362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
3048ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
3058ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
3068ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
3078ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
3088ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
30962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
31062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
31162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
31262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org
31362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
31462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
31562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
31662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_sad8x16 vp8_sad8x16_wmt
31762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org
31862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
31962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
32062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
3218ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
3228ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
3238ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
3248ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@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);
3258ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
32662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
32762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
32862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
3298ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
33062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
33162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
33262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
33362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_sad8x8 vp8_sad8x8_wmt
3348ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
33562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
33662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
33762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
3388ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
33962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
34062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
34162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
3428ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
34362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
34462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
34562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
3468ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
3478ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_short_fdct4x4_c(short *input, short *output, int pitch);
3488ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_short_fdct4x4_mmx(short *input, short *output, int pitch);
3498ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_short_fdct4x4_sse2(short *input, short *output, int pitch);
3508ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org#define vp8_short_fdct4x4 vp8_short_fdct4x4_sse2
3518ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
3528ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_short_fdct8x4_c(short *input, short *output, int pitch);
3538ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_short_fdct8x4_mmx(short *input, short *output, int pitch);
3548ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_short_fdct8x4_sse2(short *input, short *output, int pitch);
3558ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org#define vp8_short_fdct8x4 vp8_short_fdct8x4_sse2
3568ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
35762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
35862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_short_idct4x4llm_mmx(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
35962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_short_idct4x4llm vp8_short_idct4x4llm_mmx
36062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org
36162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_short_inv_walsh4x4_c(short *input, short *output);
36262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_short_inv_walsh4x4_mmx(short *input, short *output);
36362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_short_inv_walsh4x4_sse2(short *input, short *output);
36462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_short_inv_walsh4x4 vp8_short_inv_walsh4x4_sse2
36562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org
36662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_short_inv_walsh4x4_1_c(short *input, short *output);
36762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c
36862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org
3698ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_short_walsh4x4_c(short *input, short *output, int pitch);
3708ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_short_walsh4x4_sse2(short *input, short *output, int pitch);
3718ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org#define vp8_short_walsh4x4 vp8_short_walsh4x4_sse2
3728ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
37362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
37462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_sixtap_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
37562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_sixtap_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
37662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_sixtap_predict16x16_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
37762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgRTCD_EXTERN void (*vp8_sixtap_predict16x16)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
3788ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
37962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
38062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_sixtap_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
38162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_sixtap_predict4x4_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
38262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgRTCD_EXTERN void (*vp8_sixtap_predict4x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
3838ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
38462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
38562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_sixtap_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
38662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_sixtap_predict8x4_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
38762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_sixtap_predict8x4_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
38862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgRTCD_EXTERN void (*vp8_sixtap_predict8x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
3898ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
39062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
39162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_sixtap_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
39262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_sixtap_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
39362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_sixtap_predict8x8_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
39462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgRTCD_EXTERN void (*vp8_sixtap_predict8x8)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
3958ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
39662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
39762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
39862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
39962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_sub_pixel_mse16x16 vp8_sub_pixel_mse16x16_wmt
4008ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
40162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
40262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
40362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
40462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
40562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
4068ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
40762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
40862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
40962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
41062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
41162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
4128ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
41362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
41462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
41562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
41662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_sub_pixel_variance4x4 vp8_sub_pixel_variance4x4_wmt
4178ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
41862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
41962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
42062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
42162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_sub_pixel_variance8x16 vp8_sub_pixel_variance8x16_wmt
4228ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
42362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
42462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
42562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
42662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_sub_pixel_variance8x8 vp8_sub_pixel_variance8x8_wmt
4278ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
4288ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_subtract_b_c(struct block *be, struct blockd *bd, int pitch);
4298ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_subtract_b_mmx(struct block *be, struct blockd *bd, int pitch);
4308ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_subtract_b_sse2(struct block *be, struct blockd *bd, int pitch);
4318ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org#define vp8_subtract_b vp8_subtract_b_sse2
4328ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
43362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
43462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
43562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
43662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_subtract_mbuv vp8_subtract_mbuv_sse2
43762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org
4388ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_subtract_mby_c(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
4398ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_subtract_mby_mmx(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
4408ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_subtract_mby_sse2(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
4418ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org#define vp8_subtract_mby vp8_subtract_mby_sse2
4428ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
44362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
44462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
44562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
44662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_variance16x16 vp8_variance16x16_wmt
4478ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
44862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
44962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
45062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
45162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_variance16x8 vp8_variance16x8_wmt
4528ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
45362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
45462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
45562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
45662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_variance4x4 vp8_variance4x4_wmt
4578ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
45862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
45962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
46062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
46162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_variance8x16 vp8_variance8x16_wmt
46262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org
46362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
46462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
46562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
46662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_variance8x8 vp8_variance8x8_wmt
46762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org
46862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
46962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
47062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
47162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_variance_halfpixvar16x16_h vp8_variance_halfpixvar16x16_h_wmt
47262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org
47362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
47462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
47562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
47662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_variance_halfpixvar16x16_hv vp8_variance_halfpixvar16x16_hv_wmt
47762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org
47862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
47962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
48062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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);
48162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_variance_halfpixvar16x16_v vp8_variance_halfpixvar16x16_v_wmt
4828ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
4838ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgvoid vp8_rtcd(void);
4848ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
4858ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org#ifdef RTCD_C
4868ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org#include "vpx_ports/x86.h"
4878ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.orgstatic void setup_rtcd_internal(void)
4888ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org{
4898ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org    int flags = x86_simd_caps();
4908ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
4918ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org    (void)flags;
4928ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org
49362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_sse2;
49462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_ssse3;
49562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sse2;
49662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_ssse3;
49762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_sse2;
49862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_ssse3;
49962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_sse2;
50062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_ssse3;
50162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_copy32xn = vp8_copy32xn_sse2;
50262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_copy32xn = vp8_copy32xn_sse3;
50362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_diamond_search_sad = vp8_diamond_search_sad_c;
50462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_diamond_search_sad = vp8_diamond_search_sadx4;
50562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_fast_quantize_b = vp8_fast_quantize_b_sse2;
50662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_fast_quantize_b = vp8_fast_quantize_b_ssse3;
50762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_full_search_sad = vp8_full_search_sad_c;
50862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_full_search_sad = vp8_full_search_sadx3;
50962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_full_search_sad = vp8_full_search_sadx8;
51062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_refining_search_sad = vp8_refining_search_sad_c;
51162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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;
5148ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org    vp8_sad16x16 = vp8_sad16x16_wmt;
5158ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad16x16 = vp8_sad16x16_sse3;
5168ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org    vp8_sad16x16x3 = vp8_sad16x16x3_c;
5178ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad16x16x3 = vp8_sad16x16x3_sse3;
5188ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sad16x16x3 = vp8_sad16x16x3_ssse3;
51962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad16x16x4d = vp8_sad16x16x4d_c;
52062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad16x16x4d = vp8_sad16x16x4d_sse3;
5218ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org    vp8_sad16x16x8 = vp8_sad16x16x8_c;
5228ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_sad16x16x8 = vp8_sad16x16x8_sse4;
52362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad16x8x3 = vp8_sad16x8x3_c;
52462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad16x8x3 = vp8_sad16x8x3_sse3;
52562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sad16x8x3 = vp8_sad16x8x3_ssse3;
5268ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org    vp8_sad16x8x4d = vp8_sad16x8x4d_c;
5278ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad16x8x4d = vp8_sad16x8x4d_sse3;
52862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad16x8x8 = vp8_sad16x8x8_c;
52962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_sad16x8x8 = vp8_sad16x8x8_sse4;
53062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad4x4x3 = vp8_sad4x4x3_c;
53162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad4x4x3 = vp8_sad4x4x3_sse3;
53262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad4x4x4d = vp8_sad4x4x4d_c;
53362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad4x4x4d = vp8_sad4x4x4d_sse3;
53462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad4x4x8 = vp8_sad4x4x8_c;
53562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_sad4x4x8 = vp8_sad4x4x8_sse4;
53662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad8x16x3 = vp8_sad8x16x3_c;
53762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad8x16x3 = vp8_sad8x16x3_sse3;
53862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad8x16x4d = vp8_sad8x16x4d_c;
53962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad8x16x4d = vp8_sad8x16x4d_sse3;
54062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad8x16x8 = vp8_sad8x16x8_c;
54162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_sad8x16x8 = vp8_sad8x16x8_sse4;
54262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad8x8x3 = vp8_sad8x8x3_c;
54362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad8x8x3 = vp8_sad8x8x3_sse3;
54462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad8x8x4d = vp8_sad8x8x4d_c;
54562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad8x8x4d = vp8_sad8x8x4d_sse3;
54662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad8x8x8 = vp8_sad8x8x8_c;
54762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_sad8x8x8 = vp8_sad8x8x8_sse4;
54862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_sse2;
54962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_ssse3;
55062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_mmx;
55162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_ssse3;
55262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_sse2;
55362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_ssse3;
55462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_sse2;
55562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_ssse3;
55662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_wmt;
55762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_ssse3;
55862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_wmt;
55962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_ssse3;
5608ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org}
5618ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org#endif
562dddee1ec7cedf276305b107429f684539b105276johannkoenig@chromium.org
563dddee1ec7cedf276305b107429f684539b105276johannkoenig@chromium.org#ifdef __cplusplus
564dddee1ec7cedf276305b107429f684539b105276johannkoenig@chromium.org}  // extern "C"
565dddee1ec7cedf276305b107429f684539b105276johannkoenig@chromium.org#endif
566dddee1ec7cedf276305b107429f684539b105276johannkoenig@chromium.org
5678ae1e8e2c7efa47d8464e8a3205dbfaed138690ffgalligan@chromium.org#endif
568