1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-02 03:06:28 +02:00
FFmpeg/libswscale/ppc
Lauri Kasanen 46c5693ea3 swscale/output: Altivec-optimize yuv2plane1_8
./ffmpeg_g -f rawvideo -pix_fmt rgb24 -s hd1080 -i /dev/zero -pix_fmt yuv420p \
-f null -vframes 100 -v error -nostats -

1158 UNITS in planar1,   65528 runs,      8 skips

-cpuflags 0

19082 UNITS in planar1,   65533 runs,      3 skips

16.48 speedup ratio. On x86, SSE2 is ~7. Curiously, the Power C version
takes as many cycles as the x86 SSE2 version, yikes it's fast.

Note that this function uses VSX instructions, but is not marked so.
This is because several existing functions also make that mistake.
I'll submit a patch moving them once this is reviewed.

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-11-26 02:56:25 +01:00
..
Makefile Revert "PPC64: Add versions of functions in libswscale/input.c optimized for POWER8 VSX SIMD." 2016-07-11 10:15:05 -04:00
swscale_altivec.c swscale/output: Altivec-optimize yuv2plane1_8 2018-11-26 02:56:25 +01:00
yuv2rgb_altivec.c Merge commit '0f40c9098498ad90dbbd2380eb4269015e84bde4' 2016-06-21 15:26:20 +02:00
yuv2rgb_altivec.h
yuv2yuv_altivec.c