diff options
author | Manuel Castilla <manzanillawork@gmail.com> | 2021-10-14 00:01:15 +0300 |
---|---|---|
committer | Manuel Castilla <manzanillawork@gmail.com> | 2021-10-14 00:41:14 +0300 |
commit | 1c42d4930a24d639b3aa561b9a8b4bbce05977e0 (patch) | |
tree | 68c2aae3fd5ae98b78708bea28c0b55d3f4fb5f0 /source/blender/compositor/operations/COM_GlareThresholdOperation.cc | |
parent | a2ee3c3a9f01f5cb2f05f1e84a1b6c1931d9d4a4 (diff) |
Cleanup: convert camelCase naming to snake_case in Compositor
To convert old code to the current convention and
use a single code style.
Diffstat (limited to 'source/blender/compositor/operations/COM_GlareThresholdOperation.cc')
-rw-r--r-- | source/blender/compositor/operations/COM_GlareThresholdOperation.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/compositor/operations/COM_GlareThresholdOperation.cc b/source/blender/compositor/operations/COM_GlareThresholdOperation.cc index 7135155cb68..0538b4e48a0 100644 --- a/source/blender/compositor/operations/COM_GlareThresholdOperation.cc +++ b/source/blender/compositor/operations/COM_GlareThresholdOperation.cc @@ -24,9 +24,9 @@ namespace blender::compositor { GlareThresholdOperation::GlareThresholdOperation() { - this->addInputSocket(DataType::Color, ResizeMode::FitAny); - this->addOutputSocket(DataType::Color); - inputProgram_ = nullptr; + this->add_input_socket(DataType::Color, ResizeMode::FitAny); + this->add_output_socket(DataType::Color); + input_program_ = nullptr; } void GlareThresholdOperation::determine_canvas(const rcti &preferred_area, rcti &r_area) @@ -38,19 +38,19 @@ void GlareThresholdOperation::determine_canvas(const rcti &preferred_area, rcti r_area.ymax = r_area.ymin + height; } -void GlareThresholdOperation::initExecution() +void GlareThresholdOperation::init_execution() { - inputProgram_ = this->getInputSocketReader(0); + input_program_ = this->get_input_socket_reader(0); } -void GlareThresholdOperation::executePixelSampled(float output[4], - float x, - float y, - PixelSampler sampler) +void GlareThresholdOperation::execute_pixel_sampled(float output[4], + float x, + float y, + PixelSampler sampler) { const float threshold = settings_->threshold; - inputProgram_->readSampled(output, x, y, sampler); + input_program_->read_sampled(output, x, y, sampler); if (IMB_colormanagement_get_luminance(output) >= threshold) { output[0] -= threshold; output[1] -= threshold; @@ -65,9 +65,9 @@ void GlareThresholdOperation::executePixelSampled(float output[4], } } -void GlareThresholdOperation::deinitExecution() +void GlareThresholdOperation::deinit_execution() { - inputProgram_ = nullptr; + input_program_ = nullptr; } void GlareThresholdOperation::update_memory_buffer_partial(MemoryBuffer *output, |