diff options
author | wm4 <wm4@nowhere> | 2015-02-03 16:52:44 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-03 16:52:44 +0100 |
commit | f296dcb248625d6e5979eae1e683b5f4522896f9 (patch) | |
tree | 955606d2a9d73f4dee1e1404053e446a45c038e7 /video/csputils.h | |
parent | 0f560bbf8a9a10411be2688dba9363621da0437d (diff) | |
download | mpv-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.h')
-rw-r--r-- | video/csputils.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/video/csputils.h b/video/csputils.h index 4f0a09da6e..029b3213e4 100644 --- a/video/csputils.h +++ b/video/csputils.h @@ -114,9 +114,7 @@ struct mp_csp_params { float contrast; float hue; float saturation; - float rgamma; - float ggamma; - float bgamma; + float gamma; // discard U/V components bool gray; // texture_bits/input_bits is for rescaling fixed point input to range [0,1] @@ -132,8 +130,7 @@ struct mp_csp_params { .levels_in = MP_CSP_LEVELS_TV, \ .levels_out = MP_CSP_LEVELS_PC, \ .brightness = 0, .contrast = 1, .hue = 0, .saturation = 1, \ - .rgamma = 1, .ggamma = 1, .bgamma = 1, \ - .texture_bits = 8, .input_bits = 8} + .gamma = 1, .texture_bits = 8, .input_bits = 8} struct mp_image_params; void mp_csp_set_image_params(struct mp_csp_params *params, |