[FFmpeg-devel] [PATCH] fix --enable-runtime-cpudetect --disable-amd3dnow compilation

Michael Niedermayer michaelni
Sun Sep 5 01:08:43 CEST 2010

On Fri, Sep 03, 2010 at 06:06:11PM -0400, Alexander Strange wrote:
> CC      libswscale/swscale.o
> ...
> libswscale/swscale.c: In function ?ff_getSwsFunc?:
> libswscale/swscale.c:1268: warning: implicit declaration of function ?sws_init_swScale_3DNow?
> libswscale/swscale.c:1269: error: ?swScale_3DNow? undeclared (first use in this function)
> libswscale/swscale.c:1269: error: (Each undeclared identifier is reported only once
> libswscale/swscale.c:1269: error: for each function it appears in.)
> Alternatively, it could declare prototypes for sws_init_swScale_3DNow / swScale_3DNow even if they aren't being compiled.
> That would let us use "if (COMPILE_TEMPLATE_AMD3DNOW && flags & SWS_CPU_CAPS_3DNOW)" instead of #ifdefs. But it might make some of the other templating more complex. 

the code was designed for 2 cases
1. runtime cpu detection (for distros) to support whatever cpu the user has
2. compiletime detection (for an individual user) to support his cpu

what is it that you are trying to do?
finding some arbitrary (possibly nonsencical) flag combinations that fail?
if iam guessing correctly then ithink we first should ask if this combinatio
of flags makes any sense

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Asymptotically faster algorithms should always be preferred if you have
asymptotical amounts of data
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100905/70a14714/attachment.pgp>

More information about the ffmpeg-devel mailing list