summaryrefslogtreecommitdiffstats
path: root/video/csputils.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-03 16:52:44 +0100
committerwm4 <wm4@nowhere>2015-02-03 16:52:44 +0100
commitf296dcb248625d6e5979eae1e683b5f4522896f9 (patch)
tree955606d2a9d73f4dee1e1404053e446a45c038e7 /video/csputils.c
parent0f560bbf8a9a10411be2688dba9363621da0437d (diff)
downloadmpv-f296dcb248625d6e5979eae1e683b5f4522896f9.tar.bz2
mpv-f296dcb248625d6e5979eae1e683b5f4522896f9.tar.xz
csputils, vo_opengl: remove per-component gamma
There was some code accounting for different gamma values for R/G/B. It's inherited from an old, undocumented MPlayer feature, which was at some point disabled for convenience by myself (meaning you couldn't actually set separate gamma because it was removed from the property interface - mp_csp_copy_equalizer_values() just set them to the same value). Get rid of these meaningless leftovers.
Diffstat (limited to 'video/csputils.c')
-rw-r--r--video/csputils.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/video/csputils.c b/video/csputils.c
index 00e6d32cd2..835f06bcd9 100644
--- a/video/csputils.c
+++ b/video/csputils.c
@@ -633,10 +633,7 @@ void mp_csp_copy_equalizer_values(struct mp_csp_params *params,
params->contrast = (eq->values[MP_CSP_EQ_CONTRAST] + 100) / 100.0;
params->hue = eq->values[MP_CSP_EQ_HUE] / 100.0 * M_PI;
params->saturation = (eq->values[MP_CSP_EQ_SATURATION] + 100) / 100.0;
- float gamma = exp(log(8.0) * eq->values[MP_CSP_EQ_GAMMA] / 100.0);
- params->rgamma = gamma;
- params->ggamma = gamma;
- params->bgamma = gamma;
+ params->gamma = exp(log(8.0) * eq->values[MP_CSP_EQ_GAMMA] / 100.0);
}
static int find_eq(int capabilities, const char *name)