diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-13 16:14:04 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-13 16:14:04 +0400 |
commit | fe76c4ec8efd097f31362f77794c835e4e6d7171 (patch) | |
tree | 288b3f4f14c490c6a52d60b2b4b3fb8596f27e4e /source | |
parent | d522a995cfa83616e14f6c738f37787d2517396a (diff) |
fix for missing break with compositor levels (blue passed through to luminance)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp b/source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp index e8268adff7a..0c67da2d552 100644 --- a/source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp +++ b/source/blender/compositor/operations/COM_CalculateStandardDeviationOperation.cpp @@ -53,33 +53,34 @@ void *CalculateStandardDeviationOperation::initializeTileData(rcti *rect) 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]); |