[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58213] trunk/blender/source/blender/ compositor/operations/COM_CalculateStandardDeviationOperation.cpp: fix for missing break with compositor levels ( blue passed through to luminance)
Campbell Barton
ideasman42 at gmail.com
Sat Jul 13 14:14:04 CEST 2013
Revision: 58213
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58213
Author: campbellbarton
Date: 2013-07-13 12:14:04 +0000 (Sat, 13 Jul 2013)
Log Message:
-----------
fix for missing break with compositor levels (blue passed through to luminance)
Modified Paths:
--------------
trunk/blender/source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp
Modified: trunk/blender/source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp
===================================================================
--- trunk/blender/source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp 2013-07-13 06:54:44 UTC (rev 58212)
+++ trunk/blender/source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp 2013-07-13 12:14:04 UTC (rev 58213)
@@ -53,33 +53,34 @@
pixels++;
switch (this->m_setting) {
- case 1:
+ case 1: /* rgb combined */
{
float value = rgb_to_bw(&buffer[offset]);
sum += (value - mean) * (value - mean);
break;
}
- case 2:
+ case 2: /* red */
{
float value = buffer[offset];
sum += value;
sum += (value - mean) * (value - mean);
break;
}
- case 3:
+ case 3: /* green */
{
float value = buffer[offset + 1];
sum += value;
sum += (value - mean) * (value - mean);
break;
}
- case 4:
+ case 4: /* blue */
{
float value = buffer[offset + 2];
sum += value;
sum += (value - mean) * (value - mean);
+ break;
}
- case 5:
+ case 5: /* luminance */
{
float yuv[3];
rgb_to_yuv(buffer[offset], buffer[offset + 1], buffer[offset + 2], &yuv[0], &yuv[1], &yuv[2]);
More information about the Bf-blender-cvs
mailing list