diff options
Diffstat (limited to 'source/blender/imbuf/IMB_imbuf.h')
-rw-r--r-- | source/blender/imbuf/IMB_imbuf.h | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h index 65d7631445d..c7481c6ea67 100644 --- a/source/blender/imbuf/IMB_imbuf.h +++ b/source/blender/imbuf/IMB_imbuf.h @@ -544,7 +544,7 @@ bool IMB_prepare_write_ImBuf(bool isfloat, struct ImBuf *ibuf); */ bool IMB_ispic(const char *filepath); bool IMB_ispic_type_matches(const char *filepath, int filetype); -int IMB_ispic_type_from_memory(const unsigned char *buf, size_t buf_size); +int IMB_ispic_type_from_memory(const unsigned char *buf, const size_t buf_size); int IMB_ispic_type(const char *filepath); /** @@ -972,20 +972,28 @@ void IMB_update_gpu_texture_sub(struct GPUTexture *tex, /** * \attention defined in stereoimbuf.c */ -void IMB_stereo3d_write_dimensions( - char mode, bool is_squeezed, size_t width, size_t height, size_t *r_width, size_t *r_height); -void IMB_stereo3d_read_dimensions( - char mode, bool is_squeezed, size_t width, size_t height, size_t *r_width, size_t *r_height); +void IMB_stereo3d_write_dimensions(char mode, + bool is_squeezed, + const size_t width, + const size_t height, + size_t *r_width, + size_t *r_height); +void IMB_stereo3d_read_dimensions(char mode, + bool is_squeezed, + const size_t width, + const size_t height, + size_t *r_width, + size_t *r_height); int *IMB_stereo3d_from_rect(struct ImageFormatData *im_format, - size_t x, - size_t y, - size_t channels, + const size_t x, + const size_t y, + const size_t channels, int *rect_left, int *rect_right); float *IMB_stereo3d_from_rectf(struct ImageFormatData *im_format, - size_t x, - size_t y, - size_t channels, + const size_t x, + const size_t y, + const size_t channels, float *rectf_left, float *rectf_right); /** |