From 2a7128f4ed00dbc9209d6f24501bb76a0c14b490 Mon Sep 17 00:00:00 2001 From: Pedro Arthur Date: Fri, 17 Apr 2015 17:08:42 -0300 Subject: Add gamma encodign/decoding before/after scaling in libswscale Signed-off-by: Michael Niedermayer --- libswscale/options.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libswscale/options.c') diff --git a/libswscale/options.c b/libswscale/options.c index 4d49c3e..f08267c 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 } }; -- cgit v1.1