diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-09-09 13:48:26 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-09-09 13:48:26 +0400 |
commit | cf8cddf07a34fe34ccb1223215c38de9effe6688 (patch) | |
tree | c5dea10e70e3043aa093ab7f97dffbe514b7cc09 /source/blender/imbuf/intern/IMB_colormanagement_intern.h | |
parent | 0392acc607d26f3fb2681c7d8b0e5ad3a2d50d9a (diff) |
Film response curves implemented as a looks
This commit implement's OCIO's Looks idea which
is about applying some color correction on the
buffer before it get's affected by a display
transform.
This is mainly used to modify images in an
artistics way.
Currently we've got looks generated from film
response curves for all sorts of cameras.
Patch by both of me and Brecht.
Diffstat (limited to 'source/blender/imbuf/intern/IMB_colormanagement_intern.h')
-rw-r--r-- | source/blender/imbuf/intern/IMB_colormanagement_intern.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/IMB_colormanagement_intern.h b/source/blender/imbuf/intern/IMB_colormanagement_intern.h index 3e201a2fc28..eca441c01e5 100644 --- a/source/blender/imbuf/intern/IMB_colormanagement_intern.h +++ b/source/blender/imbuf/intern/IMB_colormanagement_intern.h @@ -69,6 +69,14 @@ typedef struct ColorManagedView { char name[MAX_COLORSPACE_NAME]; } ColorManagedView; +typedef struct ColorManagedLook { + struct ColorManagedLook *next, *prev; + int index; + char name[MAX_COLORSPACE_NAME]; + char process_space[MAX_COLORSPACE_NAME]; + bool is_noop; +} ColorManagedLook; + /* ** Initialization / De-initialization ** */ void colormanagement_init(void); @@ -93,6 +101,10 @@ struct ColorSpace *colormanage_colorspace_get_named(const char *name); struct ColorSpace *colormanage_colorspace_get_roled(int role); struct ColorSpace *colormanage_colorspace_get_indexed(int index); +struct ColorManagedLook *colormanage_look_add(const char *name, const char *process_space, bool is_noop); +struct ColorManagedLook *colormanage_look_get_named(const char *name); +struct ColorManagedLook *colormanage_look_get_indexed(int index); + void colorspace_set_default_role(char *colorspace, int size, int role); void colormanage_imbuf_set_default_spaces(struct ImBuf *ibuf); |