summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-02-12 18:06:53 +0100
committerwm4 <wm4@nowhere>2020-02-12 18:06:53 +0100
commitc3f93f5fdd33ada85e700bf8bad7d70f6739eed4 (patch)
tree330ffa30694e6b11f720f0803f552cd3eb30a860
parent7c8b40c38a9858166d804c362aa03119073ed947 (diff)
downloadmpv-c3f93f5fdd33ada85e700bf8bad7d70f6739eed4.tar.bz2
mpv-c3f93f5fdd33ada85e700bf8bad7d70f6739eed4.tar.xz
sws_utils: use zimg by default if available
This seems stable enough to use. Change the default, and remove it from the sw-fast profile.
-rw-r--r--DOCS/man/options.rst11
-rw-r--r--etc/builtin.conf1
-rw-r--r--video/sws_utils.c1
3 files changed, 6 insertions, 7 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index 6b05a9cb36..0574831880 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -4026,9 +4026,10 @@ Software Scaler
``--sws-allow-zimg=<yes|no>``
Allow using zimg (if the component using the internal swscale wrapper
- explicitly allows so). In this case, zimg *may* be used, if the internal
- zimg wrapper supports the input and output formats. It will silently
- fall back to libswscale if one of these conditions does not apply.
+ explicitly allows so) (default: yes). In this case, zimg *may* be used, if
+ the internal zimg wrapper supports the input and output formats. It will
+ silently or noisily fall back to libswscale if one of these conditions does
+ not apply.
If zimg is used, the other ``--sws-`` options are ignored, and the
``--zimg-`` options are used instead.
@@ -4041,9 +4042,7 @@ Software Scaler
.. note::
- The builtin ``sws-fast`` profile (which you are supposed to use when you
- use a VO that uses software conversion on weak hardware) sets this
- option. But do note that zimg *may* be slower than libswscale. Usually,
+ Do note that zimg *may* be slower than libswscale. Usually,
it's faster on x86 platforms, but slower on ARM (due to lack of ARM
specific optimizations). The mpv zimg wrapper uses unoptimized repacking
for some formats, for which zimg cannot be blamed.
diff --git a/etc/builtin.conf b/etc/builtin.conf
index 6984d57769..ce3c64f965 100644
--- a/etc/builtin.conf
+++ b/etc/builtin.conf
@@ -66,7 +66,6 @@ stream-buffer-size=4k # minimal buffer size; normally not needed
# For VOs which use software scalers, also affects screenshots and others.
sws-scaler=bilinear
sws-fast=yes
-sws-allow-zimg=yes
zimg-scaler=bilinear
zimg-dither=no
diff --git a/video/sws_utils.c b/video/sws_utils.c
index ce22e79e03..855c1ba821 100644
--- a/video/sws_utils.c
+++ b/video/sws_utils.c
@@ -83,6 +83,7 @@ const struct m_sub_options sws_conf = {
.size = sizeof(struct sws_opts),
.defaults = &(const struct sws_opts){
.scaler = SWS_LANCZOS,
+ .zimg = 1,
},
};