mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user