[MPlayer-dev-eng] Faster libaf

Alex Beregszaszi alex at fsn.hu
Tue Dec 28 20:44:08 CET 2004


Hi,

Attached is a patch which adds a new function to libaf in order to open
the doors for _speed_.

I'm going to commit it in the next few days, as it doesn't affects
anything - being only optional.

The idea: two iterations of af_play theoretically can accept different
input formats, this makes adding huge if-else blocks in the play
functions of the filters necsessary. Adding af_play_fixed solves it, but
only if you add the appropriate flag to the module and also implement
play_fixed.

It should be done as writing fast implementations for the most common
ways and set the functions pointer to that. As a fallback the original
if-else play() can be used as well, as the arguments are the same.

What do you think? I know it looks like crap (and it is) but still
better than the current situation.

-- 
Alex Beregszaszi 			e-mail: alex at fsn.hu
Free Software Network			cell: +36 70 3144424
-------------- next part --------------
A non-text attachment was scrubbed...
Name: af_play_fixed.patch
Type: text/x-diff
Size: 2880 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20041228/6ad92083/attachment.patch>


More information about the MPlayer-dev-eng mailing list