From 9d62482cdc0664d433ddd632b03c3651f17562e8 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Tue, 3 Feb 2015 12:29:19 +0100 Subject: vo_opengl: change upper bound of :gamma to 2.0 This allows a spread of 1.0 in either direction, which is already close to absurd. Anything higher than that is pretty pointless. --- DOCS/man/vo.rst | 2 +- video/out/gl_video.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DOCS/man/vo.rst b/DOCS/man/vo.rst index 729108d6bc..ded4d0ec96 100644 --- a/DOCS/man/vo.rst +++ b/DOCS/man/vo.rst @@ -504,7 +504,7 @@ Available video output drivers are: rgb32f, rgba12, rgba16, rgba16f, rgba32f. Default: rgba. - ``gamma=<0.0..10.0>`` + ``gamma=<0.0..2.0>`` Set a gamma value. If gamma is adjusted in other ways (like with the ``--gamma`` option or key bindings and the ``gamma`` property), the value is multiplied with the other gamma value. Setting this value to diff --git a/video/out/gl_video.c b/video/out/gl_video.c index cef901d1b6..5ad935bd70 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -344,7 +344,7 @@ static int validate_scaler_opt(struct mp_log *log, const m_option_t *opt, #define OPT_BASE_STRUCT struct gl_video_opts const struct m_sub_options gl_video_conf = { .opts = (const m_option_t[]) { - OPT_FLOATRANGE("gamma", gamma, 0, 0.0, 10.0), + OPT_FLOATRANGE("gamma", gamma, 0, 0.0, 2.0), OPT_FLAG("srgb", srgb, 0), OPT_FLAG("npot", npot, 0), OPT_FLAG("pbo", pbo, 0), -- cgit v1.2.3