diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-26 14:35:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-26 14:50:48 +0300 |
commit | f1e49038543cf75766f4a220f62cdc6cdbc0e27d (patch) | |
tree | 0cec2c64739a6a4ca246fe26bed6fe629ea315cb /source/blender/compositor/operations | |
parent | fae5a907d4d1380f087f1226ebbd65d9d0718cc6 (diff) |
Cleanup: full sentences in comments, improve comment formatting
Diffstat (limited to 'source/blender/compositor/operations')
6 files changed, 15 insertions, 15 deletions
diff --git a/source/blender/compositor/operations/COM_ChannelMatteOperation.cc b/source/blender/compositor/operations/COM_ChannelMatteOperation.cc index 89290978608..ec4331dc231 100644 --- a/source/blender/compositor/operations/COM_ChannelMatteOperation.cc +++ b/source/blender/compositor/operations/COM_ChannelMatteOperation.cc @@ -104,12 +104,12 @@ void ChannelMatteOperation::executePixelSampled(float output[4], /* test range */ if (alpha > limit_max) { - alpha = inColor[3]; /*whatever it was prior */ + alpha = inColor[3]; /* Whatever it was prior. */ } else if (alpha < limit_min) { alpha = 0.0f; } - else { /*blend */ + else { /* Blend. */ alpha = (alpha - limit_min) / limit_range; } diff --git a/source/blender/compositor/operations/COM_ChromaMatteOperation.cc b/source/blender/compositor/operations/COM_ChromaMatteOperation.cc index 69aa4aac163..b7fec5f07e5 100644 --- a/source/blender/compositor/operations/COM_ChromaMatteOperation.cc +++ b/source/blender/compositor/operations/COM_ChromaMatteOperation.cc @@ -79,12 +79,12 @@ void ChromaMatteOperation::executePixelSampled(float output[4], theta = atan2(inKey[2], inKey[1]); - /*rotate the cb and cr into x/z space */ + /* Rotate the cb and cr into x/z space. */ x_angle = inImage[1] * cosf(theta) + inImage[2] * sinf(theta); z_angle = inImage[2] * cosf(theta) - inImage[1] * sinf(theta); - /*if within the acceptance angle */ - /* if kfg is <0 then the pixel is outside of the key color */ + /* If within the acceptance angle. */ + /* If kfg is <0 then the pixel is outside of the key color. */ kfg = x_angle - (fabsf(z_angle) / tanf(acceptance / 2.0f)); if (kfg > 0.0f) { /* found a pixel that is within key color */ @@ -105,8 +105,8 @@ void ChromaMatteOperation::executePixelSampled(float output[4], output[0] = inImage[3]; } } - else { /*pixel is outside key color */ - output[0] = inImage[3]; /* make pixel just as transparent as it was before */ + else { /* Pixel is outside key color. */ + output[0] = inImage[3]; /* Make pixel just as transparent as it was before. */ } } diff --git a/source/blender/compositor/operations/COM_ColorMatteOperation.cc b/source/blender/compositor/operations/COM_ColorMatteOperation.cc index 4f0a5e28e6b..ddfbf415d9c 100644 --- a/source/blender/compositor/operations/COM_ColorMatteOperation.cc +++ b/source/blender/compositor/operations/COM_ColorMatteOperation.cc @@ -77,8 +77,8 @@ void ColorMatteOperation::executePixelSampled(float output[4], output[0] = 0.0f; /* make transparent */ } - else { /*pixel is outside key color */ - output[0] = inColor[3]; /* make pixel just as transparent as it was before */ + else { /* Pixel is outside key color. */ + output[0] = inColor[3]; /* Make pixel just as transparent as it was before. */ } } diff --git a/source/blender/compositor/operations/COM_DifferenceMatteOperation.cc b/source/blender/compositor/operations/COM_DifferenceMatteOperation.cc index e380131634f..0acdfc1651f 100644 --- a/source/blender/compositor/operations/COM_DifferenceMatteOperation.cc +++ b/source/blender/compositor/operations/COM_DifferenceMatteOperation.cc @@ -68,11 +68,11 @@ void DifferenceMatteOperation::executePixelSampled(float output[4], if (difference <= tolerance) { output[0] = 0.0f; } - /*in the falloff region, make partially transparent */ + /* In the falloff region, make partially transparent. */ else if (difference <= falloff + tolerance) { difference = difference - tolerance; alpha = difference / falloff; - /*only change if more transparent than before */ + /* Only change if more transparent than before. */ if (alpha < inColor1[3]) { output[0] = alpha; } diff --git a/source/blender/compositor/operations/COM_DistanceRGBMatteOperation.cc b/source/blender/compositor/operations/COM_DistanceRGBMatteOperation.cc index 12cb7e7d075..1b3403cbb29 100644 --- a/source/blender/compositor/operations/COM_DistanceRGBMatteOperation.cc +++ b/source/blender/compositor/operations/COM_DistanceRGBMatteOperation.cc @@ -71,15 +71,15 @@ void DistanceRGBMatteOperation::executePixelSampled(float output[4], * COM_SetAlphaMultiplyOperation and the Value output. */ - /*make 100% transparent */ + /* Make 100% transparent. */ if (distance < tolerance) { output[0] = 0.0f; } - /*in the falloff region, make partially transparent */ + /* In the falloff region, make partially transparent. */ else if (distance < falloff + tolerance) { distance = distance - tolerance; alpha = distance / falloff; - /*only change if more transparent than before */ + /* Only change if more transparent than before. */ if (alpha < inImage[3]) { output[0] = alpha; } diff --git a/source/blender/compositor/operations/COM_LuminanceMatteOperation.cc b/source/blender/compositor/operations/COM_LuminanceMatteOperation.cc index 0afc4278a45..5ca16e40ce3 100644 --- a/source/blender/compositor/operations/COM_LuminanceMatteOperation.cc +++ b/source/blender/compositor/operations/COM_LuminanceMatteOperation.cc @@ -66,7 +66,7 @@ void LuminanceMatteOperation::executePixelSampled(float output[4], else if (luminance < low) { alpha = 0.0f; } - else { /*blend */ + else { /* Blend. */ alpha = (luminance - low) / (high - low); } |