diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-12-18 13:51:09 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-12-18 13:51:09 +0400 |
commit | 2249d71e2636b99691281139c82b03f754c313b7 (patch) | |
tree | a3a13007e7c8a4b9974a874cde87f270450a7860 /source/blender/imbuf/IMB_colormanagement.h | |
parent | d791e606879f3f10323c07f3f3b338d82f03e08c (diff) |
Color management: added utility function to apply processor on a pixel
It applies color management on a pixel in a way, based on number of
channels of this pixel.
Simplifies partial update code a bit.
Diffstat (limited to 'source/blender/imbuf/IMB_colormanagement.h')
-rw-r--r-- | source/blender/imbuf/IMB_colormanagement.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/imbuf/IMB_colormanagement.h b/source/blender/imbuf/IMB_colormanagement.h index 98962f73b73..263216cc5da 100644 --- a/source/blender/imbuf/IMB_colormanagement.h +++ b/source/blender/imbuf/IMB_colormanagement.h @@ -166,6 +166,7 @@ struct ColormanageProcessor *IMB_colormanagement_colorspace_processor_new(const void IMB_colormanagement_processor_apply_v4(struct ColormanageProcessor *cm_processor, float pixel[4]); void IMB_colormanagement_processor_apply_v4_predivide(struct ColormanageProcessor *cm_processor, float pixel[4]); void IMB_colormanagement_processor_apply_v3(struct ColormanageProcessor *cm_processor, float pixel[3]); +void IMB_colormanagement_processor_apply_pixel(struct ColormanageProcessor *cm_processor, float *pixel, int channels); void IMB_colormanagement_processor_apply(struct ColormanageProcessor *cm_processor, float *buffer, int width, int height, int channels, bool predivide); void IMB_colormanagement_processor_free(struct ColormanageProcessor *cm_processor); |