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

Side by Side Diff: third_party/libvpx_new/source/config/win/x64/vp8_rtcd.h

Issue 1392983002: Roll src/third_party/libvpx_new/source/libvpx/ 7d28d12ef..ce3f4ade6 (56 commits). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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
OLDNEW
1 #ifndef VP8_RTCD_H_ 1 #ifndef VP8_RTCD_H_
2 #define VP8_RTCD_H_ 2 #define VP8_RTCD_H_
3 3
4 #ifdef RTCD_C 4 #ifdef RTCD_C
5 #define RTCD_EXTERN 5 #define RTCD_EXTERN
6 #else 6 #else
7 #define RTCD_EXTERN extern 7 #define RTCD_EXTERN extern
8 #endif 8 #endif
9 9
10 /* 10 /*
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 #define vp8_blend_mb_inner vp8_blend_mb_inner_c 53 #define vp8_blend_mb_inner vp8_blend_mb_inner_c
54 54
55 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); 55 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);
56 #define vp8_blend_mb_outer vp8_blend_mb_outer_c 56 #define vp8_blend_mb_outer vp8_blend_mb_outer_c
57 57
58 int vp8_block_error_c(short *coeff, short *dqcoeff); 58 int vp8_block_error_c(short *coeff, short *dqcoeff);
59 int vp8_block_error_mmx(short *coeff, short *dqcoeff); 59 int vp8_block_error_mmx(short *coeff, short *dqcoeff);
60 int vp8_block_error_xmm(short *coeff, short *dqcoeff); 60 int vp8_block_error_xmm(short *coeff, short *dqcoeff);
61 #define vp8_block_error vp8_block_error_xmm 61 #define vp8_block_error vp8_block_error_xmm
62 62
63 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);
64 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);
65 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);
66 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);
67
68 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);
69 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);
70 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);
71 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);
72
73 void vp8_clear_system_state_c(); 63 void vp8_clear_system_state_c();
74 void vpx_reset_mmx_state(); 64 void vpx_reset_mmx_state();
75 #define vp8_clear_system_state vpx_reset_mmx_state 65 #define vp8_clear_system_state vpx_reset_mmx_state
76 66
77 void vp8_copy32xn_c(const unsigned char *src_ptr, int source_stride, unsigned ch ar *dst_ptr, int dst_stride, int n); 67 void vp8_copy32xn_c(const unsigned char *src_ptr, int source_stride, unsigned ch ar *dst_ptr, int dst_stride, int n);
78 void vp8_copy32xn_sse2(const unsigned char *src_ptr, int source_stride, unsigned char *dst_ptr, int dst_stride, int n); 68 void vp8_copy32xn_sse2(const unsigned char *src_ptr, int source_stride, unsigned char *dst_ptr, int dst_stride, int n);
79 void vp8_copy32xn_sse3(const unsigned char *src_ptr, int source_stride, unsigned char *dst_ptr, int dst_stride, int n); 69 void vp8_copy32xn_sse3(const unsigned char *src_ptr, int source_stride, unsigned char *dst_ptr, int dst_stride, int n);
80 RTCD_EXTERN void (*vp8_copy32xn)(const unsigned char *src_ptr, int source_stride , unsigned char *dst_ptr, int dst_stride, int n); 70 RTCD_EXTERN void (*vp8_copy32xn)(const unsigned char *src_ptr, int source_stride , unsigned char *dst_ptr, int dst_stride, int n);
81 71
82 void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); 72 void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 130
141 void vp8_filter_by_weight8x8_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight); 131 void vp8_filter_by_weight8x8_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight);
142 void vp8_filter_by_weight8x8_sse2(unsigned char *src, int src_stride, unsigned c har *dst, int dst_stride, int src_weight); 132 void vp8_filter_by_weight8x8_sse2(unsigned char *src, int src_stride, unsigned c har *dst, int dst_stride, int src_weight);
143 #define vp8_filter_by_weight8x8 vp8_filter_by_weight8x8_sse2 133 #define vp8_filter_by_weight8x8 vp8_filter_by_weight8x8_sse2
144 134
145 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); 135 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);
146 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); 136 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);
147 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); 137 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);
148 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); 138 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);
149 139
150 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) ;
151 #define vp8_intra4x4_predict vp8_intra4x4_predict_c
152
153 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); 140 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);
154 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); 141 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);
155 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); 142 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);
156 #define vp8_loop_filter_bh vp8_loop_filter_bh_sse2 143 #define vp8_loop_filter_bh vp8_loop_filter_bh_sse2
157 144
158 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); 145 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);
159 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); 146 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);
160 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); 147 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);
161 #define vp8_loop_filter_bv vp8_loop_filter_bv_sse2 148 #define vp8_loop_filter_bv vp8_loop_filter_bv_sse2
162 149
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 static void setup_rtcd_internal(void) 270 static void setup_rtcd_internal(void)
284 { 271 {
285 int flags = x86_simd_caps(); 272 int flags = x86_simd_caps();
286 273
287 (void)flags; 274 (void)flags;
288 275
289 vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_sse2; 276 vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_sse2;
290 if (flags & HAS_SSSE3) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16 _ssse3; 277 if (flags & HAS_SSSE3) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16 _ssse3;
291 vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sse2; 278 vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sse2;
292 if (flags & HAS_SSSE3) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sss e3; 279 if (flags & HAS_SSSE3) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sss e3;
293 vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_sse2;
294 if (flags & HAS_SSSE3) vp8_build_intra_predictors_mbuv_s = vp8_build_intra_p redictors_mbuv_s_ssse3;
295 vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_sse2;
296 if (flags & HAS_SSSE3) vp8_build_intra_predictors_mby_s = vp8_build_intra_pr edictors_mby_s_ssse3;
297 vp8_copy32xn = vp8_copy32xn_sse2; 280 vp8_copy32xn = vp8_copy32xn_sse2;
298 if (flags & HAS_SSE3) vp8_copy32xn = vp8_copy32xn_sse3; 281 if (flags & HAS_SSE3) vp8_copy32xn = vp8_copy32xn_sse3;
299 vp8_diamond_search_sad = vp8_diamond_search_sad_c; 282 vp8_diamond_search_sad = vp8_diamond_search_sad_c;
300 if (flags & HAS_SSE3) vp8_diamond_search_sad = vp8_diamond_search_sadx4; 283 if (flags & HAS_SSE3) vp8_diamond_search_sad = vp8_diamond_search_sadx4;
301 vp8_fast_quantize_b = vp8_fast_quantize_b_sse2; 284 vp8_fast_quantize_b = vp8_fast_quantize_b_sse2;
302 if (flags & HAS_SSSE3) vp8_fast_quantize_b = vp8_fast_quantize_b_ssse3; 285 if (flags & HAS_SSSE3) vp8_fast_quantize_b = vp8_fast_quantize_b_ssse3;
303 vp8_full_search_sad = vp8_full_search_sad_c; 286 vp8_full_search_sad = vp8_full_search_sad_c;
304 if (flags & HAS_SSE3) vp8_full_search_sad = vp8_full_search_sadx3; 287 if (flags & HAS_SSE3) vp8_full_search_sad = vp8_full_search_sadx3;
305 if (flags & HAS_SSE4_1) vp8_full_search_sad = vp8_full_search_sadx8; 288 if (flags & HAS_SSE4_1) vp8_full_search_sad = vp8_full_search_sadx8;
306 vp8_refining_search_sad = vp8_refining_search_sad_c; 289 vp8_refining_search_sad = vp8_refining_search_sad_c;
307 if (flags & HAS_SSE3) vp8_refining_search_sad = vp8_refining_search_sadx4; 290 if (flags & HAS_SSE3) vp8_refining_search_sad = vp8_refining_search_sadx4;
308 vp8_regular_quantize_b = vp8_regular_quantize_b_sse2; 291 vp8_regular_quantize_b = vp8_regular_quantize_b_sse2;
309 if (flags & HAS_SSE4_1) vp8_regular_quantize_b = vp8_regular_quantize_b_sse4 _1; 292 if (flags & HAS_SSE4_1) vp8_regular_quantize_b = vp8_regular_quantize_b_sse4 _1;
310 vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_sse2; 293 vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_sse2;
311 if (flags & HAS_SSSE3) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_sss e3; 294 if (flags & HAS_SSSE3) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_sss e3;
312 vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_mmx; 295 vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_mmx;
313 if (flags & HAS_SSSE3) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_ssse3; 296 if (flags & HAS_SSSE3) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_ssse3;
314 vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_sse2; 297 vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_sse2;
315 if (flags & HAS_SSSE3) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_ssse3; 298 if (flags & HAS_SSSE3) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_ssse3;
316 vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_sse2; 299 vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_sse2;
317 if (flags & HAS_SSSE3) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_ssse3; 300 if (flags & HAS_SSSE3) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_ssse3;
318 } 301 }
319 #endif 302 #endif
320 303
321 #ifdef __cplusplus 304 #ifdef __cplusplus
322 } // extern "C" 305 } // extern "C"
323 #endif 306 #endif
324 307
325 #endif 308 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698