From 2abfcebb0eb7989e3d1e7d03f37ecf5c088210af Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 10 Oct 2020 18:19:55 +1100 Subject: Cleanup: use C comments for descriptive text Follow our code style guide by using C-comments for text descriptions. --- .../blender/imbuf/intern/openexr/openexr_api.cpp | 29 +++++++++++----------- .../blender/imbuf/intern/openexr/openexr_multi.h | 2 +- 2 files changed, 16 insertions(+), 15 deletions(-) (limited to 'source/blender/imbuf/intern/openexr') diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp index 480bb15aa87..ca70ec633c1 100644 --- a/source/blender/imbuf/intern/openexr/openexr_api.cpp +++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp @@ -699,7 +699,7 @@ void *IMB_exr_get_handle_name(const char *name) } /* multiview functions */ -} // extern "C" +} /* extern "C" */ extern "C" { @@ -1918,7 +1918,7 @@ struct ImBuf *imb_load_openexr(const unsigned char *mem, // printf("OpenEXR-load: image data window %d %d %d %d\n", // dw.min.x, dw.min.y, dw.max.x, dw.max.y); - if (0) { // debug + if (0) { /* debug */ exr_print_filecontents(*file); } @@ -2022,17 +2022,18 @@ struct ImBuf *imb_load_openexr(const unsigned char *mem, in.setFrameBuffer(frameBuffer); in.readPixels(dw.min.y, dw.max.y); - // XXX, ImBuf has no nice way to deal with this. - // ideally IM_rect would be used when the caller wants a rect BUT - // at the moment all functions use IM_rect. - // Disabling this is ok because all functions should check - // if a rect exists and create one on demand. - // - // Disabling this because the sequencer frees immediate. - // - // if (flag & IM_rect) { - // IMB_rect_from_float(ibuf); - // } + /* XXX, ImBuf has no nice way to deal with this. + * ideally IM_rect would be used when the caller wants a rect BUT + * at the moment all functions use IM_rect. + * Disabling this is ok because all functions should check + * if a rect exists and create one on demand. + * + * Disabling this because the sequencer frees immediate. */ +#if 0 + if (flag & IM_rect) { + IMB_rect_from_float(ibuf); + } +#endif if (num_rgb_channels == 0 && has_luma && exr_has_chroma(*file)) { for (size_t a = 0; a < (size_t)ibuf->x * ibuf->y; a++) { @@ -2102,4 +2103,4 @@ void imb_exitopenexr(void) setGlobalThreadCount(0); } -} // export "C" +} /* export "C" */ diff --git a/source/blender/imbuf/intern/openexr/openexr_multi.h b/source/blender/imbuf/intern/openexr/openexr_multi.h index 7008447313d..556717ad618 100644 --- a/source/blender/imbuf/intern/openexr/openexr_multi.h +++ b/source/blender/imbuf/intern/openexr/openexr_multi.h @@ -96,5 +96,5 @@ void IMB_exr_add_view(void *handle, const char *name); bool IMB_exr_has_multilayer(void *handle); #ifdef __cplusplus -} // extern "C" +} /* extern "C" */ #endif -- cgit v1.2.3