diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-03-04 17:40:21 +0100 |
---|---|---|
committer | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-03-04 17:40:21 +0100 |
commit | 7686cd7f043ef5b42ade64db21ec01c8c8d6281e (patch) | |
tree | b8f2f3b73e2a7e19e6e999aa6ece03b381c87d14 /video/out/vo.h | |
parent | dc226bb846f037e992ae4a9fa12aa2196e804e6d (diff) | |
download | mpv-7686cd7f043ef5b42ade64db21ec01c8c8d6281e.tar.bz2 mpv-7686cd7f043ef5b42ade64db21ec01c8c8d6281e.tar.xz |
vo: remove and cleanup globals
Removes almost every global variabel in vo.h and puts them in a special struct
in MPOpts for video output related options.
Also we completly remove the options/globals pts and refresh rate because
they were unused.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r-- | video/out/vo.h | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/video/out/vo.h b/video/out/vo.h index ca252337b1..ed3be652bd 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -28,6 +28,7 @@ #include "video/img_format.h" #include "core/mp_common.h" +#include "core/options.h" #define VO_EVENT_EXPOSE 1 #define VO_EVENT_RESIZE 2 @@ -260,6 +261,9 @@ struct vo { int dwidth; int dheight; + int xinerama_x; + int xinerama_y; + int panscan_x; int panscan_y; float panscan_amount; @@ -306,27 +310,8 @@ const char *vo_get_window_title(struct vo *vo); // NULL terminated array of all drivers extern const struct vo_driver *video_out_drivers[]; -extern int xinerama_x; -extern int xinerama_y; - -extern int vo_vsync; -extern int vo_fs; -extern int vo_fsmode; -extern float vo_panscan; -extern int vo_refresh_rate; -extern int vo_keepaspect; -extern int vo_border; - -extern int vo_nomouse_input; -extern int enable_mouse_movements; - -extern int vo_pts; extern float vo_fps; -extern int vo_colorkey; - -extern int64_t WinID; - struct mp_keymap { int from; int to; @@ -339,9 +324,9 @@ struct mp_osd_res; void vo_get_src_dst_rects(struct vo *vo, struct mp_rect *out_src, struct mp_rect *out_dst, struct mp_osd_res *out_osd); -static inline int aspect_scaling(void) +static inline int aspect_scaling(struct vo *vo) { - return vo_keepaspect || vo_fs; + return vo->opts->vo.keepaspect || vo->opts->vo.fs; } #endif /* MPLAYER_VIDEO_OUT_H */ |