[Ffmpeg-devel] Compile swscale examples

Luca Abeni lucabe72
Sun Aug 20 21:51:52 CEST 2006


Hi Michael,

On Sun, 2006-08-20 at 19:44 +0200, Michael Niedermayer wrote:
[...]
> > > iam against this, whichever code uses mp_msg in swscale should be changed
> > Well, it's not in swscale :)
> > cs_test needs ../cpudetect.c, which uses mp_msg.
> > I did the simplest change that permitted to compile the test without
> > changing its semantic. If needed, I can try to modify it to avoid using
> > files outside libswscale
> 
> either that (pass cpu capailities from command line maybe?) or put a
> #warn FIXME this is a quick hack to make it compile 
> or similar there so we wont forget that this isnt really how its supposed
> to be
Ok, I implemented the settings of cpu capabilities from command line
(for the moment, only MMX, MMX2, and 3DNOW are implemented).

Is the attached patch ok?

I tried to play a little bit with the resulting cs_test (trying to
enable MMX, MMX2, and 3DNOW on an AMD turion in 32 bit mode, under
linux), and it always said that all the tests are passed.



			Thanks,
				Luca

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-sws-examples-1.diff
Type: text/x-patch
Size: 2065 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060820/bc5a738c/attachment.bin>



More information about the ffmpeg-devel mailing list