summaryrefslogtreecommitdiff
path: root/libswscale/ppc/swscale_altivec.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-10-11 01:06:04 +0200
committerDiego Biurrun <diego@biurrun.de>2013-08-29 10:23:41 +0200
commitc2503d9c8ab42ea55922e9f5a10c8bfbbbfeaf19 (patch)
tree9ee2bc7b2c538a06cc613b0e5f18bc490179461f /libswscale/ppc/swscale_altivec.c
parent6af2c351b3ae61e4478950ffddd0dfcad06188b8 (diff)
swscale: ppc: Hide arch-specific initialization details
Also give consistent names to init functions.
Diffstat (limited to 'libswscale/ppc/swscale_altivec.c')
-rw-r--r--libswscale/ppc/swscale_altivec.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libswscale/ppc/swscale_altivec.c b/libswscale/ppc/swscale_altivec.c
index b0e25d041a..7e00488a61 100644
--- a/libswscale/ppc/swscale_altivec.c
+++ b/libswscale/ppc/swscale_altivec.c
@@ -30,6 +30,7 @@
#include "libavutil/cpu.h"
#include "yuv2rgb_altivec.h"
+#if HAVE_ALTIVEC
#define vzero vec_splat_s32(0)
#define yuv2planeX_8(d1, d2, l1, src, x, perm, filter) do { \
@@ -284,9 +285,11 @@ static void hScale_altivec_real(SwsContext *c, int16_t *dst, int dstW,
}
}
}
+#endif /* HAVE_ALTIVEC */
-av_cold void ff_sws_init_swScale_altivec(SwsContext *c)
+av_cold void ff_sws_init_swscale_ppc(SwsContext *c)
{
+#if HAVE_ALTIVEC
enum AVPixelFormat dstFormat = c->dstFormat;
if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))
@@ -325,4 +328,5 @@ av_cold void ff_sws_init_swScale_altivec(SwsContext *c)
break;
}
}
+#endif /* HAVE_ALTIVEC */
}