core, vo: modify OSD redraw architecture, support EOSD
commitad0348cf0a7459c0581deaf3ed7d8b73a12cc73f
authorUoti Urpala <uau@mplayer2.org>
Mon, 5 Dec 2011 03:24:18 +0000 (5 05:24 +0200)
committerUoti Urpala <uau@mplayer2.org>
Tue, 6 Dec 2011 03:03:39 +0000 (6 05:03 +0200)
tree206975ec6720a6d3605cc1b9d4c1a603898b3458
parentc9553ce82fdb80811196f40b9c1eaaa3b2351e01
core, vo: modify OSD redraw architecture, support EOSD

Previously the core sent VFCTRL_REDRAW_OSD to change OSD contents over
the current frame. Change this to VFCTRL_REDRAW_FRAME followed by
normal EOSD and OSD drawing calls, then vo_flip_page(). The new
version supports changing EOSD contents for libass-rendered subtitles
and simplifies the redraw support code needed per VO. vo_xv doesn't
support EOSD changes because it relies on vf_ass to render EOSD
contents earlier in the filter chain.

vo_xv logic is additionally simplified because the previous commit
removed the need to track the status of current and next images
separately (now each frame is guaranteed to become "visible" soon
after we receive it as "next", with no VO code running in the interval
between).
14 files changed:
libmpcodecs/dec_video.c
libmpcodecs/dec_video.h
libmpcodecs/vf.h
libmpcodecs/vf_ass.c
libmpcodecs/vf_expand.c
libmpcodecs/vf_vo.c
libmpcodecs/vfcap.h
libvo/video_out.c
libvo/video_out.h
libvo/vo_gl.c
libvo/vo_vdpau.c
libvo/vo_xv.c
mplayer.c
sub/sub.h