[FFmpeg-devel] [PATCH] swscale: Altivec does not depend on GPL.

Michael Niedermayer michaelni
Sun Apr 5 23:13:02 CEST 2009


On Sun, Apr 05, 2009 at 10:08:45PM +0100, M?ns Rullg?rd wrote:
> Michael Niedermayer <michaelni at gmx.at> writes:
> 
> > On Sun, Apr 05, 2009 at 02:09:27PM -0300, Ramiro Polla wrote:
> >> Hi,
> >> 
> >> This fixes a build error reported by a vlc dev in which
> >> RUNTIME_CPUDETECT and GPL were specified.
> >> 
> >> Ramiro Polla
> >
> >> From 268e024ce67174fd0f9aa7bc154ee39eec22e50c Mon Sep 17 00:00:00 2001
> >> From: ramiro <ramiro at ramiro-q6600.(none)>
> >> Date: Sun, 5 Apr 2009 14:02:16 -0300
> >> Subject: [PATCH] swscale: Altivec does not depend on GPL.
> >> 
> >> ---
> >>  swscale.c |   17 ++++++++---------
> >>  1 files changed, 8 insertions(+), 9 deletions(-)
> >> 
> >> diff --git a/swscale.c b/swscale.c
> >> index fbc5e1d..bcfc688 100644
> >> --- a/swscale.c
> >> +++ b/swscale.c
> >
> >> @@ -1096,13 +1096,12 @@ static void fillPlane(uint8_t* plane, int stride, int width, int height, int y,
> >>  
> >>  //Note: we have C, X86, MMX, MMX2, 3DNOW versions, there is no 3DNOW+MMX2 one
> >>  //Plain C versions
> >> -#if !HAVE_MMX || defined (RUNTIME_CPUDETECT) || !CONFIG_GPL
> >> +#if (!HAVE_MMX && !HAVE_ALTIVEC) || (HAVE_MMX && !CONFIG_GPL) || defined (RUNTIME_CPUDETECT)
> >>  #define COMPILE_C
> >>  #endif
> >
> > HAVE_MMX && !CONFIG_GPL should be false
> 
> Why?  There is a lot of LGPL MMX code in lavc, and the HAVE_* defines
> are global to the build.

I of course meant in swscale.c
why should the flags differ in there? because it is simpler and more readable


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090405/e634b689/attachment.pgp>



More information about the ffmpeg-devel mailing list