Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_DenoiseOperation.cc
| Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | bool DenoiseBaseOperation::determineDependingAreaOfInterest(rcti * /*input*/, | ||||
| newInput.ymin = 0; | newInput.ymin = 0; | ||||
| return NodeOperation::determineDependingAreaOfInterest(&newInput, readOperation, output); | return NodeOperation::determineDependingAreaOfInterest(&newInput, readOperation, output); | ||||
| } | } | ||||
| void DenoiseBaseOperation::get_area_of_interest(const int UNUSED(input_idx), | void DenoiseBaseOperation::get_area_of_interest(const int UNUSED(input_idx), | ||||
| const rcti &UNUSED(output_area), | const rcti &UNUSED(output_area), | ||||
| rcti &r_input_area) | rcti &r_input_area) | ||||
| { | { | ||||
| r_input_area.xmin = 0; | r_input_area = this->get_canvas(); | ||||
| r_input_area.xmax = this->getWidth(); | |||||
| r_input_area.ymin = 0; | |||||
| r_input_area.ymax = this->getHeight(); | |||||
| } | } | ||||
| DenoiseOperation::DenoiseOperation() | DenoiseOperation::DenoiseOperation() | ||||
| { | { | ||||
| this->addInputSocket(DataType::Color); | this->addInputSocket(DataType::Color); | ||||
| this->addInputSocket(DataType::Vector); | this->addInputSocket(DataType::Vector); | ||||
| this->addInputSocket(DataType::Color); | this->addInputSocket(DataType::Color); | ||||
| this->addOutputSocket(DataType::Color); | this->addOutputSocket(DataType::Color); | ||||
| ▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines | |||||