diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_HueSaturationValueCorrectOperation.cc')
-rw-r--r-- | source/blender/compositor/operations/COM_HueSaturationValueCorrectOperation.cc | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/source/blender/compositor/operations/COM_HueSaturationValueCorrectOperation.cc b/source/blender/compositor/operations/COM_HueSaturationValueCorrectOperation.cc index e2f4552c69c..d1fad29498a 100644 --- a/source/blender/compositor/operations/COM_HueSaturationValueCorrectOperation.cc +++ b/source/blender/compositor/operations/COM_HueSaturationValueCorrectOperation.cc @@ -26,36 +26,36 @@ namespace blender::compositor { HueSaturationValueCorrectOperation::HueSaturationValueCorrectOperation() { - this->addInputSocket(DataType::Color); - this->addOutputSocket(DataType::Color); + this->add_input_socket(DataType::Color); + this->add_output_socket(DataType::Color); - inputProgram_ = nullptr; + input_program_ = nullptr; } -void HueSaturationValueCorrectOperation::initExecution() +void HueSaturationValueCorrectOperation::init_execution() { - CurveBaseOperation::initExecution(); - inputProgram_ = this->getInputSocketReader(0); + CurveBaseOperation::init_execution(); + input_program_ = this->get_input_socket_reader(0); } -void HueSaturationValueCorrectOperation::executePixelSampled(float output[4], - float x, - float y, - PixelSampler sampler) +void HueSaturationValueCorrectOperation::execute_pixel_sampled(float output[4], + float x, + float y, + PixelSampler sampler) { float hsv[4], f; - inputProgram_->readSampled(hsv, x, y, sampler); + input_program_->read_sampled(hsv, x, y, sampler); /* adjust hue, scaling returned default 0.5 up to 1 */ - f = BKE_curvemapping_evaluateF(curveMapping_, 0, hsv[0]); + f = BKE_curvemapping_evaluateF(curve_mapping_, 0, hsv[0]); hsv[0] += f - 0.5f; /* adjust saturation, scaling returned default 0.5 up to 1 */ - f = BKE_curvemapping_evaluateF(curveMapping_, 1, hsv[0]); + f = BKE_curvemapping_evaluateF(curve_mapping_, 1, hsv[0]); hsv[1] *= (f * 2.0f); /* adjust value, scaling returned default 0.5 up to 1 */ - f = BKE_curvemapping_evaluateF(curveMapping_, 2, hsv[0]); + f = BKE_curvemapping_evaluateF(curve_mapping_, 2, hsv[0]); hsv[2] *= (f * 2.0f); hsv[0] = hsv[0] - floorf(hsv[0]); /* mod 1.0 */ @@ -67,10 +67,10 @@ void HueSaturationValueCorrectOperation::executePixelSampled(float output[4], output[3] = hsv[3]; } -void HueSaturationValueCorrectOperation::deinitExecution() +void HueSaturationValueCorrectOperation::deinit_execution() { - CurveBaseOperation::deinitExecution(); - inputProgram_ = nullptr; + CurveBaseOperation::deinit_execution(); + input_program_ = nullptr; } void HueSaturationValueCorrectOperation::update_memory_buffer_partial(MemoryBuffer *output, @@ -82,15 +82,15 @@ void HueSaturationValueCorrectOperation::update_memory_buffer_partial(MemoryBuff copy_v4_v4(hsv, it.in(0)); /* Adjust hue, scaling returned default 0.5 up to 1. */ - float f = BKE_curvemapping_evaluateF(curveMapping_, 0, hsv[0]); + float f = BKE_curvemapping_evaluateF(curve_mapping_, 0, hsv[0]); hsv[0] += f - 0.5f; /* Adjust saturation, scaling returned default 0.5 up to 1. */ - f = BKE_curvemapping_evaluateF(curveMapping_, 1, hsv[0]); + f = BKE_curvemapping_evaluateF(curve_mapping_, 1, hsv[0]); hsv[1] *= (f * 2.0f); /* Adjust value, scaling returned default 0.5 up to 1. */ - f = BKE_curvemapping_evaluateF(curveMapping_, 2, hsv[0]); + f = BKE_curvemapping_evaluateF(curve_mapping_, 2, hsv[0]); hsv[2] *= (f * 2.0f); hsv[0] = hsv[0] - floorf(hsv[0]); /* Mod 1.0. */ |