media/libvpx/vp8_rtcd_x86_64-linux-gcc.h

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

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

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 #ifndef VP8_RTCD_H_
michael@0 2 #define VP8_RTCD_H_
michael@0 3
michael@0 4 #ifdef RTCD_C
michael@0 5 #define RTCD_EXTERN
michael@0 6 #else
michael@0 7 #define RTCD_EXTERN extern
michael@0 8 #endif
michael@0 9
michael@0 10 /*
michael@0 11 * VP8
michael@0 12 */
michael@0 13
michael@0 14 struct blockd;
michael@0 15 struct macroblockd;
michael@0 16 struct loop_filter_info;
michael@0 17
michael@0 18 /* Encoder forward decls */
michael@0 19 struct block;
michael@0 20 struct macroblock;
michael@0 21 struct variance_vtable;
michael@0 22 union int_mv;
michael@0 23 struct yv12_buffer_config;
michael@0 24
michael@0 25 void vp8_clear_system_state_c();
michael@0 26 void vpx_reset_mmx_state();
michael@0 27 #define vp8_clear_system_state vpx_reset_mmx_state
michael@0 28
michael@0 29 void vp8_dequantize_b_c(struct blockd*, short *dqc);
michael@0 30 void vp8_dequantize_b_mmx(struct blockd*, short *dqc);
michael@0 31 #define vp8_dequantize_b vp8_dequantize_b_mmx
michael@0 32
michael@0 33 void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int stride);
michael@0 34 void vp8_dequant_idct_add_mmx(short *input, short *dq, unsigned char *output, int stride);
michael@0 35 #define vp8_dequant_idct_add vp8_dequant_idct_add_mmx
michael@0 36
michael@0 37 void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
michael@0 38 void vp8_dequant_idct_add_y_block_mmx(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
michael@0 39 void vp8_dequant_idct_add_y_block_sse2(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
michael@0 40 #define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_sse2
michael@0 41
michael@0 42 void vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
michael@0 43 void vp8_dequant_idct_add_uv_block_mmx(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
michael@0 44 void vp8_dequant_idct_add_uv_block_sse2(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
michael@0 45 #define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_sse2
michael@0 46
michael@0 47 void vp8_loop_filter_mbv_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
michael@0 48 void vp8_loop_filter_mbv_mmx(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
michael@0 49 void vp8_loop_filter_mbv_sse2(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
michael@0 50 #define vp8_loop_filter_mbv vp8_loop_filter_mbv_sse2
michael@0 51
michael@0 52 void vp8_loop_filter_bv_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
michael@0 53 void vp8_loop_filter_bv_mmx(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
michael@0 54 void vp8_loop_filter_bv_sse2(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
michael@0 55 #define vp8_loop_filter_bv vp8_loop_filter_bv_sse2
michael@0 56
michael@0 57 void vp8_loop_filter_mbh_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
michael@0 58 void vp8_loop_filter_mbh_mmx(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
michael@0 59 void vp8_loop_filter_mbh_sse2(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
michael@0 60 #define vp8_loop_filter_mbh vp8_loop_filter_mbh_sse2
michael@0 61
michael@0 62 void vp8_loop_filter_bh_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
michael@0 63 void vp8_loop_filter_bh_mmx(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
michael@0 64 void vp8_loop_filter_bh_sse2(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
michael@0 65 #define vp8_loop_filter_bh vp8_loop_filter_bh_sse2
michael@0 66
michael@0 67 void vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
michael@0 68 void vp8_loop_filter_simple_vertical_edge_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
michael@0 69 void vp8_loop_filter_simple_vertical_edge_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
michael@0 70 #define vp8_loop_filter_simple_mbv vp8_loop_filter_simple_vertical_edge_sse2
michael@0 71
michael@0 72 void vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
michael@0 73 void vp8_loop_filter_simple_horizontal_edge_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
michael@0 74 void vp8_loop_filter_simple_horizontal_edge_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
michael@0 75 #define vp8_loop_filter_simple_mbh vp8_loop_filter_simple_horizontal_edge_sse2
michael@0 76
michael@0 77 void vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *blimit);
michael@0 78 void vp8_loop_filter_bvs_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
michael@0 79 void vp8_loop_filter_bvs_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
michael@0 80 #define vp8_loop_filter_simple_bv vp8_loop_filter_bvs_sse2
michael@0 81
michael@0 82 void vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *blimit);
michael@0 83 void vp8_loop_filter_bhs_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
michael@0 84 void vp8_loop_filter_bhs_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
michael@0 85 #define vp8_loop_filter_simple_bh vp8_loop_filter_bhs_sse2
michael@0 86
michael@0 87 void vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
michael@0 88 void vp8_short_idct4x4llm_mmx(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
michael@0 89 #define vp8_short_idct4x4llm vp8_short_idct4x4llm_mmx
michael@0 90
michael@0 91 void vp8_short_inv_walsh4x4_1_c(short *input, short *output);
michael@0 92 #define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c
michael@0 93
michael@0 94 void vp8_short_inv_walsh4x4_c(short *input, short *output);
michael@0 95 void vp8_short_inv_walsh4x4_mmx(short *input, short *output);
michael@0 96 void vp8_short_inv_walsh4x4_sse2(short *input, short *output);
michael@0 97 #define vp8_short_inv_walsh4x4 vp8_short_inv_walsh4x4_sse2
michael@0 98
michael@0 99 void vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
michael@0 100 void vp8_dc_only_idct_add_mmx(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
michael@0 101 #define vp8_dc_only_idct_add vp8_dc_only_idct_add_mmx
michael@0 102
michael@0 103 void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
michael@0 104 void vp8_copy_mem16x16_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
michael@0 105 void vp8_copy_mem16x16_sse2(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
michael@0 106 #define vp8_copy_mem16x16 vp8_copy_mem16x16_sse2
michael@0 107
michael@0 108 void vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
michael@0 109 void vp8_copy_mem8x8_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
michael@0 110 #define vp8_copy_mem8x8 vp8_copy_mem8x8_mmx
michael@0 111
michael@0 112 void vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
michael@0 113 void vp8_copy_mem8x4_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
michael@0 114 #define vp8_copy_mem8x4 vp8_copy_mem8x4_mmx
michael@0 115
michael@0 116 void vp8_build_intra_predictors_mby_s_c(struct macroblockd *x, unsigned char * yabove_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, int y_stride);
michael@0 117 void vp8_build_intra_predictors_mby_s_sse2(struct macroblockd *x, unsigned char * yabove_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, int y_stride);
michael@0 118 void vp8_build_intra_predictors_mby_s_ssse3(struct macroblockd *x, unsigned char * yabove_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, int y_stride);
michael@0 119 RTCD_EXTERN void (*vp8_build_intra_predictors_mby_s)(struct macroblockd *x, unsigned char * yabove_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, int y_stride);
michael@0 120
michael@0 121 void vp8_build_intra_predictors_mbuv_s_c(struct macroblockd *x, unsigned char * uabove_row, unsigned char * vabove_row, unsigned char *uleft, unsigned char *vleft, int left_stride, unsigned char * upred_ptr, unsigned char * vpred_ptr, int pred_stride);
michael@0 122 void vp8_build_intra_predictors_mbuv_s_sse2(struct macroblockd *x, unsigned char * uabove_row, unsigned char * vabove_row, unsigned char *uleft, unsigned char *vleft, int left_stride, unsigned char * upred_ptr, unsigned char * vpred_ptr, int pred_stride);
michael@0 123 void vp8_build_intra_predictors_mbuv_s_ssse3(struct macroblockd *x, unsigned char * uabove_row, unsigned char * vabove_row, unsigned char *uleft, unsigned char *vleft, int left_stride, unsigned char * upred_ptr, unsigned char * vpred_ptr, int pred_stride);
michael@0 124 RTCD_EXTERN void (*vp8_build_intra_predictors_mbuv_s)(struct macroblockd *x, unsigned char * uabove_row, unsigned char * vabove_row, unsigned char *uleft, unsigned char *vleft, int left_stride, unsigned char * upred_ptr, unsigned char * vpred_ptr, int pred_stride);
michael@0 125
michael@0 126 void vp8_intra4x4_predict_c(unsigned char *Above, unsigned char *yleft, int left_stride, int b_mode, unsigned char *dst, int dst_stride, unsigned char top_left);
michael@0 127 #define vp8_intra4x4_predict vp8_intra4x4_predict_c
michael@0 128
michael@0 129 void vp8_mbpost_proc_down_c(unsigned char *dst, int pitch, int rows, int cols,int flimit);
michael@0 130 void vp8_mbpost_proc_down_mmx(unsigned char *dst, int pitch, int rows, int cols,int flimit);
michael@0 131 void vp8_mbpost_proc_down_xmm(unsigned char *dst, int pitch, int rows, int cols,int flimit);
michael@0 132 #define vp8_mbpost_proc_down vp8_mbpost_proc_down_xmm
michael@0 133
michael@0 134 void vp8_mbpost_proc_across_ip_c(unsigned char *dst, int pitch, int rows, int cols,int flimit);
michael@0 135 void vp8_mbpost_proc_across_ip_xmm(unsigned char *dst, int pitch, int rows, int cols,int flimit);
michael@0 136 #define vp8_mbpost_proc_across_ip vp8_mbpost_proc_across_ip_xmm
michael@0 137
michael@0 138 void vp8_post_proc_down_and_across_mb_row_c(unsigned char *src, unsigned char *dst, int src_pitch, int dst_pitch, int cols, unsigned char *flimits, int size);
michael@0 139 void vp8_post_proc_down_and_across_mb_row_sse2(unsigned char *src, unsigned char *dst, int src_pitch, int dst_pitch, int cols, unsigned char *flimits, int size);
michael@0 140 #define vp8_post_proc_down_and_across_mb_row vp8_post_proc_down_and_across_mb_row_sse2
michael@0 141
michael@0 142 void vp8_plane_add_noise_c(unsigned char *s, char *noise, char blackclamp[16], char whiteclamp[16], char bothclamp[16], unsigned int w, unsigned int h, int pitch);
michael@0 143 void vp8_plane_add_noise_mmx(unsigned char *s, char *noise, char blackclamp[16], char whiteclamp[16], char bothclamp[16], unsigned int w, unsigned int h, int pitch);
michael@0 144 void vp8_plane_add_noise_wmt(unsigned char *s, char *noise, char blackclamp[16], char whiteclamp[16], char bothclamp[16], unsigned int w, unsigned int h, int pitch);
michael@0 145 #define vp8_plane_add_noise vp8_plane_add_noise_wmt
michael@0 146
michael@0 147 void vp8_blend_mb_inner_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride);
michael@0 148 #define vp8_blend_mb_inner vp8_blend_mb_inner_c
michael@0 149
michael@0 150 void vp8_blend_mb_outer_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride);
michael@0 151 #define vp8_blend_mb_outer vp8_blend_mb_outer_c
michael@0 152
michael@0 153 void vp8_blend_b_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride);
michael@0 154 #define vp8_blend_b vp8_blend_b_c
michael@0 155
michael@0 156 void vp8_filter_by_weight16x16_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
michael@0 157 void vp8_filter_by_weight16x16_sse2(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
michael@0 158 #define vp8_filter_by_weight16x16 vp8_filter_by_weight16x16_sse2
michael@0 159
michael@0 160 void vp8_filter_by_weight8x8_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
michael@0 161 void vp8_filter_by_weight8x8_sse2(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
michael@0 162 #define vp8_filter_by_weight8x8 vp8_filter_by_weight8x8_sse2
michael@0 163
michael@0 164 void vp8_filter_by_weight4x4_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
michael@0 165 #define vp8_filter_by_weight4x4 vp8_filter_by_weight4x4_c
michael@0 166
michael@0 167 void vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 168 void vp8_sixtap_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 169 void vp8_sixtap_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 170 void vp8_sixtap_predict16x16_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 171 RTCD_EXTERN void (*vp8_sixtap_predict16x16)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 172
michael@0 173 void vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 174 void vp8_sixtap_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 175 void vp8_sixtap_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 176 void vp8_sixtap_predict8x8_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 177 RTCD_EXTERN void (*vp8_sixtap_predict8x8)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 178
michael@0 179 void vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 180 void vp8_sixtap_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 181 void vp8_sixtap_predict8x4_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 182 void vp8_sixtap_predict8x4_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 183 RTCD_EXTERN void (*vp8_sixtap_predict8x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 184
michael@0 185 void vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 186 void vp8_sixtap_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 187 void vp8_sixtap_predict4x4_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 188 RTCD_EXTERN void (*vp8_sixtap_predict4x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 189
michael@0 190 void vp8_bilinear_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 191 void vp8_bilinear_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 192 void vp8_bilinear_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 193 void vp8_bilinear_predict16x16_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 194 RTCD_EXTERN void (*vp8_bilinear_predict16x16)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 195
michael@0 196 void vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 197 void vp8_bilinear_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 198 void vp8_bilinear_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 199 void vp8_bilinear_predict8x8_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 200 RTCD_EXTERN void (*vp8_bilinear_predict8x8)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 201
michael@0 202 void vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 203 void vp8_bilinear_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 204 #define vp8_bilinear_predict8x4 vp8_bilinear_predict8x4_mmx
michael@0 205
michael@0 206 void vp8_bilinear_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 207 void vp8_bilinear_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
michael@0 208 #define vp8_bilinear_predict4x4 vp8_bilinear_predict4x4_mmx
michael@0 209
michael@0 210 unsigned int vp8_variance4x4_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 211 unsigned int vp8_variance4x4_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 212 unsigned int vp8_variance4x4_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 213 #define vp8_variance4x4 vp8_variance4x4_wmt
michael@0 214
michael@0 215 unsigned int vp8_variance8x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 216 unsigned int vp8_variance8x8_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 217 unsigned int vp8_variance8x8_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 218 #define vp8_variance8x8 vp8_variance8x8_wmt
michael@0 219
michael@0 220 unsigned int vp8_variance8x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 221 unsigned int vp8_variance8x16_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 222 unsigned int vp8_variance8x16_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 223 #define vp8_variance8x16 vp8_variance8x16_wmt
michael@0 224
michael@0 225 unsigned int vp8_variance16x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 226 unsigned int vp8_variance16x8_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 227 unsigned int vp8_variance16x8_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 228 #define vp8_variance16x8 vp8_variance16x8_wmt
michael@0 229
michael@0 230 unsigned int vp8_variance16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 231 unsigned int vp8_variance16x16_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 232 unsigned int vp8_variance16x16_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 233 #define vp8_variance16x16 vp8_variance16x16_wmt
michael@0 234
michael@0 235 unsigned int vp8_sub_pixel_variance4x4_c(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 236 unsigned int vp8_sub_pixel_variance4x4_mmx(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 237 unsigned int vp8_sub_pixel_variance4x4_wmt(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 238 #define vp8_sub_pixel_variance4x4 vp8_sub_pixel_variance4x4_wmt
michael@0 239
michael@0 240 unsigned int vp8_sub_pixel_variance8x8_c(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 241 unsigned int vp8_sub_pixel_variance8x8_mmx(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 242 unsigned int vp8_sub_pixel_variance8x8_wmt(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 243 #define vp8_sub_pixel_variance8x8 vp8_sub_pixel_variance8x8_wmt
michael@0 244
michael@0 245 unsigned int vp8_sub_pixel_variance8x16_c(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 246 unsigned int vp8_sub_pixel_variance8x16_mmx(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 247 unsigned int vp8_sub_pixel_variance8x16_wmt(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 248 #define vp8_sub_pixel_variance8x16 vp8_sub_pixel_variance8x16_wmt
michael@0 249
michael@0 250 unsigned int vp8_sub_pixel_variance16x8_c(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 251 unsigned int vp8_sub_pixel_variance16x8_mmx(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 252 unsigned int vp8_sub_pixel_variance16x8_wmt(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 253 unsigned int vp8_sub_pixel_variance16x8_ssse3(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 254 RTCD_EXTERN unsigned int (*vp8_sub_pixel_variance16x8)(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 255
michael@0 256 unsigned int vp8_sub_pixel_variance16x16_c(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 257 unsigned int vp8_sub_pixel_variance16x16_mmx(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 258 unsigned int vp8_sub_pixel_variance16x16_wmt(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 259 unsigned int vp8_sub_pixel_variance16x16_ssse3(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 260 RTCD_EXTERN unsigned int (*vp8_sub_pixel_variance16x16)(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 261
michael@0 262 unsigned int vp8_variance_halfpixvar16x16_h_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 263 unsigned int vp8_variance_halfpixvar16x16_h_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 264 unsigned int vp8_variance_halfpixvar16x16_h_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 265 #define vp8_variance_halfpixvar16x16_h vp8_variance_halfpixvar16x16_h_wmt
michael@0 266
michael@0 267 unsigned int vp8_variance_halfpixvar16x16_v_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 268 unsigned int vp8_variance_halfpixvar16x16_v_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 269 unsigned int vp8_variance_halfpixvar16x16_v_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 270 #define vp8_variance_halfpixvar16x16_v vp8_variance_halfpixvar16x16_v_wmt
michael@0 271
michael@0 272 unsigned int vp8_variance_halfpixvar16x16_hv_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 273 unsigned int vp8_variance_halfpixvar16x16_hv_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 274 unsigned int vp8_variance_halfpixvar16x16_hv_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 275 #define vp8_variance_halfpixvar16x16_hv vp8_variance_halfpixvar16x16_hv_wmt
michael@0 276
michael@0 277 unsigned int vp8_sad4x4_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
michael@0 278 unsigned int vp8_sad4x4_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
michael@0 279 unsigned int vp8_sad4x4_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
michael@0 280 #define vp8_sad4x4 vp8_sad4x4_wmt
michael@0 281
michael@0 282 unsigned int vp8_sad8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
michael@0 283 unsigned int vp8_sad8x8_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
michael@0 284 unsigned int vp8_sad8x8_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
michael@0 285 #define vp8_sad8x8 vp8_sad8x8_wmt
michael@0 286
michael@0 287 unsigned int vp8_sad8x16_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
michael@0 288 unsigned int vp8_sad8x16_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
michael@0 289 unsigned int vp8_sad8x16_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
michael@0 290 #define vp8_sad8x16 vp8_sad8x16_wmt
michael@0 291
michael@0 292 unsigned int vp8_sad16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
michael@0 293 unsigned int vp8_sad16x8_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
michael@0 294 unsigned int vp8_sad16x8_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
michael@0 295 #define vp8_sad16x8 vp8_sad16x8_wmt
michael@0 296
michael@0 297 unsigned int vp8_sad16x16_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
michael@0 298 unsigned int vp8_sad16x16_mmx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
michael@0 299 unsigned int vp8_sad16x16_wmt(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
michael@0 300 unsigned int vp8_sad16x16_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
michael@0 301 RTCD_EXTERN unsigned int (*vp8_sad16x16)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
michael@0 302
michael@0 303 void vp8_sad4x4x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
michael@0 304 void vp8_sad4x4x3_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
michael@0 305 RTCD_EXTERN void (*vp8_sad4x4x3)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
michael@0 306
michael@0 307 void vp8_sad8x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
michael@0 308 void vp8_sad8x8x3_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
michael@0 309 RTCD_EXTERN void (*vp8_sad8x8x3)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
michael@0 310
michael@0 311 void vp8_sad8x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
michael@0 312 void vp8_sad8x16x3_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
michael@0 313 RTCD_EXTERN void (*vp8_sad8x16x3)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
michael@0 314
michael@0 315 void vp8_sad16x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
michael@0 316 void vp8_sad16x8x3_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
michael@0 317 void vp8_sad16x8x3_ssse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
michael@0 318 RTCD_EXTERN void (*vp8_sad16x8x3)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
michael@0 319
michael@0 320 void vp8_sad16x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
michael@0 321 void vp8_sad16x16x3_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
michael@0 322 void vp8_sad16x16x3_ssse3(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
michael@0 323 RTCD_EXTERN void (*vp8_sad16x16x3)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
michael@0 324
michael@0 325 void vp8_sad4x4x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
michael@0 326 void vp8_sad4x4x8_sse4(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
michael@0 327 RTCD_EXTERN void (*vp8_sad4x4x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
michael@0 328
michael@0 329 void vp8_sad8x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
michael@0 330 void vp8_sad8x8x8_sse4(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
michael@0 331 RTCD_EXTERN void (*vp8_sad8x8x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
michael@0 332
michael@0 333 void vp8_sad8x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
michael@0 334 void vp8_sad8x16x8_sse4(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
michael@0 335 RTCD_EXTERN void (*vp8_sad8x16x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
michael@0 336
michael@0 337 void vp8_sad16x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
michael@0 338 void vp8_sad16x8x8_sse4(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
michael@0 339 RTCD_EXTERN void (*vp8_sad16x8x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
michael@0 340
michael@0 341 void vp8_sad16x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
michael@0 342 void vp8_sad16x16x8_sse4(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
michael@0 343 RTCD_EXTERN void (*vp8_sad16x16x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
michael@0 344
michael@0 345 void vp8_sad4x4x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
michael@0 346 void vp8_sad4x4x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
michael@0 347 RTCD_EXTERN void (*vp8_sad4x4x4d)(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
michael@0 348
michael@0 349 void vp8_sad8x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
michael@0 350 void vp8_sad8x8x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
michael@0 351 RTCD_EXTERN void (*vp8_sad8x8x4d)(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
michael@0 352
michael@0 353 void vp8_sad8x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
michael@0 354 void vp8_sad8x16x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
michael@0 355 RTCD_EXTERN void (*vp8_sad8x16x4d)(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
michael@0 356
michael@0 357 void vp8_sad16x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
michael@0 358 void vp8_sad16x8x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
michael@0 359 RTCD_EXTERN void (*vp8_sad16x8x4d)(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
michael@0 360
michael@0 361 void vp8_sad16x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
michael@0 362 void vp8_sad16x16x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
michael@0 363 RTCD_EXTERN void (*vp8_sad16x16x4d)(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
michael@0 364
michael@0 365 unsigned int vp8_get_mb_ss_c(const short *);
michael@0 366 unsigned int vp8_get_mb_ss_mmx(const short *);
michael@0 367 unsigned int vp8_get_mb_ss_sse2(const short *);
michael@0 368 #define vp8_get_mb_ss vp8_get_mb_ss_sse2
michael@0 369
michael@0 370 unsigned int vp8_sub_pixel_mse16x16_c(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 371 unsigned int vp8_sub_pixel_mse16x16_mmx(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 372 unsigned int vp8_sub_pixel_mse16x16_wmt(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
michael@0 373 #define vp8_sub_pixel_mse16x16 vp8_sub_pixel_mse16x16_wmt
michael@0 374
michael@0 375 unsigned int vp8_mse16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 376 unsigned int vp8_mse16x16_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 377 unsigned int vp8_mse16x16_wmt(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
michael@0 378 #define vp8_mse16x16 vp8_mse16x16_wmt
michael@0 379
michael@0 380 unsigned int vp8_get4x4sse_cs_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride);
michael@0 381 unsigned int vp8_get4x4sse_cs_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride);
michael@0 382 #define vp8_get4x4sse_cs vp8_get4x4sse_cs_mmx
michael@0 383
michael@0 384 void vp8_copy32xn_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n);
michael@0 385 void vp8_copy32xn_sse2(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n);
michael@0 386 void vp8_copy32xn_sse3(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n);
michael@0 387 RTCD_EXTERN void (*vp8_copy32xn)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n);
michael@0 388
michael@0 389 void vp8_short_fdct4x4_c(short *input, short *output, int pitch);
michael@0 390 void vp8_short_fdct4x4_mmx(short *input, short *output, int pitch);
michael@0 391 void vp8_short_fdct4x4_sse2(short *input, short *output, int pitch);
michael@0 392 #define vp8_short_fdct4x4 vp8_short_fdct4x4_sse2
michael@0 393
michael@0 394 void vp8_short_fdct8x4_c(short *input, short *output, int pitch);
michael@0 395 void vp8_short_fdct8x4_mmx(short *input, short *output, int pitch);
michael@0 396 void vp8_short_fdct8x4_sse2(short *input, short *output, int pitch);
michael@0 397 #define vp8_short_fdct8x4 vp8_short_fdct8x4_sse2
michael@0 398
michael@0 399 void vp8_short_walsh4x4_c(short *input, short *output, int pitch);
michael@0 400 void vp8_short_walsh4x4_sse2(short *input, short *output, int pitch);
michael@0 401 #define vp8_short_walsh4x4 vp8_short_walsh4x4_sse2
michael@0 402
michael@0 403 void vp8_regular_quantize_b_c(struct block *, struct blockd *);
michael@0 404 void vp8_regular_quantize_b_sse2(struct block *, struct blockd *);
michael@0 405 #define vp8_regular_quantize_b vp8_regular_quantize_b_sse2
michael@0 406
michael@0 407 void vp8_fast_quantize_b_c(struct block *, struct blockd *);
michael@0 408 void vp8_fast_quantize_b_sse2(struct block *, struct blockd *);
michael@0 409 void vp8_fast_quantize_b_ssse3(struct block *, struct blockd *);
michael@0 410 RTCD_EXTERN void (*vp8_fast_quantize_b)(struct block *, struct blockd *);
michael@0 411
michael@0 412 void vp8_regular_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
michael@0 413 #define vp8_regular_quantize_b_pair vp8_regular_quantize_b_pair_c
michael@0 414
michael@0 415 void vp8_fast_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
michael@0 416 #define vp8_fast_quantize_b_pair vp8_fast_quantize_b_pair_c
michael@0 417
michael@0 418 void vp8_quantize_mb_c(struct macroblock *);
michael@0 419 #define vp8_quantize_mb vp8_quantize_mb_c
michael@0 420
michael@0 421 void vp8_quantize_mby_c(struct macroblock *);
michael@0 422 #define vp8_quantize_mby vp8_quantize_mby_c
michael@0 423
michael@0 424 void vp8_quantize_mbuv_c(struct macroblock *);
michael@0 425 #define vp8_quantize_mbuv vp8_quantize_mbuv_c
michael@0 426
michael@0 427 int vp8_block_error_c(short *coeff, short *dqcoeff);
michael@0 428 int vp8_block_error_mmx(short *coeff, short *dqcoeff);
michael@0 429 int vp8_block_error_xmm(short *coeff, short *dqcoeff);
michael@0 430 #define vp8_block_error vp8_block_error_xmm
michael@0 431
michael@0 432 int vp8_mbblock_error_c(struct macroblock *mb, int dc);
michael@0 433 int vp8_mbblock_error_mmx(struct macroblock *mb, int dc);
michael@0 434 int vp8_mbblock_error_xmm(struct macroblock *mb, int dc);
michael@0 435 #define vp8_mbblock_error vp8_mbblock_error_xmm
michael@0 436
michael@0 437 int vp8_mbuverror_c(struct macroblock *mb);
michael@0 438 int vp8_mbuverror_mmx(struct macroblock *mb);
michael@0 439 int vp8_mbuverror_xmm(struct macroblock *mb);
michael@0 440 #define vp8_mbuverror vp8_mbuverror_xmm
michael@0 441
michael@0 442 void vp8_subtract_b_c(struct block *be, struct blockd *bd, int pitch);
michael@0 443 void vp8_subtract_b_mmx(struct block *be, struct blockd *bd, int pitch);
michael@0 444 void vp8_subtract_b_sse2(struct block *be, struct blockd *bd, int pitch);
michael@0 445 #define vp8_subtract_b vp8_subtract_b_sse2
michael@0 446
michael@0 447 void vp8_subtract_mby_c(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
michael@0 448 void vp8_subtract_mby_mmx(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
michael@0 449 void vp8_subtract_mby_sse2(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
michael@0 450 #define vp8_subtract_mby vp8_subtract_mby_sse2
michael@0 451
michael@0 452 void vp8_subtract_mbuv_c(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
michael@0 453 void vp8_subtract_mbuv_mmx(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
michael@0 454 void vp8_subtract_mbuv_sse2(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
michael@0 455 #define vp8_subtract_mbuv vp8_subtract_mbuv_sse2
michael@0 456
michael@0 457 int vp8_full_search_sad_c(struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv);
michael@0 458 int vp8_full_search_sadx3(struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv);
michael@0 459 int vp8_full_search_sadx8(struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv);
michael@0 460 RTCD_EXTERN int (*vp8_full_search_sad)(struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv);
michael@0 461
michael@0 462 int vp8_refining_search_sad_c(struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv);
michael@0 463 int vp8_refining_search_sadx4(struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv);
michael@0 464 RTCD_EXTERN int (*vp8_refining_search_sad)(struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv);
michael@0 465
michael@0 466 int vp8_diamond_search_sad_c(struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, union int_mv *best_mv, int search_param, int sad_per_bit, int *num00, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv);
michael@0 467 int vp8_diamond_search_sadx4(struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, union int_mv *best_mv, int search_param, int sad_per_bit, int *num00, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv);
michael@0 468 RTCD_EXTERN int (*vp8_diamond_search_sad)(struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, union int_mv *best_mv, int search_param, int sad_per_bit, int *num00, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv);
michael@0 469
michael@0 470 void vp8_temporal_filter_apply_c(unsigned char *frame1, unsigned int stride, unsigned char *frame2, unsigned int block_size, int strength, int filter_weight, unsigned int *accumulator, unsigned short *count);
michael@0 471 void vp8_temporal_filter_apply_sse2(unsigned char *frame1, unsigned int stride, unsigned char *frame2, unsigned int block_size, int strength, int filter_weight, unsigned int *accumulator, unsigned short *count);
michael@0 472 #define vp8_temporal_filter_apply vp8_temporal_filter_apply_sse2
michael@0 473
michael@0 474 void vp8_yv12_copy_partial_frame_c(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
michael@0 475 #define vp8_yv12_copy_partial_frame vp8_yv12_copy_partial_frame_c
michael@0 476
michael@0 477 int vp8_denoiser_filter_c(struct yv12_buffer_config* mc_running_avg, struct yv12_buffer_config* running_avg, struct macroblock* signal, unsigned int motion_magnitude2, int y_offset, int uv_offset);
michael@0 478 int vp8_denoiser_filter_sse2(struct yv12_buffer_config* mc_running_avg, struct yv12_buffer_config* running_avg, struct macroblock* signal, unsigned int motion_magnitude2, int y_offset, int uv_offset);
michael@0 479 #define vp8_denoiser_filter vp8_denoiser_filter_sse2
michael@0 480
michael@0 481 void vp8_rtcd(void);
michael@0 482
michael@0 483 #ifdef RTCD_C
michael@0 484 #include "vpx_ports/x86.h"
michael@0 485 static void setup_rtcd_internal(void)
michael@0 486 {
michael@0 487 int flags = x86_simd_caps();
michael@0 488
michael@0 489 (void)flags;
michael@0 490
michael@0 491
michael@0 492
michael@0 493
michael@0 494
michael@0 495
michael@0 496
michael@0 497
michael@0 498
michael@0 499
michael@0 500
michael@0 501
michael@0 502
michael@0 503
michael@0 504
michael@0 505
michael@0 506
michael@0 507
michael@0 508
michael@0 509
michael@0 510
michael@0 511 vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_sse2;
michael@0 512 if (flags & HAS_SSSE3) vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_ssse3;
michael@0 513
michael@0 514 vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_sse2;
michael@0 515 if (flags & HAS_SSSE3) vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_ssse3;
michael@0 516
michael@0 517
michael@0 518
michael@0 519
michael@0 520
michael@0 521
michael@0 522
michael@0 523
michael@0 524
michael@0 525
michael@0 526
michael@0 527
michael@0 528 vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_sse2;
michael@0 529 if (flags & HAS_SSSE3) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_ssse3;
michael@0 530
michael@0 531 vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_sse2;
michael@0 532 if (flags & HAS_SSSE3) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_ssse3;
michael@0 533
michael@0 534 vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_sse2;
michael@0 535 if (flags & HAS_SSSE3) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_ssse3;
michael@0 536
michael@0 537 vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_mmx;
michael@0 538 if (flags & HAS_SSSE3) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_ssse3;
michael@0 539
michael@0 540 vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_sse2;
michael@0 541 if (flags & HAS_SSSE3) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_ssse3;
michael@0 542
michael@0 543 vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sse2;
michael@0 544 if (flags & HAS_SSSE3) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_ssse3;
michael@0 545
michael@0 546
michael@0 547
michael@0 548
michael@0 549
michael@0 550
michael@0 551
michael@0 552
michael@0 553
michael@0 554
michael@0 555
michael@0 556 vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_wmt;
michael@0 557 if (flags & HAS_SSSE3) vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_ssse3;
michael@0 558
michael@0 559 vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_wmt;
michael@0 560 if (flags & HAS_SSSE3) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_ssse3;
michael@0 561
michael@0 562
michael@0 563
michael@0 564
michael@0 565
michael@0 566
michael@0 567
michael@0 568
michael@0 569 vp8_sad16x16 = vp8_sad16x16_wmt;
michael@0 570 if (flags & HAS_SSE3) vp8_sad16x16 = vp8_sad16x16_sse3;
michael@0 571
michael@0 572 vp8_sad4x4x3 = vp8_sad4x4x3_c;
michael@0 573 if (flags & HAS_SSE3) vp8_sad4x4x3 = vp8_sad4x4x3_sse3;
michael@0 574
michael@0 575 vp8_sad8x8x3 = vp8_sad8x8x3_c;
michael@0 576 if (flags & HAS_SSE3) vp8_sad8x8x3 = vp8_sad8x8x3_sse3;
michael@0 577
michael@0 578 vp8_sad8x16x3 = vp8_sad8x16x3_c;
michael@0 579 if (flags & HAS_SSE3) vp8_sad8x16x3 = vp8_sad8x16x3_sse3;
michael@0 580
michael@0 581 vp8_sad16x8x3 = vp8_sad16x8x3_c;
michael@0 582 if (flags & HAS_SSE3) vp8_sad16x8x3 = vp8_sad16x8x3_sse3;
michael@0 583 if (flags & HAS_SSSE3) vp8_sad16x8x3 = vp8_sad16x8x3_ssse3;
michael@0 584
michael@0 585 vp8_sad16x16x3 = vp8_sad16x16x3_c;
michael@0 586 if (flags & HAS_SSE3) vp8_sad16x16x3 = vp8_sad16x16x3_sse3;
michael@0 587 if (flags & HAS_SSSE3) vp8_sad16x16x3 = vp8_sad16x16x3_ssse3;
michael@0 588
michael@0 589 vp8_sad4x4x8 = vp8_sad4x4x8_c;
michael@0 590 if (flags & HAS_SSE4_1) vp8_sad4x4x8 = vp8_sad4x4x8_sse4;
michael@0 591
michael@0 592 vp8_sad8x8x8 = vp8_sad8x8x8_c;
michael@0 593 if (flags & HAS_SSE4_1) vp8_sad8x8x8 = vp8_sad8x8x8_sse4;
michael@0 594
michael@0 595 vp8_sad8x16x8 = vp8_sad8x16x8_c;
michael@0 596 if (flags & HAS_SSE4_1) vp8_sad8x16x8 = vp8_sad8x16x8_sse4;
michael@0 597
michael@0 598 vp8_sad16x8x8 = vp8_sad16x8x8_c;
michael@0 599 if (flags & HAS_SSE4_1) vp8_sad16x8x8 = vp8_sad16x8x8_sse4;
michael@0 600
michael@0 601 vp8_sad16x16x8 = vp8_sad16x16x8_c;
michael@0 602 if (flags & HAS_SSE4_1) vp8_sad16x16x8 = vp8_sad16x16x8_sse4;
michael@0 603
michael@0 604 vp8_sad4x4x4d = vp8_sad4x4x4d_c;
michael@0 605 if (flags & HAS_SSE3) vp8_sad4x4x4d = vp8_sad4x4x4d_sse3;
michael@0 606
michael@0 607 vp8_sad8x8x4d = vp8_sad8x8x4d_c;
michael@0 608 if (flags & HAS_SSE3) vp8_sad8x8x4d = vp8_sad8x8x4d_sse3;
michael@0 609
michael@0 610 vp8_sad8x16x4d = vp8_sad8x16x4d_c;
michael@0 611 if (flags & HAS_SSE3) vp8_sad8x16x4d = vp8_sad8x16x4d_sse3;
michael@0 612
michael@0 613 vp8_sad16x8x4d = vp8_sad16x8x4d_c;
michael@0 614 if (flags & HAS_SSE3) vp8_sad16x8x4d = vp8_sad16x8x4d_sse3;
michael@0 615
michael@0 616 vp8_sad16x16x4d = vp8_sad16x16x4d_c;
michael@0 617 if (flags & HAS_SSE3) vp8_sad16x16x4d = vp8_sad16x16x4d_sse3;
michael@0 618
michael@0 619
michael@0 620
michael@0 621
michael@0 622
michael@0 623 vp8_copy32xn = vp8_copy32xn_sse2;
michael@0 624 if (flags & HAS_SSE3) vp8_copy32xn = vp8_copy32xn_sse3;
michael@0 625
michael@0 626
michael@0 627
michael@0 628
michael@0 629
michael@0 630 vp8_fast_quantize_b = vp8_fast_quantize_b_sse2;
michael@0 631 if (flags & HAS_SSSE3) vp8_fast_quantize_b = vp8_fast_quantize_b_ssse3;
michael@0 632
michael@0 633
michael@0 634
michael@0 635
michael@0 636
michael@0 637
michael@0 638
michael@0 639
michael@0 640
michael@0 641
michael@0 642
michael@0 643
michael@0 644 vp8_full_search_sad = vp8_full_search_sad_c;
michael@0 645 if (flags & HAS_SSE3) vp8_full_search_sad = vp8_full_search_sadx3;
michael@0 646 if (flags & HAS_SSE4_1) vp8_full_search_sad = vp8_full_search_sadx8;
michael@0 647
michael@0 648 vp8_refining_search_sad = vp8_refining_search_sad_c;
michael@0 649 if (flags & HAS_SSE3) vp8_refining_search_sad = vp8_refining_search_sadx4;
michael@0 650
michael@0 651 vp8_diamond_search_sad = vp8_diamond_search_sad_c;
michael@0 652 if (flags & HAS_SSE3) vp8_diamond_search_sad = vp8_diamond_search_sadx4;
michael@0 653 }
michael@0 654 #endif
michael@0 655 #endif

mercurial