summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-20 01:58:02 +0200
committerwm4 <wm4@nowhere>2019-10-20 02:17:31 +0200
commitd9eac493b5ab82d61cc375ba870a65c60a7cbe11 (patch)
treeb2049fce9dbd22518fc08f22dcf3b44c6a6d36f7
parent51e141f7ba8a9207a752d295da59b01286e02c23 (diff)
downloadmpv-d9eac493b5ab82d61cc375ba870a65c60a7cbe11.tar.bz2
mpv-d9eac493b5ab82d61cc375ba870a65c60a7cbe11.tar.xz
vo_x11: enable use of zimg
This will perform conversion and scaling of video with zimg, if --sws-allow-zimg is used. The performance probably depends on how well the compiler optimizes the RGB pack code in zimg.c, which is written in C.
-rw-r--r--video/out/vo_x11.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/vo_x11.c b/video/out/vo_x11.c
index a27fb9b213..072bfdabf9 100644
--- a/video/out/vo_x11.c
+++ b/video/out/vo_x11.c
@@ -245,6 +245,7 @@ static bool resize(struct vo *vo)
}
mp_sws_set_from_cmdline(p->sws, vo->global);
+ p->sws->allow_zimg = true;
p->sws->dst = (struct mp_image_params) {
.imgfmt = fmte->mpfmt,
.w = p->dst_w,
@@ -376,6 +377,7 @@ static int preinit(struct vo *vo)
struct priv *p = vo->priv;
p->vo = vo;
p->sws = mp_sws_alloc(vo);
+ p->sws->log = vo->log;
if (!vo_x11_init(vo))
goto error;