summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-04-22 19:36:16 +0200
committerJan Ekström <jeebjp@gmail.com>2018-04-29 02:21:32 +0300
commit8135e25600ace2894df274e6a825cfef525fee77 (patch)
tree372c2642c06ff8dc4ca90517c97495b102d9e700 /video/out/vo.h
parentbfc33da250e4fdb6bb57bdf051ad666570ae985f (diff)
downloadmpv-8135e25600ace2894df274e6a825cfef525fee77.tar.bz2
mpv-8135e25600ace2894df274e6a825cfef525fee77.tar.xz
vo: add vo_reconfig2()
1. I want to get away from mp_image_params (maybe). 2. For encoding mode, it's convenient to get the nominal_fps, which is a mp_image field, and not in mp_image_params.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index 947493268c..851dd16159 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -293,6 +293,12 @@ struct vo_driver {
int (*reconfig)(struct vo *vo, struct mp_image_params *params);
/*
+ * Like reconfig(), but provides the whole mp_image for which the change is
+ * required. (The image doesn't have to have real data.)
+ */
+ int (*reconfig2)(struct vo *vo, struct mp_image *img);
+
+ /*
* Control interface
*/
int (*control)(struct vo *vo, uint32_t request, void *data);
@@ -440,6 +446,7 @@ struct vo {
struct mpv_global;
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 vo_reconfig2(struct vo *vo, struct mp_image *img);
int vo_control(struct vo *vo, int request, void *data);
void vo_control_async(struct vo *vo, int request, void *data);