Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_ColorCurveOperation.cc
| Show All 31 Lines | ColorCurveOperation::ColorCurveOperation() | ||||
| this->addInputSocket(DataType::Color); | this->addInputSocket(DataType::Color); | ||||
| this->addOutputSocket(DataType::Color); | this->addOutputSocket(DataType::Color); | ||||
| this->m_inputFacProgram = nullptr; | this->m_inputFacProgram = nullptr; | ||||
| this->m_inputImageProgram = nullptr; | this->m_inputImageProgram = nullptr; | ||||
| this->m_inputBlackProgram = nullptr; | this->m_inputBlackProgram = nullptr; | ||||
| this->m_inputWhiteProgram = nullptr; | this->m_inputWhiteProgram = nullptr; | ||||
| this->setResolutionInputSocketIndex(1); | this->set_canvas_input_index(1); | ||||
| } | } | ||||
| void ColorCurveOperation::initExecution() | void ColorCurveOperation::initExecution() | ||||
| { | { | ||||
| CurveBaseOperation::initExecution(); | CurveBaseOperation::initExecution(); | ||||
| this->m_inputFacProgram = this->getInputSocketReader(0); | this->m_inputFacProgram = this->getInputSocketReader(0); | ||||
| this->m_inputImageProgram = this->getInputSocketReader(1); | this->m_inputImageProgram = this->getInputSocketReader(1); | ||||
| this->m_inputBlackProgram = this->getInputSocketReader(2); | this->m_inputBlackProgram = this->getInputSocketReader(2); | ||||
| this->m_inputWhiteProgram = this->getInputSocketReader(3); | this->m_inputWhiteProgram = this->getInputSocketReader(3); | ||||
| ▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| this->addInputSocket(DataType::Value); | this->addInputSocket(DataType::Value); | ||||
| this->addInputSocket(DataType::Color); | this->addInputSocket(DataType::Color); | ||||
| this->addOutputSocket(DataType::Color); | this->addOutputSocket(DataType::Color); | ||||
| this->m_inputFacProgram = nullptr; | this->m_inputFacProgram = nullptr; | ||||
| this->m_inputImageProgram = nullptr; | this->m_inputImageProgram = nullptr; | ||||
| this->setResolutionInputSocketIndex(1); | this->set_canvas_input_index(1); | ||||
| } | } | ||||
| void ConstantLevelColorCurveOperation::initExecution() | void ConstantLevelColorCurveOperation::initExecution() | ||||
| { | { | ||||
| CurveBaseOperation::initExecution(); | CurveBaseOperation::initExecution(); | ||||
| this->m_inputFacProgram = this->getInputSocketReader(0); | this->m_inputFacProgram = this->getInputSocketReader(0); | ||||
| this->m_inputImageProgram = this->getInputSocketReader(1); | this->m_inputImageProgram = this->getInputSocketReader(1); | ||||
| BKE_curvemapping_premultiply(this->m_curveMapping, 0); | BKE_curvemapping_premultiply(this->m_curveMapping, 0); | ||||
| ▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines | |||||