1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 15:52:25 +00:00
mpv/video/out
wm4 ea4332daf4 vo_xv: don't require frame stepping to remove OSD or subs
In order to improve performance, vo_xv didn't create a backup of the
video frame before drawing OSD and subtitles during normal playback. It
required the frontend to do frame stepping if it wanted to redraw the
OSD, but no backup of the video frame was available. (Consider the
following use case: enable the OSD permanently with --osd-level=3, then
pause during playback and do something that shows an OSD message. The
player will advance the video by one frame at the time the new OSD
message is first drawn.)

This also meant that taking a screenshot during playback with vo_xv
would include OSD and subtitles in the resulting image.

Fix this by always creating a backup before drawing OSD or subtitles.
In order to avoid having to create a full copy of the whole image frame,
introduce a complex scheme that tries to backup only the changed
regions.

It's unclear whether the additional complexity in draw_bmp.c for
backing up only the changed areas of the frame is worth it. Possibly
a simpler implementation would suffice, such as tracking only Y ranges
of changed image data, or even just copying the full frame.

vo_xv's get_screenshot() now always creates a copy in order not to
modify the currently displayed frame.
2012-11-21 19:56:59 +01:00
..
aspect.c
aspect.h
bitmap_packer.c
bitmap_packer.h
cocoa_common.h
cocoa_common.m cocoa_common: create window in the correct screen 2012-11-21 13:42:55 +01:00
d3d_shader_yuv_2ch.h
d3d_shader_yuv.h
d3d_shader_yuv.hlsl
filter_kernels.c
filter_kernels.h
geometry.c
geometry.h
gl_common.c gl_common: improve Mesa compatibility for GL3 context creation 2012-11-20 18:00:16 +01:00
gl_common.h
gl_header_fixes.h clang: fix all warnings except deprecations 2012-11-13 22:19:18 +01:00
gl_osd.c
gl_osd.h
osx_common.c
osx_common.h
pnm_loader.c
pnm_loader.h
vo_caca.c
vo_corevideo.h
vo_corevideo.m options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00
vo_direct3d.c options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00
vo_image.c options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00
vo_lavc.c Improve compatibility with Libav 0.8.4 and ffmpeg 0.11.2 2012-11-14 11:45:52 +01:00
vo_null.c
vo_opengl_old.c options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00
vo_opengl_shaders.glsl
vo_opengl.c vo_opengl: remove osdcolor suboption 2012-11-16 21:21:14 +01:00
vo_vdpau.c options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00
vo_x11.c options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00
vo_xv.c vo_xv: don't require frame stepping to remove OSD or subs 2012-11-21 19:56:59 +01:00
vo.c
vo.h options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00
w32_common.c win32: remove pointless get/release DC wrappers 2012-11-12 20:10:42 +01:00
w32_common.h win32: remove pointless get/release DC wrappers 2012-11-12 20:10:42 +01:00
x11_common.c options: remove --display 2012-11-16 21:21:15 +01:00
x11_common.h options: remove --display 2012-11-16 21:21:15 +01:00