Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_ConvertOperation.cpp
| Context not available. | |||||
| #include "COM_ConvertOperation.h" | #include "COM_ConvertOperation.h" | ||||
| extern "C" { | |||||
| #include "IMB_colormanagement.h" | |||||
| } | |||||
| ConvertBaseOperation::ConvertBaseOperation() | ConvertBaseOperation::ConvertBaseOperation() | ||||
| { | { | ||||
| Context not available. | |||||
| { | { | ||||
| float inputColor[4]; | float inputColor[4]; | ||||
| this->m_inputOperation->readSampled(inputColor, x, y, sampler); | this->m_inputOperation->readSampled(inputColor, x, y, sampler); | ||||
| output[0] = rgb_to_bw(inputColor); | output[0] = IMB_colormanagement_get_luminance(inputColor); | ||||
| } | } | ||||
| Context not available. | |||||