diff options
author | wm4 <wm4@nowhere> | 2014-06-10 22:41:14 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-11 00:39:13 +0200 |
commit | fd5207f56d13f70a7750ac457dc5efdb514d9845 (patch) | |
tree | d2ff38fb1e1837467d25a5e4326c1ab695a8437a /video/sws_utils.h | |
parent | 2fc3be582c8c5aa510c92c7602ce72d5a1daa0ed (diff) | |
download | mpv-fd5207f56d13f70a7750ac457dc5efdb514d9845.tar.bz2 mpv-fd5207f56d13f70a7750ac457dc5efdb514d9845.tar.xz |
options: remove global variables for swscale options; rename them
Additionally to removing the global variables, this makes the options
more uniform. --ssf-... becomes --sws-..., and --sws becomes --sws-
scaler. For --sws-scaler, use choices instead of magic integer values.
Diffstat (limited to 'video/sws_utils.h')
-rw-r--r-- | video/sws_utils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/sws_utils.h b/video/sws_utils.h index d20e197197..212e1405b4 100644 --- a/video/sws_utils.h +++ b/video/sws_utils.h @@ -7,6 +7,7 @@ struct mp_image; struct mp_csp_details; +struct sws_opts; // libswscale currently requires 16 bytes alignment for row pointers and // strides. Otherwise, it will print warnings and use slow codepaths. @@ -51,7 +52,7 @@ struct mp_sws_context { struct mp_sws_context *mp_sws_alloc(void *talloc_ctx); int mp_sws_reinit(struct mp_sws_context *ctx); -void mp_sws_set_from_cmdline(struct mp_sws_context *ctx); +void mp_sws_set_from_cmdline(struct mp_sws_context *ctx, struct sws_opts *opts); int mp_sws_scale(struct mp_sws_context *ctx, struct mp_image *dst, struct mp_image *src); |