summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
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);