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:
Diffstat (limited to 'source/blender/imbuf/intern/jp2.c')
-rw-r--r--source/blender/imbuf/intern/jp2.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/imbuf/intern/jp2.c b/source/blender/imbuf/intern/jp2.c
index 117e0d97b2e..3af7367ef6e 100644
--- a/source/blender/imbuf/intern/jp2.c
+++ b/source/blender/imbuf/intern/jp2.c
@@ -424,13 +424,13 @@ static ImBuf *imb_load_jp2_stream(opj_stream_t *stream,
h = image->comps[0].h;
switch (image->numcomps) {
- case 1: /* Grayscale */
- case 3: /* Color */
+ case 1: /* Gray-scale. */
+ case 3: /* Color. */
planes = 24;
use_alpha = false;
break;
- default: /* 2 or 4 - Grayscale or Color + alpha */
- planes = 32; /* grayscale + alpha */
+ default: /* 2 or 4 - Gray-scale or Color + alpha. */
+ planes = 32; /* Gray-scale + alpha. */
use_alpha = true;
break;
}
@@ -529,7 +529,7 @@ static ImBuf *imb_load_jp2_stream(opj_stream_t *stream,
r = image->comps[0].data;
a = (use_alpha) ? image->comps[1].data : NULL;
- /* grayscale */
+ /* Gray-scale. */
if (use_alpha) {
a = image->comps[3].data;
PIXEL_LOOPER_BEGIN (rect_uchar) {
@@ -848,7 +848,7 @@ static opj_image_t *ibuftoimage(ImBuf *ibuf, opj_cparameters_t *parameters)
chanel_colormanage_cb = channel_colormanage_noop;
}
else {
- /* standard linear-to-srgb conversion if float buffer wasn't managed */
+ /* standard linear-to-SRGB conversion if float buffer wasn't managed */
chanel_colormanage_cb = linearrgb_to_srgb;
}
@@ -891,8 +891,8 @@ static opj_image_t *ibuftoimage(ImBuf *ibuf, opj_cparameters_t *parameters)
prec = 8;
}
- /* 32bit images == alpha channel */
- /* grayscale not supported yet */
+ /* 32bit images == alpha channel. */
+ /* Gray-scale not supported yet. */
numcomps = (ibuf->planes == 32) ? 4 : 3;
}