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 <ideasman42@gmail.com>2021-06-26 14:35:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-06-26 14:50:48 +0300
commitf1e49038543cf75766f4a220f62cdc6cdbc0e27d (patch)
tree0cec2c64739a6a4ca246fe26bed6fe629ea315cb /source/blender/compositor/operations/COM_ChromaMatteOperation.cc
parentfae5a907d4d1380f087f1226ebbd65d9d0718cc6 (diff)
Cleanup: full sentences in comments, improve comment formatting
Diffstat (limited to 'source/blender/compositor/operations/COM_ChromaMatteOperation.cc')
-rw-r--r--source/blender/compositor/operations/COM_ChromaMatteOperation.cc10
1 files changed, 5 insertions, 5 deletions
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. */
}
}