Mercurial > mplayer.hg
comparison libvo/vo_gl.c @ 30107:11e3ee8cd05e
Put the colourspace-related variables into a separate struct to ease
extracting the code and sharing with other vos.
author | reimar |
---|---|
date | Thu, 31 Dec 2009 18:07:37 +0000 |
parents | 9d724e6def3e |
children | 0f25d3062987 |
comparison
equal
deleted
inserted
replaced
30106:e0d36dce5d85 | 30107:11e3ee8cd05e |
---|---|
214 float sat = (eq_sat + 100) / 100.0; | 214 float sat = (eq_sat + 100) / 100.0; |
215 float rgamma = exp(log(8.0) * eq_rgamma / 100.0); | 215 float rgamma = exp(log(8.0) * eq_rgamma / 100.0); |
216 float ggamma = exp(log(8.0) * eq_ggamma / 100.0); | 216 float ggamma = exp(log(8.0) * eq_ggamma / 100.0); |
217 float bgamma = exp(log(8.0) * eq_bgamma / 100.0); | 217 float bgamma = exp(log(8.0) * eq_bgamma / 100.0); |
218 gl_conversion_params_t params = {gl_target, yuvconvtype, | 218 gl_conversion_params_t params = {gl_target, yuvconvtype, |
219 bri, cont, hue, sat, rgamma, ggamma, bgamma, | 219 {bri, cont, hue, sat, rgamma, ggamma, bgamma}, |
220 texture_width, texture_height, 0, 0, filter_strength}; | 220 texture_width, texture_height, 0, 0, filter_strength}; |
221 mp_get_chroma_shift(image_format, &xs, &ys); | 221 mp_get_chroma_shift(image_format, &xs, &ys); |
222 params.chrom_texw = params.texw >> xs; | 222 params.chrom_texw = params.texw >> xs; |
223 params.chrom_texh = params.texh >> ys; | 223 params.chrom_texh = params.texh >> ys; |
224 glSetupYUVConversion(¶ms); | 224 glSetupYUVConversion(¶ms); |