diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-21 18:18:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-21 23:30:08 +0300 |
commit | e9a01c1d2f6edaf2902f82c73c98ff7d25627878 (patch) | |
tree | 93a40a63e99ba4a2ff2af0e66891b7e18f1db2db /source/blender/imbuf/intern/colormanagement.c | |
parent | faabf92a7e891b355faf8ba6e2e2461e94262aab (diff) |
Cleanup: comments (long lines) in imbuf
Diffstat (limited to 'source/blender/imbuf/intern/colormanagement.c')
-rw-r--r-- | source/blender/imbuf/intern/colormanagement.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/source/blender/imbuf/intern/colormanagement.c b/source/blender/imbuf/intern/colormanagement.c index 1370ea40137..46c08afe201 100644 --- a/source/blender/imbuf/intern/colormanagement.c +++ b/source/blender/imbuf/intern/colormanagement.c @@ -332,8 +332,8 @@ static ImBuf *colormanage_cache_get_ibuf(ImBuf *ibuf, struct MovieCache *moviecache = colormanage_moviecache_get(ibuf); if (!moviecache) { - /* if there's no moviecache it means no color management was applied on given image buffer before */ - + /* If there's no moviecache it means no color management was applied + * on given image buffer before. */ return NULL; } @@ -425,7 +425,8 @@ static void colormanage_cache_put(ImBuf *ibuf, cache_ibuf->mall |= IB_rect; cache_ibuf->flags |= IB_rect; - /* store data which is needed to check whether cached buffer could be used for color managed display settings */ + /* Store data which is needed to check whether cached buffer + * could be used for color managed display settings. */ cache_data = MEM_callocN(sizeof(ColormanageCacheData), "color manage cache imbuf data"); cache_data->look = view_settings->look; cache_data->exposure = view_settings->exposure; @@ -1798,7 +1799,8 @@ static void processor_transform_apply_threaded(unsigned char *byte_buffer, /*********************** Color space transformation functions *************************/ -/* convert the whole buffer from specified by name color space to another - internal implementation */ +/* Convert the whole buffer from specified by name color space to another - + * internal implementation. */ static void colormanagement_transform_ex(unsigned char *byte_buffer, float *float_buffer, int width, @@ -2249,8 +2251,9 @@ ImBuf *IMB_colormanagement_imbuf_for_write(ImBuf *ibuf, colormanaged_ibuf = IMB_dupImBuf(ibuf); } else { - /* render pipeline is constructing image buffer itself, but it's re-using byte and float buffers from render result - * make copy of this buffers here sine this buffers would be transformed to other color space here + /* Render pipeline is constructing image buffer itself, + * but it's re-using byte and float buffers from render result make copy of this buffers + * here sine this buffers would be transformed to other color space here. */ if (ibuf->rect && (ibuf->mall & IB_rect) == 0) { @@ -3843,7 +3846,10 @@ bool IMB_colormanagement_setup_glsl_draw(const ColorManagedViewSettings *view_se view_settings, display_settings, NULL, dither, predivide); } -/* Same as setup_glsl_draw_from_space, but color management settings are guessing from a given context */ +/** + * Same as setup_glsl_draw_from_space, + * but color management settings are guessing from a given context. + */ bool IMB_colormanagement_setup_glsl_draw_from_space_ctx(const bContext *C, struct ColorSpace *from_colorspace, float dither, |