[MPlayer-dev-eng] [PATCH] altivec scaler performance enhancement

Ivan Kalvachev ikalvachev at gmail.com
Fri Feb 10 14:56:15 CET 2006


2006/2/10, Alan Curry <pacman at theworld.com>:
> Michael Niedermayer writes the following:
> >
> >Hi
> >
> >On Tue, Feb 07, 2006 at 05:50:56AM -0500, Alan Curry wrote:
> >> It would be better, I think, to just build the vectors that you're actually
> >> going to use. Or build them all just once and preserve them in the
> >> SwsContext, since they are just expanded versions of the v{Lum,Chr}Filter
> >> that is already in there.
> >
> >yes
> >
>
> This is the patch to move the v{Y,C}CoeffsBank vectors into the SwsContext,
> filling them in just once when the scaler is initialized, instead of building
> them and freeing them over and over. In my tests, it cuts CPU usage in half
> or better. Not just the scaler's CPU usage - the usage of the entire mplayer
> process! One of my tests went from being a 94% CPU hog to 33%.
>
> As with most of the other patches I've sent recently, this only affects
> scaled YV12->RGB/BGR and (scaled or unscaled) YVU9->RGB/BGR. Try playing
> anything with -vf scale=300:-2 -vo x11 and watch the system load.

Alan, do you have interest in long term work on mplayer?

I think all would be happy if you join mplayer team as developer.




More information about the MPlayer-dev-eng mailing list