summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-08-10 00:27:41 +0200
committerwm4 <wm4@nowhere>2013-08-12 00:51:31 +0200
commitc7da4ba74469bc6c404c396340ffadc748535f6e (patch)
treebb6530195bf4ac92a69a4e369ec8ecc620a72234 /video
parent689a25003fc8098e5fdfbb2faefc0e18365d3acb (diff)
downloadmpv-c7da4ba74469bc6c404c396340ffadc748535f6e.tar.bz2
mpv-c7da4ba74469bc6c404c396340ffadc748535f6e.tar.xz
img_convert: add function to scale RGBA OSD images
Diffstat (limited to 'video')
-rw-r--r--video/sws_utils.c3
-rw-r--r--video/sws_utils.h1
2 files changed, 4 insertions, 0 deletions
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);