summaryrefslogtreecommitdiffstats
path: root/video/sws_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/sws_utils.h')
-rw-r--r--video/sws_utils.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/video/sws_utils.h b/video/sws_utils.h
index ddf628cf23..24846f544e 100644
--- a/video/sws_utils.h
+++ b/video/sws_utils.h
@@ -23,6 +23,12 @@ int mp_image_swscale(struct mp_image *dst, struct mp_image *src,
int mp_image_sw_blur_scale(struct mp_image *dst, struct mp_image *src,
float gblur);
+enum mp_sws_scaler {
+ MP_SWS_AUTO = 0, // use command line
+ MP_SWS_SWS,
+ MP_SWS_ZIMG,
+};
+
struct mp_sws_context {
// Can be set for verbose error printing.
struct mp_log *log;
@@ -36,6 +42,9 @@ struct mp_sws_context {
// Setting them before that call makes sense when using mp_sws_reinit().
struct mp_image_params src, dst;
+ // This is unfortunately a hack: bypass command line choice
+ enum mp_sws_scaler force_scaler;
+
// Changing these requires setting force_reload=true.
// By default, they are NULL.
// Freeing the mp_sws_context will deallocate these if set.