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/openexr/openexr_api.cpp | |
parent | faabf92a7e891b355faf8ba6e2e2461e94262aab (diff) |
Cleanup: comments (long lines) in imbuf
Diffstat (limited to 'source/blender/imbuf/intern/openexr/openexr_api.cpp')
-rw-r--r-- | source/blender/imbuf/intern/openexr/openexr_api.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp index 25e4ae6cf0d..fb38e1e01c8 100644 --- a/source/blender/imbuf/intern/openexr/openexr_api.cpp +++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp @@ -592,7 +592,7 @@ int imb_save_openexr(struct ImBuf *ibuf, const char *name, int flags) } } -/* ********************* Nicer API, MultiLayer and with Tile file support ************************************ */ +/* ******* Nicer API, MultiLayer and with Tile file support ************************************ */ /* naming rules: * - parse name from right to left @@ -618,8 +618,10 @@ typedef struct ExrHandle { int width, height; int mipmap; - StringVector * - multiView; /* it needs to be a pointer due to Windows release builds of EXR2.0 segfault when opening EXR bug */ + /** It needs to be a pointer due to Windows release builds of EXR2.0 + * segfault when opening EXR bug. */ + StringVector *multiView; + int parts; ListBase channels; /* flattened out, ExrChannel */ @@ -1817,7 +1819,8 @@ static bool exr_has_multipart_file(MultiPartInputFile &file) /* it returns true if the file is multilayer or multiview */ static bool imb_exr_is_multi(MultiPartInputFile &file) { - /* multipart files are treated as multilayer in blender - even if they are single layer openexr with multiview */ + /* Multipart files are treated as multilayer in blender - + * even if they are single layer openexr with multiview. */ if (exr_has_multipart_file(file)) return true; @@ -1922,7 +1925,8 @@ struct ImBuf *imb_load_openexr(const unsigned char *mem, imb_addrectfloatImBuf(ibuf); - /* inverse correct first pixel for datawindow coordinates (- dw.min.y because of y flip) */ + /* Inverse correct first pixel for datawindow + * coordinates (- dw.min.y because of y flip). */ first = ibuf->rect_float - 4 * (dw.min.x - dw.min.y * width); /* but, since we read y-flipped (negative y stride) we move to last scanline */ first += 4 * (height - 1) * width; @@ -1967,7 +1971,8 @@ struct ImBuf *imb_load_openexr(const unsigned char *mem, // 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 is ok because all functions should check + // if a rect exists and create one on demand. // // Disabling this because the sequencer frees immediate. // |