[MPlayer-dev-eng] [PATCH] vf_ass: avoid a division

Clément Bœsch ubitux at gmail.com
Wed Sep 15 16:32:46 CEST 2010


On Wed, Sep 15, 2010 at 04:25:09PM +0200, Nicolas George wrote:
> Le nonidi 29 fructidor, an CCXVIII, Nicolas George a écrit :
> > The attached patch avoids a division in the inner loops of the alpha
> > blending code of vf_ass.
> 
> And this new test if alpha is 0 before blending, like most OSD blending
> functions do.
> 
> On my box, the benchmark gives 4.93s ± 0.045, which means +6.3% on top of
> the previous patch, +10.7 from original.
> 
> It needs a reindent afterwards.
> 

Maybe you can simply use continue to avoid the reindent.

-- 
Clément B.


More information about the MPlayer-dev-eng mailing list