[MPlayer-dev-eng] [PATCH] A new ASS renderer

Xidorn Quan quanxunzhen at gmail.com
Sat Sep 22 14:02:36 CEST 2012


Hi,

The patch attached is a new ASS renderer which is optimized for
subtitles with few effects. For me, this new renderer is nearly
2x faster on average than the current one for those subtitles.

I found that most subtitles keep unchanged across several frames,
while vf_ass renders them over and over again for every images in it.

This new renderer renders that images to one image with alpha channal
when subtitle changes, then it simply does pixel weighted addition for
new frame and the image. The second step is very fast, cache-friendly
and easy to be further optimized, for example, by using SIMD.

In this patch, I moved get_image, blank, and prepare_image from
vf_ass.c to ass_common.c and color converting macros to ass_common.h
so that I can reuse them in vf_ass2.

To use this new renderer, just add "-vf ass2" to the comand line.

Best Regards,
Xidorn Quan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer_vf_ass2.patch
Type: application/octet-stream
Size: 33932 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20120922/c6fcabc8/attachment-0001.obj>


More information about the MPlayer-dev-eng mailing list