From 2c43d2b75a88b8e0e8f0a715f993ffc1c8977d13 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 31 Oct 2019 15:44:09 +0100 Subject: screenshot, vo_image: use global swscale/zimg parameters Lots of dumb crap to do... something. Instead of adding yet another dumb helper, just use the main" sws_utils API in both callers. (Which, unfortunately, has been duplicated for glorious webp screenshots, despite the fact that webp is crap.) Good part: can enable zimg for screenshots (as far as needed). Bad part: uses "default" swscale parameters instead of HQ now. --- video/out/vo_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/vo_image.c') diff --git a/video/out/vo_image.c b/video/out/vo_image.c index 9d30d5b6d2..2a3b8fae87 100644 --- a/video/out/vo_image.c +++ b/video/out/vo_image.c @@ -120,7 +120,7 @@ static void flip_page(struct vo *vo) filename = mp_path_join(t, p->opts->outdir, filename); MP_INFO(vo, "Saving %s\n", filename); - write_image(p->current, p->opts->opts, filename, vo->log); + write_image(p->current, p->opts->opts, filename, vo->global, vo->log); talloc_free(t); mp_image_unrefp(&p->current); -- cgit v1.2.3