Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-03-14 06:25:32 +0300
committerCampbell Barton <campbell@blender.org>2022-03-14 06:25:32 +0300
commita5571fd0e8cddeb19fd7191896bc57ded44bdd7d (patch)
treedb33b6c5456555f19d4a2691090235103f256257 /source/blender/blenkernel/intern/image.cc
parent6ea1455ce3cf570fa6820ec6599286935ca494a4 (diff)
Cleanup: spelling
Diffstat (limited to 'source/blender/blenkernel/intern/image.cc')
-rw-r--r--source/blender/blenkernel/intern/image.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/image.cc b/source/blender/blenkernel/intern/image.cc
index b4644b84f1e..4a1cbdba42a 100644
--- a/source/blender/blenkernel/intern/image.cc
+++ b/source/blender/blenkernel/intern/image.cc
@@ -1124,7 +1124,7 @@ Image *BKE_image_add_generated(Main *bmain,
const bool is_data,
const bool tiled)
{
- /* on save, type is changed to FILE in editsima.c */
+ /* Saving the image changes it's #Image.source to #IMA_SRC_FILE (leave as generated here). */
Image *ima;
if (tiled) {
ima = image_alloc(bmain, name, IMA_SRC_TILED, IMA_TYPE_IMAGE);
@@ -1161,7 +1161,7 @@ Image *BKE_image_add_generated(Main *bmain,
int entry = tiled ? 1001 : 0;
image_assign_ibuf(ima, ibuf, stereo3d ? view_id : index, entry);
- /* image_assign_ibuf puts buffer to the cache, which increments user counter. */
+ /* #image_assign_ibuf puts buffer to the cache, which increments user counter. */
IMB_freeImBuf(ibuf);
if (!stereo3d) {
break;
@@ -1175,7 +1175,6 @@ Image *BKE_image_add_generated(Main *bmain,
Image *BKE_image_add_from_imbuf(Main *bmain, ImBuf *ibuf, const char *name)
{
- /* on save, type is changed to FILE in editsima.c */
Image *ima;
if (name == nullptr) {
@@ -1715,7 +1714,7 @@ char BKE_imtype_valid_depths(const char imtype)
return R_IMF_CHAN_DEPTH_16 | R_IMF_CHAN_DEPTH_32;
case R_IMF_IMTYPE_MULTILAYER:
return R_IMF_CHAN_DEPTH_16 | R_IMF_CHAN_DEPTH_32;
- /* eeh, cineon does some strange 10bits per channel */
+ /* NOTE: CINEON uses an unusual 10bits-LOG per channel. */
case R_IMF_IMTYPE_DPX:
return R_IMF_CHAN_DEPTH_8 | R_IMF_CHAN_DEPTH_10 | R_IMF_CHAN_DEPTH_12 | R_IMF_CHAN_DEPTH_16;
case R_IMF_IMTYPE_CINEON:
@@ -1724,7 +1723,7 @@ char BKE_imtype_valid_depths(const char imtype)
return R_IMF_CHAN_DEPTH_8 | R_IMF_CHAN_DEPTH_12 | R_IMF_CHAN_DEPTH_16;
case R_IMF_IMTYPE_PNG:
return R_IMF_CHAN_DEPTH_8 | R_IMF_CHAN_DEPTH_16;
- /* most formats are 8bit only */
+ /* Most formats are 8bit only. */
default:
return R_IMF_CHAN_DEPTH_8;
}
@@ -2721,7 +2720,7 @@ void BKE_image_stamp_buf(Scene *scene,
if (TEXT_SIZE_CHECK(stamp_data.scene, w, h)) {
- /* Bottom right corner, with an extra space because blenfont is too strict! */
+ /* Bottom right corner, with an extra space because the BLF API is too strict! */
x = width - w - 2;
/* extra space for background. */
@@ -2743,7 +2742,7 @@ void BKE_image_stamp_buf(Scene *scene,
if (TEXT_SIZE_CHECK(stamp_data.strip, w, h)) {
- /* Top right corner, with an extra space because blenfont is too strict! */
+ /* Top right corner, with an extra space because the BLF API is too strict! */
x = width - w - pad;
y = height - h;