• Martin Storsjö's avatar
    arm: vp9: Add NEON itxfm routines · b4dc7c34
    Martin Storsjö authored
    This work is sponsored by, and copyright, Google.
    
    For the transforms up to 8x8, we can fit all the data (including
    temporaries) in registers and just do a straightforward transform
    of all the data. For 16x16, we do a transform of 4x16 pixels in
    4 slices, using a temporary buffer. For 32x32, we transform 4x32
    pixels at a time, in two steps of 4x16 pixels each.
    
    Examples of relative speedup compared to the C version, from checkasm:
                             Cortex       A7     A8     A9    A53
    vp9_inv_adst_adst_4x4_add_neon:     3.39   5.83   4.17   4.01
    vp9_inv_adst_adst_8x8_add_neon:     3.79   4.86   4.23   3.98
    vp9_inv_adst_adst_16x16_add_neon:   3.33   4.36   4.11   4.16
    vp9_inv_dct_dct_4x4_add_neon:       4.06   6.16   4.59   4.46
    vp9_inv_dct_dct_8x8_add_neon:       4.61   6.01   4.98   4.86
    vp9_inv_dct_dct_16x16_add_neon:     3.35   3.44   3.36   3.79
    vp9_inv_dct_dct_32x32_add_neon:     3.89   3.50   3.79   4.42
    vp9_inv_wht_wht_4x4_add_neon:       3.22   5.13   3.53   3.77
    
    Thus, the speedup vs C code is around 3-6x.
    
    This is mostly marginally faster than the corresponding routines
    in libvpx on most cores, tested with their 32x32 idct (compared to
    vpx_idct32x32_1024_add_neon). These numbers are slightly in libvpx's
    favour since their version doesn't clear the input buffer like ours
    do (although the effect of that on the total runtime probably is
    negligible.)
    
                               Cortex       A7       A8       A9      A53
    vp9_inv_dct_dct_32x32_add_neon:    18436.8  16874.1  14235.1  11988.9
    libvpx vpx_idct32x32_1024_add_neon 20789.0  13344.3  15049.9  13030.5
    
    Only on the Cortex A8, the libvpx function is faster. On the other cores,
    ours is slightly faster even though ours has got source block clearing
    integrated.
    
    This is an adapted cherry-pick from libav commits
    a67ae670 and
    52d196fb.
    Signed-off-by: 's avatarRonald S. Bultje <rsbultje@gmail.com>
    b4dc7c34
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
arch.mak Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
cmdutils_common_opts.h Loading commit data...
cmdutils_opencl.c Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
ffmpeg.c Loading commit data...
ffmpeg.h Loading commit data...
ffmpeg_cuvid.c Loading commit data...
ffmpeg_dxva2.c Loading commit data...
ffmpeg_filter.c Loading commit data...
ffmpeg_opt.c Loading commit data...
ffmpeg_qsv.c Loading commit data...
ffmpeg_vaapi.c Loading commit data...
ffmpeg_vdpau.c Loading commit data...
ffmpeg_videotoolbox.c Loading commit data...
ffplay.c Loading commit data...
ffprobe.c Loading commit data...
ffserver.c Loading commit data...
ffserver_config.c Loading commit data...
ffserver_config.h Loading commit data...
library.mak Loading commit data...
version.sh Loading commit data...