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

Nicolas George nicolas.george at normalesup.org
Wed Sep 15 15:22:56 CEST 2010


Hi.

The attached patch avoids a division in the inner loops of the alpha
blending code of vf_ass.

On my box, it gives about +4.6% speed.

(For ten runs, without subs: 0.66s ± 0.047s, original with a lot of subs:
5.44s ± 0.056, modified: 5.22s ± 0.052; command line:
./mplayer -vo xv -ass -sub big.ass -really-quiet -demuxer rawvideo -rawvideo
w=640:h=400:format=y8:fps=50 /dev/zero -endpos 10.1
)

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-vfassnodiv-20100915.diff
Type: text/x-diff
Size: 1064 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100915/7d4ea000/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100915/7d4ea000/attachment.pgp>


More information about the MPlayer-dev-eng mailing list