diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-12 17:42:34 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-12-13 21:25:46 +0300 |
commit | f527ce5b2f5bb300a7fe55db33d1e3a4da8051c7 (patch) | |
tree | df1226d253b2a7c2e66cba75b37f9ec0a475c288 /source/blender/imbuf/IMB_colormanagement.h | |
parent | 6601a89650f92454aa57bc01bedebd4086f6d98d (diff) |
Color management: add OCIO aware utility functions for transform to/from XYZ.
Diffstat (limited to 'source/blender/imbuf/IMB_colormanagement.h')
-rw-r--r-- | source/blender/imbuf/IMB_colormanagement.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/imbuf/IMB_colormanagement.h b/source/blender/imbuf/IMB_colormanagement.h index 29e54158f4b..437a699208b 100644 --- a/source/blender/imbuf/IMB_colormanagement.h +++ b/source/blender/imbuf/IMB_colormanagement.h @@ -71,6 +71,8 @@ const char *IMB_colormanagement_get_rect_colorspace(struct ImBuf *ibuf); BLI_INLINE float IMB_colormanagement_get_luminance(const float rgb[3]); BLI_INLINE unsigned char IMB_colormanagement_get_luminance_byte(const unsigned char[3]); +BLI_INLINE void IMB_colormangement_xyz_to_rgb(float rgb[3], const float xyz[3]); +BLI_INLINE void IMB_colormangement_rgb_to_xyz(float xyz[3], const float rgb[3]); /* ** Color space transformation functions ** */ void IMB_colormanagement_transform(float *buffer, int width, int height, int channels, @@ -99,6 +101,9 @@ void IMB_colormanagement_colorspace_to_scene_linear(float *buffer, int width, in void IMB_colormanagement_scene_linear_to_color_picking_v3(float pixel[3]); void IMB_colormanagement_color_picking_to_scene_linear_v3(float pixel[3]); +void IMB_colormanagement_scene_linear_to_srgb_v3(float pixel[3]); +void IMB_colormanagement_srgb_to_scene_linear_v3(float pixel[3]); + void IMB_colormanagement_scene_linear_to_display_v3(float pixel[3], struct ColorManagedDisplay *display); void IMB_colormanagement_display_to_scene_linear_v3(float pixel[3], struct ColorManagedDisplay *display); |