diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-26 18:20:13 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-26 18:25:15 +0400 |
commit | a2c107aef1c8aaf7deb17dd0319bc07e55cb4293 (patch) | |
tree | ae3a039dc5b139a276243b4ae4eed1bbc90c84e2 /source/blender/blenkernel/intern/seqmodifier.c | |
parent | 11310b554ab2f08c9f0d086f5f07694ba7ca9f19 (diff) |
Code cleanup: use 'const' for arrays (blenkernel)
Diffstat (limited to 'source/blender/blenkernel/intern/seqmodifier.c')
-rw-r--r-- | source/blender/blenkernel/intern/seqmodifier.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/seqmodifier.c b/source/blender/blenkernel/intern/seqmodifier.c index 2b5bc884315..b78529f51b4 100644 --- a/source/blender/blenkernel/intern/seqmodifier.c +++ b/source/blender/blenkernel/intern/seqmodifier.c @@ -214,7 +214,7 @@ static void curves_apply_threaded(int width, int height, unsigned char *rect, fl curvemapping_evaluate_premulRGBF(curve_mapping, result, pixel); if (mask_rect_float) { - float *m = mask_rect_float + pixel_index; + const float *m = mask_rect_float + pixel_index; pixel[0] = pixel[0] * (1.0f - m[0]) + result[0] * m[0]; pixel[1] = pixel[1] * (1.0f - m[1]) + result[1] * m[1]; @@ -454,7 +454,7 @@ static void brightcontrast_apply_threaded(int width, int height, unsigned char * v = a * i + b; if (mask_rect_float) { - float *m = mask_rect_float + pixel_index; + const float *m = mask_rect_float + pixel_index; pixel[c] = pixel[c] * (1.0f - m[c]) + v * m[c]; } @@ -518,7 +518,7 @@ static void maskmodifier_apply_threaded(int width, int height, unsigned char *re else if (rect_float) { int c; float *pixel = rect_float + pixel_index; - float *mask_pixel = mask_rect_float + pixel_index; + const float *mask_pixel = mask_rect_float + pixel_index; float mask = min_fff(mask_pixel[0], mask_pixel[1], mask_pixel[2]); /* float buffers are premultiplied, so need to premul color |