1ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuangvp8_common_forward_decls() { 21b362b15af34006e6a11974088a46d42b903418eJohanncat <<EOF 3ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang/* 4ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang * VP8 5ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang */ 61b362b15af34006e6a11974088a46d42b903418eJohann 71b362b15af34006e6a11974088a46d42b903418eJohannstruct blockd; 81b362b15af34006e6a11974088a46d42b903418eJohannstruct macroblockd; 91b362b15af34006e6a11974088a46d42b903418eJohannstruct loop_filter_info; 101b362b15af34006e6a11974088a46d42b903418eJohann 111b362b15af34006e6a11974088a46d42b903418eJohann/* Encoder forward decls */ 121b362b15af34006e6a11974088a46d42b903418eJohannstruct block; 131b362b15af34006e6a11974088a46d42b903418eJohannstruct macroblock; 141b362b15af34006e6a11974088a46d42b903418eJohannstruct variance_vtable; 151b362b15af34006e6a11974088a46d42b903418eJohannunion int_mv; 161b362b15af34006e6a11974088a46d42b903418eJohannstruct yv12_buffer_config; 171b362b15af34006e6a11974088a46d42b903418eJohannEOF 181b362b15af34006e6a11974088a46d42b903418eJohann} 19ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuangforward_decls vp8_common_forward_decls 20ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang 21ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang# 22ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang# system state 23ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang# 24ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuangprototype void vp8_clear_system_state "" 25ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuangspecialize vp8_clear_system_state mmx 26ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuangvp8_clear_system_state_mmx=vpx_reset_mmx_state 271b362b15af34006e6a11974088a46d42b903418eJohann 281b362b15af34006e6a11974088a46d42b903418eJohann# 291b362b15af34006e6a11974088a46d42b903418eJohann# Dequant 301b362b15af34006e6a11974088a46d42b903418eJohann# 311b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_dequantize_b "struct blockd*, short *dqc" 321b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_dequantize_b mmx media neon 331b362b15af34006e6a11974088a46d42b903418eJohannvp8_dequantize_b_media=vp8_dequantize_b_v6 341b362b15af34006e6a11974088a46d42b903418eJohann 351b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_dequant_idct_add "short *input, short *dq, unsigned char *output, int stride" 361b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_dequant_idct_add mmx media neon dspr2 371b362b15af34006e6a11974088a46d42b903418eJohannvp8_dequant_idct_add_media=vp8_dequant_idct_add_v6 381b362b15af34006e6a11974088a46d42b903418eJohannvp8_dequant_idct_add_dspr2=vp8_dequant_idct_add_dspr2 391b362b15af34006e6a11974088a46d42b903418eJohann 401b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_dequant_idct_add_y_block "short *q, short *dq, unsigned char *dst, int stride, char *eobs" 411b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_dequant_idct_add_y_block mmx sse2 media neon dspr2 421b362b15af34006e6a11974088a46d42b903418eJohannvp8_dequant_idct_add_y_block_media=vp8_dequant_idct_add_y_block_v6 431b362b15af34006e6a11974088a46d42b903418eJohannvp8_dequant_idct_add_y_block_dspr2=vp8_dequant_idct_add_y_block_dspr2 441b362b15af34006e6a11974088a46d42b903418eJohann 451b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_dequant_idct_add_uv_block "short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs" 461b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_dequant_idct_add_uv_block mmx sse2 media neon dspr2 471b362b15af34006e6a11974088a46d42b903418eJohannvp8_dequant_idct_add_uv_block_media=vp8_dequant_idct_add_uv_block_v6 481b362b15af34006e6a11974088a46d42b903418eJohannvp8_dequant_idct_add_y_block_dspr2=vp8_dequant_idct_add_y_block_dspr2 491b362b15af34006e6a11974088a46d42b903418eJohann 501b362b15af34006e6a11974088a46d42b903418eJohann# 511b362b15af34006e6a11974088a46d42b903418eJohann# Loopfilter 521b362b15af34006e6a11974088a46d42b903418eJohann# 531b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_loop_filter_mbv "unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi" 541b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_loop_filter_mbv mmx sse2 media neon dspr2 551b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_mbv_media=vp8_loop_filter_mbv_armv6 561b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_mbv_dspr2=vp8_loop_filter_mbv_dspr2 571b362b15af34006e6a11974088a46d42b903418eJohann 581b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_loop_filter_bv "unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi" 591b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_loop_filter_bv mmx sse2 media neon dspr2 601b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_bv_media=vp8_loop_filter_bv_armv6 611b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_bv_dspr2=vp8_loop_filter_bv_dspr2 621b362b15af34006e6a11974088a46d42b903418eJohann 631b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_loop_filter_mbh "unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi" 641b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_loop_filter_mbh mmx sse2 media neon dspr2 651b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_mbh_media=vp8_loop_filter_mbh_armv6 661b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_mbh_dspr2=vp8_loop_filter_mbh_dspr2 671b362b15af34006e6a11974088a46d42b903418eJohann 681b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_loop_filter_bh "unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi" 691b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_loop_filter_bh mmx sse2 media neon dspr2 701b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_bh_media=vp8_loop_filter_bh_armv6 711b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_bh_dspr2=vp8_loop_filter_bh_dspr2 721b362b15af34006e6a11974088a46d42b903418eJohann 731b362b15af34006e6a11974088a46d42b903418eJohann 741b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_loop_filter_simple_mbv "unsigned char *y, int ystride, const unsigned char *blimit" 751b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_loop_filter_simple_mbv mmx sse2 media neon 761b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_mbv_c=vp8_loop_filter_simple_vertical_edge_c 771b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_mbv_mmx=vp8_loop_filter_simple_vertical_edge_mmx 781b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_mbv_sse2=vp8_loop_filter_simple_vertical_edge_sse2 791b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_mbv_media=vp8_loop_filter_simple_vertical_edge_armv6 801b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_mbv_neon=vp8_loop_filter_mbvs_neon 811b362b15af34006e6a11974088a46d42b903418eJohann 821b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_loop_filter_simple_mbh "unsigned char *y, int ystride, const unsigned char *blimit" 831b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_loop_filter_simple_mbh mmx sse2 media neon 841b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_mbh_c=vp8_loop_filter_simple_horizontal_edge_c 851b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_mbh_mmx=vp8_loop_filter_simple_horizontal_edge_mmx 861b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_mbh_sse2=vp8_loop_filter_simple_horizontal_edge_sse2 871b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_mbh_media=vp8_loop_filter_simple_horizontal_edge_armv6 881b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_mbh_neon=vp8_loop_filter_mbhs_neon 891b362b15af34006e6a11974088a46d42b903418eJohann 901b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_loop_filter_simple_bv "unsigned char *y, int ystride, const unsigned char *blimit" 911b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_loop_filter_simple_bv mmx sse2 media neon 921b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_bv_c=vp8_loop_filter_bvs_c 931b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_bv_mmx=vp8_loop_filter_bvs_mmx 941b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_bv_sse2=vp8_loop_filter_bvs_sse2 951b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_bv_media=vp8_loop_filter_bvs_armv6 961b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_bv_neon=vp8_loop_filter_bvs_neon 971b362b15af34006e6a11974088a46d42b903418eJohann 981b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_loop_filter_simple_bh "unsigned char *y, int ystride, const unsigned char *blimit" 991b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_loop_filter_simple_bh mmx sse2 media neon 1001b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_bh_c=vp8_loop_filter_bhs_c 1011b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_bh_mmx=vp8_loop_filter_bhs_mmx 1021b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_bh_sse2=vp8_loop_filter_bhs_sse2 1031b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_bh_media=vp8_loop_filter_bhs_armv6 1041b362b15af34006e6a11974088a46d42b903418eJohannvp8_loop_filter_simple_bh_neon=vp8_loop_filter_bhs_neon 1051b362b15af34006e6a11974088a46d42b903418eJohann 1061b362b15af34006e6a11974088a46d42b903418eJohann# 1071b362b15af34006e6a11974088a46d42b903418eJohann# IDCT 1081b362b15af34006e6a11974088a46d42b903418eJohann# 1091b362b15af34006e6a11974088a46d42b903418eJohann#idct16 1101b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_short_idct4x4llm "short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride" 1111b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_short_idct4x4llm mmx media neon dspr2 1121b362b15af34006e6a11974088a46d42b903418eJohannvp8_short_idct4x4llm_media=vp8_short_idct4x4llm_v6_dual 1131b362b15af34006e6a11974088a46d42b903418eJohannvp8_short_idct4x4llm_dspr2=vp8_short_idct4x4llm_dspr2 1141b362b15af34006e6a11974088a46d42b903418eJohann 1151b362b15af34006e6a11974088a46d42b903418eJohann#iwalsh1 1161b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_short_inv_walsh4x4_1 "short *input, short *output" 1171b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_short_inv_walsh4x4_1 dspr2 1181b362b15af34006e6a11974088a46d42b903418eJohannvp8_short_inv_walsh4x4_1_dspr2=vp8_short_inv_walsh4x4_1_dspr2 1191b362b15af34006e6a11974088a46d42b903418eJohann# no asm yet 1201b362b15af34006e6a11974088a46d42b903418eJohann 1211b362b15af34006e6a11974088a46d42b903418eJohann#iwalsh16 1221b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_short_inv_walsh4x4 "short *input, short *output" 1231b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_short_inv_walsh4x4 mmx sse2 media neon dspr2 1241b362b15af34006e6a11974088a46d42b903418eJohannvp8_short_inv_walsh4x4_media=vp8_short_inv_walsh4x4_v6 1251b362b15af34006e6a11974088a46d42b903418eJohannvp8_short_inv_walsh4x4_dspr2=vp8_short_inv_walsh4x4_dspr2 1261b362b15af34006e6a11974088a46d42b903418eJohann 1271b362b15af34006e6a11974088a46d42b903418eJohann#idct1_scalar_add 1281b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_dc_only_idct_add "short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride" 1291b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_dc_only_idct_add mmx media neon dspr2 1301b362b15af34006e6a11974088a46d42b903418eJohannvp8_dc_only_idct_add_media=vp8_dc_only_idct_add_v6 1311b362b15af34006e6a11974088a46d42b903418eJohannvp8_dc_only_idct_add_dspr2=vp8_dc_only_idct_add_dspr2 1321b362b15af34006e6a11974088a46d42b903418eJohann 1331b362b15af34006e6a11974088a46d42b903418eJohann# 1341b362b15af34006e6a11974088a46d42b903418eJohann# RECON 1351b362b15af34006e6a11974088a46d42b903418eJohann# 1361b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_copy_mem16x16 "unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch" 1371b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_copy_mem16x16 mmx sse2 media neon dspr2 1381b362b15af34006e6a11974088a46d42b903418eJohannvp8_copy_mem16x16_media=vp8_copy_mem16x16_v6 1391b362b15af34006e6a11974088a46d42b903418eJohannvp8_copy_mem16x16_dspr2=vp8_copy_mem16x16_dspr2 1401b362b15af34006e6a11974088a46d42b903418eJohann 1411b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_copy_mem8x8 "unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch" 1421b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_copy_mem8x8 mmx media neon dspr2 1431b362b15af34006e6a11974088a46d42b903418eJohannvp8_copy_mem8x8_media=vp8_copy_mem8x8_v6 1441b362b15af34006e6a11974088a46d42b903418eJohannvp8_copy_mem8x8_dspr2=vp8_copy_mem8x8_dspr2 1451b362b15af34006e6a11974088a46d42b903418eJohann 1461b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_copy_mem8x4 "unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch" 1471b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_copy_mem8x4 mmx media neon dspr2 1481b362b15af34006e6a11974088a46d42b903418eJohannvp8_copy_mem8x4_media=vp8_copy_mem8x4_v6 1491b362b15af34006e6a11974088a46d42b903418eJohannvp8_copy_mem8x4_dspr2=vp8_copy_mem8x4_dspr2 1501b362b15af34006e6a11974088a46d42b903418eJohann 1511b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_build_intra_predictors_mby_s "struct macroblockd *x, unsigned char * yabove_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, int y_stride" 1521b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_build_intra_predictors_mby_s sse2 ssse3 1531b362b15af34006e6a11974088a46d42b903418eJohann#TODO: fix assembly for neon 1541b362b15af34006e6a11974088a46d42b903418eJohann 1551b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_build_intra_predictors_mbuv_s "struct macroblockd *x, unsigned char * uabove_row, unsigned char * vabove_row, unsigned char *uleft, unsigned char *vleft, int left_stride, unsigned char * upred_ptr, unsigned char * vpred_ptr, int pred_stride" 1561b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_build_intra_predictors_mbuv_s sse2 ssse3 1571b362b15af34006e6a11974088a46d42b903418eJohann 158ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuangprototype void vp8_intra4x4_predict "unsigned char *Above, unsigned char *yleft, int left_stride, int b_mode, unsigned char *dst, int dst_stride, unsigned char top_left" 1591b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_intra4x4_predict media 1601b362b15af34006e6a11974088a46d42b903418eJohannvp8_intra4x4_predict_media=vp8_intra4x4_predict_armv6 1611b362b15af34006e6a11974088a46d42b903418eJohann 1621b362b15af34006e6a11974088a46d42b903418eJohann# 1631b362b15af34006e6a11974088a46d42b903418eJohann# Postproc 1641b362b15af34006e6a11974088a46d42b903418eJohann# 1651b362b15af34006e6a11974088a46d42b903418eJohannif [ "$CONFIG_POSTPROC" = "yes" ]; then 1661b362b15af34006e6a11974088a46d42b903418eJohann prototype void vp8_mbpost_proc_down "unsigned char *dst, int pitch, int rows, int cols,int flimit" 1671b362b15af34006e6a11974088a46d42b903418eJohann specialize vp8_mbpost_proc_down mmx sse2 1681b362b15af34006e6a11974088a46d42b903418eJohann vp8_mbpost_proc_down_sse2=vp8_mbpost_proc_down_xmm 1691b362b15af34006e6a11974088a46d42b903418eJohann 1701b362b15af34006e6a11974088a46d42b903418eJohann prototype void vp8_mbpost_proc_across_ip "unsigned char *dst, int pitch, int rows, int cols,int flimit" 1711b362b15af34006e6a11974088a46d42b903418eJohann specialize vp8_mbpost_proc_across_ip sse2 1721b362b15af34006e6a11974088a46d42b903418eJohann vp8_mbpost_proc_across_ip_sse2=vp8_mbpost_proc_across_ip_xmm 1731b362b15af34006e6a11974088a46d42b903418eJohann 1741b362b15af34006e6a11974088a46d42b903418eJohann prototype void vp8_post_proc_down_and_across_mb_row "unsigned char *src, unsigned char *dst, int src_pitch, int dst_pitch, int cols, unsigned char *flimits, int size" 1751b362b15af34006e6a11974088a46d42b903418eJohann specialize vp8_post_proc_down_and_across_mb_row sse2 1761b362b15af34006e6a11974088a46d42b903418eJohann 1771b362b15af34006e6a11974088a46d42b903418eJohann prototype void vp8_plane_add_noise "unsigned char *s, char *noise, char blackclamp[16], char whiteclamp[16], char bothclamp[16], unsigned int w, unsigned int h, int pitch" 1781b362b15af34006e6a11974088a46d42b903418eJohann specialize vp8_plane_add_noise mmx sse2 1791b362b15af34006e6a11974088a46d42b903418eJohann vp8_plane_add_noise_sse2=vp8_plane_add_noise_wmt 1801b362b15af34006e6a11974088a46d42b903418eJohann 1811b362b15af34006e6a11974088a46d42b903418eJohann prototype void vp8_blend_mb_inner "unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride" 1821b362b15af34006e6a11974088a46d42b903418eJohann # no asm yet 1831b362b15af34006e6a11974088a46d42b903418eJohann 1841b362b15af34006e6a11974088a46d42b903418eJohann prototype void vp8_blend_mb_outer "unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride" 1851b362b15af34006e6a11974088a46d42b903418eJohann # no asm yet 1861b362b15af34006e6a11974088a46d42b903418eJohann 1871b362b15af34006e6a11974088a46d42b903418eJohann prototype void vp8_blend_b "unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride" 1881b362b15af34006e6a11974088a46d42b903418eJohann # no asm yet 1891b362b15af34006e6a11974088a46d42b903418eJohann 1901b362b15af34006e6a11974088a46d42b903418eJohann prototype void vp8_filter_by_weight16x16 "unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight" 1911b362b15af34006e6a11974088a46d42b903418eJohann specialize vp8_filter_by_weight16x16 sse2 1921b362b15af34006e6a11974088a46d42b903418eJohann 1931b362b15af34006e6a11974088a46d42b903418eJohann prototype void vp8_filter_by_weight8x8 "unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight" 1941b362b15af34006e6a11974088a46d42b903418eJohann specialize vp8_filter_by_weight8x8 sse2 1951b362b15af34006e6a11974088a46d42b903418eJohann 1961b362b15af34006e6a11974088a46d42b903418eJohann prototype void vp8_filter_by_weight4x4 "unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight" 1971b362b15af34006e6a11974088a46d42b903418eJohann # no asm yet 1981b362b15af34006e6a11974088a46d42b903418eJohannfi 1991b362b15af34006e6a11974088a46d42b903418eJohann 2001b362b15af34006e6a11974088a46d42b903418eJohann# 2011b362b15af34006e6a11974088a46d42b903418eJohann# Subpixel 2021b362b15af34006e6a11974088a46d42b903418eJohann# 2031b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sixtap_predict16x16 "unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch" 2041b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sixtap_predict16x16 mmx sse2 ssse3 media neon dspr2 2051b362b15af34006e6a11974088a46d42b903418eJohannvp8_sixtap_predict16x16_media=vp8_sixtap_predict16x16_armv6 2061b362b15af34006e6a11974088a46d42b903418eJohannvp8_sixtap_predict16x16_dspr2=vp8_sixtap_predict16x16_dspr2 2071b362b15af34006e6a11974088a46d42b903418eJohann 2081b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sixtap_predict8x8 "unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch" 2091b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sixtap_predict8x8 mmx sse2 ssse3 media neon dspr2 2101b362b15af34006e6a11974088a46d42b903418eJohannvp8_sixtap_predict8x8_media=vp8_sixtap_predict8x8_armv6 2111b362b15af34006e6a11974088a46d42b903418eJohannvp8_sixtap_predict8x8_dspr2=vp8_sixtap_predict8x8_dspr2 2121b362b15af34006e6a11974088a46d42b903418eJohann 2131b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sixtap_predict8x4 "unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch" 2141b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sixtap_predict8x4 mmx sse2 ssse3 media neon dspr2 2151b362b15af34006e6a11974088a46d42b903418eJohannvp8_sixtap_predict8x4_media=vp8_sixtap_predict8x4_armv6 2161b362b15af34006e6a11974088a46d42b903418eJohannvp8_sixtap_predict8x4_dspr2=vp8_sixtap_predict8x4_dspr2 2171b362b15af34006e6a11974088a46d42b903418eJohann 2181b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sixtap_predict4x4 "unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch" 2191b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sixtap_predict4x4 mmx ssse3 media neon dspr2 2201b362b15af34006e6a11974088a46d42b903418eJohannvp8_sixtap_predict4x4_media=vp8_sixtap_predict4x4_armv6 2211b362b15af34006e6a11974088a46d42b903418eJohannvp8_sixtap_predict4x4_dspr2=vp8_sixtap_predict4x4_dspr2 2221b362b15af34006e6a11974088a46d42b903418eJohann 2231b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_bilinear_predict16x16 "unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch" 2241b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_bilinear_predict16x16 mmx sse2 ssse3 media neon 2251b362b15af34006e6a11974088a46d42b903418eJohannvp8_bilinear_predict16x16_media=vp8_bilinear_predict16x16_armv6 2261b362b15af34006e6a11974088a46d42b903418eJohann 2271b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_bilinear_predict8x8 "unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch" 2281b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_bilinear_predict8x8 mmx sse2 ssse3 media neon 2291b362b15af34006e6a11974088a46d42b903418eJohannvp8_bilinear_predict8x8_media=vp8_bilinear_predict8x8_armv6 2301b362b15af34006e6a11974088a46d42b903418eJohann 2311b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_bilinear_predict8x4 "unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch" 2321b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_bilinear_predict8x4 mmx media neon 2331b362b15af34006e6a11974088a46d42b903418eJohannvp8_bilinear_predict8x4_media=vp8_bilinear_predict8x4_armv6 2341b362b15af34006e6a11974088a46d42b903418eJohann 2351b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_bilinear_predict4x4 "unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch" 2361b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_bilinear_predict4x4 mmx media neon 2371b362b15af34006e6a11974088a46d42b903418eJohannvp8_bilinear_predict4x4_media=vp8_bilinear_predict4x4_armv6 2381b362b15af34006e6a11974088a46d42b903418eJohann 2391b362b15af34006e6a11974088a46d42b903418eJohann# 2401b362b15af34006e6a11974088a46d42b903418eJohann# Whole-pixel Variance 2411b362b15af34006e6a11974088a46d42b903418eJohann# 2421b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_variance4x4 "const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse" 2431b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_variance4x4 mmx sse2 2441b362b15af34006e6a11974088a46d42b903418eJohannvp8_variance4x4_sse2=vp8_variance4x4_wmt 2451b362b15af34006e6a11974088a46d42b903418eJohann 2461b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_variance8x8 "const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse" 2471b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_variance8x8 mmx sse2 media neon 2481b362b15af34006e6a11974088a46d42b903418eJohannvp8_variance8x8_sse2=vp8_variance8x8_wmt 2491b362b15af34006e6a11974088a46d42b903418eJohannvp8_variance8x8_media=vp8_variance8x8_armv6 2501b362b15af34006e6a11974088a46d42b903418eJohann 2511b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_variance8x16 "const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse" 2521b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_variance8x16 mmx sse2 neon 2531b362b15af34006e6a11974088a46d42b903418eJohannvp8_variance8x16_sse2=vp8_variance8x16_wmt 2541b362b15af34006e6a11974088a46d42b903418eJohann 2551b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_variance16x8 "const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse" 2561b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_variance16x8 mmx sse2 neon 2571b362b15af34006e6a11974088a46d42b903418eJohannvp8_variance16x8_sse2=vp8_variance16x8_wmt 2581b362b15af34006e6a11974088a46d42b903418eJohann 2591b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_variance16x16 "const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse" 2601b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_variance16x16 mmx sse2 media neon 2611b362b15af34006e6a11974088a46d42b903418eJohannvp8_variance16x16_sse2=vp8_variance16x16_wmt 2621b362b15af34006e6a11974088a46d42b903418eJohannvp8_variance16x16_media=vp8_variance16x16_armv6 2631b362b15af34006e6a11974088a46d42b903418eJohann 2641b362b15af34006e6a11974088a46d42b903418eJohann# 2651b362b15af34006e6a11974088a46d42b903418eJohann# Sub-pixel Variance 2661b362b15af34006e6a11974088a46d42b903418eJohann# 2671b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_sub_pixel_variance4x4 "const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse" 2681b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sub_pixel_variance4x4 mmx sse2 2691b362b15af34006e6a11974088a46d42b903418eJohannvp8_sub_pixel_variance4x4_sse2=vp8_sub_pixel_variance4x4_wmt 2701b362b15af34006e6a11974088a46d42b903418eJohann 2711b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_sub_pixel_variance8x8 "const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse" 2721b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sub_pixel_variance8x8 mmx sse2 media neon 2731b362b15af34006e6a11974088a46d42b903418eJohannvp8_sub_pixel_variance8x8_sse2=vp8_sub_pixel_variance8x8_wmt 2741b362b15af34006e6a11974088a46d42b903418eJohannvp8_sub_pixel_variance8x8_media=vp8_sub_pixel_variance8x8_armv6 2751b362b15af34006e6a11974088a46d42b903418eJohann 2761b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_sub_pixel_variance8x16 "const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse" 2771b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sub_pixel_variance8x16 mmx sse2 2781b362b15af34006e6a11974088a46d42b903418eJohannvp8_sub_pixel_variance8x16_sse2=vp8_sub_pixel_variance8x16_wmt 2791b362b15af34006e6a11974088a46d42b903418eJohann 2801b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_sub_pixel_variance16x8 "const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse" 2811b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sub_pixel_variance16x8 mmx sse2 ssse3 2821b362b15af34006e6a11974088a46d42b903418eJohannvp8_sub_pixel_variance16x8_sse2=vp8_sub_pixel_variance16x8_wmt 2831b362b15af34006e6a11974088a46d42b903418eJohann 2841b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_sub_pixel_variance16x16 "const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse" 2851b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sub_pixel_variance16x16 mmx sse2 ssse3 media neon 2861b362b15af34006e6a11974088a46d42b903418eJohannvp8_sub_pixel_variance16x16_sse2=vp8_sub_pixel_variance16x16_wmt 2871b362b15af34006e6a11974088a46d42b903418eJohannvp8_sub_pixel_variance16x16_media=vp8_sub_pixel_variance16x16_armv6 2881b362b15af34006e6a11974088a46d42b903418eJohann 2891b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_variance_halfpixvar16x16_h "const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse" 2901b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_variance_halfpixvar16x16_h mmx sse2 media neon 2911b362b15af34006e6a11974088a46d42b903418eJohannvp8_variance_halfpixvar16x16_h_sse2=vp8_variance_halfpixvar16x16_h_wmt 2921b362b15af34006e6a11974088a46d42b903418eJohannvp8_variance_halfpixvar16x16_h_media=vp8_variance_halfpixvar16x16_h_armv6 2931b362b15af34006e6a11974088a46d42b903418eJohann 2941b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_variance_halfpixvar16x16_v "const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse" 2951b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_variance_halfpixvar16x16_v mmx sse2 media neon 2961b362b15af34006e6a11974088a46d42b903418eJohannvp8_variance_halfpixvar16x16_v_sse2=vp8_variance_halfpixvar16x16_v_wmt 2971b362b15af34006e6a11974088a46d42b903418eJohannvp8_variance_halfpixvar16x16_v_media=vp8_variance_halfpixvar16x16_v_armv6 2981b362b15af34006e6a11974088a46d42b903418eJohann 2991b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_variance_halfpixvar16x16_hv "const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse" 3001b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_variance_halfpixvar16x16_hv mmx sse2 media neon 3011b362b15af34006e6a11974088a46d42b903418eJohannvp8_variance_halfpixvar16x16_hv_sse2=vp8_variance_halfpixvar16x16_hv_wmt 3021b362b15af34006e6a11974088a46d42b903418eJohannvp8_variance_halfpixvar16x16_hv_media=vp8_variance_halfpixvar16x16_hv_armv6 3031b362b15af34006e6a11974088a46d42b903418eJohann 3041b362b15af34006e6a11974088a46d42b903418eJohann# 3051b362b15af34006e6a11974088a46d42b903418eJohann# Single block SAD 3061b362b15af34006e6a11974088a46d42b903418eJohann# 3071b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_sad4x4 "const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad" 3081b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad4x4 mmx sse2 neon 3091b362b15af34006e6a11974088a46d42b903418eJohannvp8_sad4x4_sse2=vp8_sad4x4_wmt 3101b362b15af34006e6a11974088a46d42b903418eJohann 3111b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_sad8x8 "const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad" 3121b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad8x8 mmx sse2 neon 3131b362b15af34006e6a11974088a46d42b903418eJohannvp8_sad8x8_sse2=vp8_sad8x8_wmt 3141b362b15af34006e6a11974088a46d42b903418eJohann 3151b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_sad8x16 "const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad" 3161b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad8x16 mmx sse2 neon 3171b362b15af34006e6a11974088a46d42b903418eJohannvp8_sad8x16_sse2=vp8_sad8x16_wmt 3181b362b15af34006e6a11974088a46d42b903418eJohann 3191b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_sad16x8 "const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad" 3201b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad16x8 mmx sse2 neon 3211b362b15af34006e6a11974088a46d42b903418eJohannvp8_sad16x8_sse2=vp8_sad16x8_wmt 3221b362b15af34006e6a11974088a46d42b903418eJohann 3231b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_sad16x16 "const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad" 3241b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad16x16 mmx sse2 sse3 media neon 3251b362b15af34006e6a11974088a46d42b903418eJohannvp8_sad16x16_sse2=vp8_sad16x16_wmt 3261b362b15af34006e6a11974088a46d42b903418eJohannvp8_sad16x16_media=vp8_sad16x16_armv6 3271b362b15af34006e6a11974088a46d42b903418eJohann 3281b362b15af34006e6a11974088a46d42b903418eJohann# 3291b362b15af34006e6a11974088a46d42b903418eJohann# Multi-block SAD, comparing a reference to N blocks 1 pixel apart horizontally 3301b362b15af34006e6a11974088a46d42b903418eJohann# 3311b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sad4x4x3 "const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array" 3321b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad4x4x3 sse3 3331b362b15af34006e6a11974088a46d42b903418eJohann 3341b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sad8x8x3 "const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array" 3351b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad8x8x3 sse3 3361b362b15af34006e6a11974088a46d42b903418eJohann 3371b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sad8x16x3 "const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array" 3381b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad8x16x3 sse3 3391b362b15af34006e6a11974088a46d42b903418eJohann 3401b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sad16x8x3 "const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array" 3411b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad16x8x3 sse3 ssse3 3421b362b15af34006e6a11974088a46d42b903418eJohann 3431b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sad16x16x3 "const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array" 3441b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad16x16x3 sse3 ssse3 3451b362b15af34006e6a11974088a46d42b903418eJohann 3461b362b15af34006e6a11974088a46d42b903418eJohann# Note the only difference in the following prototypes is that they return into 3471b362b15af34006e6a11974088a46d42b903418eJohann# an array of short 3481b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sad4x4x8 "const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array" 3491b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad4x4x8 sse4_1 3501b362b15af34006e6a11974088a46d42b903418eJohannvp8_sad4x4x8_sse4_1=vp8_sad4x4x8_sse4 3511b362b15af34006e6a11974088a46d42b903418eJohann 3521b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sad8x8x8 "const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array" 3531b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad8x8x8 sse4_1 3541b362b15af34006e6a11974088a46d42b903418eJohannvp8_sad8x8x8_sse4_1=vp8_sad8x8x8_sse4 3551b362b15af34006e6a11974088a46d42b903418eJohann 3561b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sad8x16x8 "const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array" 3571b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad8x16x8 sse4_1 3581b362b15af34006e6a11974088a46d42b903418eJohannvp8_sad8x16x8_sse4_1=vp8_sad8x16x8_sse4 3591b362b15af34006e6a11974088a46d42b903418eJohann 3601b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sad16x8x8 "const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array" 3611b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad16x8x8 sse4_1 3621b362b15af34006e6a11974088a46d42b903418eJohannvp8_sad16x8x8_sse4_1=vp8_sad16x8x8_sse4 3631b362b15af34006e6a11974088a46d42b903418eJohann 3641b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sad16x16x8 "const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array" 3651b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad16x16x8 sse4_1 3661b362b15af34006e6a11974088a46d42b903418eJohannvp8_sad16x16x8_sse4_1=vp8_sad16x16x8_sse4 3671b362b15af34006e6a11974088a46d42b903418eJohann 3681b362b15af34006e6a11974088a46d42b903418eJohann# 3691b362b15af34006e6a11974088a46d42b903418eJohann# Multi-block SAD, comparing a reference to N independent blocks 3701b362b15af34006e6a11974088a46d42b903418eJohann# 3711b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sad4x4x4d "const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array" 3721b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad4x4x4d sse3 3731b362b15af34006e6a11974088a46d42b903418eJohann 3741b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sad8x8x4d "const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array" 3751b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad8x8x4d sse3 3761b362b15af34006e6a11974088a46d42b903418eJohann 3771b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sad8x16x4d "const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array" 3781b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad8x16x4d sse3 3791b362b15af34006e6a11974088a46d42b903418eJohann 3801b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sad16x8x4d "const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array" 3811b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad16x8x4d sse3 3821b362b15af34006e6a11974088a46d42b903418eJohann 3831b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_sad16x16x4d "const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array" 3841b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sad16x16x4d sse3 3851b362b15af34006e6a11974088a46d42b903418eJohann 3861b362b15af34006e6a11974088a46d42b903418eJohann# 3871b362b15af34006e6a11974088a46d42b903418eJohann# Encoder functions below this point. 3881b362b15af34006e6a11974088a46d42b903418eJohann# 3891b362b15af34006e6a11974088a46d42b903418eJohannif [ "$CONFIG_VP8_ENCODER" = "yes" ]; then 3901b362b15af34006e6a11974088a46d42b903418eJohann 3911b362b15af34006e6a11974088a46d42b903418eJohann# 3921b362b15af34006e6a11974088a46d42b903418eJohann# Sum of squares (vector) 3931b362b15af34006e6a11974088a46d42b903418eJohann# 3941b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_get_mb_ss "const short *" 3951b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_get_mb_ss mmx sse2 3961b362b15af34006e6a11974088a46d42b903418eJohann 3971b362b15af34006e6a11974088a46d42b903418eJohann# 3981b362b15af34006e6a11974088a46d42b903418eJohann# SSE (Sum Squared Error) 3991b362b15af34006e6a11974088a46d42b903418eJohann# 4001b362b15af34006e6a11974088a46d42b903418eJohannprototype 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" 4011b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_sub_pixel_mse16x16 mmx sse2 4021b362b15af34006e6a11974088a46d42b903418eJohannvp8_sub_pixel_mse16x16_sse2=vp8_sub_pixel_mse16x16_wmt 4031b362b15af34006e6a11974088a46d42b903418eJohann 4041b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_mse16x16 "const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse" 4051b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_mse16x16 mmx sse2 media neon 4061b362b15af34006e6a11974088a46d42b903418eJohannvp8_mse16x16_sse2=vp8_mse16x16_wmt 4071b362b15af34006e6a11974088a46d42b903418eJohannvp8_mse16x16_media=vp8_mse16x16_armv6 4081b362b15af34006e6a11974088a46d42b903418eJohann 4091b362b15af34006e6a11974088a46d42b903418eJohannprototype unsigned int vp8_get4x4sse_cs "const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride" 4101b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_get4x4sse_cs mmx neon 4111b362b15af34006e6a11974088a46d42b903418eJohann 4121b362b15af34006e6a11974088a46d42b903418eJohann# 4131b362b15af34006e6a11974088a46d42b903418eJohann# Block copy 4141b362b15af34006e6a11974088a46d42b903418eJohann# 4151b362b15af34006e6a11974088a46d42b903418eJohanncase $arch in 4161b362b15af34006e6a11974088a46d42b903418eJohann x86*) 4171b362b15af34006e6a11974088a46d42b903418eJohann prototype void vp8_copy32xn "const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, int n" 4181b362b15af34006e6a11974088a46d42b903418eJohann specialize vp8_copy32xn sse2 sse3 4191b362b15af34006e6a11974088a46d42b903418eJohann ;; 4201b362b15af34006e6a11974088a46d42b903418eJohannesac 4211b362b15af34006e6a11974088a46d42b903418eJohann 4221b362b15af34006e6a11974088a46d42b903418eJohann# 4231b362b15af34006e6a11974088a46d42b903418eJohann# Structured Similarity (SSIM) 4241b362b15af34006e6a11974088a46d42b903418eJohann# 4251b362b15af34006e6a11974088a46d42b903418eJohannif [ "$CONFIG_INTERNAL_STATS" = "yes" ]; then 4261b362b15af34006e6a11974088a46d42b903418eJohann [ $arch = "x86_64" ] && sse2_on_x86_64=sse2 4271b362b15af34006e6a11974088a46d42b903418eJohann 4281b362b15af34006e6a11974088a46d42b903418eJohann prototype void vp8_ssim_parms_8x8 "unsigned char *s, int sp, unsigned char *r, int rp, unsigned long *sum_s, unsigned long *sum_r, unsigned long *sum_sq_s, unsigned long *sum_sq_r, unsigned long *sum_sxr" 4291b362b15af34006e6a11974088a46d42b903418eJohann specialize vp8_ssim_parms_8x8 $sse2_on_x86_64 4301b362b15af34006e6a11974088a46d42b903418eJohann 4311b362b15af34006e6a11974088a46d42b903418eJohann prototype void vp8_ssim_parms_16x16 "unsigned char *s, int sp, unsigned char *r, int rp, unsigned long *sum_s, unsigned long *sum_r, unsigned long *sum_sq_s, unsigned long *sum_sq_r, unsigned long *sum_sxr" 4321b362b15af34006e6a11974088a46d42b903418eJohann specialize vp8_ssim_parms_16x16 $sse2_on_x86_64 4331b362b15af34006e6a11974088a46d42b903418eJohannfi 4341b362b15af34006e6a11974088a46d42b903418eJohann 4351b362b15af34006e6a11974088a46d42b903418eJohann# 4361b362b15af34006e6a11974088a46d42b903418eJohann# Forward DCT 4371b362b15af34006e6a11974088a46d42b903418eJohann# 4381b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_short_fdct4x4 "short *input, short *output, int pitch" 4391b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_short_fdct4x4 mmx sse2 media neon 4401b362b15af34006e6a11974088a46d42b903418eJohannvp8_short_fdct4x4_media=vp8_short_fdct4x4_armv6 4411b362b15af34006e6a11974088a46d42b903418eJohann 4421b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_short_fdct8x4 "short *input, short *output, int pitch" 4431b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_short_fdct8x4 mmx sse2 media neon 4441b362b15af34006e6a11974088a46d42b903418eJohannvp8_short_fdct8x4_media=vp8_short_fdct8x4_armv6 4451b362b15af34006e6a11974088a46d42b903418eJohann 4461b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_short_walsh4x4 "short *input, short *output, int pitch" 4471b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_short_walsh4x4 sse2 media neon 4481b362b15af34006e6a11974088a46d42b903418eJohannvp8_short_walsh4x4_media=vp8_short_walsh4x4_armv6 4491b362b15af34006e6a11974088a46d42b903418eJohann 4501b362b15af34006e6a11974088a46d42b903418eJohann# 4511b362b15af34006e6a11974088a46d42b903418eJohann# Quantizer 4521b362b15af34006e6a11974088a46d42b903418eJohann# 4531b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_regular_quantize_b "struct block *, struct blockd *" 454ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuangspecialize vp8_regular_quantize_b sse2 #sse4_1 455ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang# TODO(johann) Update sse4 implementation and re-enable 456ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang#vp8_regular_quantize_b_sse4_1=vp8_regular_quantize_b_sse4 4571b362b15af34006e6a11974088a46d42b903418eJohann 4581b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_fast_quantize_b "struct block *, struct blockd *" 4591b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_fast_quantize_b sse2 ssse3 media neon 4601b362b15af34006e6a11974088a46d42b903418eJohannvp8_fast_quantize_b_media=vp8_fast_quantize_b_armv6 4611b362b15af34006e6a11974088a46d42b903418eJohann 4621b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_regular_quantize_b_pair "struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2" 4631b362b15af34006e6a11974088a46d42b903418eJohann# no asm yet 4641b362b15af34006e6a11974088a46d42b903418eJohann 4651b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_fast_quantize_b_pair "struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2" 4661b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_fast_quantize_b_pair neon 4671b362b15af34006e6a11974088a46d42b903418eJohann 4681b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_quantize_mb "struct macroblock *" 4691b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_quantize_mb neon 4701b362b15af34006e6a11974088a46d42b903418eJohann 4711b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_quantize_mby "struct macroblock *" 4721b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_quantize_mby neon 4731b362b15af34006e6a11974088a46d42b903418eJohann 4741b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_quantize_mbuv "struct macroblock *" 4751b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_quantize_mbuv neon 4761b362b15af34006e6a11974088a46d42b903418eJohann 4771b362b15af34006e6a11974088a46d42b903418eJohann# 4781b362b15af34006e6a11974088a46d42b903418eJohann# Block subtraction 4791b362b15af34006e6a11974088a46d42b903418eJohann# 4801b362b15af34006e6a11974088a46d42b903418eJohannprototype int vp8_block_error "short *coeff, short *dqcoeff" 4811b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_block_error mmx sse2 4821b362b15af34006e6a11974088a46d42b903418eJohannvp8_block_error_sse2=vp8_block_error_xmm 4831b362b15af34006e6a11974088a46d42b903418eJohann 4841b362b15af34006e6a11974088a46d42b903418eJohannprototype int vp8_mbblock_error "struct macroblock *mb, int dc" 4851b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_mbblock_error mmx sse2 4861b362b15af34006e6a11974088a46d42b903418eJohannvp8_mbblock_error_sse2=vp8_mbblock_error_xmm 4871b362b15af34006e6a11974088a46d42b903418eJohann 4881b362b15af34006e6a11974088a46d42b903418eJohannprototype int vp8_mbuverror "struct macroblock *mb" 4891b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_mbuverror mmx sse2 4901b362b15af34006e6a11974088a46d42b903418eJohannvp8_mbuverror_sse2=vp8_mbuverror_xmm 4911b362b15af34006e6a11974088a46d42b903418eJohann 4921b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_subtract_b "struct block *be, struct blockd *bd, int pitch" 4931b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_subtract_b mmx sse2 media neon 4941b362b15af34006e6a11974088a46d42b903418eJohannvp8_subtract_b_media=vp8_subtract_b_armv6 4951b362b15af34006e6a11974088a46d42b903418eJohann 4961b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_subtract_mby "short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride" 4971b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_subtract_mby mmx sse2 media neon 4981b362b15af34006e6a11974088a46d42b903418eJohannvp8_subtract_mby_media=vp8_subtract_mby_armv6 4991b362b15af34006e6a11974088a46d42b903418eJohann 5001b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_subtract_mbuv "short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride" 5011b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_subtract_mbuv mmx sse2 media neon 5021b362b15af34006e6a11974088a46d42b903418eJohannvp8_subtract_mbuv_media=vp8_subtract_mbuv_armv6 5031b362b15af34006e6a11974088a46d42b903418eJohann 5041b362b15af34006e6a11974088a46d42b903418eJohann# 5051b362b15af34006e6a11974088a46d42b903418eJohann# Motion search 5061b362b15af34006e6a11974088a46d42b903418eJohann# 5071b362b15af34006e6a11974088a46d42b903418eJohannprototype int vp8_full_search_sad "struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv" 5081b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_full_search_sad sse3 sse4_1 5091b362b15af34006e6a11974088a46d42b903418eJohannvp8_full_search_sad_sse3=vp8_full_search_sadx3 5101b362b15af34006e6a11974088a46d42b903418eJohannvp8_full_search_sad_sse4_1=vp8_full_search_sadx8 5111b362b15af34006e6a11974088a46d42b903418eJohann 5121b362b15af34006e6a11974088a46d42b903418eJohannprototype 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" 5131b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_refining_search_sad sse3 5141b362b15af34006e6a11974088a46d42b903418eJohannvp8_refining_search_sad_sse3=vp8_refining_search_sadx4 5151b362b15af34006e6a11974088a46d42b903418eJohann 5161b362b15af34006e6a11974088a46d42b903418eJohannprototype int vp8_diamond_search_sad "struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, union int_mv *best_mv, int search_param, int sad_per_bit, int *num00, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv" 5171b362b15af34006e6a11974088a46d42b903418eJohannvp8_diamond_search_sad_sse3=vp8_diamond_search_sadx4 5181b362b15af34006e6a11974088a46d42b903418eJohann 5191b362b15af34006e6a11974088a46d42b903418eJohann# 5201b362b15af34006e6a11974088a46d42b903418eJohann# Alt-ref Noise Reduction (ARNR) 5211b362b15af34006e6a11974088a46d42b903418eJohann# 5221b362b15af34006e6a11974088a46d42b903418eJohannif [ "$CONFIG_REALTIME_ONLY" != "yes" ]; then 5231b362b15af34006e6a11974088a46d42b903418eJohann prototype void vp8_temporal_filter_apply "unsigned char *frame1, unsigned int stride, unsigned char *frame2, unsigned int block_size, int strength, int filter_weight, unsigned int *accumulator, unsigned short *count" 5241b362b15af34006e6a11974088a46d42b903418eJohann specialize vp8_temporal_filter_apply sse2 5251b362b15af34006e6a11974088a46d42b903418eJohannfi 5261b362b15af34006e6a11974088a46d42b903418eJohann 5271b362b15af34006e6a11974088a46d42b903418eJohann# 5281b362b15af34006e6a11974088a46d42b903418eJohann# Pick Loopfilter 5291b362b15af34006e6a11974088a46d42b903418eJohann# 5301b362b15af34006e6a11974088a46d42b903418eJohannprototype void vp8_yv12_copy_partial_frame "struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc" 5311b362b15af34006e6a11974088a46d42b903418eJohannspecialize vp8_yv12_copy_partial_frame neon 5321b362b15af34006e6a11974088a46d42b903418eJohann 5331b362b15af34006e6a11974088a46d42b903418eJohann# 5341b362b15af34006e6a11974088a46d42b903418eJohann# Denoiser filter 5351b362b15af34006e6a11974088a46d42b903418eJohann# 5361b362b15af34006e6a11974088a46d42b903418eJohannif [ "$CONFIG_TEMPORAL_DENOISING" = "yes" ]; then 5371b362b15af34006e6a11974088a46d42b903418eJohann prototype int vp8_denoiser_filter "struct yv12_buffer_config* mc_running_avg, struct yv12_buffer_config* running_avg, struct macroblock* signal, unsigned int motion_magnitude2, int y_offset, int uv_offset" 5381b362b15af34006e6a11974088a46d42b903418eJohann specialize vp8_denoiser_filter sse2 5391b362b15af34006e6a11974088a46d42b903418eJohannfi 5401b362b15af34006e6a11974088a46d42b903418eJohann 5411b362b15af34006e6a11974088a46d42b903418eJohann# End of encoder only functions 5421b362b15af34006e6a11974088a46d42b903418eJohannfi 543