[MPlayer-dev-eng] [PATCH] ASS - detect changes to speed up -vo gl

Evgeniy Stepanov eugeni.stepanov at gmail.com
Sun Oct 29 14:43:21 CET 2006


On Saturday 28 October 2006 20:05, Jindrich Makovicka wrote:
> the attached patch adds a subtitle change detection to libass. It is a
> quite brute force approach, but it significantly reduces the cpu load
> when using -vo gl, as the texture uploads are costly (at least on
> nVidia 6600 + build 9625). With the patch, the textures are uploaded
> only when the EOSD actually changes.

I suggest removing images_root and making it caller's responsibility to 
deallocate the list of images. Libass will provide functions for comparing 
two lists and for deallocating a list. Then, vo_gl can keep ass_images_prev 
and compare it with the new one.

This looks like a cleaner solution to me. It also allows comparing two 
arbitrary lists, not only the current list with the previous one.



More information about the MPlayer-dev-eng mailing list