diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-02-07 19:49:35 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-02-07 19:49:54 +0300 |
commit | 69dbeeca48011810fb353b3ce692ae364568a239 (patch) | |
tree | 103e6cfe40af4806c7e8fe05e97ed26bc10fdeb3 /source/blender/imbuf/intern/colormanagement.c | |
parent | b641d016e1ba5fa4c1608d8655dae9d66b92fadc (diff) |
Cleanup: Use const qualifier in some of color management code
Diffstat (limited to 'source/blender/imbuf/intern/colormanagement.c')
-rw-r--r-- | source/blender/imbuf/intern/colormanagement.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/imbuf/intern/colormanagement.c b/source/blender/imbuf/intern/colormanagement.c index c16fd9b27fb..48cba3e0800 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, |