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

Dan Oscarsson Dan.Oscarsson at tieto.com
Wed Sep 15 15:54:04 CEST 2010


ons 2010-09-15 klockan 15:22 +0200 skrev Nicolas George:
> 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
> )

Nice. If you have a .srt file which I assume uses the older osd code to
display, what results do you get then instead of ass.

I just wonder how ass is compared to simple subtitles.

  Dan



More information about the MPlayer-dev-eng mailing list