summaryrefslogtreecommitdiffstats
path: root/video/image_writer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-18 13:48:57 +0200
committerwm4 <wm4@nowhere>2013-07-18 13:48:57 +0200
commitb606a6ce1a94017ee6519d884661ef828878226a (patch)
treeb05fec355ffec3edb2b818e9f3a5460622d2588c /video/image_writer.c
parent7f88e36911fc1ad8a59c7335a0d33119519742fc (diff)
downloadmpv-b606a6ce1a94017ee6519d884661ef828878226a.tar.bz2
mpv-b606a6ce1a94017ee6519d884661ef828878226a.tar.xz
sws_utils: make hq swscale flags available with mp_sws_hq_flags
No need to duplicate this on the call-site.
Diffstat (limited to 'video/image_writer.c')
-rw-r--r--video/image_writer.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/video/image_writer.c b/video/image_writer.c
index 1791c01a38..5224841b5d 100644
--- a/video/image_writer.c
+++ b/video/image_writer.c
@@ -20,7 +20,6 @@
#include <string.h>
#include <setjmp.h>
-#include <libswscale/swscale.h>
#include <libavcodec/avcodec.h>
#include <libavutil/mem.h>
@@ -288,10 +287,7 @@ int write_image(struct mp_image *image, const struct image_writer_opts *opts,
struct mp_image *dst = mp_image_alloc(destfmt, d_w, d_h);
mp_image_copy_attributes(dst, image);
- int flags = SWS_LANCZOS | SWS_FULL_CHR_H_INT | SWS_FULL_CHR_H_INP |
- SWS_ACCURATE_RND | SWS_BITEXACT;
-
- mp_image_swscale(dst, image, flags);
+ mp_image_swscale(dst, image, mp_sws_hq_flags);
allocated_image = dst;
image = dst;