1
mirror of https://github.com/mpv-player/mpv synced 2024-10-30 04:46:41 +01:00
mpv/video/out
wm4 feb1f8f18f video/out: separate out code to compute window size
Currently, vo_reconfig() calculates the requested window size and sets
the vo->dwidth/dheight fields _if_ VOCTRL_UPDATE_SCREENINFO is
implemented by the VO or the windowing backend. The window size can be
different from the display size if e.g. the --geometry option is used.
It will also set the vo->dx/dy fields and read vo->xinerama_x/y.

It turned out that this is very backwards and actually requires the
windowing backends to workaround these things. There's also
MPOpts.screenwidth/screenheight, which used to map to actual options,
but is now used only to communicate the screen size to the vo.c code
calculating the window size and position.

Change this by making the window geometry calculations available as
separate functions. This commit doesn't change any VO code yet, and just
emulates the old way using the new functions. VO code will remove its
usage of VOCTRL_UPDATE_SCREENINFO and use the new functions directly.
2014-05-06 20:22:32 +02:00
..
cocoa cocoa: use mainScreen as a fallback for window constraining 2014-04-28 21:32:59 +02:00
aspect.c vo: add some general support code for VOs that allow rotation 2014-04-21 02:57:16 +02:00
aspect.h vo: add some general support code for VOs that allow rotation 2014-04-21 02:57:16 +02:00
bitmap_packer.c bitmap_packer: use printf() for fatal message 2013-12-21 20:50:11 +01:00
bitmap_packer.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
cocoa_common.h cocoa_common: call gl_clear indirectly 2013-09-28 15:08:40 +02:00
cocoa_common.m options: rename video-related options/properties 2014-05-04 02:46:11 +02:00
d3d_shader_yuv.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
d3d_shader_yuv.hlsl vo_direct3d: remove 2ch hack for 10 bit playback 2013-01-13 20:04:14 +01:00
dither.c dither: don't use long double 2013-07-05 20:26:32 +02:00
dither.h gl_video: improve dithering 2013-05-26 16:44:20 +02:00
filter_kernels.c Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
filter_kernels.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
gl_cocoa.c gl_common: remove unneeded callback 2013-11-14 19:51:40 +01:00
gl_common.c msg: rename mp_msg_log -> mp_msg 2013-12-21 22:13:04 +01:00
gl_common.h m_option: add mp_log callback to OPT_STRING_VALIDATE options 2013-12-21 21:43:16 +01:00
gl_header_fixes.h gl_video: support packed YUV formats with Apple extensions 2013-12-02 09:03:30 +01:00
gl_hwdec_vaglx.c video: make mp_image use mp_image_params directly 2014-04-21 02:57:16 +02:00
gl_hwdec_vda.c vda: fix build on OS X 10.7 2014-01-02 22:45:39 +01:00
gl_hwdec_vdpau.c Fix bogus copyright text 2014-05-06 20:14:53 +02:00
gl_lcms.c gl_lcms: properly expand the cache filename being written 2014-04-05 18:13:00 +02:00
gl_lcms.h vo_opengl, cocoa: allow to autoselect a color profile 2014-03-31 22:07:33 +02:00
gl_osd.c sub: uglify OSD code path with locking 2014-01-18 01:27:43 +01:00
gl_osd.h Rename sub.c/.h to osd.c/.h 2013-11-24 14:44:58 +01:00
gl_video_shaders.glsl vo_opengl: Simplify and clarify color correction code 2014-03-10 22:56:25 +01:00
gl_video.c vo_opengl: support rotation 2014-04-21 02:57:16 +02:00
gl_video.h video/out: remove legacy colorspace stuff 2014-03-29 00:25:08 +01:00
gl_w32.c gl_common: remove unneeded callback 2013-11-14 19:51:40 +01:00
gl_wayland.c wayland/shm: Use subsurfaces for OSD 2014-04-16 16:38:54 +02:00
gl_x11.c gl_x11: don't require a X visual for modern GL context creation 2014-02-06 14:33:30 +01:00
pnm_loader.c Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
pnm_loader.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
vo_caca.c video/out: do remaining config to reconfig replacements 2014-01-24 21:22:25 +01:00
vo_corevideo.c vo_corevideo: remove unused variable 2014-03-31 22:10:33 +02:00
vo_direct3d.c Fix some libav* include statements 2014-04-19 17:18:10 +02:00
vo_image.c vo: get rid of config_count field 2014-05-06 00:21:15 +02:00
vo_lavc.c vo_lavc: remove code with no effect 2014-04-30 22:24:48 +02:00
vo_null.c video/out: do remaining config to reconfig replacements 2014-01-24 21:22:25 +01:00
vo_opengl_old.c vo: get rid of config_count field 2014-05-06 00:21:15 +02:00
vo_opengl.c vo_opengl: support rotation 2014-04-21 02:57:16 +02:00
vo_sdl.c vo_sdl: fix compilation 2014-01-25 00:26:35 +01:00
vo_vaapi.c video/out: remove legacy colorspace stuff 2014-03-29 00:25:08 +01:00
vo_vdpau.c vdpau: deduplicate video surface upload code 2014-05-04 10:51:14 +02:00
vo_wayland.c wayland/shm: Use subsurfaces for OSD 2014-04-16 16:38:54 +02:00
vo_x11.c sub: uglify OSD code path with locking 2014-01-18 01:27:43 +01:00
vo_xv.c video/out: remove legacy colorspace stuff 2014-03-29 00:25:08 +01:00
vo.c video/out: separate out code to compute window size 2014-05-06 20:22:32 +02:00
vo.h vo: get rid of config_count field 2014-05-06 00:21:15 +02:00
w32_common.c w32_common: use ToUnicode to translate key input 2014-04-17 22:52:19 +02:00
w32_common.h w32_common: use ToUnicode to translate key input 2014-04-17 22:52:19 +02:00
wayland_common.c Revert "wayland: print waylands display erros" 2014-04-26 14:51:48 +02:00
wayland_common.h wayland/shm: Use subsurfaces for OSD 2014-04-16 16:38:54 +02:00
win_state.c video/out: separate out code to compute window size 2014-05-06 20:22:32 +02:00
win_state.h video/out: separate out code to compute window size 2014-05-06 20:22:32 +02:00
x11_common.c options: remove obsolete --fsmode-dontuse 2014-05-04 02:46:11 +02:00
x11_common.h x11: implement window dragging by grabbing 2014-03-18 20:43:45 +01:00
x11_icon.bin x11: add window icon 2013-09-01 23:27:33 +02:00