diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2014-04-26 04:34:00 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2014-05-03 03:56:16 +0400 |
commit | 3312b20ac8c8a5e45d87c5c1f59ce0907350d398 (patch) | |
tree | dad21102570f80f4545e084febc2d736b80ea23e /source/blender/imbuf/IMB_imbuf.h | |
parent | 56d8affe422a0e20037ee94c7d0d12747bbbb81d (diff) |
IMB buffer functions to take a mask as input
The mask make sure the conversion only happens in a few areas of the
buffer.
New Functions:
* IMB_buffer_byte_from_float_mask
* IMB_buffer_float_from_float_mask
The functions are an adaptation of their maskless counterparts without accepting different profiles for the input and output buffers.
Review: Sergey Sharybin
Diffstat (limited to 'source/blender/imbuf/IMB_imbuf.h')
-rw-r--r-- | source/blender/imbuf/IMB_imbuf.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h index 6e21db0e039..090e7a66d41 100644 --- a/source/blender/imbuf/IMB_imbuf.h +++ b/source/blender/imbuf/IMB_imbuf.h @@ -389,12 +389,17 @@ void IMB_saturation(struct ImBuf *ibuf, float sat); void IMB_buffer_byte_from_float(unsigned char *rect_to, const float *rect_from, int channels_from, float dither, int profile_to, int profile_from, bool predivide, int width, int height, int stride_to, int stride_from); +void IMB_buffer_byte_from_float_mask(unsigned char *rect_to, const float *rect_from, + int channels_from, float dither, bool predivide, + int width, int height, int stride_to, int stride_from, char *mask); void IMB_buffer_float_from_byte(float *rect_to, const unsigned char *rect_from, int profile_to, int profile_from, bool predivide, int width, int height, int stride_to, int stride_from); void IMB_buffer_float_from_float(float *rect_to, const float *rect_from, int channels_from, int profile_to, int profile_from, bool predivide, int width, int height, int stride_to, int stride_from); +void IMB_buffer_float_from_float_mask(float *rect_to, const float *rect_from, + int channels_from, int width, int height, int stride_to, int stride_from, char *mask); void IMB_buffer_byte_from_byte(unsigned char *rect_to, const unsigned char *rect_from, int profile_to, int profile_from, bool predivide, int width, int height, int stride_to, int stride_from); |