1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-04 14:12:10 +00:00

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.
This commit is contained in:
Niklas Haas 2015-02-03 12:29:19 +01:00
parent a51045bddd
commit 9d62482cdc
No known key found for this signature in database
GPG Key ID: 3BA77D4BFDB10BCE
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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),