diff options
author | wm4 <wm4@nowhere> | 2020-04-12 21:55:35 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-04-13 15:56:27 +0200 |
commit | c99d95ac17364c46bc161867d1102361f05a6cc5 (patch) | |
tree | 25b1033cbd19b87ec076f1c91b26677a07788772 /filters/f_swscale.h | |
parent | 28f2d7454d5ea997dec691376ebcdf4c4e0454b4 (diff) | |
download | mpv-c99d95ac17364c46bc161867d1102361f05a6cc5.tar.bz2 mpv-c99d95ac17364c46bc161867d1102361f05a6cc5.tar.xz |
vf_format: add gross mechanism for forcing scaler for testing
This sucks, but is helpful for testing.
Obviously, it would be much nicer if there were a way to specify _all_
scaler options per filter (if the user wanted), instead of always using
the global options. But this is "too hard" for now. For testing, it is
extremely convenient to select the scaler backend, so add this option,
but make clear that it could go away. We'd delete it once there is a
better mechanism for this.
Diffstat (limited to 'filters/f_swscale.h')
-rw-r--r-- | filters/f_swscale.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/filters/f_swscale.h b/filters/f_swscale.h index 861ad029dd..3ee7455ecd 100644 --- a/filters/f_swscale.h +++ b/filters/f_swscale.h @@ -3,6 +3,7 @@ #include <stdbool.h> #include "video/mp_image.h" +#include "video/sws_utils.h" struct mp_sws_filter { struct mp_filter *f; @@ -11,6 +12,8 @@ struct mp_sws_filter { // If set, force all image params; ignores out_format. bool use_out_params; struct mp_image_params out_params; + // Other options. + enum mp_sws_scaler force_scaler; // private state struct mp_sws_context *sws; struct mp_image_pool *pool; |