diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-06-15 19:00:51 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-06-15 19:00:51 +0400 |
commit | 471627ba96abcccc01c702f121151336366bba91 (patch) | |
tree | 5633cc19d1faaaabcddc30da8e48f5b1ab75f583 /source/blender/makesdna | |
parent | 05153fb08d62e0eed39e126e339cbd3dec5be6d6 (diff) |
Commit current patch needed for color pipeline investigation in Mango Project
This commit simply adds view transform option for image editor. This transform
is being applied on original linear color when float buffer is being converted
into sRGB byte buffer.
Currently supports such transformations:
- ACES ODT ToneCurve transform which shall preserve color ranges on such
a conversion.
- OCIO Raw, Log and RRT view transforms
This commit also contains integration of OCIO backends to Blender, so
now there's c-api and configuration file. Most of things were got from
branch where Xavier Thomas and Lukas Toene were working.
NOTE:
This is just for testing our pipeline, please do not bother me with messages
it's done wrong. It is done correct to support our own pipeline for now, and
real design would be created later when current stoppers for the project are
gone.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_space_types.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index 2f6ea861cba..75dc515ef39 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -689,6 +689,9 @@ typedef struct SpaceImage { char sticky; /* sticky selection type */ char dt_uvstretch; char around; + + /* color transformation */ + int view_transform, pad2; } SpaceImage; @@ -752,6 +755,15 @@ typedef enum eSpaceImage_Flag { SI_COLOR_CORRECTION = (1 << 24), } eSpaceImage_Flag; +/* SpaceImage->flag */ +typedef enum eSpaceImage_ViewTransform { + SI_VIEW_TRANSFORM_NONE = 0, + SI_VIEW_TRANSFORM_ACES_ODT_TONECURVE = 1, + SI_VIEW_TRANSFORM_OCIO_RAW = 2, + SI_VIEW_TRANSFORM_OCIO_RRT = 3, + SI_VIEW_TRANSFORM_OCIO_LOG = 4, +} eSpaceImage_ViewTransform; + /* Text Editor ============================================ */ /* Text Editor */ |