X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libswscale%2Foptions.c;h=f08267c60960867018cb85a280151d86d3f0b0b9;hb=02b5af7744059aecd580e5d7be60964695bd5a75;hp=4d49c3e8cc12f01785e97a91896b72482ab29c51;hpb=122150168f7d2a1bdc5c208505366d1a9e9c3892;p=ffmpeg diff --git a/libswscale/options.c b/libswscale/options.c index 4d49c3e8cc1..f08267c6096 100644 --- a/libswscale/options.c +++ b/libswscale/options.c @@ -75,6 +75,9 @@ 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" }, { NULL } };