Author: abrander
Date: 2009-10-21 03:01:36 +0200 (Wed, 21 Oct 2009)
New Revision: 2732

Modified:
   trunk/librawstudio/rs-color-space.h
Log:
Added flags to RSColorSpace.

Modified: trunk/librawstudio/rs-color-space.h
===================================================================
--- trunk/librawstudio/rs-color-space.h 2009-10-21 00:53:20 UTC (rev 2731)
+++ trunk/librawstudio/rs-color-space.h 2009-10-21 01:01:36 UTC (rev 2732)
@@ -65,9 +65,14 @@
 #define RS_IS_COLOR_SPACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), 
RS_TYPE_COLOR_SPACE))
 #define RS_COLOR_SPACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), 
RS_TYPE_COLOR_SPACE, RSColorSpaceClass))
 
+typedef enum {
+       RS_COLOR_SPACE_FLAG_REQUIRES_CMS = 1
+} RSColorSpaceFlag;
+
 typedef struct {
        GObject parent;
 
+       RSColorSpaceFlag flags;
        RS_MATRIX3 matrix_to_pcs;
        RS_MATRIX3 matrix_from_pcs;
 } RSColorSpace;
@@ -82,6 +87,8 @@
        const RS1dFunction *(*get_gamma_function)(const RSColorSpace 
*color_space);
 } RSColorSpaceClass;
 
+#define RS_COLOR_SPACE_REQUIRES_CMS(color_space) (!!((color_space)->flags & 
RS_COLOR_SPACE_FLAG_REQUIRES_CMS))
+
 GType rs_color_space_get_type(void);
 
 /**


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to