summaryrefslogtreecommitdiffstats
path: root/video/sws_utils.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-05-09 17:56:21 +0200
committerwm4 <wm4@nowhere>2020-05-09 18:02:57 +0200
commitd61ced37ae39b4a2dcd49e783f3c292a8d97b14a (patch)
treecb11fd61cfded19b3941fe3332d53e07bbcda6b1 /video/sws_utils.h
parent43591ba96bf4409feaac2027cfe467824bdf7260 (diff)
downloadmpv-d61ced37ae39b4a2dcd49e783f3c292a8d97b14a.tar.bz2
mpv-d61ced37ae39b4a2dcd49e783f3c292a8d97b14a.tar.xz
sws_utils: allow setting zimg options directly
One could wonder, why not just use the zimg wrapper directly?
Diffstat (limited to 'video/sws_utils.h')
-rw-r--r--video/sws_utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/sws_utils.h b/video/sws_utils.h
index 2c7af5eac0..9e7f24e0a7 100644
--- a/video/sws_utils.h
+++ b/video/sws_utils.h
@@ -44,6 +44,10 @@ struct mp_sws_context {
// This is unfortunately a hack: bypass command line choice
enum mp_sws_scaler force_scaler;
+ // If zimg is used. Need to manually invalidate cache (set force_reload).
+ // Conflicts with enabling command line opts.
+ struct zimg_opts *zimg_opts;
+
// Changing these requires setting force_reload=true.
// By default, they are NULL.
// Freeing the mp_sws_context will deallocate these if set.