diff 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
line wrap: on
line diff
--- a/libvo/gl_common.h	Thu Dec 31 16:47:53 2009 +0000
+++ b/libvo/gl_common.h	Thu Dec 31 18:07:37 2009 +0000
@@ -327,9 +327,8 @@
 //! extract chrominance scaler out of type
 #define YUV_CHROM_SCALER(t) ((t >> YUV_CHROM_SCALER_SHIFT) & YUV_SCALER_MASK)
 /** \} */
-typedef struct {
-  GLenum target;
-  int type;
+
+struct mp_csp_params {
   float brightness;
   float contrast;
   float hue;
@@ -337,6 +336,12 @@
   float rgamma;
   float ggamma;
   float bgamma;
+};
+
+typedef struct {
+  GLenum target;
+  int type;
+  struct mp_csp_params csp_params;
   int texw;
   int texh;
   int chrom_texw;