From 1198c031e4233a0cff5aa7d24aab986163f6903a Mon Sep 17 00:00:00 2001 From: Alexander Preisinger Date: Mon, 4 Mar 2013 22:41:27 +0100 Subject: vo: Separate vo options from MPOpts Separate the video output options from the big MPOpts structure and also only pass the new mp_vo_opts structure to the vo backend. Move video_driver_list into mp_vo_opts --- core/options.h | 75 ++++++++++++++++++++++++++++++---------------------------- 1 file changed, 39 insertions(+), 36 deletions(-) (limited to 'core/options.h') diff --git a/core/options.h b/core/options.h index 9f54598361..3d4c05bcc1 100644 --- a/core/options.h +++ b/core/options.h @@ -4,8 +4,45 @@ #include #include "core/m_option.h" -typedef struct MPOpts { +typedef struct mp_vo_opts { char **video_driver_list; + + int screenwidth; + int screenheight; + int ontop; + bool fs; + int vsync; + int screen_id; + int fsscreen_id; + int stop_screensaver; + char *winname; + char** fstype_list; + + float panscan; + float panscanrange; + + struct m_geometry geometry; + struct m_geometry autofit; + struct m_geometry autofit_larger; + + int fsmode; + int keepaspect; + int border; + + int colorkey; + + int nomouse_input; + int enable_mouse_movements; + int cursor_autohide_delay; + + int64_t WinID; + + float force_monitor_aspect; + float monitor_pixel_aspect; + int force_window_position; +} mp_vo_opts; + +typedef struct MPOpts { char **audio_driver_list; int fixed_vo; char *mixer_device; @@ -17,41 +54,7 @@ typedef struct MPOpts { int gapless_audio; int ao_buffersize; - struct output_conf { - int screenwidth; - int screenheight; - int ontop; - bool fs; - int vsync; - int screen_id; - int fsscreen_id; - int stop_screensaver; - char *winname; - char** fstype_list; - - float panscan; - float panscanrange; - - struct m_geometry geometry; - struct m_geometry autofit; - struct m_geometry autofit_larger; - - int fsmode; - int keepaspect; - int border; - - int colorkey; - - int nomouse_input; - int enable_mouse_movements; - int cursor_autohide_delay; - - int64_t WinID; - - float force_monitor_aspect; - float monitor_pixel_aspect; - int force_window_position; - } vo; + mp_vo_opts vo; char *wintitle; int force_rgba_osd; -- cgit v1.2.3