Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Side by Side Diff: source/config/win/ia32/vp8_rtcd.h

Issue 11555023: libvpx: Add VP9 decoder. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 #ifndef VP__RTCD_
2 #define VP__RTCD_
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_dequantize_b_c(struct blockd*, short *dqc);
26 void vp8_dequantize_b_mmx(struct blockd*, short *dqc);
27 RTCD_EXTERN void (*vp8_dequantize_b)(struct blockd*, short *dqc);
28
29 void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int stride);
30 void vp8_dequant_idct_add_mmx(short *input, short *dq, unsigned char *output, in t stride);
31 RTCD_EXTERN void (*vp8_dequant_idct_add)(short *input, short *dq, unsigned char *output, int stride);
32
33 void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
34 void vp8_dequant_idct_add_y_block_mmx(short *q, short *dq, unsigned char *dst, i nt stride, char *eobs);
35 void vp8_dequant_idct_add_y_block_sse2(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
36 RTCD_EXTERN void (*vp8_dequant_idct_add_y_block)(short *q, short *dq, unsigned c har *dst, int stride, char *eobs);
37
38 void vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
39 void vp8_dequant_idct_add_uv_block_mmx(short *q, short *dq, unsigned char *dst_u , unsigned char *dst_v, int stride, char *eobs);
40 void vp8_dequant_idct_add_uv_block_sse2(short *q, short *dq, unsigned char *dst_ u, unsigned char *dst_v, int stride, char *eobs);
41 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);
42
43 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);
44 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);
45 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);
46 RTCD_EXTERN void (*vp8_loop_filter_mbv)(unsigned char *y, unsigned char *u, unsi gned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
47
48 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);
49 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);
50 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);
51 RTCD_EXTERN void (*vp8_loop_filter_bv)(unsigned char *y, unsigned char *u, unsig ned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
52
53 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);
54 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);
55 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);
56 RTCD_EXTERN void (*vp8_loop_filter_mbh)(unsigned char *y, unsigned char *u, unsi gned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
57
58 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);
59 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);
60 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);
61 RTCD_EXTERN void (*vp8_loop_filter_bh)(unsigned char *y, unsigned char *u, unsig ned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
62
63 void vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
64 void vp8_loop_filter_simple_vertical_edge_mmx(unsigned char *y, int ystride, con st unsigned char *blimit);
65 void vp8_loop_filter_simple_vertical_edge_sse2(unsigned char *y, int ystride, co nst unsigned char *blimit);
66 RTCD_EXTERN void (*vp8_loop_filter_simple_mbv)(unsigned char *y, int ystride, co nst unsigned char *blimit);
67
68 void vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, con st unsigned char *blimit);
69 void vp8_loop_filter_simple_horizontal_edge_mmx(unsigned char *y, int ystride, c onst unsigned char *blimit);
70 void vp8_loop_filter_simple_horizontal_edge_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
71 RTCD_EXTERN void (*vp8_loop_filter_simple_mbh)(unsigned char *y, int ystride, co nst unsigned char *blimit);
72
73 void vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *b limit);
74 void vp8_loop_filter_bvs_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
75 void vp8_loop_filter_bvs_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
76 RTCD_EXTERN void (*vp8_loop_filter_simple_bv)(unsigned char *y, int ystride, con st unsigned char *blimit);
77
78 void vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *b limit);
79 void vp8_loop_filter_bhs_mmx(unsigned char *y, int ystride, const unsigned char *blimit);
80 void vp8_loop_filter_bhs_sse2(unsigned char *y, int ystride, const unsigned char *blimit);
81 RTCD_EXTERN void (*vp8_loop_filter_simple_bh)(unsigned char *y, int ystride, con st unsigned char *blimit);
82
83 void vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsign ed char *dst, int dst_stride);
84 void vp8_short_idct4x4llm_mmx(short *input, unsigned char *pred, int pitch, unsi gned char *dst, int dst_stride);
85 RTCD_EXTERN void (*vp8_short_idct4x4llm)(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
86
87 void vp8_short_inv_walsh4x4_1_c(short *input, short *output);
88 #define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c
89
90 void vp8_short_inv_walsh4x4_c(short *input, short *output);
91 void vp8_short_inv_walsh4x4_mmx(short *input, short *output);
92 void vp8_short_inv_walsh4x4_sse2(short *input, short *output);
93 RTCD_EXTERN void (*vp8_short_inv_walsh4x4)(short *input, short *output);
94
95 void vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, u nsigned char *dst, int dst_stride);
96 void vp8_dc_only_idct_add_mmx(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
97 RTCD_EXTERN void (*vp8_dc_only_idct_add)(short input, unsigned char *pred, int p red_stride, unsigned char *dst, int dst_stride);
98
99 void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
100 void vp8_copy_mem16x16_mmx(unsigned char *src, int src_pitch, unsigned char *dst , int dst_pitch);
101 void vp8_copy_mem16x16_sse2(unsigned char *src, int src_pitch, unsigned char *ds t, int dst_pitch);
102 RTCD_EXTERN void (*vp8_copy_mem16x16)(unsigned char *src, int src_pitch, unsigne d char *dst, int dst_pitch);
103
104 void vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, in t dst_pitch);
105 void vp8_copy_mem8x8_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
106 RTCD_EXTERN void (*vp8_copy_mem8x8)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
107
108 void vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, in t dst_pitch);
109 void vp8_copy_mem8x4_mmx(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
110 RTCD_EXTERN void (*vp8_copy_mem8x4)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
111
112 void vp8_build_intra_predictors_mby_s_c(struct macroblockd *x, unsigned char * y above_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, in t y_stride);
113 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);
114 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);
115 RTCD_EXTERN void (*vp8_build_intra_predictors_mby_s)(struct macroblockd *x, unsi gned char * yabove_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, int y_stride);
116
117 void vp8_build_intra_predictors_mbuv_s_c(struct macroblockd *x, unsigned char * uabove_row, unsigned char * vabove_row, unsigned char *uleft, unsigned char *vl eft, int left_stride, unsigned char * upred_ptr, unsigned char * vpred_ptr, int pred_stride);
118 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, i nt pred_stride);
119 void vp8_build_intra_predictors_mbuv_s_ssse3(struct macroblockd *x, unsigned cha r * 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);
120 RTCD_EXTERN void (*vp8_build_intra_predictors_mbuv_s)(struct macroblockd *x, uns igned char * uabove_row, unsigned char * vabove_row, unsigned char *uleft, unsi gned char *vleft, int left_stride, unsigned char * upred_ptr, unsigned char * vp red_ptr, int pred_stride);
121
122 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) ;
123 #define vp8_intra4x4_predict vp8_intra4x4_predict_c
124
125 void vp8_mbpost_proc_down_c(unsigned char *dst, int pitch, int rows, int cols,in t flimit);
126 void vp8_mbpost_proc_down_mmx(unsigned char *dst, int pitch, int rows, int cols, int flimit);
127 void vp8_mbpost_proc_down_xmm(unsigned char *dst, int pitch, int rows, int cols, int flimit);
128 RTCD_EXTERN void (*vp8_mbpost_proc_down)(unsigned char *dst, int pitch, int rows , int cols,int flimit);
129
130 void vp8_mbpost_proc_across_ip_c(unsigned char *dst, int pitch, int rows, int co ls,int flimit);
131 void vp8_mbpost_proc_across_ip_xmm(unsigned char *dst, int pitch, int rows, int cols,int flimit);
132 RTCD_EXTERN void (*vp8_mbpost_proc_across_ip)(unsigned char *dst, int pitch, int rows, int cols,int flimit);
133
134 void vp8_post_proc_down_and_across_mb_row_c(unsigned char *src, unsigned char *d st, int src_pitch, int dst_pitch, int cols, unsigned char *flimits, int size);
135 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) ;
136 RTCD_EXTERN void (*vp8_post_proc_down_and_across_mb_row)(unsigned char *src, uns igned char *dst, int src_pitch, int dst_pitch, int cols, unsigned char *flimits, int size);
137
138 void vp8_plane_add_noise_c(unsigned char *s, char *noise, char blackclamp[16], c har whiteclamp[16], char bothclamp[16], unsigned int w, unsigned int h, int pitc h);
139 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 pi tch);
140 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 pi tch);
141 RTCD_EXTERN void (*vp8_plane_add_noise)(unsigned char *s, char *noise, char blac kclamp[16], char whiteclamp[16], char bothclamp[16], unsigned int w, unsigned in t h, int pitch);
142
143 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);
144 #define vp8_blend_mb_inner vp8_blend_mb_inner_c
145
146 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);
147 #define vp8_blend_mb_outer vp8_blend_mb_outer_c
148
149 void vp8_blend_b_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride);
150 #define vp8_blend_b vp8_blend_b_c
151
152 void vp8_filter_by_weight16x16_c(unsigned char *src, int src_stride, unsigned ch ar *dst, int dst_stride, int src_weight);
153 void vp8_filter_by_weight16x16_sse2(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
154 RTCD_EXTERN void (*vp8_filter_by_weight16x16)(unsigned char *src, int src_stride , unsigned char *dst, int dst_stride, int src_weight);
155
156 void vp8_filter_by_weight8x8_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
157 void vp8_filter_by_weight8x8_sse2(unsigned char *src, int src_stride, unsigned c har *dst, int dst_stride, int src_weight);
158 RTCD_EXTERN void (*vp8_filter_by_weight8x8)(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
159
160 void vp8_filter_by_weight4x4_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
161 #define vp8_filter_by_weight4x4 vp8_filter_by_weight4x4_c
162
163 void vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
164 void vp8_sixtap_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst, i nt yofst, unsigned char *dst, int dst_pitch);
165 void vp8_sixtap_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
166 void vp8_sixtap_predict16x16_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
167 RTCD_EXTERN void (*vp8_sixtap_predict16x16)(unsigned char *src, int src_pitch, i nt xofst, int yofst, unsigned char *dst, int dst_pitch);
168
169 void vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int y ofst, unsigned char *dst, int dst_pitch);
170 void vp8_sixtap_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
171 void vp8_sixtap_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst, in t yofst, unsigned char *dst, int dst_pitch);
172 void vp8_sixtap_predict8x8_ssse3(unsigned char *src, int src_pitch, int xofst, i nt yofst, unsigned char *dst, int dst_pitch);
173 RTCD_EXTERN void (*vp8_sixtap_predict8x8)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
174
175 void vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int y ofst, unsigned char *dst, int dst_pitch);
176 void vp8_sixtap_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
177 void vp8_sixtap_predict8x4_sse2(unsigned char *src, int src_pitch, int xofst, in t yofst, unsigned char *dst, int dst_pitch);
178 void vp8_sixtap_predict8x4_ssse3(unsigned char *src, int src_pitch, int xofst, i nt yofst, unsigned char *dst, int dst_pitch);
179 RTCD_EXTERN void (*vp8_sixtap_predict8x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
180
181 void vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int y ofst, unsigned char *dst, int dst_pitch);
182 void vp8_sixtap_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
183 void vp8_sixtap_predict4x4_ssse3(unsigned char *src, int src_pitch, int xofst, i nt yofst, unsigned char *dst, int dst_pitch);
184 RTCD_EXTERN void (*vp8_sixtap_predict4x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
185
186 void vp8_bilinear_predict16x16_c(unsigned char *src, int src_pitch, int xofst, i nt yofst, unsigned char *dst, int dst_pitch);
187 void vp8_bilinear_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
188 void vp8_bilinear_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst , int yofst, unsigned char *dst, int dst_pitch);
189 void vp8_bilinear_predict16x16_ssse3(unsigned char *src, int src_pitch, int xofs t, int yofst, unsigned char *dst, int dst_pitch);
190 RTCD_EXTERN void (*vp8_bilinear_predict16x16)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
191
192 void vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
193 void vp8_bilinear_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, i nt yofst, unsigned char *dst, int dst_pitch);
194 void vp8_bilinear_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
195 void vp8_bilinear_predict8x8_ssse3(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
196 RTCD_EXTERN void (*vp8_bilinear_predict8x8)(unsigned char *src, int src_pitch, i nt xofst, int yofst, unsigned char *dst, int dst_pitch);
197
198 void vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
199 void vp8_bilinear_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, i nt yofst, unsigned char *dst, int dst_pitch);
200 RTCD_EXTERN void (*vp8_bilinear_predict8x4)(unsigned char *src, int src_pitch, i nt xofst, int yofst, unsigned char *dst, int dst_pitch);
201
202 void vp8_bilinear_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
203 void vp8_bilinear_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, i nt yofst, unsigned char *dst, int dst_pitch);
204 RTCD_EXTERN void (*vp8_bilinear_predict4x4)(unsigned char *src, int src_pitch, i nt xofst, int yofst, unsigned char *dst, int dst_pitch);
205
206 unsigned int vp8_variance4x4_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
207 unsigned int vp8_variance4x4_mmx(const unsigned char *src_ptr, int source_stride , const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
208 unsigned int vp8_variance4x4_wmt(const unsigned char *src_ptr, int source_stride , const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
209 RTCD_EXTERN unsigned int (*vp8_variance4x4)(const unsigned char *src_ptr, int so urce_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
210
211 unsigned int vp8_variance8x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
212 unsigned int vp8_variance8x8_mmx(const unsigned char *src_ptr, int source_stride , const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
213 unsigned int vp8_variance8x8_wmt(const unsigned char *src_ptr, int source_stride , const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
214 RTCD_EXTERN unsigned int (*vp8_variance8x8)(const unsigned char *src_ptr, int so urce_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
215
216 unsigned int vp8_variance8x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
217 unsigned int vp8_variance8x16_mmx(const unsigned char *src_ptr, int source_strid e, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
218 unsigned int vp8_variance8x16_wmt(const unsigned char *src_ptr, int source_strid e, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
219 RTCD_EXTERN unsigned int (*vp8_variance8x16)(const unsigned char *src_ptr, int s ource_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
220
221 unsigned int vp8_variance16x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
222 unsigned int vp8_variance16x8_mmx(const unsigned char *src_ptr, int source_strid e, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
223 unsigned int vp8_variance16x8_wmt(const unsigned char *src_ptr, int source_strid e, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
224 RTCD_EXTERN unsigned int (*vp8_variance16x8)(const unsigned char *src_ptr, int s ource_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
225
226 unsigned int vp8_variance16x16_c(const unsigned char *src_ptr, int source_stride , const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
227 unsigned int vp8_variance16x16_mmx(const unsigned char *src_ptr, int source_stri de, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
228 unsigned int vp8_variance16x16_wmt(const unsigned char *src_ptr, int source_stri de, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
229 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) ;
230
231 unsigned int vp8_sub_pixel_variance4x4_c(const unsigned char *src_ptr, int sou rce_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstr ide, unsigned int *sse);
232 unsigned int vp8_sub_pixel_variance4x4_mmx(const unsigned char *src_ptr, int s ource_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refs tride, unsigned int *sse);
233 unsigned int vp8_sub_pixel_variance4x4_wmt(const unsigned char *src_ptr, int s ource_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refs tride, unsigned int *sse);
234 RTCD_EXTERN unsigned int (*vp8_sub_pixel_variance4x4)(const unsigned char *src_ ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_pt r, int Refstride, unsigned int *sse);
235
236 unsigned int vp8_sub_pixel_variance8x8_c(const unsigned char *src_ptr, int sou rce_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstr ide, unsigned int *sse);
237 unsigned int vp8_sub_pixel_variance8x8_mmx(const unsigned char *src_ptr, int s ource_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refs tride, unsigned int *sse);
238 unsigned int vp8_sub_pixel_variance8x8_wmt(const unsigned char *src_ptr, int s ource_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refs tride, unsigned int *sse);
239 RTCD_EXTERN unsigned int (*vp8_sub_pixel_variance8x8)(const unsigned char *src_ ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_pt r, int Refstride, unsigned int *sse);
240
241 unsigned int vp8_sub_pixel_variance8x16_c(const unsigned char *src_ptr, int so urce_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refst ride, unsigned int *sse);
242 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 Ref stride, unsigned int *sse);
243 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 Ref stride, unsigned int *sse);
244 RTCD_EXTERN unsigned int (*vp8_sub_pixel_variance8x16)(const unsigned char *src _ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_p tr, int Refstride, unsigned int *sse);
245
246 unsigned int vp8_sub_pixel_variance16x8_c(const unsigned char *src_ptr, int so urce_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refst ride, unsigned int *sse);
247 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 Ref stride, unsigned int *sse);
248 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 Ref stride, unsigned int *sse);
249 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 R efstride, unsigned int *sse);
250 RTCD_EXTERN unsigned int (*vp8_sub_pixel_variance16x8)(const unsigned char *src _ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_p tr, int Refstride, unsigned int *sse);
251
252 unsigned int vp8_sub_pixel_variance16x16_c(const unsigned char *src_ptr, int s ource_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refs tride, unsigned int *sse);
253 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 Re fstride, unsigned int *sse);
254 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 Re fstride, unsigned int *sse);
255 unsigned int vp8_sub_pixel_variance16x16_ssse3(const unsigned char *src_ptr, in t source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
256 RTCD_EXTERN unsigned int (*vp8_sub_pixel_variance16x16)(const unsigned char *sr c_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ ptr, int Refstride, unsigned int *sse);
257
258 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) ;
259 unsigned int vp8_variance_halfpixvar16x16_h_mmx(const unsigned char *src_ptr, in t source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *ss e);
260 unsigned int vp8_variance_halfpixvar16x16_h_wmt(const unsigned char *src_ptr, in t source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *ss e);
261 RTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_h)(const unsigned char * src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsig ned int *sse);
262
263 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) ;
264 unsigned int vp8_variance_halfpixvar16x16_v_mmx(const unsigned char *src_ptr, in t source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *ss e);
265 unsigned int vp8_variance_halfpixvar16x16_v_wmt(const unsigned char *src_ptr, in t source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *ss e);
266 RTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_v)(const unsigned char * src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsig ned int *sse);
267
268 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 );
269 unsigned int vp8_variance_halfpixvar16x16_hv_mmx(const unsigned char *src_ptr, i nt source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *s se);
270 unsigned int vp8_variance_halfpixvar16x16_hv_wmt(const unsigned char *src_ptr, i nt source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *s se);
271 RTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_hv)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsi gned int *sse);
272
273 unsigned int vp8_sad4x4_c(const unsigned char *src_ptr, int src_stride, const un signed char *ref_ptr, int ref_stride, unsigned int max_sad);
274 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);
275 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);
276 RTCD_EXTERN unsigned int (*vp8_sad4x4)(const unsigned char *src_ptr, int src_str ide, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
277
278 unsigned int vp8_sad8x8_c(const unsigned char *src_ptr, int src_stride, const un signed char *ref_ptr, int ref_stride, unsigned int max_sad);
279 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);
280 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);
281 RTCD_EXTERN unsigned int (*vp8_sad8x8)(const unsigned char *src_ptr, int src_str ide, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
282
283 unsigned int vp8_sad8x16_c(const unsigned char *src_ptr, int src_stride, const u nsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
284 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);
285 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);
286 RTCD_EXTERN unsigned int (*vp8_sad8x16)(const unsigned char *src_ptr, int src_st ride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
287
288 unsigned int vp8_sad16x8_c(const unsigned char *src_ptr, int src_stride, const u nsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
289 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);
290 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);
291 RTCD_EXTERN unsigned int (*vp8_sad16x8)(const unsigned char *src_ptr, int src_st ride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
292
293 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);
294 unsigned int vp8_sad16x16_mmx(const unsigned char *src_ptr, int src_stride, cons t unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
295 unsigned int vp8_sad16x16_wmt(const unsigned char *src_ptr, int src_stride, cons t unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
296 unsigned int vp8_sad16x16_sse3(const unsigned char *src_ptr, int src_stride, con st unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
297 RTCD_EXTERN unsigned int (*vp8_sad16x16)(const unsigned char *src_ptr, int src_s tride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
298
299 void vp8_sad4x4x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
300 void vp8_sad4x4x3_sse3(const unsigned char *src_ptr, int src_stride, const unsig ned char *ref_ptr, int ref_stride, unsigned int *sad_array);
301 RTCD_EXTERN void (*vp8_sad4x4x3)(const unsigned char *src_ptr, int src_stride, c onst unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
302
303 void vp8_sad8x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
304 void vp8_sad8x8x3_sse3(const unsigned char *src_ptr, int src_stride, const unsig ned char *ref_ptr, int ref_stride, unsigned int *sad_array);
305 RTCD_EXTERN void (*vp8_sad8x8x3)(const unsigned char *src_ptr, int src_stride, c onst unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array);
306
307 void vp8_sad8x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigne d char *ref_ptr, int ref_stride, unsigned int *sad_array);
308 void vp8_sad8x16x3_sse3(const unsigned char *src_ptr, int src_stride, const unsi gned char *ref_ptr, int ref_stride, unsigned int *sad_array);
309 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);
310
311 void vp8_sad16x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigne d char *ref_ptr, int ref_stride, unsigned int *sad_array);
312 void vp8_sad16x8x3_sse3(const unsigned char *src_ptr, int src_stride, const unsi gned char *ref_ptr, int ref_stride, unsigned int *sad_array);
313 void vp8_sad16x8x3_ssse3(const unsigned char *src_ptr, int src_stride, const uns igned char *ref_ptr, int ref_stride, unsigned int *sad_array);
314 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);
315
316 void vp8_sad16x16x3_c(const unsigned char *src_ptr, int src_stride, const unsign ed char *ref_ptr, int ref_stride, unsigned int *sad_array);
317 void vp8_sad16x16x3_sse3(const unsigned char *src_ptr, int src_stride, const uns igned char *ref_ptr, int ref_stride, unsigned int *sad_array);
318 void vp8_sad16x16x3_ssse3(const unsigned char *src_ptr, int src_stride, const un signed char *ref_ptr, int ref_stride, unsigned int *sad_array);
319 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);
320
321 void vp8_sad4x4x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
322 void vp8_sad4x4x8_sse4(const unsigned char *src_ptr, int src_stride, const unsig ned char *ref_ptr, int ref_stride, unsigned short *sad_array);
323 RTCD_EXTERN void (*vp8_sad4x4x8)(const unsigned char *src_ptr, int src_stride, c onst unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
324
325 void vp8_sad8x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
326 void vp8_sad8x8x8_sse4(const unsigned char *src_ptr, int src_stride, const unsig ned char *ref_ptr, int ref_stride, unsigned short *sad_array);
327 RTCD_EXTERN void (*vp8_sad8x8x8)(const unsigned char *src_ptr, int src_stride, c onst unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array);
328
329 void vp8_sad8x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigne d char *ref_ptr, int ref_stride, unsigned short *sad_array);
330 void vp8_sad8x16x8_sse4(const unsigned char *src_ptr, int src_stride, const unsi gned char *ref_ptr, int ref_stride, unsigned short *sad_array);
331 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);
332
333 void vp8_sad16x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigne d char *ref_ptr, int ref_stride, unsigned short *sad_array);
334 void vp8_sad16x8x8_sse4(const unsigned char *src_ptr, int src_stride, const unsi gned char *ref_ptr, int ref_stride, unsigned short *sad_array);
335 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);
336
337 void vp8_sad16x16x8_c(const unsigned char *src_ptr, int src_stride, const unsign ed char *ref_ptr, int ref_stride, unsigned short *sad_array);
338 void vp8_sad16x16x8_sse4(const unsigned char *src_ptr, int src_stride, const uns igned char *ref_ptr, int ref_stride, unsigned short *sad_array);
339 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);
340
341 void vp8_sad4x4x4d_c(const unsigned char *src_ptr, int src_stride, const unsigne d char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
342 void vp8_sad4x4x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsi gned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
343 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) ;
344
345 void vp8_sad8x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsigne d char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
346 void vp8_sad8x8x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsi gned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
347 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) ;
348
349 void vp8_sad8x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsign ed char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
350 void vp8_sad8x16x4d_sse3(const unsigned char *src_ptr, int src_stride, const uns igned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
351 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 );
352
353 void vp8_sad16x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsign ed char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
354 void vp8_sad16x8x4d_sse3(const unsigned char *src_ptr, int src_stride, const uns igned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
355 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 );
356
357 void vp8_sad16x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsig ned char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
358 void vp8_sad16x16x4d_sse3(const unsigned char *src_ptr, int src_stride, const un signed char * const ref_ptr[], int ref_stride, unsigned int *sad_array);
359 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_arra y);
360
361 unsigned int vp8_get_mb_ss_c(const short *);
362 unsigned int vp8_get_mb_ss_mmx(const short *);
363 unsigned int vp8_get_mb_ss_sse2(const short *);
364 RTCD_EXTERN unsigned int (*vp8_get_mb_ss)(const short *);
365
366 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);
367 unsigned int vp8_sub_pixel_mse16x16_mmx(const unsigned char *src_ptr, int sour ce_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstri de, unsigned int *sse);
368 unsigned int vp8_sub_pixel_mse16x16_wmt(const unsigned char *src_ptr, int sour ce_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstri de, unsigned int *sse);
369 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);
370
371 unsigned int vp8_mse16x16_c(const unsigned char *src_ptr, int source_stride, con st unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
372 unsigned int vp8_mse16x16_mmx(const unsigned char *src_ptr, int source_stride, c onst unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
373 unsigned int vp8_mse16x16_wmt(const unsigned char *src_ptr, int source_stride, c onst unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
374 RTCD_EXTERN unsigned int (*vp8_mse16x16)(const unsigned char *src_ptr, int sourc e_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
375
376 unsigned int vp8_get4x4sse_cs_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride);
377 unsigned int vp8_get4x4sse_cs_mmx(const unsigned char *src_ptr, int source_strid e, const unsigned char *ref_ptr, int ref_stride);
378 RTCD_EXTERN unsigned int (*vp8_get4x4sse_cs)(const unsigned char *src_ptr, int s ource_stride, const unsigned char *ref_ptr, int ref_stride);
379
380 void vp8_copy32xn_c(const unsigned char *src_ptr, int source_stride, const unsig ned char *ref_ptr, int ref_stride, int n);
381 void vp8_copy32xn_sse2(const unsigned char *src_ptr, int source_stride, const un signed char *ref_ptr, int ref_stride, int n);
382 void vp8_copy32xn_sse3(const unsigned char *src_ptr, int source_stride, const un signed char *ref_ptr, int ref_stride, int n);
383 RTCD_EXTERN void (*vp8_copy32xn)(const unsigned char *src_ptr, int source_stride , const unsigned char *ref_ptr, int ref_stride, int n);
384
385 void vp8_short_fdct4x4_c(short *input, short *output, int pitch);
386 void vp8_short_fdct4x4_mmx(short *input, short *output, int pitch);
387 void vp8_short_fdct4x4_sse2(short *input, short *output, int pitch);
388 RTCD_EXTERN void (*vp8_short_fdct4x4)(short *input, short *output, int pitch);
389
390 void vp8_short_fdct8x4_c(short *input, short *output, int pitch);
391 void vp8_short_fdct8x4_mmx(short *input, short *output, int pitch);
392 void vp8_short_fdct8x4_sse2(short *input, short *output, int pitch);
393 RTCD_EXTERN void (*vp8_short_fdct8x4)(short *input, short *output, int pitch);
394
395 void vp8_short_walsh4x4_c(short *input, short *output, int pitch);
396 void vp8_short_walsh4x4_sse2(short *input, short *output, int pitch);
397 RTCD_EXTERN void (*vp8_short_walsh4x4)(short *input, short *output, int pitch);
398
399 void vp8_regular_quantize_b_c(struct block *, struct blockd *);
400 void vp8_regular_quantize_b_sse2(struct block *, struct blockd *);
401 void vp8_regular_quantize_b_sse4(struct block *, struct blockd *);
402 RTCD_EXTERN void (*vp8_regular_quantize_b)(struct block *, struct blockd *);
403
404 void vp8_fast_quantize_b_c(struct block *, struct blockd *);
405 void vp8_fast_quantize_b_sse2(struct block *, struct blockd *);
406 void vp8_fast_quantize_b_ssse3(struct block *, struct blockd *);
407 RTCD_EXTERN void (*vp8_fast_quantize_b)(struct block *, struct blockd *);
408
409 void vp8_regular_quantize_b_pair_c(struct block *b1, struct block *b2, struct bl ockd *d1, struct blockd *d2);
410 #define vp8_regular_quantize_b_pair vp8_regular_quantize_b_pair_c
411
412 void vp8_fast_quantize_b_pair_c(struct block *b1, struct block *b2, struct block d *d1, struct blockd *d2);
413 #define vp8_fast_quantize_b_pair vp8_fast_quantize_b_pair_c
414
415 void vp8_quantize_mb_c(struct macroblock *);
416 #define vp8_quantize_mb vp8_quantize_mb_c
417
418 void vp8_quantize_mby_c(struct macroblock *);
419 #define vp8_quantize_mby vp8_quantize_mby_c
420
421 void vp8_quantize_mbuv_c(struct macroblock *);
422 #define vp8_quantize_mbuv vp8_quantize_mbuv_c
423
424 int vp8_block_error_c(short *coeff, short *dqcoeff);
425 int vp8_block_error_mmx(short *coeff, short *dqcoeff);
426 int vp8_block_error_xmm(short *coeff, short *dqcoeff);
427 RTCD_EXTERN int (*vp8_block_error)(short *coeff, short *dqcoeff);
428
429 int vp8_mbblock_error_c(struct macroblock *mb, int dc);
430 int vp8_mbblock_error_mmx(struct macroblock *mb, int dc);
431 int vp8_mbblock_error_xmm(struct macroblock *mb, int dc);
432 RTCD_EXTERN int (*vp8_mbblock_error)(struct macroblock *mb, int dc);
433
434 int vp8_mbuverror_c(struct macroblock *mb);
435 int vp8_mbuverror_mmx(struct macroblock *mb);
436 int vp8_mbuverror_xmm(struct macroblock *mb);
437 RTCD_EXTERN int (*vp8_mbuverror)(struct macroblock *mb);
438
439 void vp8_subtract_b_c(struct block *be, struct blockd *bd, int pitch);
440 void vp8_subtract_b_mmx(struct block *be, struct blockd *bd, int pitch);
441 void vp8_subtract_b_sse2(struct block *be, struct blockd *bd, int pitch);
442 RTCD_EXTERN void (*vp8_subtract_b)(struct block *be, struct blockd *bd, int pitc h);
443
444 void vp8_subtract_mby_c(short *diff, unsigned char *src, int src_stride, unsigne d char *pred, int pred_stride);
445 void vp8_subtract_mby_mmx(short *diff, unsigned char *src, int src_stride, unsig ned char *pred, int pred_stride);
446 void vp8_subtract_mby_sse2(short *diff, unsigned char *src, int src_stride, unsi gned char *pred, int pred_stride);
447 RTCD_EXTERN void (*vp8_subtract_mby)(short *diff, unsigned char *src, int src_st ride, unsigned char *pred, int pred_stride);
448
449 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);
450 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);
451 void vp8_subtract_mbuv_sse2(short *diff, unsigned char *usrc, unsigned char *vsr c, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
452 RTCD_EXTERN void (*vp8_subtract_mbuv)(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pre d_stride);
453
454 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);
455 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);
456 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);
457 RTCD_EXTERN int (*vp8_full_search_sad)(struct macroblock *x, struct block *b, st ruct blockd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct vari ance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv);
458
459 int vp8_refining_search_sad_c(struct macroblock *x, struct block *b, struct bloc kd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtab le *fn_ptr, int *mvcost[2], union int_mv *center_mv);
460 int vp8_refining_search_sadx4(struct macroblock *x, struct block *b, struct bloc kd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtab le *fn_ptr, int *mvcost[2], union int_mv *center_mv);
461 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);
462
463 int vp8_diamond_search_sad_c(struct macroblock *x, struct block *b, struct block d *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);
464 int vp8_diamond_search_sadx4(struct macroblock *x, struct block *b, struct block d *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);
465 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], u nion int_mv *center_mv);
466
467 void vp8_yv12_copy_partial_frame_c(struct yv12_buffer_config *src_ybc, struct yv 12_buffer_config *dst_ybc);
468 #define vp8_yv12_copy_partial_frame vp8_yv12_copy_partial_frame_c
469
470 int vp8_denoiser_filter_c(struct yv12_buffer_config* mc_running_avg, struct yv12 _buffer_config* running_avg, struct macroblock* signal, unsigned int motion_magn itude2, int y_offset, int uv_offset);
471 int vp8_denoiser_filter_sse2(struct yv12_buffer_config* mc_running_avg, struct y v12_buffer_config* running_avg, struct macroblock* signal, unsigned int motion_m agnitude2, int y_offset, int uv_offset);
472 RTCD_EXTERN int (*vp8_denoiser_filter)(struct yv12_buffer_config* mc_running_avg , struct yv12_buffer_config* running_avg, struct macroblock* signal, unsigned in t motion_magnitude2, int y_offset, int uv_offset);
473
474 void vp8_rtcd(void);
475
476 #ifdef RTCD_C
477 #include "vpx_ports/x86.h"
478 static void setup_rtcd_internal(void)
479 {
480 int flags = x86_simd_caps();
481
482 (void)flags;
483
484 vp8_dequantize_b = vp8_dequantize_b_c;
485 if (flags & HAS_MMX) vp8_dequantize_b = vp8_dequantize_b_mmx;
486
487 vp8_dequant_idct_add = vp8_dequant_idct_add_c;
488 if (flags & HAS_MMX) vp8_dequant_idct_add = vp8_dequant_idct_add_mmx;
489
490 vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_c;
491 if (flags & HAS_MMX) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_b lock_mmx;
492 if (flags & HAS_SSE2) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_ block_sse2;
493
494 vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_c;
495 if (flags & HAS_MMX) vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv _block_mmx;
496 if (flags & HAS_SSE2) vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_u v_block_sse2;
497
498 vp8_loop_filter_mbv = vp8_loop_filter_mbv_c;
499 if (flags & HAS_MMX) vp8_loop_filter_mbv = vp8_loop_filter_mbv_mmx;
500 if (flags & HAS_SSE2) vp8_loop_filter_mbv = vp8_loop_filter_mbv_sse2;
501
502 vp8_loop_filter_bv = vp8_loop_filter_bv_c;
503 if (flags & HAS_MMX) vp8_loop_filter_bv = vp8_loop_filter_bv_mmx;
504 if (flags & HAS_SSE2) vp8_loop_filter_bv = vp8_loop_filter_bv_sse2;
505
506 vp8_loop_filter_mbh = vp8_loop_filter_mbh_c;
507 if (flags & HAS_MMX) vp8_loop_filter_mbh = vp8_loop_filter_mbh_mmx;
508 if (flags & HAS_SSE2) vp8_loop_filter_mbh = vp8_loop_filter_mbh_sse2;
509
510 vp8_loop_filter_bh = vp8_loop_filter_bh_c;
511 if (flags & HAS_MMX) vp8_loop_filter_bh = vp8_loop_filter_bh_mmx;
512 if (flags & HAS_SSE2) vp8_loop_filter_bh = vp8_loop_filter_bh_sse2;
513
514 vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_vertical_edge_c;
515 if (flags & HAS_MMX) vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_ver tical_edge_mmx;
516 if (flags & HAS_SSE2) vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_ve rtical_edge_sse2;
517
518 vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_horizontal_edge_c;
519 if (flags & HAS_MMX) vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_hor izontal_edge_mmx;
520 if (flags & HAS_SSE2) vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_ho rizontal_edge_sse2;
521
522 vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_c;
523 if (flags & HAS_MMX) vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_mmx;
524 if (flags & HAS_SSE2) vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_sse2;
525
526 vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_c;
527 if (flags & HAS_MMX) vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_mmx;
528 if (flags & HAS_SSE2) vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_sse2;
529
530 vp8_short_idct4x4llm = vp8_short_idct4x4llm_c;
531 if (flags & HAS_MMX) vp8_short_idct4x4llm = vp8_short_idct4x4llm_mmx;
532
533
534 vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_c;
535 if (flags & HAS_MMX) vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_mmx;
536 if (flags & HAS_SSE2) vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_sse2;
537
538 vp8_dc_only_idct_add = vp8_dc_only_idct_add_c;
539 if (flags & HAS_MMX) vp8_dc_only_idct_add = vp8_dc_only_idct_add_mmx;
540
541 vp8_copy_mem16x16 = vp8_copy_mem16x16_c;
542 if (flags & HAS_MMX) vp8_copy_mem16x16 = vp8_copy_mem16x16_mmx;
543 if (flags & HAS_SSE2) vp8_copy_mem16x16 = vp8_copy_mem16x16_sse2;
544
545 vp8_copy_mem8x8 = vp8_copy_mem8x8_c;
546 if (flags & HAS_MMX) vp8_copy_mem8x8 = vp8_copy_mem8x8_mmx;
547
548 vp8_copy_mem8x4 = vp8_copy_mem8x4_c;
549 if (flags & HAS_MMX) vp8_copy_mem8x4 = vp8_copy_mem8x4_mmx;
550
551 vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_c;
552 if (flags & HAS_SSE2) vp8_build_intra_predictors_mby_s = vp8_build_intra_pre dictors_mby_s_sse2;
553 if (flags & HAS_SSSE3) vp8_build_intra_predictors_mby_s = vp8_build_intra_pr edictors_mby_s_ssse3;
554
555 vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_c;
556 if (flags & HAS_SSE2) vp8_build_intra_predictors_mbuv_s = vp8_build_intra_pr edictors_mbuv_s_sse2;
557 if (flags & HAS_SSSE3) vp8_build_intra_predictors_mbuv_s = vp8_build_intra_p redictors_mbuv_s_ssse3;
558
559
560 vp8_mbpost_proc_down = vp8_mbpost_proc_down_c;
561 if (flags & HAS_MMX) vp8_mbpost_proc_down = vp8_mbpost_proc_down_mmx;
562 if (flags & HAS_SSE2) vp8_mbpost_proc_down = vp8_mbpost_proc_down_xmm;
563
564 vp8_mbpost_proc_across_ip = vp8_mbpost_proc_across_ip_c;
565 if (flags & HAS_SSE2) vp8_mbpost_proc_across_ip = vp8_mbpost_proc_across_ip_ xmm;
566
567 vp8_post_proc_down_and_across_mb_row = vp8_post_proc_down_and_across_mb_row_ c;
568 if (flags & HAS_SSE2) vp8_post_proc_down_and_across_mb_row = vp8_post_proc_d own_and_across_mb_row_sse2;
569
570 vp8_plane_add_noise = vp8_plane_add_noise_c;
571 if (flags & HAS_MMX) vp8_plane_add_noise = vp8_plane_add_noise_mmx;
572 if (flags & HAS_SSE2) vp8_plane_add_noise = vp8_plane_add_noise_wmt;
573
574
575
576
577 vp8_filter_by_weight16x16 = vp8_filter_by_weight16x16_c;
578 if (flags & HAS_SSE2) vp8_filter_by_weight16x16 = vp8_filter_by_weight16x16_ sse2;
579
580 vp8_filter_by_weight8x8 = vp8_filter_by_weight8x8_c;
581 if (flags & HAS_SSE2) vp8_filter_by_weight8x8 = vp8_filter_by_weight8x8_sse2 ;
582
583
584 vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_c;
585 if (flags & HAS_MMX) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_mmx;
586 if (flags & HAS_SSE2) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_sse2 ;
587 if (flags & HAS_SSSE3) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_sss e3;
588
589 vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_c;
590 if (flags & HAS_MMX) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_mmx;
591 if (flags & HAS_SSE2) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_sse2;
592 if (flags & HAS_SSSE3) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_ssse3;
593
594 vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_c;
595 if (flags & HAS_MMX) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_mmx;
596 if (flags & HAS_SSE2) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_sse2;
597 if (flags & HAS_SSSE3) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_ssse3;
598
599 vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_c;
600 if (flags & HAS_MMX) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_mmx;
601 if (flags & HAS_SSSE3) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_ssse3;
602
603 vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_c;
604 if (flags & HAS_MMX) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_m mx;
605 if (flags & HAS_SSE2) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_ sse2;
606 if (flags & HAS_SSSE3) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16 _ssse3;
607
608 vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_c;
609 if (flags & HAS_MMX) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_mmx;
610 if (flags & HAS_SSE2) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sse2 ;
611 if (flags & HAS_SSSE3) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sss e3;
612
613 vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_c;
614 if (flags & HAS_MMX) vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_mmx;
615
616 vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_c;
617 if (flags & HAS_MMX) vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_mmx;
618
619 vp8_variance4x4 = vp8_variance4x4_c;
620 if (flags & HAS_MMX) vp8_variance4x4 = vp8_variance4x4_mmx;
621 if (flags & HAS_SSE2) vp8_variance4x4 = vp8_variance4x4_wmt;
622
623 vp8_variance8x8 = vp8_variance8x8_c;
624 if (flags & HAS_MMX) vp8_variance8x8 = vp8_variance8x8_mmx;
625 if (flags & HAS_SSE2) vp8_variance8x8 = vp8_variance8x8_wmt;
626
627 vp8_variance8x16 = vp8_variance8x16_c;
628 if (flags & HAS_MMX) vp8_variance8x16 = vp8_variance8x16_mmx;
629 if (flags & HAS_SSE2) vp8_variance8x16 = vp8_variance8x16_wmt;
630
631 vp8_variance16x8 = vp8_variance16x8_c;
632 if (flags & HAS_MMX) vp8_variance16x8 = vp8_variance16x8_mmx;
633 if (flags & HAS_SSE2) vp8_variance16x8 = vp8_variance16x8_wmt;
634
635 vp8_variance16x16 = vp8_variance16x16_c;
636 if (flags & HAS_MMX) vp8_variance16x16 = vp8_variance16x16_mmx;
637 if (flags & HAS_SSE2) vp8_variance16x16 = vp8_variance16x16_wmt;
638
639 vp8_sub_pixel_variance4x4 = vp8_sub_pixel_variance4x4_c;
640 if (flags & HAS_MMX) vp8_sub_pixel_variance4x4 = vp8_sub_pixel_variance4x4_m mx;
641 if (flags & HAS_SSE2) vp8_sub_pixel_variance4x4 = vp8_sub_pixel_variance4x4_ wmt;
642
643 vp8_sub_pixel_variance8x8 = vp8_sub_pixel_variance8x8_c;
644 if (flags & HAS_MMX) vp8_sub_pixel_variance8x8 = vp8_sub_pixel_variance8x8_m mx;
645 if (flags & HAS_SSE2) vp8_sub_pixel_variance8x8 = vp8_sub_pixel_variance8x8_ wmt;
646
647 vp8_sub_pixel_variance8x16 = vp8_sub_pixel_variance8x16_c;
648 if (flags & HAS_MMX) vp8_sub_pixel_variance8x16 = vp8_sub_pixel_variance8x16 _mmx;
649 if (flags & HAS_SSE2) vp8_sub_pixel_variance8x16 = vp8_sub_pixel_variance8x1 6_wmt;
650
651 vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_c;
652 if (flags & HAS_MMX) vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8 _mmx;
653 if (flags & HAS_SSE2) vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x 8_wmt;
654 if (flags & HAS_SSSE3) vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16 x8_ssse3;
655
656 vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_c;
657 if (flags & HAS_MMX) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x 16_mmx;
658 if (flags & HAS_SSE2) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16 x16_wmt;
659 if (flags & HAS_SSSE3) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance1 6x16_ssse3;
660
661 vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_c;
662 if (flags & HAS_MMX) vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixva r16x16_h_mmx;
663 if (flags & HAS_SSE2) vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixv ar16x16_h_wmt;
664
665 vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_c;
666 if (flags & HAS_MMX) vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixva r16x16_v_mmx;
667 if (flags & HAS_SSE2) vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixv ar16x16_v_wmt;
668
669 vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_c;
670 if (flags & HAS_MMX) vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixv ar16x16_hv_mmx;
671 if (flags & HAS_SSE2) vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpix var16x16_hv_wmt;
672
673 vp8_sad4x4 = vp8_sad4x4_c;
674 if (flags & HAS_MMX) vp8_sad4x4 = vp8_sad4x4_mmx;
675 if (flags & HAS_SSE2) vp8_sad4x4 = vp8_sad4x4_wmt;
676
677 vp8_sad8x8 = vp8_sad8x8_c;
678 if (flags & HAS_MMX) vp8_sad8x8 = vp8_sad8x8_mmx;
679 if (flags & HAS_SSE2) vp8_sad8x8 = vp8_sad8x8_wmt;
680
681 vp8_sad8x16 = vp8_sad8x16_c;
682 if (flags & HAS_MMX) vp8_sad8x16 = vp8_sad8x16_mmx;
683 if (flags & HAS_SSE2) vp8_sad8x16 = vp8_sad8x16_wmt;
684
685 vp8_sad16x8 = vp8_sad16x8_c;
686 if (flags & HAS_MMX) vp8_sad16x8 = vp8_sad16x8_mmx;
687 if (flags & HAS_SSE2) vp8_sad16x8 = vp8_sad16x8_wmt;
688
689 vp8_sad16x16 = vp8_sad16x16_c;
690 if (flags & HAS_MMX) vp8_sad16x16 = vp8_sad16x16_mmx;
691 if (flags & HAS_SSE2) vp8_sad16x16 = vp8_sad16x16_wmt;
692 if (flags & HAS_SSE3) vp8_sad16x16 = vp8_sad16x16_sse3;
693
694 vp8_sad4x4x3 = vp8_sad4x4x3_c;
695 if (flags & HAS_SSE3) vp8_sad4x4x3 = vp8_sad4x4x3_sse3;
696
697 vp8_sad8x8x3 = vp8_sad8x8x3_c;
698 if (flags & HAS_SSE3) vp8_sad8x8x3 = vp8_sad8x8x3_sse3;
699
700 vp8_sad8x16x3 = vp8_sad8x16x3_c;
701 if (flags & HAS_SSE3) vp8_sad8x16x3 = vp8_sad8x16x3_sse3;
702
703 vp8_sad16x8x3 = vp8_sad16x8x3_c;
704 if (flags & HAS_SSE3) vp8_sad16x8x3 = vp8_sad16x8x3_sse3;
705 if (flags & HAS_SSSE3) vp8_sad16x8x3 = vp8_sad16x8x3_ssse3;
706
707 vp8_sad16x16x3 = vp8_sad16x16x3_c;
708 if (flags & HAS_SSE3) vp8_sad16x16x3 = vp8_sad16x16x3_sse3;
709 if (flags & HAS_SSSE3) vp8_sad16x16x3 = vp8_sad16x16x3_ssse3;
710
711 vp8_sad4x4x8 = vp8_sad4x4x8_c;
712 if (flags & HAS_SSE4_1) vp8_sad4x4x8 = vp8_sad4x4x8_sse4;
713
714 vp8_sad8x8x8 = vp8_sad8x8x8_c;
715 if (flags & HAS_SSE4_1) vp8_sad8x8x8 = vp8_sad8x8x8_sse4;
716
717 vp8_sad8x16x8 = vp8_sad8x16x8_c;
718 if (flags & HAS_SSE4_1) vp8_sad8x16x8 = vp8_sad8x16x8_sse4;
719
720 vp8_sad16x8x8 = vp8_sad16x8x8_c;
721 if (flags & HAS_SSE4_1) vp8_sad16x8x8 = vp8_sad16x8x8_sse4;
722
723 vp8_sad16x16x8 = vp8_sad16x16x8_c;
724 if (flags & HAS_SSE4_1) vp8_sad16x16x8 = vp8_sad16x16x8_sse4;
725
726 vp8_sad4x4x4d = vp8_sad4x4x4d_c;
727 if (flags & HAS_SSE3) vp8_sad4x4x4d = vp8_sad4x4x4d_sse3;
728
729 vp8_sad8x8x4d = vp8_sad8x8x4d_c;
730 if (flags & HAS_SSE3) vp8_sad8x8x4d = vp8_sad8x8x4d_sse3;
731
732 vp8_sad8x16x4d = vp8_sad8x16x4d_c;
733 if (flags & HAS_SSE3) vp8_sad8x16x4d = vp8_sad8x16x4d_sse3;
734
735 vp8_sad16x8x4d = vp8_sad16x8x4d_c;
736 if (flags & HAS_SSE3) vp8_sad16x8x4d = vp8_sad16x8x4d_sse3;
737
738 vp8_sad16x16x4d = vp8_sad16x16x4d_c;
739 if (flags & HAS_SSE3) vp8_sad16x16x4d = vp8_sad16x16x4d_sse3;
740
741 vp8_get_mb_ss = vp8_get_mb_ss_c;
742 if (flags & HAS_MMX) vp8_get_mb_ss = vp8_get_mb_ss_mmx;
743 if (flags & HAS_SSE2) vp8_get_mb_ss = vp8_get_mb_ss_sse2;
744
745 vp8_sub_pixel_mse16x16 = vp8_sub_pixel_mse16x16_c;
746 if (flags & HAS_MMX) vp8_sub_pixel_mse16x16 = vp8_sub_pixel_mse16x16_mmx;
747 if (flags & HAS_SSE2) vp8_sub_pixel_mse16x16 = vp8_sub_pixel_mse16x16_wmt;
748
749 vp8_mse16x16 = vp8_mse16x16_c;
750 if (flags & HAS_MMX) vp8_mse16x16 = vp8_mse16x16_mmx;
751 if (flags & HAS_SSE2) vp8_mse16x16 = vp8_mse16x16_wmt;
752
753 vp8_get4x4sse_cs = vp8_get4x4sse_cs_c;
754 if (flags & HAS_MMX) vp8_get4x4sse_cs = vp8_get4x4sse_cs_mmx;
755
756 vp8_copy32xn = vp8_copy32xn_c;
757 if (flags & HAS_SSE2) vp8_copy32xn = vp8_copy32xn_sse2;
758 if (flags & HAS_SSE3) vp8_copy32xn = vp8_copy32xn_sse3;
759
760 vp8_short_fdct4x4 = vp8_short_fdct4x4_c;
761 if (flags & HAS_MMX) vp8_short_fdct4x4 = vp8_short_fdct4x4_mmx;
762 if (flags & HAS_SSE2) vp8_short_fdct4x4 = vp8_short_fdct4x4_sse2;
763
764 vp8_short_fdct8x4 = vp8_short_fdct8x4_c;
765 if (flags & HAS_MMX) vp8_short_fdct8x4 = vp8_short_fdct8x4_mmx;
766 if (flags & HAS_SSE2) vp8_short_fdct8x4 = vp8_short_fdct8x4_sse2;
767
768 vp8_short_walsh4x4 = vp8_short_walsh4x4_c;
769 if (flags & HAS_SSE2) vp8_short_walsh4x4 = vp8_short_walsh4x4_sse2;
770
771 vp8_regular_quantize_b = vp8_regular_quantize_b_c;
772 if (flags & HAS_SSE2) vp8_regular_quantize_b = vp8_regular_quantize_b_sse2;
773 if (flags & HAS_SSE4_1) vp8_regular_quantize_b = vp8_regular_quantize_b_sse4 ;
774
775 vp8_fast_quantize_b = vp8_fast_quantize_b_c;
776 if (flags & HAS_SSE2) vp8_fast_quantize_b = vp8_fast_quantize_b_sse2;
777 if (flags & HAS_SSSE3) vp8_fast_quantize_b = vp8_fast_quantize_b_ssse3;
778
779
780
781
782
783
784 vp8_block_error = vp8_block_error_c;
785 if (flags & HAS_MMX) vp8_block_error = vp8_block_error_mmx;
786 if (flags & HAS_SSE2) vp8_block_error = vp8_block_error_xmm;
787
788 vp8_mbblock_error = vp8_mbblock_error_c;
789 if (flags & HAS_MMX) vp8_mbblock_error = vp8_mbblock_error_mmx;
790 if (flags & HAS_SSE2) vp8_mbblock_error = vp8_mbblock_error_xmm;
791
792 vp8_mbuverror = vp8_mbuverror_c;
793 if (flags & HAS_MMX) vp8_mbuverror = vp8_mbuverror_mmx;
794 if (flags & HAS_SSE2) vp8_mbuverror = vp8_mbuverror_xmm;
795
796 vp8_subtract_b = vp8_subtract_b_c;
797 if (flags & HAS_MMX) vp8_subtract_b = vp8_subtract_b_mmx;
798 if (flags & HAS_SSE2) vp8_subtract_b = vp8_subtract_b_sse2;
799
800 vp8_subtract_mby = vp8_subtract_mby_c;
801 if (flags & HAS_MMX) vp8_subtract_mby = vp8_subtract_mby_mmx;
802 if (flags & HAS_SSE2) vp8_subtract_mby = vp8_subtract_mby_sse2;
803
804 vp8_subtract_mbuv = vp8_subtract_mbuv_c;
805 if (flags & HAS_MMX) vp8_subtract_mbuv = vp8_subtract_mbuv_mmx;
806 if (flags & HAS_SSE2) vp8_subtract_mbuv = vp8_subtract_mbuv_sse2;
807
808 vp8_full_search_sad = vp8_full_search_sad_c;
809 if (flags & HAS_SSE3) vp8_full_search_sad = vp8_full_search_sadx3;
810 if (flags & HAS_SSE4_1) vp8_full_search_sad = vp8_full_search_sadx8;
811
812 vp8_refining_search_sad = vp8_refining_search_sad_c;
813 if (flags & HAS_SSE3) vp8_refining_search_sad = vp8_refining_search_sadx4;
814
815 vp8_diamond_search_sad = vp8_diamond_search_sad_c;
816 if (flags & HAS_SSE3) vp8_diamond_search_sad = vp8_diamond_search_sadx4;
817
818
819 vp8_denoiser_filter = vp8_denoiser_filter_c;
820 if (flags & HAS_SSE2) vp8_denoiser_filter = vp8_denoiser_filter_sse2;
821 }
822 #endif
823 #endif
OLDNEW
« libvpx.gyp ('K') | « source/config/vpx_version.h ('k') | source/config/win/ia32/vp9_rtcd.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698