summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2015-09-06 19:25:13 +0200
committerClément Bœsch <u@pkh.me>2015-09-08 22:39:24 +0200
commitc97cd1169c557759732773f77e8b2bb3d82d3296 (patch)
tree73ec0309531c5ba1a91bb344f5d9318d895d68f9 /libswscale
parentae32c9916d5b7cb000565f9b1a68fa89cd0d23e5 (diff)
downloadffmpeg-streaming-c97cd1169c557759732773f77e8b2bb3d82d3296.zip
ffmpeg-streaming-c97cd1169c557759732773f77e8b2bb3d82d3296.tar.gz
swscale: use AV_OPT_TYPE_BOOL
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/options.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libswscale/options.c b/libswscale/options.c
index 18a6594..ac35af7 100644
--- a/libswscale/options.c
+++ b/libswscale/options.c
@@ -75,9 +75,7 @@ static const AVOption swscale_options[] = {
{ "ed", "error diffusion", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_ED }, INT_MIN, INT_MAX, VE, "sws_dither" },
{ "a_dither", "arithmetic addition dither", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_A_DITHER}, INT_MIN, INT_MAX, VE, "sws_dither" },
{ "x_dither", "arithmetic xor dither", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_X_DITHER}, INT_MIN, INT_MAX, VE, "sws_dither" },
- { "gamma", "gamma correct scaling", OFFSET(gamma_flag), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, VE, "gamma" },
- { "true", "enable", 0, AV_OPT_TYPE_CONST, { .i64 = 1 }, INT_MIN, INT_MAX, VE, "gamma" },
- { "false", "disable", 0, AV_OPT_TYPE_CONST, { .i64 = 0 }, INT_MIN, INT_MAX, VE, "gamma" },
+ { "gamma", "gamma correct scaling", OFFSET(gamma_flag),AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE },
{ "alphablend", "mode for alpha -> non alpha", OFFSET(alphablend),AV_OPT_TYPE_INT, { .i64 = SWS_ALPHA_BLEND_NONE}, 0, SWS_ALPHA_BLEND_NB-1, VE, "alphablend" },
{ "none", "ignore alpha", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_ALPHA_BLEND_NONE}, INT_MIN, INT_MAX, VE, "alphablend" },
{ "uniform_color", "blend onto a uniform color", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_ALPHA_BLEND_UNIFORM},INT_MIN, INT_MAX, VE, "alphablend" },
OpenPOWER on IntegriCloud