| OLD | NEW |
| 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 Loading... |
| 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 RTCD_EXTERN int (*vp8_block_error)(short *coeff, short *dqcoeff); | 61 RTCD_EXTERN int (*vp8_block_error)(short *coeff, short *dqcoeff); |
| 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 RTCD_EXTERN void (*vp8_clear_system_state)(); | 65 RTCD_EXTERN void (*vp8_clear_system_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 Loading... |
| 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 RTCD_EXTERN void (*vp8_filter_by_weight8x8)(unsigned char *src, int src_stride,
unsigned char *dst, int dst_stride, int src_weight); | 133 RTCD_EXTERN void (*vp8_filter_by_weight8x8)(unsigned char *src, int src_stride,
unsigned char *dst, int dst_stride, int src_weight); |
| 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 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); | 143 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); |
| 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 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); | 148 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); |
| 162 | 149 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 if (flags & HAS_MMX) vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_mmx; | 281 if (flags & HAS_MMX) vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_mmx; |
| 295 vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_c; | 282 vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_c; |
| 296 if (flags & HAS_MMX) vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_mmx; | 283 if (flags & HAS_MMX) vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_mmx; |
| 297 vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_c; | 284 vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_c; |
| 298 if (flags & HAS_MMX) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_mmx; | 285 if (flags & HAS_MMX) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_mmx; |
| 299 if (flags & HAS_SSE2) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sse2
; | 286 if (flags & HAS_SSE2) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sse2
; |
| 300 if (flags & HAS_SSSE3) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sss
e3; | 287 if (flags & HAS_SSSE3) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sss
e3; |
| 301 vp8_block_error = vp8_block_error_c; | 288 vp8_block_error = vp8_block_error_c; |
| 302 if (flags & HAS_MMX) vp8_block_error = vp8_block_error_mmx; | 289 if (flags & HAS_MMX) vp8_block_error = vp8_block_error_mmx; |
| 303 if (flags & HAS_SSE2) vp8_block_error = vp8_block_error_xmm; | 290 if (flags & HAS_SSE2) vp8_block_error = vp8_block_error_xmm; |
| 304 vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_c; | |
| 305 if (flags & HAS_SSE2) vp8_build_intra_predictors_mbuv_s = vp8_build_intra_pr
edictors_mbuv_s_sse2; | |
| 306 if (flags & HAS_SSSE3) vp8_build_intra_predictors_mbuv_s = vp8_build_intra_p
redictors_mbuv_s_ssse3; | |
| 307 vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_c; | |
| 308 if (flags & HAS_SSE2) vp8_build_intra_predictors_mby_s = vp8_build_intra_pre
dictors_mby_s_sse2; | |
| 309 if (flags & HAS_SSSE3) vp8_build_intra_predictors_mby_s = vp8_build_intra_pr
edictors_mby_s_ssse3; | |
| 310 vp8_clear_system_state = vp8_clear_system_state_c; | 291 vp8_clear_system_state = vp8_clear_system_state_c; |
| 311 if (flags & HAS_MMX) vp8_clear_system_state = vpx_reset_mmx_state; | 292 if (flags & HAS_MMX) vp8_clear_system_state = vpx_reset_mmx_state; |
| 312 vp8_copy32xn = vp8_copy32xn_c; | 293 vp8_copy32xn = vp8_copy32xn_c; |
| 313 if (flags & HAS_SSE2) vp8_copy32xn = vp8_copy32xn_sse2; | 294 if (flags & HAS_SSE2) vp8_copy32xn = vp8_copy32xn_sse2; |
| 314 if (flags & HAS_SSE3) vp8_copy32xn = vp8_copy32xn_sse3; | 295 if (flags & HAS_SSE3) vp8_copy32xn = vp8_copy32xn_sse3; |
| 315 vp8_copy_mem16x16 = vp8_copy_mem16x16_c; | 296 vp8_copy_mem16x16 = vp8_copy_mem16x16_c; |
| 316 if (flags & HAS_MMX) vp8_copy_mem16x16 = vp8_copy_mem16x16_mmx; | 297 if (flags & HAS_MMX) vp8_copy_mem16x16 = vp8_copy_mem16x16_mmx; |
| 317 if (flags & HAS_SSE2) vp8_copy_mem16x16 = vp8_copy_mem16x16_sse2; | 298 if (flags & HAS_SSE2) vp8_copy_mem16x16 = vp8_copy_mem16x16_sse2; |
| 318 vp8_copy_mem8x4 = vp8_copy_mem8x4_c; | 299 vp8_copy_mem8x4 = vp8_copy_mem8x4_c; |
| 319 if (flags & HAS_MMX) vp8_copy_mem8x4 = vp8_copy_mem8x4_mmx; | 300 if (flags & HAS_MMX) vp8_copy_mem8x4 = vp8_copy_mem8x4_mmx; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 if (flags & HAS_SSE2) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_sse2; | 402 if (flags & HAS_SSE2) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_sse2; |
| 422 if (flags & HAS_SSSE3) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_ssse3; | 403 if (flags & HAS_SSSE3) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_ssse3; |
| 423 } | 404 } |
| 424 #endif | 405 #endif |
| 425 | 406 |
| 426 #ifdef __cplusplus | 407 #ifdef __cplusplus |
| 427 } // extern "C" | 408 } // extern "C" |
| 428 #endif | 409 #endif |
| 429 | 410 |
| 430 #endif | 411 #endif |
| OLD | NEW |