diff options
author | Christoph Heinrich <christoph.heinrich@student.tugraz.at> | 2023-02-20 04:32:50 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-02-21 17:15:17 +0000 |
commit | 91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29 (patch) | |
tree | 448b141d92c9ea7636954213b587aaf380fc21db /video/filter/vf_vdpaupp.c | |
parent | b9850a6e8c45f95563a703af7f21dfe1c1ee40b6 (diff) | |
download | mpv-91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29.tar.bz2 mpv-91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29.tar.xz |
options: transition options from OPT_FLAG to OPT_BOOL
c78482045444c488bb7948305d583a55d17cd236 introduced a bool option type
as a replacement for the flag type, but didn't actually transition and
remove the flag type because it would have been too much mundane work.
Diffstat (limited to 'video/filter/vf_vdpaupp.c')
-rw-r--r-- | video/filter/vf_vdpaupp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/video/filter/vf_vdpaupp.c b/video/filter/vf_vdpaupp.c index de5caa3534..0519f5a8b8 100644 --- a/video/filter/vf_vdpaupp.c +++ b/video/filter/vf_vdpaupp.c @@ -41,8 +41,8 @@ // processing on the final rendering process in the VO. struct opts { - int deint_enabled; - int interlaced_only; + bool deint_enabled; + bool interlaced_only; struct mp_vdpau_mixer_opts opts; }; @@ -174,13 +174,13 @@ static const m_option_t vf_opts_fields[] = { {"temporal", 3}, {"temporal-spatial", 4}), OPTDEF_INT(3)}, - {"deint", OPT_FLAG(deint_enabled)}, - {"chroma-deint", OPT_FLAG(opts.chroma_deint), OPTDEF_INT(1)}, - {"pullup", OPT_FLAG(opts.pullup)}, + {"deint", OPT_BOOL(deint_enabled)}, + {"chroma-deint", OPT_BOOL(opts.chroma_deint), OPTDEF_INT(1)}, + {"pullup", OPT_BOOL(opts.pullup)}, {"denoise", OPT_FLOAT(opts.denoise), M_RANGE(0, 1)}, {"sharpen", OPT_FLOAT(opts.sharpen), M_RANGE(-1, 1)}, {"hqscaling", OPT_INT(opts.hqscaling), M_RANGE(0, 9)}, - {"interlaced-only", OPT_FLAG(interlaced_only)}, + {"interlaced-only", OPT_BOOL(interlaced_only)}, {0} }; |