diff options
author | Niklas Haas <git@nand.wakku.to> | 2015-02-03 12:29:19 +0100 |
---|---|---|
committer | Niklas Haas <git@nand.wakku.to> | 2015-02-03 12:29:19 +0100 |
commit | 9d62482cdc0664d433ddd632b03c3651f17562e8 (patch) | |
tree | 9ab42915eb4838d0e2229eaa3701dd53e26ab56a | |
parent | a51045bddd21a13c30db5d29cdc1d37243beccc8 (diff) | |
download | mpv-9d62482cdc0664d433ddd632b03c3651f17562e8.tar.bz2 mpv-9d62482cdc0664d433ddd632b03c3651f17562e8.tar.xz |
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.
-rw-r--r-- | DOCS/man/vo.rst | 2 | ||||
-rw-r--r-- | 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), |