From f296dcb248625d6e5979eae1e683b5f4522896f9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 3 Feb 2015 16:52:44 +0100 Subject: 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. --- video/csputils.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'video/csputils.h') 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, -- cgit v1.2.3