From d9eac493b5ab82d61cc375ba870a65c60a7cbe11 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 20 Oct 2019 01:58:02 +0200 Subject: 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. --- video/out/vo_x11.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video/out') 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; -- cgit v1.2.3