diff options
Diffstat (limited to 'source/blender/imbuf/IMB_imbuf.h')
-rw-r--r-- | source/blender/imbuf/IMB_imbuf.h | 31 |
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); |