summaryrefslogtreecommitdiffstats
path: root/video/sws_utils.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-31 15:18:57 +0100
committerwm4 <wm4@nowhere>2019-10-31 15:26:03 +0100
commit835586513d026bcf1e7dec4693e07c28dda8cedd (patch)
treef96ce1fe2e8a474906ae09e9c9146d6e88030fd4 /video/sws_utils.h
parentc10ba5eb8e62d04ed80cad512cf4863dadee07f1 (diff)
downloadmpv-835586513d026bcf1e7dec4693e07c28dda8cedd.tar.bz2
mpv-835586513d026bcf1e7dec4693e07c28dda8cedd.tar.xz
sws_utils: shuffle around some shit
Purpose uncertain. I guess it's slightly better, maybe. The move of the sws/zimg options from VO opts (vo_opt_list) to the top-level option list is tricky. VO opts have some helper code in vo.c, that sends VOCTRL_SET_PANSCAN to the VO on every VO opts change. That's because updating certain VO options used to be this way (and not just the panscan option). This isn't needed anymore for sws/zimg options, so explicitly move them away.
Diffstat (limited to 'video/sws_utils.h')
-rw-r--r--video/sws_utils.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/video/sws_utils.h b/video/sws_utils.h
index c305bda748..de6a023524 100644
--- a/video/sws_utils.h
+++ b/video/sws_utils.h
@@ -48,14 +48,15 @@ struct mp_sws_context {
bool supports_csp;
// Private.
+ struct m_config_cache *opts_cache;
struct mp_sws_context *cached; // contains parameters for which sws is valid
struct mp_zimg_context *zimg;
- bool opts_allow_zimg, zimg_ok;
+ bool zimg_ok;
};
struct mp_sws_context *mp_sws_alloc(void *talloc_ctx);
+void mp_sws_enable_cmdline_opts(struct mp_sws_context *ctx, struct mpv_global *g);
int mp_sws_reinit(struct mp_sws_context *ctx);
-void mp_sws_set_from_cmdline(struct mp_sws_context *ctx, struct mpv_global *g);
int mp_sws_scale(struct mp_sws_context *ctx, struct mp_image *dst,
struct mp_image *src);