[FFmpeg-devel] [PATCH] swscale/ppc: VSX-optimize yuv2rgb_full_2

Lauri Kasanen cand at gmx.com
Sun Apr 7 09:18:38 EEST 2019


On Mon, 1 Apr 2019 13:13:59 +0300
Lauri Kasanen <cand at gmx.com> wrote:

> ./ffmpeg -f lavfi -i yuvtestsrc=duration=1:size=1200x1440 -sws_flags area \
>             -s 1200x720 -f null -vframes 100 -pix_fmt $i -nostats \
>             -cpuflags 0 -v error -
>
> 32-bit mul, power8 only.
>
> ~4x speedup:
>
> rgb24
>   52763 UNITS in yuv2packed2,   16384 runs,      0 skips
>   13453 UNITS in yuv2packed2,   16384 runs,      0 skips
> bgr24
>   53144 UNITS in yuv2packed2,   16384 runs,      0 skips
>   13616 UNITS in yuv2packed2,   16384 runs,      0 skips
> rgba
>   52796 UNITS in yuv2packed2,   16384 runs,      0 skips
>   12904 UNITS in yuv2packed2,   16384 runs,      0 skips
> bgra
>   52732 UNITS in yuv2packed2,   16384 runs,      0 skips
>   13262 UNITS in yuv2packed2,   16384 runs,      0 skips
> argb
>   52661 UNITS in yuv2packed2,   16384 runs,      0 skips
>   12879 UNITS in yuv2packed2,   16384 runs,      0 skips
> bgra
>   52662 UNITS in yuv2packed2,   16384 runs,      0 skips
>   12932 UNITS in yuv2packed2,   16384 runs,      0 skips
>
> Signed-off-by: Lauri Kasanen <cand at gmx.com>
> ---
>  libswscale/ppc/swscale_vsx.c | 166 +++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 166 insertions(+)

Applying.

- Lauri


More information about the ffmpeg-devel mailing list