diff options
author | wm4 <wm4@nowhere> | 2015-01-24 23:28:38 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-24 23:28:38 +0100 |
commit | 8657b8e1f3c247dcba441a4c61e3beef2acc2cd4 (patch) | |
tree | 2ff77ed69d755a27c647edd6a46afe4b024b60e8 /TOOLS/osxbundle.py | |
parent | 28582322207bb962553505f0c25268f4b786287d (diff) | |
download | mpv-8657b8e1f3c247dcba441a4c61e3beef2acc2cd4.tar.bz2 mpv-8657b8e1f3c247dcba441a4c61e3beef2acc2cd4.tar.xz |
vo: generic redraw support
Usually, a VO must react to VOCTRL_REDRAW_FRAME in order to redraw the
current screen correctly if video is paused (this is done to update
OSD). But if it's not supported, we can just draw the current image
again in the generic vo.c code.
Unfortunately, this turned out pretty useless, because the VOs which
would benefit from this need to redraw even if there is no image, in
order to draw a black screen in --idle --force-window mode. The way
redrawing is handled in the X11 common code and in vo_x11 and vo_xv is
in the way, and I'm not sure what exactly vo_wayland requires. Other VOs
have a non-trivial implementation of VOCTRL_REDRAW_FRAME, which
(probably) makes redrawing slightly more efficient, e.g. by skipping
texture upload. So for now, no VO uses this new functionality, but since
it's trivial, commit it anyway.
The vo_driver->untimed case is for forcibly disabling redraw for vo_lavc
and vo_image always.
Diffstat (limited to 'TOOLS/osxbundle.py')
0 files changed, 0 insertions, 0 deletions