[FFmpeg-devel] libavutil simd

Luca Barbato lu_zero
Mon Oct 1 21:35:41 CEST 2007


Michael Niedermayer wrote:
> Hi
> 
> On Mon, Oct 01, 2007 at 02:31:13PM +0200, Luca Barbato wrote:
>> Michael Niedermayer wrote:
>>> and all who disagree with that please think a little, would you want libc
>>> to fork or install a sigill handlder when you call sqrt() printf() or any
>>> other simple function?
>>> and besides wanting or not do you think that if libc did that, it would work
>>> with no sideeffects?
>> What about having an av_check_cpu_features in which you check by ANY
>> means the features and sets accordingly the library functions/a flag
>> (pretty much as we generate tables and so on)?
> 
> well, first an application (another lib which uses libavutil being a good
> example) which cannot use fork() / ... must be able to use lavutil with full
> simd

That implies switching implementation at buildtime and live with it for
now, I assume.

> after that we can discuss the advantages and disadvantages of your suggestion
> in addition to the then existing system though it mostly looks redundant

The current system for simd isn't in libavutil nor libavformat and it is
duplicated somewhat in libswscale.

lu

-- 

Luca Barbato

Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero




More information about the ffmpeg-devel mailing list