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 <campbell@blender.org>2022-01-07 03:38:08 +0300
committerCampbell Barton <campbell@blender.org>2022-01-07 06:16:26 +0300
commit3d3bc748849834ef74563deb603ab43859cffeeb (patch)
treede74ce4722b2cb032c22dbc090a15dd2e172c29b /source/blender/imbuf
parentbb69c19f08ac681d4386325e4318ebfbef2e9531 (diff)
Cleanup: remove redundant const qualifiers for POD types
MSVC used to warn about const mismatch for arguments passed by value. Remove these as newer versions of MSVC no longer show this warning.
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/IMB_colormanagement.h22
-rw-r--r--source/blender/imbuf/IMB_imbuf.h18
-rw-r--r--source/blender/imbuf/intern/openexr/openexr_multi.h2
3 files changed, 21 insertions, 21 deletions
diff --git a/source/blender/imbuf/IMB_colormanagement.h b/source/blender/imbuf/IMB_colormanagement.h
index 890c694d830..30f2f24447f 100644
--- a/source/blender/imbuf/IMB_colormanagement.h
+++ b/source/blender/imbuf/IMB_colormanagement.h
@@ -177,20 +177,20 @@ void IMB_colormanagement_colorspace_to_scene_linear(float *buffer,
bool predivide);
void IMB_colormanagement_imbuf_to_byte_texture(unsigned char *out_buffer,
- const int x,
- const int y,
- const int width,
- const int height,
+ int x,
+ int y,
+ int width,
+ int height,
const struct ImBuf *ibuf,
- const bool compress_as_srgb,
- const bool store_premultiplied);
+ bool compress_as_srgb,
+ bool store_premultiplied);
void IMB_colormanagement_imbuf_to_float_texture(float *out_buffer,
- const int offset_x,
- const int offset_y,
- const int width,
- const int height,
+ int offset_x,
+ int offset_y,
+ int width,
+ int height,
const struct ImBuf *ibuf,
- const bool store_premultiplied);
+ bool store_premultiplied);
/**
* Conversion between color picking role. Typically we would expect such a
diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h
index 1f698c65382..c7481c6ea67 100644
--- a/source/blender/imbuf/IMB_imbuf.h
+++ b/source/blender/imbuf/IMB_imbuf.h
@@ -378,7 +378,7 @@ struct IndexBuildContext *IMB_anim_index_rebuild_context(struct anim *anim,
IMB_Timecode_Type tcs_in_use,
IMB_Proxy_Size proxy_sizes_in_use,
int quality,
- const bool overwrite,
+ bool overwrite,
struct GSet *file_list);
/**
@@ -536,7 +536,7 @@ void IMB_scaleImBuf_threaded(struct ImBuf *ibuf, unsigned int newx, unsigned int
* \attention Defined in writeimage.c
*/
bool IMB_saveiff(struct ImBuf *ibuf, const char *filepath, int flags);
-bool IMB_prepare_write_ImBuf(const bool isfloat, struct ImBuf *ibuf);
+bool IMB_prepare_write_ImBuf(bool isfloat, struct ImBuf *ibuf);
/**
*
@@ -837,7 +837,7 @@ void IMB_rectfill_area(struct ImBuf *ibuf,
*/
void IMB_rectfill_area_replace(
const struct ImBuf *ibuf, const float col[4], int x1, int y1, int x2, int y2);
-void IMB_rectfill_alpha(struct ImBuf *ibuf, const float value);
+void IMB_rectfill_alpha(struct ImBuf *ibuf, float value);
/**
* This should not be here, really,
@@ -929,8 +929,8 @@ typedef enum eIMBTransformMode {
*/
void IMB_transform(const struct ImBuf *src,
struct ImBuf *dst,
- const eIMBTransformMode mode,
- const eIMBInterpolationFilterMode filter,
+ eIMBTransformMode mode,
+ eIMBInterpolationFilterMode filter,
const float transform_matrix[4][4],
const struct rctf *src_crop);
@@ -972,14 +972,14 @@ void IMB_update_gpu_texture_sub(struct GPUTexture *tex,
/**
* \attention defined in stereoimbuf.c
*/
-void IMB_stereo3d_write_dimensions(const char mode,
- const bool is_squeezed,
+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(const char mode,
- const bool is_squeezed,
+void IMB_stereo3d_read_dimensions(char mode,
+ bool is_squeezed,
const size_t width,
const size_t height,
size_t *r_width,
diff --git a/source/blender/imbuf/intern/openexr/openexr_multi.h b/source/blender/imbuf/intern/openexr/openexr_multi.h
index 6694c32820b..0c3c4a4400f 100644
--- a/source/blender/imbuf/intern/openexr/openexr_multi.h
+++ b/source/blender/imbuf/intern/openexr/openexr_multi.h
@@ -60,7 +60,7 @@ void IMB_exr_add_channel(void *handle,
* Read from file.
*/
bool IMB_exr_begin_read(
- void *handle, const char *filename, int *width, int *height, const bool parse_channels);
+ void *handle, const char *filename, int *width, int *height, bool parse_channels);
/**
* Used for output files (from #RenderResult) (single and multi-layer, single and multi-view).
*/