[FFmpeg-devel] [PATCH] make building swscale rgb template conditional
Michael Niedermayer
michaelni
Wed Aug 25 17:11:34 CEST 2010
On Wed, Aug 25, 2010 at 03:37:00PM +0100, M?ns Rullg?rd wrote:
> Luca Barbato <lu_zero at gentoo.org> writes:
>
> > On 08/25/2010 10:52 AM, Michael Niedermayer wrote:
> >>> Why does libswscale have to be this disgustingly ugly? There's none
> >>> of this ifdef hell in libavcodec, and it has many more different kinds
> >>> of asm.
> >>
> >> thats because swscale has more features. like being able to be compiled
> >> with just mmx2 code or just mmx code
> >
> > It's just because of the convoluted template machinery, expanding the
> > whole thing or using make targets instead of multiple inclusions would
> > probably simplify a bit the whole thing.
>
> There are templates in libavcodec too, but it seems to get away with
> much fewer ifdefs.
thats because they do not support compiling just part of the optimizations
like just whats relevant for mmx2 cpus
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- 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/20100825/fbc27a54/attachment.pgp>
More information about the ffmpeg-devel
mailing list