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
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);
346fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_bilinear_predict4x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
386fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_bilinear_predict8x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
426fefe538d859300e7febe78271828198c10f1b52fgalligan@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);
486fefe538d859300e7febe78271828198c10f1b52fgalligan@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
516fefe538d859300e7febe78271828198c10f1b52fgalligan@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
546fefe538d859300e7febe78271828198c10f1b52fgalligan@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
576fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN int (*vp8_block_error)(short *coeff, short *dqcoeff);
626fefe538d859300e7febe78271828198c10f1b52fgalligan@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);
676fefe538d859300e7febe78271828198c10f1b52fgalligan@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);
726fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
7362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_clear_system_state_c();
7462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vpx_reset_mmx_state();
7562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgRTCD_EXTERN void (*vp8_clear_system_state)();
766fefe538d859300e7febe78271828198c10f1b52fgalligan@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);
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.orgRTCD_EXTERN void (*vp8_copy_mem16x16)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
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.orgRTCD_EXTERN void (*vp8_copy_mem8x4)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
906fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_copy_mem8x8)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
946fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_dc_only_idct_add)(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
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);
101118f379ec73bf762ee63784bc5f41ffd41107470johannkoenig@chromium.orgRTCD_EXTERN int (*vp8_denoiser_filter)(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);
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.orgRTCD_EXTERN int (*vp8_denoiser_filter_uv)(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);
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.orgRTCD_EXTERN void (*vp8_dequant_idct_add)(short *input, short *dq, unsigned char *output, int stride);
1106fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_dequant_idct_add_uv_block)(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
1156fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_dequant_idct_add_y_block)(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
1206fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_dequantize_b)(struct blockd*, short *dqc);
1246fefe538d859300e7febe78271828198c10f1b52fgalligan@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);
1286fefe538d859300e7febe78271828198c10f1b52fgalligan@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 *);
1336fefe538d859300e7febe78271828198c10f1b52fgalligan@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
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.orgRTCD_EXTERN void (*vp8_filter_by_weight16x16)(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
1406fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
1416fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.orgvoid vp8_filter_by_weight4x4_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
1426fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#define vp8_filter_by_weight4x4 vp8_filter_by_weight4x4_c
1436fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
14462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_filter_by_weight8x8_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
14562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_filter_by_weight8x8_sse2(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
14662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgRTCD_EXTERN void (*vp8_filter_by_weight8x8)(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
1476fefe538d859300e7febe78271828198c10f1b52fgalligan@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);
1526fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN unsigned int (*vp8_get4x4sse_cs)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride);
1566fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN unsigned int (*vp8_get_mb_ss)(const short *);
1616fefe538d859300e7febe78271828198c10f1b52fgalligan@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
1646fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_loop_filter_bh)(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
1696fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_loop_filter_bv)(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
1746fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_loop_filter_mbh)(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
1796fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_loop_filter_mbv)(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
1846fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_loop_filter_simple_bh)(unsigned char *y, int ystride, const unsigned char *blimit);
1896fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_loop_filter_simple_bv)(unsigned char *y, int ystride, const unsigned char *blimit);
1946fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_loop_filter_simple_mbh)(unsigned char *y, int ystride, const unsigned char *blimit);
1996fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_loop_filter_simple_mbv)(unsigned char *y, int ystride, const unsigned char *blimit);
2046fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN int (*vp8_mbblock_error)(struct macroblock *mb, int dc);
2096fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_mbpost_proc_across_ip)(unsigned char *dst, int pitch, int rows, int cols,int flimit);
2136fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_mbpost_proc_down)(unsigned char *dst, int pitch, int rows, int cols,int flimit);
2186fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN int (*vp8_mbuverror)(struct macroblock *mb);
2236fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN unsigned int (*vp8_mse16x16)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
2286fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_plane_add_noise)(unsigned char *s, char *noise, char blackclamp[16], char whiteclamp[16], char bothclamp[16], unsigned int w, unsigned int h, int pitch);
2336fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_post_proc_down_and_across_mb_row)(unsigned char *src, unsigned char *dst, int src_pitch, int dst_pitch, int cols, unsigned char *flimits, int size);
2376fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
23862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_quantize_mb_c(struct macroblock *);
23962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_quantize_mb vp8_quantize_mb_c
2406fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
24162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_quantize_mbuv_c(struct macroblock *);
24262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_quantize_mbuv vp8_quantize_mbuv_c
2436fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org
24462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgvoid vp8_quantize_mby_c(struct macroblock *);
24562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org#define vp8_quantize_mby vp8_quantize_mby_c
2466fefe538d859300e7febe78271828198c10f1b52fgalligan@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);
2506fefe538d859300e7febe78271828198c10f1b52fgalligan@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 *);
25462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.orgRTCD_EXTERN void (*vp8_regular_quantize_b)(struct block *, struct blockd *);
25562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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
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
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);
2696fefe538d859300e7febe78271828198c10f1b52fgalligan@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);
2736fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN unsigned int (*vp8_sad16x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
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
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);
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
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.orgRTCD_EXTERN unsigned int (*vp8_sad4x4)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
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);
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
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.orgRTCD_EXTERN unsigned int (*vp8_sad8x16)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
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);
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
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);
3296fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN unsigned int (*vp8_sad8x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
3346fefe538d859300e7febe78271828198c10f1b52fgalligan@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);
3386fefe538d859300e7febe78271828198c10f1b52fgalligan@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);
3426fefe538d859300e7febe78271828198c10f1b52fgalligan@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);
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.orgRTCD_EXTERN void (*vp8_short_fdct4x4)(short *input, short *output, int pitch);
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.orgRTCD_EXTERN void (*vp8_short_fdct8x4)(short *input, short *output, int pitch);
3566fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_short_idct4x4llm)(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
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.orgRTCD_EXTERN void (*vp8_short_inv_walsh4x4)(short *input, short *output);
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
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.orgRTCD_EXTERN void (*vp8_short_walsh4x4)(short *input, short *output, int pitch);
3726fefe538d859300e7febe78271828198c10f1b52fgalligan@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);
3786fefe538d859300e7febe78271828198c10f1b52fgalligan@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);
3836fefe538d859300e7febe78271828198c10f1b52fgalligan@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);
3896fefe538d859300e7febe78271828198c10f1b52fgalligan@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);
3956fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN unsigned int (*vp8_sub_pixel_mse16x16)(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
4006fefe538d859300e7febe78271828198c10f1b52fgalligan@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);
4066fefe538d859300e7febe78271828198c10f1b52fgalligan@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);
4126fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN unsigned int (*vp8_sub_pixel_variance4x4)(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
4176fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN unsigned int (*vp8_sub_pixel_variance8x16)(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
42262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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.orgRTCD_EXTERN unsigned int (*vp8_sub_pixel_variance8x8)(const unsigned char  *src_ptr, int  source_stride, int  xoffset, int  yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
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.orgRTCD_EXTERN void (*vp8_subtract_b)(struct block *be, struct blockd *bd, int pitch);
4326fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN void (*vp8_subtract_mbuv)(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
43762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@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.orgRTCD_EXTERN void (*vp8_subtract_mby)(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
4426fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN unsigned int (*vp8_variance16x16)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
4476fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN unsigned int (*vp8_variance16x8)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
4526fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN unsigned int (*vp8_variance4x4)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
4576fefe538d859300e7febe78271828198c10f1b52fgalligan@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.orgRTCD_EXTERN unsigned int (*vp8_variance8x16)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
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.orgRTCD_EXTERN unsigned int (*vp8_variance8x8)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
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.orgRTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_h)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
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.orgRTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_hv)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
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.orgRTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_v)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
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
49362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_c;
49462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_mmx;
49562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_sse2;
49662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_ssse3;
49762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_c;
49862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_mmx;
49962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_c;
50062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_mmx;
50162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_c;
50262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_mmx;
50362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sse2;
50462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_ssse3;
50562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_block_error = vp8_block_error_c;
50662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_block_error = vp8_block_error_mmx;
50762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_block_error = vp8_block_error_xmm;
50862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_c;
50962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_sse2;
51062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_ssse3;
51162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_c;
51262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_sse2;
51362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_ssse3;
51462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_clear_system_state = vp8_clear_system_state_c;
51562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_clear_system_state = vpx_reset_mmx_state;
51662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_copy32xn = vp8_copy32xn_c;
51762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_copy32xn = vp8_copy32xn_sse2;
51862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_copy32xn = vp8_copy32xn_sse3;
5196fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    vp8_copy_mem16x16 = vp8_copy_mem16x16_c;
5206fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_MMX) vp8_copy_mem16x16 = vp8_copy_mem16x16_mmx;
5216fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_copy_mem16x16 = vp8_copy_mem16x16_sse2;
5226fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    vp8_copy_mem8x4 = vp8_copy_mem8x4_c;
5236fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_MMX) vp8_copy_mem8x4 = vp8_copy_mem8x4_mmx;
52462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_copy_mem8x8 = vp8_copy_mem8x8_c;
52562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_copy_mem8x8 = vp8_copy_mem8x8_mmx;
52662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_dc_only_idct_add = vp8_dc_only_idct_add_c;
52762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_dc_only_idct_add = vp8_dc_only_idct_add_mmx;
52862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_denoiser_filter = vp8_denoiser_filter_c;
52962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_denoiser_filter = vp8_denoiser_filter_sse2;
530e2064011d36b2008099446503f28e64d445060ecjohannkoenig@chromium.org    vp8_denoiser_filter_uv = vp8_denoiser_filter_uv_c;
531e2064011d36b2008099446503f28e64d445060ecjohannkoenig@chromium.org    if (flags & HAS_SSE2) vp8_denoiser_filter_uv = vp8_denoiser_filter_uv_sse2;
53262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_dequant_idct_add = vp8_dequant_idct_add_c;
53362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_dequant_idct_add = vp8_dequant_idct_add_mmx;
53462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_c;
53562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_mmx;
53662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_sse2;
53762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_c;
53862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_mmx;
53962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_sse2;
54062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_dequantize_b = vp8_dequantize_b_c;
54162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_dequantize_b = vp8_dequantize_b_mmx;
54262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_diamond_search_sad = vp8_diamond_search_sad_c;
54362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_diamond_search_sad = vp8_diamond_search_sadx4;
54462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_fast_quantize_b = vp8_fast_quantize_b_c;
54562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_fast_quantize_b = vp8_fast_quantize_b_sse2;
54662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_fast_quantize_b = vp8_fast_quantize_b_ssse3;
5476fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    vp8_filter_by_weight16x16 = vp8_filter_by_weight16x16_c;
5486fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_filter_by_weight16x16 = vp8_filter_by_weight16x16_sse2;
5496fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    vp8_filter_by_weight8x8 = vp8_filter_by_weight8x8_c;
5506fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_filter_by_weight8x8 = vp8_filter_by_weight8x8_sse2;
55162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_full_search_sad = vp8_full_search_sad_c;
55262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_full_search_sad = vp8_full_search_sadx3;
55362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_full_search_sad = vp8_full_search_sadx8;
55462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_get4x4sse_cs = vp8_get4x4sse_cs_c;
55562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_get4x4sse_cs = vp8_get4x4sse_cs_mmx;
55662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_get_mb_ss = vp8_get_mb_ss_c;
55762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_get_mb_ss = vp8_get_mb_ss_mmx;
55862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_get_mb_ss = vp8_get_mb_ss_sse2;
55962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_loop_filter_bh = vp8_loop_filter_bh_c;
56062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_loop_filter_bh = vp8_loop_filter_bh_mmx;
56162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_loop_filter_bh = vp8_loop_filter_bh_sse2;
56262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_loop_filter_bv = vp8_loop_filter_bv_c;
56362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_loop_filter_bv = vp8_loop_filter_bv_mmx;
56462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_loop_filter_bv = vp8_loop_filter_bv_sse2;
56562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_loop_filter_mbh = vp8_loop_filter_mbh_c;
56662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_loop_filter_mbh = vp8_loop_filter_mbh_mmx;
56762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_loop_filter_mbh = vp8_loop_filter_mbh_sse2;
56862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_loop_filter_mbv = vp8_loop_filter_mbv_c;
56962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_loop_filter_mbv = vp8_loop_filter_mbv_mmx;
57062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_loop_filter_mbv = vp8_loop_filter_mbv_sse2;
57162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_c;
57262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_mmx;
57362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_sse2;
57462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_c;
57562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_mmx;
57662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_sse2;
57762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_horizontal_edge_c;
57862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_horizontal_edge_mmx;
57962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_horizontal_edge_sse2;
58062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_vertical_edge_c;
58162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_vertical_edge_mmx;
58262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_vertical_edge_sse2;
58362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_mbblock_error = vp8_mbblock_error_c;
58462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_mbblock_error = vp8_mbblock_error_mmx;
58562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_mbblock_error = vp8_mbblock_error_xmm;
58662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_mbpost_proc_across_ip = vp8_mbpost_proc_across_ip_c;
58762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_mbpost_proc_across_ip = vp8_mbpost_proc_across_ip_xmm;
58862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_mbpost_proc_down = vp8_mbpost_proc_down_c;
58962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_mbpost_proc_down = vp8_mbpost_proc_down_mmx;
59062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_mbpost_proc_down = vp8_mbpost_proc_down_xmm;
59162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_mbuverror = vp8_mbuverror_c;
59262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_mbuverror = vp8_mbuverror_mmx;
59362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_mbuverror = vp8_mbuverror_xmm;
59462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_mse16x16 = vp8_mse16x16_c;
59562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_mse16x16 = vp8_mse16x16_mmx;
59662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_mse16x16 = vp8_mse16x16_wmt;
59762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_plane_add_noise = vp8_plane_add_noise_c;
59862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_plane_add_noise = vp8_plane_add_noise_mmx;
59962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_plane_add_noise = vp8_plane_add_noise_wmt;
60062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_post_proc_down_and_across_mb_row = vp8_post_proc_down_and_across_mb_row_c;
60162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_post_proc_down_and_across_mb_row = vp8_post_proc_down_and_across_mb_row_sse2;
60262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_refining_search_sad = vp8_refining_search_sad_c;
60362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_refining_search_sad = vp8_refining_search_sadx4;
60462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_regular_quantize_b = vp8_regular_quantize_b_c;
60562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_regular_quantize_b = vp8_regular_quantize_b_sse2;
60688b47b29cc274dd19cddc37c1ce1834d97df282efgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_regular_quantize_b = vp8_regular_quantize_b_sse4_1;
6076fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    vp8_sad16x16 = vp8_sad16x16_c;
6086fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_MMX) vp8_sad16x16 = vp8_sad16x16_mmx;
6096fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_sad16x16 = vp8_sad16x16_wmt;
6106fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad16x16 = vp8_sad16x16_sse3;
61162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad16x16x3 = vp8_sad16x16x3_c;
61262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad16x16x3 = vp8_sad16x16x3_sse3;
61362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sad16x16x3 = vp8_sad16x16x3_ssse3;
61462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad16x16x4d = vp8_sad16x16x4d_c;
61562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad16x16x4d = vp8_sad16x16x4d_sse3;
61662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad16x16x8 = vp8_sad16x16x8_c;
61762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_sad16x16x8 = vp8_sad16x16x8_sse4;
61862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad16x8 = vp8_sad16x8_c;
61962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_sad16x8 = vp8_sad16x8_mmx;
62062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_sad16x8 = vp8_sad16x8_wmt;
6216fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    vp8_sad16x8x3 = vp8_sad16x8x3_c;
6226fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad16x8x3 = vp8_sad16x8x3_sse3;
6236fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sad16x8x3 = vp8_sad16x8x3_ssse3;
62462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad16x8x4d = vp8_sad16x8x4d_c;
62562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad16x8x4d = vp8_sad16x8x4d_sse3;
6266fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    vp8_sad16x8x8 = vp8_sad16x8x8_c;
6276fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_sad16x8x8 = vp8_sad16x8x8_sse4;
62862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad4x4 = vp8_sad4x4_c;
62962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_sad4x4 = vp8_sad4x4_mmx;
63062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_sad4x4 = vp8_sad4x4_wmt;
63162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad4x4x3 = vp8_sad4x4x3_c;
63262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad4x4x3 = vp8_sad4x4x3_sse3;
6336fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    vp8_sad4x4x4d = vp8_sad4x4x4d_c;
6346fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad4x4x4d = vp8_sad4x4x4d_sse3;
63562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad4x4x8 = vp8_sad4x4x8_c;
63662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_sad4x4x8 = vp8_sad4x4x8_sse4;
63762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad8x16 = vp8_sad8x16_c;
63862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_sad8x16 = vp8_sad8x16_mmx;
63962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_sad8x16 = vp8_sad8x16_wmt;
64062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad8x16x3 = vp8_sad8x16x3_c;
64162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad8x16x3 = vp8_sad8x16x3_sse3;
64262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad8x16x4d = vp8_sad8x16x4d_c;
64362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad8x16x4d = vp8_sad8x16x4d_sse3;
64462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad8x16x8 = vp8_sad8x16x8_c;
64562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_sad8x16x8 = vp8_sad8x16x8_sse4;
64662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad8x8 = vp8_sad8x8_c;
64762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_sad8x8 = vp8_sad8x8_mmx;
64862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_sad8x8 = vp8_sad8x8_wmt;
64962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad8x8x3 = vp8_sad8x8x3_c;
65062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad8x8x3 = vp8_sad8x8x3_sse3;
65162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad8x8x4d = vp8_sad8x8x4d_c;
65262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE3) vp8_sad8x8x4d = vp8_sad8x8x4d_sse3;
65362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sad8x8x8 = vp8_sad8x8x8_c;
65462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE4_1) vp8_sad8x8x8 = vp8_sad8x8x8_sse4;
6556fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    vp8_short_fdct4x4 = vp8_short_fdct4x4_c;
6566fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_MMX) vp8_short_fdct4x4 = vp8_short_fdct4x4_mmx;
6576fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_short_fdct4x4 = vp8_short_fdct4x4_sse2;
6586fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    vp8_short_fdct8x4 = vp8_short_fdct8x4_c;
6596fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_MMX) vp8_short_fdct8x4 = vp8_short_fdct8x4_mmx;
6606fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_short_fdct8x4 = vp8_short_fdct8x4_sse2;
66162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_short_idct4x4llm = vp8_short_idct4x4llm_c;
66262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_short_idct4x4llm = vp8_short_idct4x4llm_mmx;
66362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_c;
66462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_mmx;
66562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_sse2;
6666fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    vp8_short_walsh4x4 = vp8_short_walsh4x4_c;
6676fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_short_walsh4x4 = vp8_short_walsh4x4_sse2;
66862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_c;
66962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_mmx;
67062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_sse2;
67162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_ssse3;
67262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_c;
67362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_mmx;
67462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_ssse3;
67562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_c;
67662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_mmx;
67762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_sse2;
67862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_ssse3;
67962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_c;
68062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_mmx;
68162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_sse2;
68262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_ssse3;
68362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sub_pixel_mse16x16 = vp8_sub_pixel_mse16x16_c;
68462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_sub_pixel_mse16x16 = vp8_sub_pixel_mse16x16_mmx;
68562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_sub_pixel_mse16x16 = vp8_sub_pixel_mse16x16_wmt;
68662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_c;
68762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_mmx;
68862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_wmt;
68962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_ssse3;
69062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_c;
69162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_mmx;
69262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_wmt;
69362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSSE3) vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_ssse3;
69462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sub_pixel_variance4x4 = vp8_sub_pixel_variance4x4_c;
69562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_sub_pixel_variance4x4 = vp8_sub_pixel_variance4x4_mmx;
69662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_sub_pixel_variance4x4 = vp8_sub_pixel_variance4x4_wmt;
69762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sub_pixel_variance8x16 = vp8_sub_pixel_variance8x16_c;
69862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_sub_pixel_variance8x16 = vp8_sub_pixel_variance8x16_mmx;
69962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_sub_pixel_variance8x16 = vp8_sub_pixel_variance8x16_wmt;
70062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_sub_pixel_variance8x8 = vp8_sub_pixel_variance8x8_c;
70162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_sub_pixel_variance8x8 = vp8_sub_pixel_variance8x8_mmx;
70262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_sub_pixel_variance8x8 = vp8_sub_pixel_variance8x8_wmt;
7036fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    vp8_subtract_b = vp8_subtract_b_c;
7046fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_MMX) vp8_subtract_b = vp8_subtract_b_mmx;
7056fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_subtract_b = vp8_subtract_b_sse2;
70662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_subtract_mbuv = vp8_subtract_mbuv_c;
70762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_subtract_mbuv = vp8_subtract_mbuv_mmx;
70862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_subtract_mbuv = vp8_subtract_mbuv_sse2;
7096fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    vp8_subtract_mby = vp8_subtract_mby_c;
7106fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_MMX) vp8_subtract_mby = vp8_subtract_mby_mmx;
7116fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_subtract_mby = vp8_subtract_mby_sse2;
71262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_variance16x16 = vp8_variance16x16_c;
71362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_variance16x16 = vp8_variance16x16_mmx;
71462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_variance16x16 = vp8_variance16x16_wmt;
71562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_variance16x8 = vp8_variance16x8_c;
71662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_variance16x8 = vp8_variance16x8_mmx;
71762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_variance16x8 = vp8_variance16x8_wmt;
71862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_variance4x4 = vp8_variance4x4_c;
71962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_variance4x4 = vp8_variance4x4_mmx;
72062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_variance4x4 = vp8_variance4x4_wmt;
72162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_variance8x16 = vp8_variance8x16_c;
72262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_variance8x16 = vp8_variance8x16_mmx;
72362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_variance8x16 = vp8_variance8x16_wmt;
72462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_variance8x8 = vp8_variance8x8_c;
72562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_variance8x8 = vp8_variance8x8_mmx;
72662346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_variance8x8 = vp8_variance8x8_wmt;
72762346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_c;
72862346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_mmx;
72962346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_wmt;
73062346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_c;
73162346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_mmx;
73262346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_wmt;
73362346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_c;
73462346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_MMX) vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_mmx;
73562346fffe2566140c9f486b24be8377abf9e5b59fgalligan@chromium.org    if (flags & HAS_SSE2) vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_wmt;
7366fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org}
7376fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#endif
738dddee1ec7cedf276305b107429f684539b105276johannkoenig@chromium.org
739dddee1ec7cedf276305b107429f684539b105276johannkoenig@chromium.org#ifdef __cplusplus
740dddee1ec7cedf276305b107429f684539b105276johannkoenig@chromium.org}  // extern "C"
741dddee1ec7cedf276305b107429f684539b105276johannkoenig@chromium.org#endif
742dddee1ec7cedf276305b107429f684539b105276johannkoenig@chromium.org
7436fefe538d859300e7febe78271828198c10f1b52fgalligan@chromium.org#endif
744