summaryrefslogtreecommitdiffstats
path: root/core/options.h
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2013-03-04 22:41:27 +0100
committerAlexander Preisinger <alexander.preisinger@gmail.com>2013-03-04 23:32:47 +0100
commit1198c031e4233a0cff5aa7d24aab986163f6903a (patch)
treebff49197908452f3ad1363edcf4c527db9bf1fe0 /core/options.h
parent4949992264d78d6dd22c0f6c611850402fd6eb30 (diff)
downloadmpv-1198c031e4233a0cff5aa7d24aab986163f6903a.tar.bz2
mpv-1198c031e4233a0cff5aa7d24aab986163f6903a.tar.xz
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
Diffstat (limited to 'core/options.h')
-rw-r--r--core/options.h75
1 files changed, 39 insertions, 36 deletions
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 <stdbool.h>
#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;