Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_CalculateMeanOperation.cpp
| Context not available. | |||||
| #include "BLI_math.h" | #include "BLI_math.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| extern "C" { | |||||
| #include "IMB_colormanagement.h" | |||||
| } | |||||
| CalculateMeanOperation::CalculateMeanOperation() : NodeOperation() | CalculateMeanOperation::CalculateMeanOperation() : NodeOperation() | ||||
| Context not available. | |||||
| switch (this->m_setting) { | switch (this->m_setting) { | ||||
| case 1: | case 1: | ||||
| { | { | ||||
| sum += rgb_to_bw(&buffer[offset]); | sum += IMB_colormanagement_get_luminance(&buffer[offset]); | ||||
| break; | break; | ||||
| } | } | ||||
| case 2: | case 2: | ||||
| Context not available. | |||||