diff options
author | James Almer <jamrial@gmail.com> | 2014-05-19 00:02:21 -0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-08 02:37:20 +0200 |
commit | fc8db12a73f12377b56d8bf53cd6ce25968094c4 (patch) | |
tree | 8f2cb55d121b951057bffec4e24207fe219dc47b /libavcodec/x86/vp9dsp_init.c | |
parent | 5183fac92fc5c574a053dd06b84e735a1ec1cfa6 (diff) | |
download | ffmpeg-fc8db12a73f12377b56d8bf53cd6ce25968094c4.tar.gz |
x86/vp9: inital AVX2 intra_pred
tos3k-vp9-b10000.webm on a Core i5-4200U @1.6GHz
1219 decicycles in ff_vp9_ipred_dc_32x32_ssse3, 131070 runs, 2 skips
439 decicycles in ff_vp9_ipred_dc_32x32_avx2, 131070 runs, 2 skips
3570 decicycles in ff_vp9_ipred_dc_top_32x32_ssse3, 4096 runs, 0 skips
2494 decicycles in ff_vp9_ipred_dc_top_32x32_avx2, 4096 runs, 0 skips
1419 decicycles in ff_vp9_ipred_dc_left_32x32_ssse3, 16384 runs, 0 skips
717 decicycles in ff_vp9_ipred_dc_left_32x32_avx2, 16384 runs, 0 skips
2737 decicycles in ff_vp9_ipred_tm_32x32_avx, 1024 runs, 0 skips
2088 decicycles in ff_vp9_ipred_tm_32x32_avx2, 1024 runs, 0 skips
3090 decicycles in ff_vp9_ipred_v_32x32_avx, 512 runs, 0 skips
2226 decicycles in ff_vp9_ipred_v_32x32_avx2, 512 runs, 0 skips
1565 decicycles in ff_vp9_ipred_h_32x32_avx, 1024 runs, 0 skips
922 decicycles in ff_vp9_ipred_h_32x32_avx2, 1024 runs, 0 skips
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/x86/vp9dsp_init.c')
-rw-r--r-- | libavcodec/x86/vp9dsp_init.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libavcodec/x86/vp9dsp_init.c b/libavcodec/x86/vp9dsp_init.c index 3fd274d17f..b04e678118 100644 --- a/libavcodec/x86/vp9dsp_init.c +++ b/libavcodec/x86/vp9dsp_init.c @@ -241,6 +241,13 @@ ipred_funcs(hd, ssse3, avx); ipred_funcs(vl, ssse3, avx); ipred_funcs(vr, ssse3, avx); +ipred_func(32, dc, avx2); +ipred_func(32, dc_left, avx2); +ipred_func(32, dc_top, avx2); +ipred_func(32, v, avx2); +ipred_func(32, h, avx2); +ipred_func(32, tm, avx2); + #undef ipred_funcs #undef ipred_func_set #undef ipred_func @@ -388,6 +395,15 @@ av_cold void ff_vp9dsp_init_x86(VP9DSPContext *dsp) init_ipred(TX_32X32, 32, avx); } + if (EXTERNAL_AVX2(cpu_flags)) { + dsp->intra_pred[TX_32X32][DC_PRED] = ff_vp9_ipred_dc_32x32_avx2; + dsp->intra_pred[TX_32X32][LEFT_DC_PRED] = ff_vp9_ipred_dc_left_32x32_avx2; + dsp->intra_pred[TX_32X32][TOP_DC_PRED] = ff_vp9_ipred_dc_top_32x32_avx2; + dsp->intra_pred[TX_32X32][VERT_PRED] = ff_vp9_ipred_v_32x32_avx2; + dsp->intra_pred[TX_32X32][HOR_PRED] = ff_vp9_ipred_h_32x32_avx2; + dsp->intra_pred[TX_32X32][TM_VP8_PRED] = ff_vp9_ipred_tm_32x32_avx2; + } + #undef init_fpel #undef init_subpel1 #undef init_subpel2 |