|
1 #ifndef VP8_RTCD_H_ |
|
2 #define VP8_RTCD_H_ |
|
3 |
|
4 #ifdef RTCD_C |
|
5 #define RTCD_EXTERN |
|
6 #else |
|
7 #define RTCD_EXTERN extern |
|
8 #endif |
|
9 |
|
10 /* |
|
11 * VP8 |
|
12 */ |
|
13 |
|
14 struct blockd; |
|
15 struct macroblockd; |
|
16 struct loop_filter_info; |
|
17 |
|
18 /* Encoder forward decls */ |
|
19 struct block; |
|
20 struct macroblock; |
|
21 struct variance_vtable; |
|
22 union int_mv; |
|
23 struct yv12_buffer_config; |
|
24 |
|
25 void vp8_clear_system_state_c(); |
|
26 void vpx_reset_mmx_state(); |
|
27 RTCD_EXTERN void (*vp8_clear_system_state)(); |
|
28 |
|
29 void vp8_dequantize_b_c(struct blockd*, short *dqc); |
|
30 void vp8_dequantize_b_mmx(struct blockd*, short *dqc); |
|
31 RTCD_EXTERN void (*vp8_dequantize_b)(struct blockd*, short *dqc); |
|
32 |
|
33 void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int stride); |
|
34 void vp8_dequant_idct_add_mmx(short *input, short *dq, unsigned char *output, int stride); |
|
35 RTCD_EXTERN void (*vp8_dequant_idct_add)(short *input, short *dq, unsigned char *output, int stride); |
|
36 |
|
37 void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int stride, char *eobs); |
|
38 void vp8_dequant_idct_add_y_block_mmx(short *q, short *dq, unsigned char *dst, int stride, char *eobs); |
|
39 void vp8_dequant_idct_add_y_block_sse2(short *q, short *dq, unsigned char *dst, int stride, char *eobs); |
|
40 RTCD_EXTERN void (*vp8_dequant_idct_add_y_block)(short *q, short *dq, unsigned char *dst, int stride, char *eobs); |
|
41 |
|
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); |
|
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); |
|
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); |
|
45 RTCD_EXTERN void (*vp8_dequant_idct_add_uv_block)(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs); |
|
46 |
|
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); |
|
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); |
|
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); |
|
50 RTCD_EXTERN void (*vp8_loop_filter_mbv)(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
|
51 |
|
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); |
|
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); |
|
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); |
|
55 RTCD_EXTERN void (*vp8_loop_filter_bv)(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
|
56 |
|
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); |
|
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); |
|
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); |
|
60 RTCD_EXTERN void (*vp8_loop_filter_mbh)(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
|
61 |
|
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); |
|
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); |
|
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); |
|
65 RTCD_EXTERN void (*vp8_loop_filter_bh)(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
|
66 |
|
67 void vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const unsigned char *blimit); |
|
68 void vp8_loop_filter_simple_vertical_edge_mmx(unsigned char *y, int ystride, const unsigned char *blimit); |
|
69 void vp8_loop_filter_simple_vertical_edge_sse2(unsigned char *y, int ystride, const unsigned char *blimit); |
|
70 RTCD_EXTERN void (*vp8_loop_filter_simple_mbv)(unsigned char *y, int ystride, const unsigned char *blimit); |
|
71 |
|
72 void vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, const unsigned char *blimit); |
|
73 void vp8_loop_filter_simple_horizontal_edge_mmx(unsigned char *y, int ystride, const unsigned char *blimit); |
|
74 void vp8_loop_filter_simple_horizontal_edge_sse2(unsigned char *y, int ystride, const unsigned char *blimit); |
|
75 RTCD_EXTERN void (*vp8_loop_filter_simple_mbh)(unsigned char *y, int ystride, const unsigned char *blimit); |
|
76 |
|
77 void vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *blimit); |
|
78 void vp8_loop_filter_bvs_mmx(unsigned char *y, int ystride, const unsigned char *blimit); |
|
79 void vp8_loop_filter_bvs_sse2(unsigned char *y, int ystride, const unsigned char *blimit); |
|
80 RTCD_EXTERN void (*vp8_loop_filter_simple_bv)(unsigned char *y, int ystride, const unsigned char *blimit); |
|
81 |
|
82 void vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *blimit); |
|
83 void vp8_loop_filter_bhs_mmx(unsigned char *y, int ystride, const unsigned char *blimit); |
|
84 void vp8_loop_filter_bhs_sse2(unsigned char *y, int ystride, const unsigned char *blimit); |
|
85 RTCD_EXTERN void (*vp8_loop_filter_simple_bh)(unsigned char *y, int ystride, const unsigned char *blimit); |
|
86 |
|
87 void vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride); |
|
88 void vp8_short_idct4x4llm_mmx(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride); |
|
89 RTCD_EXTERN void (*vp8_short_idct4x4llm)(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride); |
|
90 |
|
91 void vp8_short_inv_walsh4x4_1_c(short *input, short *output); |
|
92 #define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c |
|
93 |
|
94 void vp8_short_inv_walsh4x4_c(short *input, short *output); |
|
95 void vp8_short_inv_walsh4x4_mmx(short *input, short *output); |
|
96 void vp8_short_inv_walsh4x4_sse2(short *input, short *output); |
|
97 RTCD_EXTERN void (*vp8_short_inv_walsh4x4)(short *input, short *output); |
|
98 |
|
99 void vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride); |
|
100 void vp8_dc_only_idct_add_mmx(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride); |
|
101 RTCD_EXTERN void (*vp8_dc_only_idct_add)(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride); |
|
102 |
|
103 void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
104 void vp8_copy_mem16x16_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
105 void vp8_copy_mem16x16_sse2(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
106 RTCD_EXTERN void (*vp8_copy_mem16x16)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
107 |
|
108 void vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
109 void vp8_copy_mem8x8_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
110 RTCD_EXTERN void (*vp8_copy_mem8x8)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
111 |
|
112 void vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
113 void vp8_copy_mem8x4_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
114 RTCD_EXTERN void (*vp8_copy_mem8x4)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); |
|
115 |
|
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); |
|
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); |
|
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); |
|
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); |
|
120 |
|
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); |
|
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); |
|
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); |
|
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); |
|
125 |
|
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); |
|
127 #define vp8_intra4x4_predict vp8_intra4x4_predict_c |
|
128 |
|
129 void vp8_mbpost_proc_down_c(unsigned char *dst, int pitch, int rows, int cols,int flimit); |
|
130 void vp8_mbpost_proc_down_mmx(unsigned char *dst, int pitch, int rows, int cols,int flimit); |
|
131 void vp8_mbpost_proc_down_xmm(unsigned char *dst, int pitch, int rows, int cols,int flimit); |
|
132 RTCD_EXTERN void (*vp8_mbpost_proc_down)(unsigned char *dst, int pitch, int rows, int cols,int flimit); |
|
133 |
|
134 void vp8_mbpost_proc_across_ip_c(unsigned char *dst, int pitch, int rows, int cols,int flimit); |
|
135 void vp8_mbpost_proc_across_ip_xmm(unsigned char *dst, int pitch, int rows, int cols,int flimit); |
|
136 RTCD_EXTERN void (*vp8_mbpost_proc_across_ip)(unsigned char *dst, int pitch, int rows, int cols,int flimit); |
|
137 |
|
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); |
|
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); |
|
140 RTCD_EXTERN void (*vp8_post_proc_down_and_across_mb_row)(unsigned char *src, unsigned char *dst, int src_pitch, int dst_pitch, int cols, unsigned char *flimits, int size); |
|
141 |
|
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); |
|
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); |
|
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); |
|
145 RTCD_EXTERN void (*vp8_plane_add_noise)(unsigned char *s, char *noise, char blackclamp[16], char whiteclamp[16], char bothclamp[16], unsigned int w, unsigned int h, int pitch); |
|
146 |
|
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); |
|
148 #define vp8_blend_mb_inner vp8_blend_mb_inner_c |
|
149 |
|
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); |
|
151 #define vp8_blend_mb_outer vp8_blend_mb_outer_c |
|
152 |
|
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); |
|
154 #define vp8_blend_b vp8_blend_b_c |
|
155 |
|
156 void vp8_filter_by_weight16x16_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight); |
|
157 void vp8_filter_by_weight16x16_sse2(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight); |
|
158 RTCD_EXTERN void (*vp8_filter_by_weight16x16)(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight); |
|
159 |
|
160 void vp8_filter_by_weight8x8_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight); |
|
161 void vp8_filter_by_weight8x8_sse2(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight); |
|
162 RTCD_EXTERN void (*vp8_filter_by_weight8x8)(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight); |
|
163 |
|
164 void vp8_filter_by_weight4x4_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight); |
|
165 #define vp8_filter_by_weight4x4 vp8_filter_by_weight4x4_c |
|
166 |
|
167 void vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
168 void vp8_sixtap_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
169 void vp8_sixtap_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
170 void vp8_sixtap_predict16x16_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
171 RTCD_EXTERN void (*vp8_sixtap_predict16x16)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
172 |
|
173 void vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
174 void vp8_sixtap_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
175 void vp8_sixtap_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
176 void vp8_sixtap_predict8x8_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
177 RTCD_EXTERN void (*vp8_sixtap_predict8x8)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
178 |
|
179 void vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
180 void vp8_sixtap_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
181 void vp8_sixtap_predict8x4_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
182 void vp8_sixtap_predict8x4_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
183 RTCD_EXTERN void (*vp8_sixtap_predict8x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
184 |
|
185 void vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
186 void vp8_sixtap_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
187 void vp8_sixtap_predict4x4_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
188 RTCD_EXTERN void (*vp8_sixtap_predict4x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
189 |
|
190 void vp8_bilinear_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
191 void vp8_bilinear_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
192 void vp8_bilinear_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
193 void vp8_bilinear_predict16x16_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
194 RTCD_EXTERN void (*vp8_bilinear_predict16x16)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
195 |
|
196 void vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
197 void vp8_bilinear_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
198 void vp8_bilinear_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
199 void vp8_bilinear_predict8x8_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
200 RTCD_EXTERN void (*vp8_bilinear_predict8x8)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
201 |
|
202 void vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
203 void vp8_bilinear_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
204 RTCD_EXTERN void (*vp8_bilinear_predict8x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
205 |
|
206 void vp8_bilinear_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
207 void vp8_bilinear_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
208 RTCD_EXTERN void (*vp8_bilinear_predict4x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); |
|
209 |
|
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); |
|
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); |
|
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); |
|
213 RTCD_EXTERN unsigned int (*vp8_variance4x4)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
214 |
|
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); |
|
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); |
|
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); |
|
218 RTCD_EXTERN unsigned int (*vp8_variance8x8)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
219 |
|
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); |
|
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); |
|
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); |
|
223 RTCD_EXTERN unsigned int (*vp8_variance8x16)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
224 |
|
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); |
|
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); |
|
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); |
|
228 RTCD_EXTERN unsigned int (*vp8_variance16x8)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
229 |
|
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); |
|
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); |
|
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); |
|
233 RTCD_EXTERN unsigned int (*vp8_variance16x16)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
234 |
|
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); |
|
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); |
|
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); |
|
238 RTCD_EXTERN unsigned int (*vp8_sub_pixel_variance4x4)(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
|
239 |
|
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); |
|
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); |
|
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); |
|
243 RTCD_EXTERN unsigned int (*vp8_sub_pixel_variance8x8)(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
|
244 |
|
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); |
|
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); |
|
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); |
|
248 RTCD_EXTERN unsigned int (*vp8_sub_pixel_variance8x16)(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
|
249 |
|
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); |
|
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); |
|
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); |
|
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); |
|
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); |
|
255 |
|
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); |
|
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); |
|
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); |
|
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); |
|
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); |
|
261 |
|
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); |
|
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); |
|
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); |
|
265 RTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_h)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
266 |
|
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); |
|
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); |
|
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); |
|
270 RTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_v)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
271 |
|
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); |
|
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); |
|
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); |
|
275 RTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_hv)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
276 |
|
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); |
|
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); |
|
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); |
|
280 RTCD_EXTERN unsigned int (*vp8_sad4x4)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
|
281 |
|
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); |
|
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); |
|
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); |
|
285 RTCD_EXTERN unsigned int (*vp8_sad8x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
|
286 |
|
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); |
|
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); |
|
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); |
|
290 RTCD_EXTERN unsigned int (*vp8_sad8x16)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
|
291 |
|
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); |
|
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); |
|
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); |
|
295 RTCD_EXTERN unsigned int (*vp8_sad16x8)(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
|
296 |
|
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); |
|
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); |
|
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); |
|
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); |
|
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); |
|
302 |
|
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); |
|
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); |
|
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); |
|
306 |
|
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); |
|
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); |
|
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); |
|
310 |
|
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); |
|
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); |
|
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); |
|
314 |
|
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); |
|
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); |
|
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); |
|
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); |
|
319 |
|
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); |
|
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); |
|
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); |
|
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); |
|
324 |
|
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); |
|
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); |
|
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); |
|
328 |
|
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); |
|
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); |
|
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); |
|
332 |
|
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); |
|
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); |
|
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); |
|
336 |
|
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); |
|
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); |
|
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); |
|
340 |
|
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); |
|
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); |
|
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); |
|
344 |
|
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); |
|
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); |
|
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); |
|
348 |
|
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); |
|
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); |
|
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); |
|
352 |
|
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); |
|
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); |
|
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); |
|
356 |
|
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); |
|
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); |
|
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); |
|
360 |
|
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); |
|
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); |
|
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); |
|
364 |
|
365 unsigned int vp8_get_mb_ss_c(const short *); |
|
366 unsigned int vp8_get_mb_ss_mmx(const short *); |
|
367 unsigned int vp8_get_mb_ss_sse2(const short *); |
|
368 RTCD_EXTERN unsigned int (*vp8_get_mb_ss)(const short *); |
|
369 |
|
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); |
|
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); |
|
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); |
|
373 RTCD_EXTERN unsigned int (*vp8_sub_pixel_mse16x16)(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); |
|
374 |
|
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); |
|
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); |
|
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); |
|
378 RTCD_EXTERN unsigned int (*vp8_mse16x16)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
|
379 |
|
380 unsigned int vp8_get4x4sse_cs_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride); |
|
381 unsigned int vp8_get4x4sse_cs_mmx(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride); |
|
382 RTCD_EXTERN unsigned int (*vp8_get4x4sse_cs)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride); |
|
383 |
|
384 void vp8_copy32xn_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n); |
|
385 void vp8_copy32xn_sse2(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n); |
|
386 void vp8_copy32xn_sse3(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n); |
|
387 RTCD_EXTERN void (*vp8_copy32xn)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n); |
|
388 |
|
389 void vp8_short_fdct4x4_c(short *input, short *output, int pitch); |
|
390 void vp8_short_fdct4x4_mmx(short *input, short *output, int pitch); |
|
391 void vp8_short_fdct4x4_sse2(short *input, short *output, int pitch); |
|
392 RTCD_EXTERN void (*vp8_short_fdct4x4)(short *input, short *output, int pitch); |
|
393 |
|
394 void vp8_short_fdct8x4_c(short *input, short *output, int pitch); |
|
395 void vp8_short_fdct8x4_mmx(short *input, short *output, int pitch); |
|
396 void vp8_short_fdct8x4_sse2(short *input, short *output, int pitch); |
|
397 RTCD_EXTERN void (*vp8_short_fdct8x4)(short *input, short *output, int pitch); |
|
398 |
|
399 void vp8_short_walsh4x4_c(short *input, short *output, int pitch); |
|
400 void vp8_short_walsh4x4_sse2(short *input, short *output, int pitch); |
|
401 RTCD_EXTERN void (*vp8_short_walsh4x4)(short *input, short *output, int pitch); |
|
402 |
|
403 void vp8_regular_quantize_b_c(struct block *, struct blockd *); |
|
404 void vp8_regular_quantize_b_sse2(struct block *, struct blockd *); |
|
405 RTCD_EXTERN void (*vp8_regular_quantize_b)(struct block *, struct blockd *); |
|
406 |
|
407 void vp8_fast_quantize_b_c(struct block *, struct blockd *); |
|
408 void vp8_fast_quantize_b_sse2(struct block *, struct blockd *); |
|
409 void vp8_fast_quantize_b_ssse3(struct block *, struct blockd *); |
|
410 RTCD_EXTERN void (*vp8_fast_quantize_b)(struct block *, struct blockd *); |
|
411 |
|
412 void vp8_regular_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2); |
|
413 #define vp8_regular_quantize_b_pair vp8_regular_quantize_b_pair_c |
|
414 |
|
415 void vp8_fast_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2); |
|
416 #define vp8_fast_quantize_b_pair vp8_fast_quantize_b_pair_c |
|
417 |
|
418 void vp8_quantize_mb_c(struct macroblock *); |
|
419 #define vp8_quantize_mb vp8_quantize_mb_c |
|
420 |
|
421 void vp8_quantize_mby_c(struct macroblock *); |
|
422 #define vp8_quantize_mby vp8_quantize_mby_c |
|
423 |
|
424 void vp8_quantize_mbuv_c(struct macroblock *); |
|
425 #define vp8_quantize_mbuv vp8_quantize_mbuv_c |
|
426 |
|
427 int vp8_block_error_c(short *coeff, short *dqcoeff); |
|
428 int vp8_block_error_mmx(short *coeff, short *dqcoeff); |
|
429 int vp8_block_error_xmm(short *coeff, short *dqcoeff); |
|
430 RTCD_EXTERN int (*vp8_block_error)(short *coeff, short *dqcoeff); |
|
431 |
|
432 int vp8_mbblock_error_c(struct macroblock *mb, int dc); |
|
433 int vp8_mbblock_error_mmx(struct macroblock *mb, int dc); |
|
434 int vp8_mbblock_error_xmm(struct macroblock *mb, int dc); |
|
435 RTCD_EXTERN int (*vp8_mbblock_error)(struct macroblock *mb, int dc); |
|
436 |
|
437 int vp8_mbuverror_c(struct macroblock *mb); |
|
438 int vp8_mbuverror_mmx(struct macroblock *mb); |
|
439 int vp8_mbuverror_xmm(struct macroblock *mb); |
|
440 RTCD_EXTERN int (*vp8_mbuverror)(struct macroblock *mb); |
|
441 |
|
442 void vp8_subtract_b_c(struct block *be, struct blockd *bd, int pitch); |
|
443 void vp8_subtract_b_mmx(struct block *be, struct blockd *bd, int pitch); |
|
444 void vp8_subtract_b_sse2(struct block *be, struct blockd *bd, int pitch); |
|
445 RTCD_EXTERN void (*vp8_subtract_b)(struct block *be, struct blockd *bd, int pitch); |
|
446 |
|
447 void vp8_subtract_mby_c(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride); |
|
448 void vp8_subtract_mby_mmx(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride); |
|
449 void vp8_subtract_mby_sse2(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride); |
|
450 RTCD_EXTERN void (*vp8_subtract_mby)(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride); |
|
451 |
|
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); |
|
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); |
|
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); |
|
455 RTCD_EXTERN void (*vp8_subtract_mbuv)(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride); |
|
456 |
|
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); |
|
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); |
|
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); |
|
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); |
|
461 |
|
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); |
|
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); |
|
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); |
|
465 |
|
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); |
|
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); |
|
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); |
|
469 |
|
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); |
|
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); |
|
472 RTCD_EXTERN void (*vp8_temporal_filter_apply)(unsigned char *frame1, unsigned int stride, unsigned char *frame2, unsigned int block_size, int strength, int filter_weight, unsigned int *accumulator, unsigned short *count); |
|
473 |
|
474 void vp8_yv12_copy_partial_frame_c(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc); |
|
475 #define vp8_yv12_copy_partial_frame vp8_yv12_copy_partial_frame_c |
|
476 |
|
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); |
|
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); |
|
479 RTCD_EXTERN int (*vp8_denoiser_filter)(struct yv12_buffer_config* mc_running_avg, struct yv12_buffer_config* running_avg, struct macroblock* signal, unsigned int motion_magnitude2, int y_offset, int uv_offset); |
|
480 |
|
481 void vp8_rtcd(void); |
|
482 |
|
483 #ifdef RTCD_C |
|
484 #include "vpx_ports/x86.h" |
|
485 static void setup_rtcd_internal(void) |
|
486 { |
|
487 int flags = x86_simd_caps(); |
|
488 |
|
489 (void)flags; |
|
490 |
|
491 vp8_clear_system_state = vp8_clear_system_state_c; |
|
492 if (flags & HAS_MMX) vp8_clear_system_state = vpx_reset_mmx_state; |
|
493 |
|
494 vp8_dequantize_b = vp8_dequantize_b_c; |
|
495 if (flags & HAS_MMX) vp8_dequantize_b = vp8_dequantize_b_mmx; |
|
496 |
|
497 vp8_dequant_idct_add = vp8_dequant_idct_add_c; |
|
498 if (flags & HAS_MMX) vp8_dequant_idct_add = vp8_dequant_idct_add_mmx; |
|
499 |
|
500 vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_c; |
|
501 if (flags & HAS_MMX) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_mmx; |
|
502 if (flags & HAS_SSE2) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_sse2; |
|
503 |
|
504 vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_c; |
|
505 if (flags & HAS_MMX) vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_mmx; |
|
506 if (flags & HAS_SSE2) vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_sse2; |
|
507 |
|
508 vp8_loop_filter_mbv = vp8_loop_filter_mbv_c; |
|
509 if (flags & HAS_MMX) vp8_loop_filter_mbv = vp8_loop_filter_mbv_mmx; |
|
510 if (flags & HAS_SSE2) vp8_loop_filter_mbv = vp8_loop_filter_mbv_sse2; |
|
511 |
|
512 vp8_loop_filter_bv = vp8_loop_filter_bv_c; |
|
513 if (flags & HAS_MMX) vp8_loop_filter_bv = vp8_loop_filter_bv_mmx; |
|
514 if (flags & HAS_SSE2) vp8_loop_filter_bv = vp8_loop_filter_bv_sse2; |
|
515 |
|
516 vp8_loop_filter_mbh = vp8_loop_filter_mbh_c; |
|
517 if (flags & HAS_MMX) vp8_loop_filter_mbh = vp8_loop_filter_mbh_mmx; |
|
518 if (flags & HAS_SSE2) vp8_loop_filter_mbh = vp8_loop_filter_mbh_sse2; |
|
519 |
|
520 vp8_loop_filter_bh = vp8_loop_filter_bh_c; |
|
521 if (flags & HAS_MMX) vp8_loop_filter_bh = vp8_loop_filter_bh_mmx; |
|
522 if (flags & HAS_SSE2) vp8_loop_filter_bh = vp8_loop_filter_bh_sse2; |
|
523 |
|
524 vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_vertical_edge_c; |
|
525 if (flags & HAS_MMX) vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_vertical_edge_mmx; |
|
526 if (flags & HAS_SSE2) vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_vertical_edge_sse2; |
|
527 |
|
528 vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_horizontal_edge_c; |
|
529 if (flags & HAS_MMX) vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_horizontal_edge_mmx; |
|
530 if (flags & HAS_SSE2) vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_horizontal_edge_sse2; |
|
531 |
|
532 vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_c; |
|
533 if (flags & HAS_MMX) vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_mmx; |
|
534 if (flags & HAS_SSE2) vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_sse2; |
|
535 |
|
536 vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_c; |
|
537 if (flags & HAS_MMX) vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_mmx; |
|
538 if (flags & HAS_SSE2) vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_sse2; |
|
539 |
|
540 vp8_short_idct4x4llm = vp8_short_idct4x4llm_c; |
|
541 if (flags & HAS_MMX) vp8_short_idct4x4llm = vp8_short_idct4x4llm_mmx; |
|
542 |
|
543 |
|
544 vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_c; |
|
545 if (flags & HAS_MMX) vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_mmx; |
|
546 if (flags & HAS_SSE2) vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_sse2; |
|
547 |
|
548 vp8_dc_only_idct_add = vp8_dc_only_idct_add_c; |
|
549 if (flags & HAS_MMX) vp8_dc_only_idct_add = vp8_dc_only_idct_add_mmx; |
|
550 |
|
551 vp8_copy_mem16x16 = vp8_copy_mem16x16_c; |
|
552 if (flags & HAS_MMX) vp8_copy_mem16x16 = vp8_copy_mem16x16_mmx; |
|
553 if (flags & HAS_SSE2) vp8_copy_mem16x16 = vp8_copy_mem16x16_sse2; |
|
554 |
|
555 vp8_copy_mem8x8 = vp8_copy_mem8x8_c; |
|
556 if (flags & HAS_MMX) vp8_copy_mem8x8 = vp8_copy_mem8x8_mmx; |
|
557 |
|
558 vp8_copy_mem8x4 = vp8_copy_mem8x4_c; |
|
559 if (flags & HAS_MMX) vp8_copy_mem8x4 = vp8_copy_mem8x4_mmx; |
|
560 |
|
561 vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_c; |
|
562 if (flags & HAS_SSE2) vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_sse2; |
|
563 if (flags & HAS_SSSE3) vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_ssse3; |
|
564 |
|
565 vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_c; |
|
566 if (flags & HAS_SSE2) vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_sse2; |
|
567 if (flags & HAS_SSSE3) vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_ssse3; |
|
568 |
|
569 |
|
570 vp8_mbpost_proc_down = vp8_mbpost_proc_down_c; |
|
571 if (flags & HAS_MMX) vp8_mbpost_proc_down = vp8_mbpost_proc_down_mmx; |
|
572 if (flags & HAS_SSE2) vp8_mbpost_proc_down = vp8_mbpost_proc_down_xmm; |
|
573 |
|
574 vp8_mbpost_proc_across_ip = vp8_mbpost_proc_across_ip_c; |
|
575 if (flags & HAS_SSE2) vp8_mbpost_proc_across_ip = vp8_mbpost_proc_across_ip_xmm; |
|
576 |
|
577 vp8_post_proc_down_and_across_mb_row = vp8_post_proc_down_and_across_mb_row_c; |
|
578 if (flags & HAS_SSE2) vp8_post_proc_down_and_across_mb_row = vp8_post_proc_down_and_across_mb_row_sse2; |
|
579 |
|
580 vp8_plane_add_noise = vp8_plane_add_noise_c; |
|
581 if (flags & HAS_MMX) vp8_plane_add_noise = vp8_plane_add_noise_mmx; |
|
582 if (flags & HAS_SSE2) vp8_plane_add_noise = vp8_plane_add_noise_wmt; |
|
583 |
|
584 |
|
585 |
|
586 |
|
587 vp8_filter_by_weight16x16 = vp8_filter_by_weight16x16_c; |
|
588 if (flags & HAS_SSE2) vp8_filter_by_weight16x16 = vp8_filter_by_weight16x16_sse2; |
|
589 |
|
590 vp8_filter_by_weight8x8 = vp8_filter_by_weight8x8_c; |
|
591 if (flags & HAS_SSE2) vp8_filter_by_weight8x8 = vp8_filter_by_weight8x8_sse2; |
|
592 |
|
593 |
|
594 vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_c; |
|
595 if (flags & HAS_MMX) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_mmx; |
|
596 if (flags & HAS_SSE2) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_sse2; |
|
597 if (flags & HAS_SSSE3) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_ssse3; |
|
598 |
|
599 vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_c; |
|
600 if (flags & HAS_MMX) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_mmx; |
|
601 if (flags & HAS_SSE2) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_sse2; |
|
602 if (flags & HAS_SSSE3) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_ssse3; |
|
603 |
|
604 vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_c; |
|
605 if (flags & HAS_MMX) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_mmx; |
|
606 if (flags & HAS_SSE2) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_sse2; |
|
607 if (flags & HAS_SSSE3) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_ssse3; |
|
608 |
|
609 vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_c; |
|
610 if (flags & HAS_MMX) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_mmx; |
|
611 if (flags & HAS_SSSE3) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_ssse3; |
|
612 |
|
613 vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_c; |
|
614 if (flags & HAS_MMX) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_mmx; |
|
615 if (flags & HAS_SSE2) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_sse2; |
|
616 if (flags & HAS_SSSE3) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_ssse3; |
|
617 |
|
618 vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_c; |
|
619 if (flags & HAS_MMX) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_mmx; |
|
620 if (flags & HAS_SSE2) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sse2; |
|
621 if (flags & HAS_SSSE3) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_ssse3; |
|
622 |
|
623 vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_c; |
|
624 if (flags & HAS_MMX) vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_mmx; |
|
625 |
|
626 vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_c; |
|
627 if (flags & HAS_MMX) vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_mmx; |
|
628 |
|
629 vp8_variance4x4 = vp8_variance4x4_c; |
|
630 if (flags & HAS_MMX) vp8_variance4x4 = vp8_variance4x4_mmx; |
|
631 if (flags & HAS_SSE2) vp8_variance4x4 = vp8_variance4x4_wmt; |
|
632 |
|
633 vp8_variance8x8 = vp8_variance8x8_c; |
|
634 if (flags & HAS_MMX) vp8_variance8x8 = vp8_variance8x8_mmx; |
|
635 if (flags & HAS_SSE2) vp8_variance8x8 = vp8_variance8x8_wmt; |
|
636 |
|
637 vp8_variance8x16 = vp8_variance8x16_c; |
|
638 if (flags & HAS_MMX) vp8_variance8x16 = vp8_variance8x16_mmx; |
|
639 if (flags & HAS_SSE2) vp8_variance8x16 = vp8_variance8x16_wmt; |
|
640 |
|
641 vp8_variance16x8 = vp8_variance16x8_c; |
|
642 if (flags & HAS_MMX) vp8_variance16x8 = vp8_variance16x8_mmx; |
|
643 if (flags & HAS_SSE2) vp8_variance16x8 = vp8_variance16x8_wmt; |
|
644 |
|
645 vp8_variance16x16 = vp8_variance16x16_c; |
|
646 if (flags & HAS_MMX) vp8_variance16x16 = vp8_variance16x16_mmx; |
|
647 if (flags & HAS_SSE2) vp8_variance16x16 = vp8_variance16x16_wmt; |
|
648 |
|
649 vp8_sub_pixel_variance4x4 = vp8_sub_pixel_variance4x4_c; |
|
650 if (flags & HAS_MMX) vp8_sub_pixel_variance4x4 = vp8_sub_pixel_variance4x4_mmx; |
|
651 if (flags & HAS_SSE2) vp8_sub_pixel_variance4x4 = vp8_sub_pixel_variance4x4_wmt; |
|
652 |
|
653 vp8_sub_pixel_variance8x8 = vp8_sub_pixel_variance8x8_c; |
|
654 if (flags & HAS_MMX) vp8_sub_pixel_variance8x8 = vp8_sub_pixel_variance8x8_mmx; |
|
655 if (flags & HAS_SSE2) vp8_sub_pixel_variance8x8 = vp8_sub_pixel_variance8x8_wmt; |
|
656 |
|
657 vp8_sub_pixel_variance8x16 = vp8_sub_pixel_variance8x16_c; |
|
658 if (flags & HAS_MMX) vp8_sub_pixel_variance8x16 = vp8_sub_pixel_variance8x16_mmx; |
|
659 if (flags & HAS_SSE2) vp8_sub_pixel_variance8x16 = vp8_sub_pixel_variance8x16_wmt; |
|
660 |
|
661 vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_c; |
|
662 if (flags & HAS_MMX) vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_mmx; |
|
663 if (flags & HAS_SSE2) vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_wmt; |
|
664 if (flags & HAS_SSSE3) vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_ssse3; |
|
665 |
|
666 vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_c; |
|
667 if (flags & HAS_MMX) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_mmx; |
|
668 if (flags & HAS_SSE2) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_wmt; |
|
669 if (flags & HAS_SSSE3) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_ssse3; |
|
670 |
|
671 vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_c; |
|
672 if (flags & HAS_MMX) vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_mmx; |
|
673 if (flags & HAS_SSE2) vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_wmt; |
|
674 |
|
675 vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_c; |
|
676 if (flags & HAS_MMX) vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_mmx; |
|
677 if (flags & HAS_SSE2) vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_wmt; |
|
678 |
|
679 vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_c; |
|
680 if (flags & HAS_MMX) vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_mmx; |
|
681 if (flags & HAS_SSE2) vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_wmt; |
|
682 |
|
683 vp8_sad4x4 = vp8_sad4x4_c; |
|
684 if (flags & HAS_MMX) vp8_sad4x4 = vp8_sad4x4_mmx; |
|
685 if (flags & HAS_SSE2) vp8_sad4x4 = vp8_sad4x4_wmt; |
|
686 |
|
687 vp8_sad8x8 = vp8_sad8x8_c; |
|
688 if (flags & HAS_MMX) vp8_sad8x8 = vp8_sad8x8_mmx; |
|
689 if (flags & HAS_SSE2) vp8_sad8x8 = vp8_sad8x8_wmt; |
|
690 |
|
691 vp8_sad8x16 = vp8_sad8x16_c; |
|
692 if (flags & HAS_MMX) vp8_sad8x16 = vp8_sad8x16_mmx; |
|
693 if (flags & HAS_SSE2) vp8_sad8x16 = vp8_sad8x16_wmt; |
|
694 |
|
695 vp8_sad16x8 = vp8_sad16x8_c; |
|
696 if (flags & HAS_MMX) vp8_sad16x8 = vp8_sad16x8_mmx; |
|
697 if (flags & HAS_SSE2) vp8_sad16x8 = vp8_sad16x8_wmt; |
|
698 |
|
699 vp8_sad16x16 = vp8_sad16x16_c; |
|
700 if (flags & HAS_MMX) vp8_sad16x16 = vp8_sad16x16_mmx; |
|
701 if (flags & HAS_SSE2) vp8_sad16x16 = vp8_sad16x16_wmt; |
|
702 if (flags & HAS_SSE3) vp8_sad16x16 = vp8_sad16x16_sse3; |
|
703 |
|
704 vp8_sad4x4x3 = vp8_sad4x4x3_c; |
|
705 if (flags & HAS_SSE3) vp8_sad4x4x3 = vp8_sad4x4x3_sse3; |
|
706 |
|
707 vp8_sad8x8x3 = vp8_sad8x8x3_c; |
|
708 if (flags & HAS_SSE3) vp8_sad8x8x3 = vp8_sad8x8x3_sse3; |
|
709 |
|
710 vp8_sad8x16x3 = vp8_sad8x16x3_c; |
|
711 if (flags & HAS_SSE3) vp8_sad8x16x3 = vp8_sad8x16x3_sse3; |
|
712 |
|
713 vp8_sad16x8x3 = vp8_sad16x8x3_c; |
|
714 if (flags & HAS_SSE3) vp8_sad16x8x3 = vp8_sad16x8x3_sse3; |
|
715 if (flags & HAS_SSSE3) vp8_sad16x8x3 = vp8_sad16x8x3_ssse3; |
|
716 |
|
717 vp8_sad16x16x3 = vp8_sad16x16x3_c; |
|
718 if (flags & HAS_SSE3) vp8_sad16x16x3 = vp8_sad16x16x3_sse3; |
|
719 if (flags & HAS_SSSE3) vp8_sad16x16x3 = vp8_sad16x16x3_ssse3; |
|
720 |
|
721 vp8_sad4x4x8 = vp8_sad4x4x8_c; |
|
722 if (flags & HAS_SSE4_1) vp8_sad4x4x8 = vp8_sad4x4x8_sse4; |
|
723 |
|
724 vp8_sad8x8x8 = vp8_sad8x8x8_c; |
|
725 if (flags & HAS_SSE4_1) vp8_sad8x8x8 = vp8_sad8x8x8_sse4; |
|
726 |
|
727 vp8_sad8x16x8 = vp8_sad8x16x8_c; |
|
728 if (flags & HAS_SSE4_1) vp8_sad8x16x8 = vp8_sad8x16x8_sse4; |
|
729 |
|
730 vp8_sad16x8x8 = vp8_sad16x8x8_c; |
|
731 if (flags & HAS_SSE4_1) vp8_sad16x8x8 = vp8_sad16x8x8_sse4; |
|
732 |
|
733 vp8_sad16x16x8 = vp8_sad16x16x8_c; |
|
734 if (flags & HAS_SSE4_1) vp8_sad16x16x8 = vp8_sad16x16x8_sse4; |
|
735 |
|
736 vp8_sad4x4x4d = vp8_sad4x4x4d_c; |
|
737 if (flags & HAS_SSE3) vp8_sad4x4x4d = vp8_sad4x4x4d_sse3; |
|
738 |
|
739 vp8_sad8x8x4d = vp8_sad8x8x4d_c; |
|
740 if (flags & HAS_SSE3) vp8_sad8x8x4d = vp8_sad8x8x4d_sse3; |
|
741 |
|
742 vp8_sad8x16x4d = vp8_sad8x16x4d_c; |
|
743 if (flags & HAS_SSE3) vp8_sad8x16x4d = vp8_sad8x16x4d_sse3; |
|
744 |
|
745 vp8_sad16x8x4d = vp8_sad16x8x4d_c; |
|
746 if (flags & HAS_SSE3) vp8_sad16x8x4d = vp8_sad16x8x4d_sse3; |
|
747 |
|
748 vp8_sad16x16x4d = vp8_sad16x16x4d_c; |
|
749 if (flags & HAS_SSE3) vp8_sad16x16x4d = vp8_sad16x16x4d_sse3; |
|
750 |
|
751 vp8_get_mb_ss = vp8_get_mb_ss_c; |
|
752 if (flags & HAS_MMX) vp8_get_mb_ss = vp8_get_mb_ss_mmx; |
|
753 if (flags & HAS_SSE2) vp8_get_mb_ss = vp8_get_mb_ss_sse2; |
|
754 |
|
755 vp8_sub_pixel_mse16x16 = vp8_sub_pixel_mse16x16_c; |
|
756 if (flags & HAS_MMX) vp8_sub_pixel_mse16x16 = vp8_sub_pixel_mse16x16_mmx; |
|
757 if (flags & HAS_SSE2) vp8_sub_pixel_mse16x16 = vp8_sub_pixel_mse16x16_wmt; |
|
758 |
|
759 vp8_mse16x16 = vp8_mse16x16_c; |
|
760 if (flags & HAS_MMX) vp8_mse16x16 = vp8_mse16x16_mmx; |
|
761 if (flags & HAS_SSE2) vp8_mse16x16 = vp8_mse16x16_wmt; |
|
762 |
|
763 vp8_get4x4sse_cs = vp8_get4x4sse_cs_c; |
|
764 if (flags & HAS_MMX) vp8_get4x4sse_cs = vp8_get4x4sse_cs_mmx; |
|
765 |
|
766 vp8_copy32xn = vp8_copy32xn_c; |
|
767 if (flags & HAS_SSE2) vp8_copy32xn = vp8_copy32xn_sse2; |
|
768 if (flags & HAS_SSE3) vp8_copy32xn = vp8_copy32xn_sse3; |
|
769 |
|
770 vp8_short_fdct4x4 = vp8_short_fdct4x4_c; |
|
771 if (flags & HAS_MMX) vp8_short_fdct4x4 = vp8_short_fdct4x4_mmx; |
|
772 if (flags & HAS_SSE2) vp8_short_fdct4x4 = vp8_short_fdct4x4_sse2; |
|
773 |
|
774 vp8_short_fdct8x4 = vp8_short_fdct8x4_c; |
|
775 if (flags & HAS_MMX) vp8_short_fdct8x4 = vp8_short_fdct8x4_mmx; |
|
776 if (flags & HAS_SSE2) vp8_short_fdct8x4 = vp8_short_fdct8x4_sse2; |
|
777 |
|
778 vp8_short_walsh4x4 = vp8_short_walsh4x4_c; |
|
779 if (flags & HAS_SSE2) vp8_short_walsh4x4 = vp8_short_walsh4x4_sse2; |
|
780 |
|
781 vp8_regular_quantize_b = vp8_regular_quantize_b_c; |
|
782 if (flags & HAS_SSE2) vp8_regular_quantize_b = vp8_regular_quantize_b_sse2; |
|
783 |
|
784 vp8_fast_quantize_b = vp8_fast_quantize_b_c; |
|
785 if (flags & HAS_SSE2) vp8_fast_quantize_b = vp8_fast_quantize_b_sse2; |
|
786 if (flags & HAS_SSSE3) vp8_fast_quantize_b = vp8_fast_quantize_b_ssse3; |
|
787 |
|
788 |
|
789 |
|
790 |
|
791 |
|
792 |
|
793 vp8_block_error = vp8_block_error_c; |
|
794 if (flags & HAS_MMX) vp8_block_error = vp8_block_error_mmx; |
|
795 if (flags & HAS_SSE2) vp8_block_error = vp8_block_error_xmm; |
|
796 |
|
797 vp8_mbblock_error = vp8_mbblock_error_c; |
|
798 if (flags & HAS_MMX) vp8_mbblock_error = vp8_mbblock_error_mmx; |
|
799 if (flags & HAS_SSE2) vp8_mbblock_error = vp8_mbblock_error_xmm; |
|
800 |
|
801 vp8_mbuverror = vp8_mbuverror_c; |
|
802 if (flags & HAS_MMX) vp8_mbuverror = vp8_mbuverror_mmx; |
|
803 if (flags & HAS_SSE2) vp8_mbuverror = vp8_mbuverror_xmm; |
|
804 |
|
805 vp8_subtract_b = vp8_subtract_b_c; |
|
806 if (flags & HAS_MMX) vp8_subtract_b = vp8_subtract_b_mmx; |
|
807 if (flags & HAS_SSE2) vp8_subtract_b = vp8_subtract_b_sse2; |
|
808 |
|
809 vp8_subtract_mby = vp8_subtract_mby_c; |
|
810 if (flags & HAS_MMX) vp8_subtract_mby = vp8_subtract_mby_mmx; |
|
811 if (flags & HAS_SSE2) vp8_subtract_mby = vp8_subtract_mby_sse2; |
|
812 |
|
813 vp8_subtract_mbuv = vp8_subtract_mbuv_c; |
|
814 if (flags & HAS_MMX) vp8_subtract_mbuv = vp8_subtract_mbuv_mmx; |
|
815 if (flags & HAS_SSE2) vp8_subtract_mbuv = vp8_subtract_mbuv_sse2; |
|
816 |
|
817 vp8_full_search_sad = vp8_full_search_sad_c; |
|
818 if (flags & HAS_SSE3) vp8_full_search_sad = vp8_full_search_sadx3; |
|
819 if (flags & HAS_SSE4_1) vp8_full_search_sad = vp8_full_search_sadx8; |
|
820 |
|
821 vp8_refining_search_sad = vp8_refining_search_sad_c; |
|
822 if (flags & HAS_SSE3) vp8_refining_search_sad = vp8_refining_search_sadx4; |
|
823 |
|
824 vp8_diamond_search_sad = vp8_diamond_search_sad_c; |
|
825 if (flags & HAS_SSE3) vp8_diamond_search_sad = vp8_diamond_search_sadx4; |
|
826 |
|
827 vp8_temporal_filter_apply = vp8_temporal_filter_apply_c; |
|
828 if (flags & HAS_SSE2) vp8_temporal_filter_apply = vp8_temporal_filter_apply_sse2; |
|
829 |
|
830 |
|
831 vp8_denoiser_filter = vp8_denoiser_filter_c; |
|
832 if (flags & HAS_SSE2) vp8_denoiser_filter = vp8_denoiser_filter_sse2; |
|
833 } |
|
834 #endif |
|
835 #endif |