[FFmpeg-devel] [PATCH v2] swscale/ppc: disable YUV2RGB AltiVec acceleration
Sean McGovern
gseanmcg at gmail.com
Sun Nov 24 21:01:48 EET 2024
The FATE test 'checkasm-sw_yuv2rgb' currently fails on this platform,
in both little- and big-endian configurations.
Disable it by default.
Add '-DSWS_USE_ALTIVEC_YUV2RGB' to CPPFLAGS to re-enable it.
---
v2: rebased over top of the recent swscale changes from Nik Haas
---
libswscale/ppc/yuv2rgb_altivec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libswscale/ppc/yuv2rgb_altivec.c b/libswscale/ppc/yuv2rgb_altivec.c
index 57574c4ab3..f44733a880 100644
--- a/libswscale/ppc/yuv2rgb_altivec.c
+++ b/libswscale/ppc/yuv2rgb_altivec.c
@@ -558,6 +558,7 @@ av_cold SwsFunc ff_yuv2rgb_init_ppc(SwsInternal *c)
if ((c->opts.src_h & 0x1) != 0)
return NULL;
+#ifdef SWS_USE_ALTIVEC_YUV2RGB
switch (c->opts.dst_format) {
case AV_PIX_FMT_RGB24:
av_log(c, AV_LOG_WARNING, "ALTIVEC: Color Space RGB24\n");
@@ -579,6 +580,7 @@ av_cold SwsFunc ff_yuv2rgb_init_ppc(SwsInternal *c)
return altivec_yuv2_bgra;
default: return NULL;
}
+#endif /* SWS_USE_ALTIVEC_YUV2RGB */
break;
case AV_PIX_FMT_UYVY422:
--
2.39.5
More information about the ffmpeg-devel
mailing list