diff options
author | wm4 <wm4@nowhere> | 2014-12-31 19:01:28 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-31 19:01:28 +0100 |
commit | 282e3202d52a84b868f6972532f10d97ee23c594 (patch) | |
tree | 120b272348477b68ccb501e2f1231670e2b1d78a /video/out/vo.h | |
parent | f5b314e9e8685098badaf2bfc8f94422c0f9c4fc (diff) | |
download | mpv-282e3202d52a84b868f6972532f10d97ee23c594.tar.bz2 mpv-282e3202d52a84b868f6972532f10d97ee23c594.tar.xz |
video: pass some VO params as struct
Not particularly elegant, but better than adding more and more stuff to
the relevant function signatures.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r-- | video/out/vo.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/video/out/vo.h b/video/out/vo.h index fa35f65d13..60982c9d65 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -165,6 +165,12 @@ struct osd_state; struct mp_image; struct mp_image_params; +struct vo_extra { + struct input_ctx *input_ctx; + struct osd_state *osd; + struct encode_lavc_context *encode_lavc_ctx; +}; + struct vo_driver { // Encoding functionality, which can be invoked via --o only. bool encode; @@ -273,6 +279,7 @@ struct vo { struct encode_lavc_context *encode_lavc_ctx; struct vo_internal *in; struct mp_vo_opts *opts; + struct vo_extra extra; // --- The following fields are generally only changed during initialization. @@ -297,10 +304,7 @@ struct vo { }; struct mpv_global; -struct vo *init_best_video_out(struct mpv_global *global, - struct input_ctx *input_ctx, - struct osd_state *osd, - struct encode_lavc_context *encode_lavc_ctx); +struct vo *init_best_video_out(struct mpv_global *global, struct vo_extra *ex); int vo_reconfig(struct vo *vo, struct mp_image_params *p, int flags); int vo_control(struct vo *vo, uint32_t request, void *data); |