diff options
author | Pedro Arthur <bygrandao@gmail.com> | 2015-04-17 17:08:42 -0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-23 20:34:51 +0200 |
commit | 2a7128f4ed00dbc9209d6f24501bb76a0c14b490 (patch) | |
tree | 3a739ba52c2afdac13319c1b90c111239c7d1ebf /libswscale/options.c | |
parent | d9555adf06d55f7311d0b8be5bbe52f056ccaac7 (diff) | |
download | ffmpeg-2a7128f4ed00dbc9209d6f24501bb76a0c14b490.tar.gz |
Add gamma encodign/decoding before/after scaling in libswscale
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/options.c')
-rw-r--r-- | libswscale/options.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libswscale/options.c b/libswscale/options.c index 4d49c3e8cc..f08267c609 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 } }; |