summaryrefslogtreecommitdiffstats
path: root/video/sws_utils.c
diff options
context:
space:
mode:
authorChristoph Heinrich <christoph.heinrich@student.tugraz.at>2023-02-20 04:32:50 +0100
committerDudemanguy <random342@airmail.cc>2023-02-21 17:15:17 +0000
commit91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29 (patch)
tree448b141d92c9ea7636954213b587aaf380fc21db /video/sws_utils.c
parentb9850a6e8c45f95563a703af7f21dfe1c1ee40b6 (diff)
downloadmpv-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/sws_utils.c')
-rw-r--r--video/sws_utils.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/video/sws_utils.c b/video/sws_utils.c
index 3af60977ad..ad4c7025e9 100644
--- a/video/sws_utils.c
+++ b/video/sws_utils.c
@@ -52,9 +52,9 @@ struct sws_opts {
int chr_hshift;
float chr_sharpen;
float lum_sharpen;
- int fast;
- int bitexact;
- int zimg;
+ bool fast;
+ bool bitexact;
+ bool zimg;
};
#define OPT_BASE_STRUCT struct sws_opts
@@ -78,15 +78,15 @@ const struct m_sub_options sws_conf = {
{"chs", OPT_INT(chr_hshift)},
{"ls", OPT_FLOAT(lum_sharpen), M_RANGE(-100.0, 100.0)},
{"cs", OPT_FLOAT(chr_sharpen), M_RANGE(-100.0, 100.0)},
- {"fast", OPT_FLAG(fast)},
- {"bitexact", OPT_FLAG(bitexact)},
- {"allow-zimg", OPT_FLAG(zimg)},
+ {"fast", OPT_BOOL(fast)},
+ {"bitexact", OPT_BOOL(bitexact)},
+ {"allow-zimg", OPT_BOOL(zimg)},
{0}
},
.size = sizeof(struct sws_opts),
.defaults = &(const struct sws_opts){
.scaler = SWS_LANCZOS,
- .zimg = 1,
+ .zimg = true,
},
};