1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
FFmpeg/libswscale/ppc
Daniel Kolesa 1bdb47b734 swscale: Replace illegal vector keyword usage in altivec code
While this technically compiles in current ffmpeg, this is only
because ffmpeg is compiled in strict ISO C mode, which disables
the builtin 'vector' keyword for AltiVec/VSX. Instead this gets
replaced with a macro inside altivec.h, which defines vector to
be actually __vector, which accepts random types.

Normally, the vector keyword should be used only with plain
scalar non-typedef types, such as unsigned int. But we have the
vec_(s|u)(8|16|32) macros, which can be used in a portable manner,
in util_altivec.h in libavutil.

This is also consistent with other AltiVec/VSX code elsewhere in
the tree.

Fixes #7861.

Signed-off-by: Daniel Kolesa <daniel@octaforge.org>
Signed-off-by: Lauri Kasanen <cand@gmx.com>
2019-10-04 08:58:17 +03:00
..
Makefile swscale/ppc: Move VSX-using code to its own file 2018-12-04 02:59:07 +01:00
swscale_altivec.c swscale: Replace illegal vector keyword usage in altivec code 2019-10-04 08:58:17 +03:00
swscale_ppc_template.c swscale/ppc: Add av_unused to template vars only used in one includer 2019-03-20 10:21:55 +02:00
swscale_vsx.c swscale: Replace illegal vector keyword usage in altivec code 2019-10-04 08:58:17 +03:00
yuv2rgb_altivec.c lsws/ppc/yuv2rgb_altivec: Replace vec_lvsl/vec_perm with vec_xl 2019-08-13 02:21:24 +02:00
yuv2rgb_altivec.h
yuv2yuv_altivec.c