diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-10-11 01:06:04 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-08-29 10:23:41 +0200 |
commit | c2503d9c8ab42ea55922e9f5a10c8bfbbbfeaf19 (patch) | |
tree | 9ee2bc7b2c538a06cc613b0e5f18bc490179461f /libswscale/ppc/yuv2yuv_altivec.c | |
parent | 6af2c351b3ae61e4478950ffddd0dfcad06188b8 (diff) | |
download | ffmpeg-c2503d9c8ab42ea55922e9f5a10c8bfbbbfeaf19.tar.gz |
swscale: ppc: Hide arch-specific initialization details
Also give consistent names to init functions.
Diffstat (limited to 'libswscale/ppc/yuv2yuv_altivec.c')
-rw-r--r-- | libswscale/ppc/yuv2yuv_altivec.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libswscale/ppc/yuv2yuv_altivec.c b/libswscale/ppc/yuv2yuv_altivec.c index 5aa1820351..9a7177bb5c 100644 --- a/libswscale/ppc/yuv2yuv_altivec.c +++ b/libswscale/ppc/yuv2yuv_altivec.c @@ -28,6 +28,8 @@ #include "libswscale/swscale_internal.h" #include "libavutil/cpu.h" +#if HAVE_ALTIVEC + static int yv12toyuy2_unscaled_altivec(SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dstParam[], @@ -179,8 +181,11 @@ static int yv12touyvy_unscaled_altivec(SwsContext *c, const uint8_t *src[], return srcSliceH; } -void ff_swscale_get_unscaled_altivec(SwsContext *c) +#endif /* HAVE_ALTIVEC */ + +void ff_swscale_get_unscaled_ppc(SwsContext *c) { +#if HAVE_ALTIVEC if ((av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) && !(c->srcW & 15) && !(c->flags & SWS_BITEXACT) && c->srcFormat == AV_PIX_FMT_YUV420P) { enum AVPixelFormat dstFormat = c->dstFormat; @@ -191,4 +196,5 @@ void ff_swscale_get_unscaled_altivec(SwsContext *c) else if (dstFormat == AV_PIX_FMT_UYVY422) c->swScale = yv12touyvy_unscaled_altivec; } +#endif /* HAVE_ALTIVEC */ } |