Mercurial > mplayer.hg
comparison libvo/gl_common.h @ 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 | 0898adc64a6f |
comparison
equal
deleted
inserted
replaced
30106:e0d36dce5d85 | 30107:11e3ee8cd05e |
---|---|
325 //! extract luminance scaler out of type | 325 //! extract luminance scaler out of type |
326 #define YUV_LUM_SCALER(t) ((t >> YUV_LUM_SCALER_SHIFT) & YUV_SCALER_MASK) | 326 #define YUV_LUM_SCALER(t) ((t >> YUV_LUM_SCALER_SHIFT) & YUV_SCALER_MASK) |
327 //! extract chrominance scaler out of type | 327 //! extract chrominance scaler out of type |
328 #define YUV_CHROM_SCALER(t) ((t >> YUV_CHROM_SCALER_SHIFT) & YUV_SCALER_MASK) | 328 #define YUV_CHROM_SCALER(t) ((t >> YUV_CHROM_SCALER_SHIFT) & YUV_SCALER_MASK) |
329 /** \} */ | 329 /** \} */ |
330 typedef struct { | 330 |
331 GLenum target; | 331 struct mp_csp_params { |
332 int type; | |
333 float brightness; | 332 float brightness; |
334 float contrast; | 333 float contrast; |
335 float hue; | 334 float hue; |
336 float saturation; | 335 float saturation; |
337 float rgamma; | 336 float rgamma; |
338 float ggamma; | 337 float ggamma; |
339 float bgamma; | 338 float bgamma; |
339 }; | |
340 | |
341 typedef struct { | |
342 GLenum target; | |
343 int type; | |
344 struct mp_csp_params csp_params; | |
340 int texw; | 345 int texw; |
341 int texh; | 346 int texh; |
342 int chrom_texw; | 347 int chrom_texw; |
343 int chrom_texh; | 348 int chrom_texh; |
344 float filter_strength; | 349 float filter_strength; |