• Lauri Kasanen's avatar
    swscale/ppc: VSX-optimize yuv2rgb_full · 681957b8
    Lauri Kasanen authored
    ./ffmpeg -f lavfi -i yuvtestsrc=duration=1:size=1200x1440 \
            -s 1200x1440 -f null -vframes 100 -pix_fmt $i -nostats \
            -cpuflags 0 -v error -
    
    This uses 32-bit mul, so POWER8 only.
    
    The following output formats get about 4.5x speedup:
    
    rgb24
      39980 UNITS in yuv2packed1,   32768 runs,      0 skips
       8774 UNITS in yuv2packed1,   32768 runs,      0 skips
    bgr24
      40069 UNITS in yuv2packed1,   32768 runs,      0 skips
       8772 UNITS in yuv2packed1,   32766 runs,      2 skips
    rgba
      39759 UNITS in yuv2packed1,   32768 runs,      0 skips
       8681 UNITS in yuv2packed1,   32767 runs,      1 skips
    bgra
      39729 UNITS in yuv2packed1,   32768 runs,      0 skips
       8696 UNITS in yuv2packed1,   32766 runs,      2 skips
    argb
      39766 UNITS in yuv2packed1,   32768 runs,      0 skips
       8672 UNITS in yuv2packed1,   32766 runs,      2 skips
    bgra
      39784 UNITS in yuv2packed1,   32768 runs,      0 skips
       8659 UNITS in yuv2packed1,   32767 runs,      1 skips
    681957b8
Name
Last commit
Last update
..
aarch64 Loading commit data...
arm Loading commit data...
ppc Loading commit data...
tests Loading commit data...
x86 Loading commit data...
Makefile Loading commit data...
alphablend.c Loading commit data...
bayer_template.c Loading commit data...
gamma.c Loading commit data...
hscale.c Loading commit data...
hscale_fast_bilinear.c Loading commit data...
input.c Loading commit data...
libswscale.v Loading commit data...
log2_tab.c Loading commit data...
options.c Loading commit data...
output.c Loading commit data...
rgb2rgb.c Loading commit data...
rgb2rgb.h Loading commit data...
rgb2rgb_template.c Loading commit data...
slice.c Loading commit data...
swscale.c Loading commit data...
swscale.h Loading commit data...
swscale_internal.h Loading commit data...
swscale_unscaled.c Loading commit data...
swscaleres.rc Loading commit data...
utils.c Loading commit data...
version.h Loading commit data...
vscale.c Loading commit data...
yuv2rgb.c Loading commit data...