summaryrefslogtreecommitdiffstats
path: root/libswscale/options.c
diff options
context:
space:
mode:
authorPedro Arthur <bygrandao@gmail.com>2015-04-17 17:08:42 -0300
committerMichael Niedermayer <michaelni@gmx.at>2015-04-23 20:34:51 +0200
commit2a7128f4ed00dbc9209d6f24501bb76a0c14b490 (patch)
tree3a739ba52c2afdac13319c1b90c111239c7d1ebf /libswscale/options.c
parentd9555adf06d55f7311d0b8be5bbe52f056ccaac7 (diff)
downloadffmpeg-streaming-2a7128f4ed00dbc9209d6f24501bb76a0c14b490.zip
ffmpeg-streaming-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.c3
1 files changed, 3 insertions, 0 deletions
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 }
};
OpenPOWER on IntegriCloud