1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-03 12:47:49 +00:00
mpv/libvo
wm4 168293e0ae osd: minor simplification of vo_osd_changed()
vo_osd_changed() was a weird function: it was used both to query and
mutate state, which is a bad combination. The VOs used it to query
and reset the state, and the mplayer frontend mostly used it to set
the state. In some cases, the frontend did both (that code used a
variable "int hack" to backup the state and set it again).

Simplify it and make the VOs use a vo_osd_has_changed() function to
query whether the OSD bitmaps have to be recreated. vo_osd_changed()
on the other hand is now used to update state only. The OSD change
state is reset when osd_draw_text() is called.

Update vo_corevideo.m to use vo_osd_resized() as well (forgotten change
from libass-OSD merge).

Simplify osd_set_text() and its usages.
2012-08-01 18:23:28 +02:00
..
aspect.c Remove dead code 2012-08-01 17:07:35 +02:00
aspect.h Remove dead code 2012-08-01 17:07:35 +02:00
cocoa_common.h cocoa: gl3: support querying of colors bit depth 2012-05-15 10:37:58 +02:00
cocoa_common.m libvo, libao: remove useless video and audio output drivers 2012-07-28 20:44:59 +02:00
csputils.c
csputils.h
d3d_shader_yuv_2ch.h
d3d_shader_yuv.h
d3d_shader_yuv.hlsl
eosd_packer.c
eosd_packer.h
fastmemcpy.h fastmemcpy.h: remove code duplication 2012-07-30 01:36:35 +02:00
filter_kernels.c
filter_kernels.h
geometry.c
geometry.h
gl_common.c libvo, libao: remove useless video and audio output drivers 2012-07-28 20:44:59 +02:00
gl_common.h libvo, libao: remove useless video and audio output drivers 2012-07-28 20:44:59 +02:00
gl_header_fixes.h gl_common: move header hacks into gl_header_fixes.h 2012-03-31 02:58:53 +02:00
old_vo_defines.h
old_vo_wrapper.c
old_vo_wrapper.h
osd_template.c Remove dead code 2012-08-01 17:07:35 +02:00
osd.c Remove dead code 2012-08-01 17:07:35 +02:00
osd.h Remove dead code 2012-08-01 17:07:35 +02:00
osx_common.c
osx_common.h
video_out_internal.h
video_out.c mplayer: turn playtree into a list, and change per-file option handling 2012-07-31 21:33:26 +02:00
video_out.h Remove dead code 2012-08-01 17:07:35 +02:00
videodev_mjpeg.h
vo_caca.c
vo_corevideo.h vo_corevideo: restructure this video output 2012-04-26 21:03:10 +03:00
vo_corevideo.m osd: minor simplification of vo_osd_changed() 2012-08-01 18:23:28 +02:00
vo_direct3d.c osd: minor simplification of vo_osd_changed() 2012-08-01 18:23:28 +02:00
vo_directfb2.c
vo_directx.c vo_directx: clear panscan borders in windowed mode 2012-04-24 01:28:09 +02:00
vo_gif89a.c
vo_gl3_shaders.glsl
vo_gl3.c osd: minor simplification of vo_osd_changed() 2012-08-01 18:23:28 +02:00
vo_gl.c osd: minor simplification of vo_osd_changed() 2012-08-01 18:23:28 +02:00
vo_jpeg.c libvo: remove exit_player_bad() 2012-07-30 15:46:05 +02:00
vo_md5sum.c libvo: remove exit_player_bad() 2012-07-30 15:46:05 +02:00
vo_null.c
vo_png.c screenshot, vo_png: fix dependency on sizeof(AVFrame) 2012-04-29 10:01:55 +02:00
vo_pnm.c libvo: remove exit_player_bad() 2012-07-30 15:46:05 +02:00
vo_sharedbuffer.h vo_sharedbuffer: add this video output 2012-04-26 21:03:10 +03:00
vo_sharedbuffer.m vo_corevideo, vo_sharedbuffer: put private state in vo->priv 2012-07-27 16:52:22 +03:00
vo_tga.c
vo_v4l2.c
vo_v4l2.h
vo_vdpau.c osd: use libass for OSD rendering 2012-07-28 23:36:07 +02:00
vo_x11.c Change <endian.h> include to <sys/types.h> 2012-07-31 23:37:56 +02:00
vo_xv.c libvo, libao: remove useless video and audio output drivers 2012-07-28 20:44:59 +02:00
vo_yuv4mpeg.c
w32_common.c win32: don't crash if vo_w32_uninit() is called without vo_w32_init() 2012-04-24 01:25:10 +02:00
w32_common.h win32: move global variables into a struct & some refactoring 2012-04-14 17:03:11 +02:00
x11_common.c libvo, libao: remove useless video and audio output drivers 2012-07-28 20:44:59 +02:00
x11_common.h vo_vdpau: disable refresh-aware frame timing when composited 2012-07-27 03:40:38 +03:00