• Martin Storsjö's avatar
    aarch64: vp9itxfm: Do separate functions for half/quarter idct16 and idct32 · a63da451
    Martin Storsjö authored
    This work is sponsored by, and copyright, Google.
    
    This avoids loading and calculating coefficients that we know will
    be zero, and avoids filling the temp buffer with zeros in places
    where we know the second pass won't read.
    
    This gives a pretty substantial speedup for the smaller subpartitions.
    
    The code size increases from 14740 bytes to 24292 bytes.
    
    The idct16/32_end macros are moved above the individual functions; the
    instructions themselves are unchanged, but since new functions are added
    at the same place where the code is moved from, the diff looks rather
    messy.
    
    Before:
    vp9_inv_dct_dct_16x16_sub1_add_neon:     236.7
    vp9_inv_dct_dct_16x16_sub2_add_neon:    1051.0
    vp9_inv_dct_dct_16x16_sub4_add_neon:    1051.0
    vp9_inv_dct_dct_16x16_sub8_add_neon:    1051.0
    vp9_inv_dct_dct_16x16_sub12_add_neon:   1387.4
    vp9_inv_dct_dct_16x16_sub16_add_neon:   1387.6
    vp9_inv_dct_dct_32x32_sub1_add_neon:     554.1
    vp9_inv_dct_dct_32x32_sub2_add_neon:    5198.5
    vp9_inv_dct_dct_32x32_sub4_add_neon:    5198.6
    vp9_inv_dct_dct_32x32_sub8_add_neon:    5196.3
    vp9_inv_dct_dct_32x32_sub12_add_neon:   6183.4
    vp9_inv_dct_dct_32x32_sub16_add_neon:   6174.3
    vp9_inv_dct_dct_32x32_sub20_add_neon:   7151.4
    vp9_inv_dct_dct_32x32_sub24_add_neon:   7145.3
    vp9_inv_dct_dct_32x32_sub28_add_neon:   8119.3
    vp9_inv_dct_dct_32x32_sub32_add_neon:   8118.7
    
    After:
    vp9_inv_dct_dct_16x16_sub1_add_neon:     236.7
    vp9_inv_dct_dct_16x16_sub2_add_neon:     640.8
    vp9_inv_dct_dct_16x16_sub4_add_neon:     639.0
    vp9_inv_dct_dct_16x16_sub8_add_neon:     842.0
    vp9_inv_dct_dct_16x16_sub12_add_neon:   1388.3
    vp9_inv_dct_dct_16x16_sub16_add_neon:   1389.3
    vp9_inv_dct_dct_32x32_sub1_add_neon:     554.1
    vp9_inv_dct_dct_32x32_sub2_add_neon:    3685.5
    vp9_inv_dct_dct_32x32_sub4_add_neon:    3685.1
    vp9_inv_dct_dct_32x32_sub8_add_neon:    3684.4
    vp9_inv_dct_dct_32x32_sub12_add_neon:   5312.2
    vp9_inv_dct_dct_32x32_sub16_add_neon:   5315.4
    vp9_inv_dct_dct_32x32_sub20_add_neon:   7154.9
    vp9_inv_dct_dct_32x32_sub24_add_neon:   7154.5
    vp9_inv_dct_dct_32x32_sub28_add_neon:   8126.6
    vp9_inv_dct_dct_32x32_sub32_add_neon:   8127.2
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    a63da451
Name
Last commit
Last update
avbuild Loading commit data...
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...
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...
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 Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
avconv.c Loading commit data...
avconv.h Loading commit data...
avconv_dxva2.c Loading commit data...
avconv_filter.c Loading commit data...
avconv_opt.c Loading commit data...
avconv_qsv.c Loading commit data...
avconv_vaapi.c Loading commit data...
avconv_vda.c Loading commit data...
avconv_vdpau.c Loading commit data...
avplay.c Loading commit data...
avprobe.c Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
configure Loading commit data...