[FFmpeg-devel] [PATCH v2 resend] swscale/ppc: VSX-optimize yuv2rgb_full

Lauri Kasanen cand at gmx.com
Wed Mar 27 09:04:41 EET 2019


On Thu, 21 Mar 2019 09:54:17 +0200
Lauri Kasanen <cand at gmx.com> wrote:

> ./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
>
> Signed-off-by: Lauri Kasanen <cand at gmx.com>
> ---
>  libswscale/ppc/swscale_vsx.c | 291 +++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 291 insertions(+)
>
> v2: HAVE_POWER8 from ifdef to if
> Resending due to mail client troubles

Applying.

- Lauri


More information about the ffmpeg-devel mailing list