diff options
author | wm4 <wm4@nowhere> | 2014-02-27 00:53:41 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-02-27 00:53:41 +0100 |
commit | 8a51a6b79c2790d97aed2dd107ed1f3a70f95236 (patch) | |
tree | f5439ac4a681911123d45be8c6a65ecfbb58a490 /video/out/gl_video.h | |
parent | 6119cf13bed2689d025c15e6b7d874e44b39ef08 (diff) | |
download | mpv-8a51a6b79c2790d97aed2dd107ed1f3a70f95236.tar.bz2 mpv-8a51a6b79c2790d97aed2dd107ed1f3a70f95236.tar.xz |
vo_opengl: change gamma suboption to take a value
The previous version of the gamma suboption was pretty useless. It could
be used to disable delayed gamma enabling, which is a mechanism to avoid
having to adjust gamma in the shader by default.
Repurpose the suboption and allow setting an exact gamma value with it.
You can already override gamma with the --gamma option as well as the
gamma input property, but these use a weird curve to create the
impression of a linear perceived brightness change when changing the
value. This suboption now allows setting an exact gamma value.
Diffstat (limited to 'video/out/gl_video.h')
-rw-r--r-- | video/out/gl_video.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gl_video.h b/video/out/gl_video.h index a4f864a9dd..e997e88fb6 100644 --- a/video/out/gl_video.h +++ b/video/out/gl_video.h @@ -31,7 +31,7 @@ struct gl_video_opts { char *scalers[2]; float scaler_params[2]; int indirect; - int gamma; + float gamma; int srgb; int scale_sep; int fancy_downscaling; |