diff options
author | Manuel Castilla <manzanillawork@gmail.com> | 2021-10-08 02:09:26 +0300 |
---|---|---|
committer | Manuel Castilla <manzanillawork@gmail.com> | 2021-10-08 02:29:02 +0300 |
commit | 4a22faf15a0cd027f724d515d06b24ba47cac03c (patch) | |
tree | 2f5fe18a57b9523eb1339284a05dab2d199d5db4 /source/blender/compositor/operations/COM_GlareBaseOperation.cc | |
parent | 12a5a605572d742335a4978966444d393792cd28 (diff) |
Cleanup: Convert camelCase naming to snake_case in Compositortemp-compositor-cleanups
To follow the style guide.
Diffstat (limited to 'source/blender/compositor/operations/COM_GlareBaseOperation.cc')
-rw-r--r-- | source/blender/compositor/operations/COM_GlareBaseOperation.cc | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/source/blender/compositor/operations/COM_GlareBaseOperation.cc b/source/blender/compositor/operations/COM_GlareBaseOperation.cc index 0987f0efb31..37082f29579 100644 --- a/source/blender/compositor/operations/COM_GlareBaseOperation.cc +++ b/source/blender/compositor/operations/COM_GlareBaseOperation.cc @@ -22,52 +22,52 @@ namespace blender::compositor { GlareBaseOperation::GlareBaseOperation() { - this->addInputSocket(DataType::Color); - this->addOutputSocket(DataType::Color); + this->add_input_socket(DataType::Color); + this->add_output_socket(DataType::Color); settings_ = nullptr; flags.is_fullframe_operation = true; is_output_rendered_ = false; } -void GlareBaseOperation::initExecution() +void GlareBaseOperation::init_execution() { - SingleThreadedOperation::initExecution(); - inputProgram_ = getInputSocketReader(0); + SingleThreadedOperation::init_execution(); + input_program_ = get_input_socket_reader(0); } -void GlareBaseOperation::deinitExecution() +void GlareBaseOperation::deinit_execution() { - inputProgram_ = nullptr; - SingleThreadedOperation::deinitExecution(); + input_program_ = nullptr; + SingleThreadedOperation::deinit_execution(); } -MemoryBuffer *GlareBaseOperation::createMemoryBuffer(rcti *rect2) +MemoryBuffer *GlareBaseOperation::create_memory_buffer(rcti *rect2) { - MemoryBuffer *tile = (MemoryBuffer *)inputProgram_->initializeTileData(rect2); + MemoryBuffer *tile = (MemoryBuffer *)input_program_->initialize_tile_data(rect2); rcti rect; rect.xmin = 0; rect.ymin = 0; - rect.xmax = getWidth(); - rect.ymax = getHeight(); + rect.xmax = get_width(); + rect.ymax = get_height(); MemoryBuffer *result = new MemoryBuffer(DataType::Color, rect); - float *data = result->getBuffer(); - this->generateGlare(data, tile, settings_); + float *data = result->get_buffer(); + this->generate_glare(data, tile, settings_); return result; } -bool GlareBaseOperation::determineDependingAreaOfInterest(rcti * /*input*/, - ReadBufferOperation *readOperation, - rcti *output) +bool GlareBaseOperation::determine_depending_area_of_interest(rcti * /*input*/, + ReadBufferOperation *read_operation, + rcti *output) { - if (isCached()) { + if (is_cached()) { return false; } - rcti newInput; - newInput.xmax = this->getWidth(); - newInput.xmin = 0; - newInput.ymax = this->getHeight(); - newInput.ymin = 0; - return NodeOperation::determineDependingAreaOfInterest(&newInput, readOperation, output); + rcti new_input; + new_input.xmax = this->get_width(); + new_input.xmin = 0; + new_input.ymax = this->get_height(); + new_input.ymin = 0; + return NodeOperation::determine_depending_area_of_interest(&new_input, read_operation, output); } void GlareBaseOperation::get_area_of_interest(const int input_idx, @@ -77,9 +77,9 @@ void GlareBaseOperation::get_area_of_interest(const int input_idx, BLI_assert(input_idx == 0); UNUSED_VARS_NDEBUG(input_idx); r_input_area.xmin = 0; - r_input_area.xmax = this->getWidth(); + r_input_area.xmax = this->get_width(); r_input_area.ymin = 0; - r_input_area.ymax = this->getHeight(); + r_input_area.ymax = this->get_height(); } void GlareBaseOperation::update_memory_buffer(MemoryBuffer *output, @@ -93,7 +93,7 @@ void GlareBaseOperation::update_memory_buffer(MemoryBuffer *output, input = input->inflate(); } - this->generateGlare(output->getBuffer(), input, settings_); + this->generate_glare(output->get_buffer(), input, settings_); is_output_rendered_ = true; if (is_input_inflated) { |