diff options
author | Diego Biurrun <diego@biurrun.de> | 2010-03-23 22:59:14 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2010-03-23 22:59:14 +0000 |
commit | f684f3c58a77a20f18b80f888d69c2bacb53ca9b (patch) | |
tree | 98ba442bb7bdc4b6a30f92928abe019b43d692fb /libswscale | |
parent | 13bc1ac31abea96a1373fc1ea86b35afc8630cba (diff) | |
download | ffmpeg-f684f3c58a77a20f18b80f888d69c2bacb53ca9b.tar.gz |
AltiVec implies a PPC CPU, so there is no need to check for both.
Originally committed as revision 30954 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale.c | 2 | ||||
-rw-r--r-- | libswscale/utils.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 1d255bcb39..e297ef4f58 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -1262,7 +1262,7 @@ SwsFunc ff_getSwsFunc(SwsContext *c) } #else -#if ARCH_PPC && defined(COMPILE_ALTIVEC) +#ifdef COMPILE_ALTIVEC if (flags & SWS_CPU_CAPS_ALTIVEC) { sws_init_swScale_altivec(c); return swScale_altivec; diff --git a/libswscale/utils.c b/libswscale/utils.c index 03a9622aa7..804c01a71a 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -739,7 +739,7 @@ int sws_setColorspaceDetails(SwsContext *c, const int inv_table[4], int srcRange ff_yuv2rgb_c_init_tables(c, inv_table, srcRange, brightness, contrast, saturation); //FIXME factorize -#if ARCH_PPC && HAVE_ALTIVEC +#if HAVE_ALTIVEC if (c->flags & SWS_CPU_CAPS_ALTIVEC) ff_yuv2rgb_init_tables_altivec(c, inv_table, brightness, contrast, saturation); #endif @@ -1021,7 +1021,7 @@ SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat, srcFilter->chrV, dstFilter->chrV, c->param) < 0) goto fail; -#if ARCH_PPC && HAVE_ALTIVEC +#if HAVE_ALTIVEC FF_ALLOC_OR_GOTO(c, c->vYCoeffsBank, sizeof (vector signed short)*c->vLumFilterSize*c->dstH, fail); FF_ALLOC_OR_GOTO(c, c->vCCoeffsBank, sizeof (vector signed short)*c->vChrFilterSize*c->chrDstH, fail); @@ -1530,7 +1530,7 @@ void sws_freeContext(SwsContext *c) av_freep(&c->vChrFilter); av_freep(&c->hLumFilter); av_freep(&c->hChrFilter); -#if ARCH_PPC && HAVE_ALTIVEC +#if HAVE_ALTIVEC av_freep(&c->vYCoeffsBank); av_freep(&c->vCCoeffsBank); #endif |