From c7da4ba74469bc6c404c396340ffadc748535f6e Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 10 Aug 2013 00:27:41 +0200 Subject: img_convert: add function to scale RGBA OSD images --- video/sws_utils.c | 3 +++ video/sws_utils.h | 1 + 2 files changed, 4 insertions(+) (limited to 'video') diff --git a/video/sws_utils.c b/video/sws_utils.c index 2c2ac9a9b4..db91434553 100644 --- a/video/sws_utils.c +++ b/video/sws_utils.c @@ -45,6 +45,9 @@ const int mp_sws_hq_flags = SWS_LANCZOS | SWS_FULL_CHR_H_INT | SWS_FULL_CHR_H_INP | SWS_ACCURATE_RND | SWS_BITEXACT; +// Fast, lossy. +const int mp_sws_fast_flags = SWS_BILINEAR; + // Set ctx parameters to global command line flags. void mp_sws_set_from_cmdline(struct mp_sws_context *ctx) { diff --git a/video/sws_utils.h b/video/sws_utils.h index a3c1d59be3..647cae2281 100644 --- a/video/sws_utils.h +++ b/video/sws_utils.h @@ -14,6 +14,7 @@ struct mp_csp_details; #define SWS_MIN_BYTE_ALIGN 16 extern const int mp_sws_hq_flags; +extern const int mp_sws_fast_flags; bool mp_sws_supported_format(int imgfmt); -- cgit v1.2.3