Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-09-25 10:11:00 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-09-25 10:19:08 +0300
commitd0279f7d36a6cba8bf91b9c6a982da5185a51ac4 (patch)
tree7d82e6c88d0ec4f5696958d524ef8c7a9e91a141 /source/blender/imbuf/IMB_imbuf.h
parent3142ae19d22767507ec190ff39c89210ac96c39d (diff)
Cleanup: use const for image blending functions
Diffstat (limited to 'source/blender/imbuf/IMB_imbuf.h')
-rw-r--r--source/blender/imbuf/IMB_imbuf.h31
1 files changed, 17 insertions, 14 deletions
diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h
index 7e7e489a6c3..6e49630dc46 100644
--- a/source/blender/imbuf/IMB_imbuf.h
+++ b/source/blender/imbuf/IMB_imbuf.h
@@ -218,15 +218,18 @@ typedef enum IMB_BlendMode {
} IMB_BlendMode;
void IMB_blend_color_byte(unsigned char dst[4],
- unsigned char src1[4],
- unsigned char src2[4],
+ const unsigned char src1[4],
+ const unsigned char src2[4],
IMB_BlendMode mode);
-void IMB_blend_color_float(float dst[4], float src1[4], float src2[4], IMB_BlendMode mode);
+void IMB_blend_color_float(float dst[4],
+ const float src1[4],
+ const float src2[4],
+ IMB_BlendMode mode);
void IMB_rect_crop(struct ImBuf *ibuf, const struct rcti *crop);
void IMB_rectclip(struct ImBuf *dbuf,
- struct ImBuf *sbuf,
+ const struct ImBuf *sbuf,
int *destx,
int *desty,
int *srcx,
@@ -234,7 +237,7 @@ void IMB_rectclip(struct ImBuf *dbuf,
int *width,
int *height);
void IMB_rectcpy(struct ImBuf *drect,
- struct ImBuf *srect,
+ const struct ImBuf *srect,
int destx,
int desty,
int srcx,
@@ -242,11 +245,11 @@ void IMB_rectcpy(struct ImBuf *drect,
int width,
int height);
void IMB_rectblend(struct ImBuf *dbuf,
- struct ImBuf *obuf,
- struct ImBuf *sbuf,
+ const struct ImBuf *obuf,
+ const struct ImBuf *sbuf,
unsigned short *dmask,
- unsigned short *curvemask,
- unsigned short *mmask,
+ const unsigned short *curvemask,
+ const unsigned short *mmask,
float mask_max,
int destx,
int desty,
@@ -259,11 +262,11 @@ void IMB_rectblend(struct ImBuf *dbuf,
IMB_BlendMode mode,
bool accumulate);
void IMB_rectblend_threaded(struct ImBuf *dbuf,
- struct ImBuf *obuf,
- struct ImBuf *sbuf,
+ const struct ImBuf *obuf,
+ const struct ImBuf *sbuf,
unsigned short *dmask,
- unsigned short *curvemask,
- unsigned short *mmask,
+ const unsigned short *curvemask,
+ const unsigned short *mmask,
float mask_max,
int destx,
int desty,
@@ -477,7 +480,7 @@ int imb_get_anim_type(const char *name);
*
* \attention Defined in util.c
*/
-bool IMB_isfloat(struct ImBuf *ibuf);
+bool IMB_isfloat(const struct ImBuf *ibuf);
/* Do byte/float and colorspace conversions need to take alpha into account? */
bool IMB_alpha_affects_rgb(const struct ImBuf *ibuf);