[FFmpeg-devel] [PATCH] make building swscale rgb template conditional

Måns Rullgård mans
Wed Aug 25 16:37:00 CEST 2010

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.

M?ns Rullg?rd
mans at mansr.com

More information about the ffmpeg-devel mailing list