From ca67928d7ab176c080a7e99f0d4ce0c5d1070844 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 16 Jan 2018 11:49:23 +0100 Subject: sws_utils: don't force callers to provide option struct mp_sws_set_from_cmdline() has the only purpose to respect the --sws- command line options. Instead of forcing callers to get the option struct containing these, let callers pass mpv_global, and get it from the option core code directly. This avoids minor annoyances later on. --- video/sws_utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/sws_utils.h') diff --git a/video/sws_utils.h b/video/sws_utils.h index a3e91b3aa9..41472b5ecf 100644 --- a/video/sws_utils.h +++ b/video/sws_utils.h @@ -6,7 +6,7 @@ #include "mp_image.h" struct mp_image; -struct sws_opts; +struct mpv_global; // libswscale currently requires 16 bytes alignment for row pointers and // strides. Otherwise, it will print warnings and use slow codepaths. @@ -52,7 +52,7 @@ struct mp_sws_context { struct mp_sws_context *mp_sws_alloc(void *talloc_ctx); int mp_sws_reinit(struct mp_sws_context *ctx); -void mp_sws_set_from_cmdline(struct mp_sws_context *ctx, struct sws_opts *opts); +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); -- cgit v1.2.3