[Bf-blender-cvs] [69dbeeca48] master: Cleanup: Use const qualifier in some of color management code
Sergey Sharybin
noreply at git.blender.org
Tue Feb 7 17:50:31 CET 2017
Commit: 69dbeeca48011810fb353b3ce692ae364568a239
Author: Sergey Sharybin
Date: Tue Feb 7 17:49:35 2017 +0100
Branches: master
https://developer.blender.org/rB69dbeeca48011810fb353b3ce692ae364568a239
Cleanup: Use const qualifier in some of color management code
===================================================================
M source/blender/imbuf/intern/colormanagement.c
===================================================================
diff --git a/source/blender/imbuf/intern/colormanagement.c b/source/blender/imbuf/intern/colormanagement.c
index c16fd9b27f..48cba3e080 100644
--- a/source/blender/imbuf/intern/colormanagement.c
+++ b/source/blender/imbuf/intern/colormanagement.c
@@ -1581,12 +1581,12 @@ static void processor_transform_init_handle(void *handle_v, int start_line, int
ProcessorTransformThread *handle = (ProcessorTransformThread *) handle_v;
ProcessorTransformInitData *init_data = (ProcessorTransformInitData *) init_data_v;
- int channels = init_data->channels;
- int width = init_data->width;
- bool predivide = init_data->predivide;
- bool float_from_byte = init_data->float_from_byte;
+ const int channels = init_data->channels;
+ const int width = init_data->width;
+ const bool predivide = init_data->predivide;
+ const bool float_from_byte = init_data->float_from_byte;
- size_t offset = ((size_t)channels) * start_line * width;
+ const size_t offset = ((size_t)channels) * start_line * width;
memset(handle, 0, sizeof(ProcessorTransformThread));
@@ -1615,11 +1615,11 @@ static void *do_processor_transform_thread(void *handle_v)
ProcessorTransformThread *handle = (ProcessorTransformThread *) handle_v;
unsigned char *byte_buffer = handle->byte_buffer;
float *float_buffer = handle->float_buffer;
- int channels = handle->channels;
- int width = handle->width;
- int height = handle->tot_line;
- bool predivide = handle->predivide;
- bool float_from_byte = handle->float_from_byte;
+ const int channels = handle->channels;
+ const int width = handle->width;
+ const int height = handle->tot_line;
+ const bool predivide = handle->predivide;
+ const bool float_from_byte = handle->float_from_byte;
if (float_from_byte) {
IMB_buffer_float_from_byte(float_buffer, byte_buffer,
More information about the Bf-blender-cvs
mailing list