Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_ColorCorrectionOperation.cpp
| Context not available. | |||||
| #include "COM_ColorCorrectionOperation.h" | #include "COM_ColorCorrectionOperation.h" | ||||
| #include "BLI_math.h" | #include "BLI_math.h" | ||||
| extern "C" { | |||||
| #include "IMB_colormanagement.h" | |||||
| } | |||||
| ColorCorrectionOperation::ColorCorrectionOperation() : NodeOperation() | ColorCorrectionOperation::ColorCorrectionOperation() : NodeOperation() | ||||
| { | { | ||||
| this->addInputSocket(COM_DT_COLOR); | this->addInputSocket(COM_DT_COLOR); | ||||
| Context not available. | |||||
| lift += (levelShadows * this->m_data->shadows.lift) + (levelMidtones * this->m_data->midtones.lift) + (levelHighlights * this->m_data->highlights.lift); | lift += (levelShadows * this->m_data->shadows.lift) + (levelMidtones * this->m_data->midtones.lift) + (levelHighlights * this->m_data->highlights.lift); | ||||
| float invgamma = 1.0f / gamma; | float invgamma = 1.0f / gamma; | ||||
| float luma = rgb_to_luma_y(inputImageColor); | float luma = IMB_colormanagement_get_luminance(inputImageColor); | ||||
| r = inputImageColor[0]; | r = inputImageColor[0]; | ||||
| g = inputImageColor[1]; | g = inputImageColor[1]; | ||||
| Context not available. | |||||