diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-06-12 02:04:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-06-12 02:43:49 +0300 |
commit | 6529d20d79a5e55696a2fa48150055d3e4a942dd (patch) | |
tree | 314f21fd4c91f8a5558cfe34e04f6ce1e50d3c98 /source/blender/imbuf | |
parent | 8ce93ef6ae5169297aca67f5439503c3b25dc707 (diff) |
Cleanup: spelling in comments
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/cineon/logImageCore.h | 2 | ||||
-rw-r--r-- | source/blender/imbuf/intern/colormanagement.c | 2 | ||||
-rw-r--r-- | source/blender/imbuf/intern/openexr/openexr_api.cpp | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/imbuf/intern/cineon/logImageCore.h b/source/blender/imbuf/intern/cineon/logImageCore.h index 80e32ffe77e..3d49da7eb42 100644 --- a/source/blender/imbuf/intern/cineon/logImageCore.h +++ b/source/blender/imbuf/intern/cineon/logImageCore.h @@ -44,7 +44,7 @@ extern "C" { */ /* There are some differences between DPX and Cineon - * so we need to know from what type of file the datas come from. */ + * so we need to know from what type of file the data came from. */ enum format { format_DPX, format_Cineon, diff --git a/source/blender/imbuf/intern/colormanagement.c b/source/blender/imbuf/intern/colormanagement.c index bec29252b6f..02277a7953c 100644 --- a/source/blender/imbuf/intern/colormanagement.c +++ b/source/blender/imbuf/intern/colormanagement.c @@ -2196,7 +2196,7 @@ void IMB_colormanagement_imbuf_to_byte_texture(unsigned char *out_buffer, processor = colorspace_to_scene_linear_processor(ibuf->rect_colorspace); } - /* TODO(brecht): make this multithreaded, or at least process in batches. */ + /* TODO(brecht): make this multi-threaded, or at least process in batches. */ const unsigned char *in_buffer = (unsigned char *)ibuf->rect; const bool use_premultiply = IMB_alpha_affects_rgb(ibuf) && store_premultiplied; diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp index a98ec2b0f15..7b3de4167a2 100644 --- a/source/blender/imbuf/intern/openexr/openexr_api.cpp +++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp @@ -1254,14 +1254,14 @@ void IMB_exr_read_channels(void *handle) size_t ystride = echan->ystride * sizeof(float); if (!flip) { - /* inverse correct first pixel for datawindow coordinates */ + /* Inverse correct first pixel for data-window coordinates. */ rect -= echan->xstride * (dw.min.x - dw.min.y * data->width); /* move to last scanline to flip to Blender convention */ rect += echan->xstride * (data->height - 1) * data->width; ystride = -ystride; } else { - /* inverse correct first pixel for datawindow coordinates */ + /* Inverse correct first pixel for data-window coordinates. */ rect -= echan->xstride * (dw.min.x + dw.min.y * data->width); } @@ -1774,7 +1774,7 @@ static bool imb_exr_is_multilayer_file(MultiPartInputFile &file) * but it also could be layers without names in the file and such case * shall be considered a multilayer exr * - * that's what we do here: test whether there're empty layer names together + * that's what we do here: test whether they're empty layer names together * with non-empty ones in the file */ for (ChannelList::ConstIterator i = channels.begin(); i != channels.end(); i++) { @@ -1976,7 +1976,7 @@ struct ImBuf *imb_load_openexr(const unsigned char *mem, imb_addrectfloatImBuf(ibuf); - /* Inverse correct first pixel for datawindow + /* Inverse correct first pixel for data-window * 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 */ |