[MPlayer-dev-eng] [PATCH] vf_ass: avoid a division
Nicolas George
nicolas.george at normalesup.org
Wed Sep 15 16:25:09 CEST 2010
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.
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-vfasstestzero-20100915.diff
Type: text/x-diff
Size: 785 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100915/812ffbb8/attachment.diff>
More information about the MPlayer-dev-eng
mailing list