summaryrefslogtreecommitdiffstats
path: root/video/sws_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/sws_utils.c')
-rw-r--r--video/sws_utils.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/video/sws_utils.c b/video/sws_utils.c
index 55faadb1ee..ee37fc4f91 100644
--- a/video/sws_utils.c
+++ b/video/sws_utils.c
@@ -57,27 +57,27 @@ struct sws_opts {
#define OPT_BASE_STRUCT struct sws_opts
const struct m_sub_options sws_conf = {
.opts = (const m_option_t[]) {
- OPT_CHOICE("scaler", scaler, 0,
- ({"fast-bilinear", SWS_FAST_BILINEAR},
- {"bilinear", SWS_BILINEAR},
- {"bicubic", SWS_BICUBIC},
- {"x", SWS_X},
- {"point", SWS_POINT},
- {"area", SWS_AREA},
- {"bicublin", SWS_BICUBLIN},
- {"gauss", SWS_GAUSS},
- {"sinc", SWS_SINC},
- {"lanczos", SWS_LANCZOS},
- {"spline", SWS_SPLINE})),
- OPT_FLOATRANGE("lgb", lum_gblur, 0, 0, 100.0),
- OPT_FLOATRANGE("cgb", chr_gblur, 0, 0, 100.0),
- OPT_INT("cvs", chr_vshift, 0),
- OPT_INT("chs", chr_hshift, 0),
- OPT_FLOATRANGE("ls", lum_sharpen, 0, -100.0, 100.0),
- OPT_FLOATRANGE("cs", chr_sharpen, 0, -100.0, 100.0),
- OPT_FLAG("fast", fast, 0),
- OPT_FLAG("bitexact", bitexact, 0),
- OPT_FLAG("allow-zimg", zimg, 0),
+ {"scaler", OPT_CHOICE(scaler,
+ {"fast-bilinear", SWS_FAST_BILINEAR},
+ {"bilinear", SWS_BILINEAR},
+ {"bicubic", SWS_BICUBIC},
+ {"x", SWS_X},
+ {"point", SWS_POINT},
+ {"area", SWS_AREA},
+ {"bicublin", SWS_BICUBLIN},
+ {"gauss", SWS_GAUSS},
+ {"sinc", SWS_SINC},
+ {"lanczos", SWS_LANCZOS},
+ {"spline", SWS_SPLINE})},
+ {"lgb", OPT_FLOAT(lum_gblur), M_RANGE(0, 100.0)},
+ {"cgb", OPT_FLOAT(chr_gblur), M_RANGE(0, 100.0)},
+ {"cvs", OPT_INT(chr_vshift)},
+ {"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)},
{0}
},
.size = sizeof(struct sws_opts),