Color Management: RGB curves transform as a part of display transform
[blender-staging.git] / source / blender / makesdna / DNA_color_types.h
index 5ccc2579179787eebd02f78608b97e0c29455eeb..560caa40cff0e7c588fb7e6d8b6b821b44a1fd4d 100644 (file)
@@ -161,9 +161,11 @@ typedef struct Scopes {
 #define SCOPES_WAVEFRM_YCC_JPEG        4
 
 typedef struct ColorManagedViewSettings {
 #define SCOPES_WAVEFRM_YCC_JPEG        4
 
 typedef struct ColorManagedViewSettings {
+       int flag, pad;
        char view_transform[64];   /* view transform which is being applied when displaying buffer on the screen */
        float exposure;            /* fstop exposure */
        float gamma;               /* post-display gamma transform */
        char view_transform[64];   /* view transform which is being applied when displaying buffer on the screen */
        float exposure;            /* fstop exposure */
        float gamma;               /* post-display gamma transform */
+       struct CurveMapping *curve_mapping;  /* pre-display RGB curves transform */
 } ColorManagedViewSettings;
 
 typedef struct ColorManagedDisplaySettings {
 } ColorManagedViewSettings;
 
 typedef struct ColorManagedDisplaySettings {
@@ -174,5 +176,9 @@ typedef struct ColorManagedColorspaceSettings {
        char name[64];
 } ColorManagedColorspaceSettings;
 
        char name[64];
 } ColorManagedColorspaceSettings;
 
-#endif
+/* ColorManagedViewSettings->flag */
+enum {
+       COLORMANAGE_VIEW_USE_CURVES = (1 << 0)
+};
 
 
+#endif