subs, vo: do sub bitmap change detection by comparing IDs
commit89a0e4729a81a3e5a59cf07f677179067ea3d1b4
authorUoti Urpala <uau@mplayer2.org>
Tue, 28 Aug 2012 16:12:27 +0000 (28 19:12 +0300)
committerUoti Urpala <uau@mplayer2.org>
Fri, 31 Aug 2012 17:30:42 +0000 (31 20:30 +0300)
treee2f416354caea52df63dcecd8e3af6e9554f9dbb
parentdcdc8b433b2e3426f83337b6e1bfcb8956a01723
subs, vo: do sub bitmap change detection by comparing IDs

vo_vdpau and vo_gl cache the last subtitle bitmaps uploaded to video
card in case they stay the same over multiple frames. Detecting
whether the bitmaps have changed and should be re-uploaded was
somewhat fragile. Change the VO API to provide a bitmap ID which can
be compared with what the VO has to determine whether a new upload of
the bitmaps is needed.
libmpcodecs/vf_vo.c
libvo/vo_gl.c
libvo/vo_vdpau.c
sub/dec_sub.c
sub/dec_sub.h
sub/sd_ass.c