Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Castilla <manzanillawork@gmail.com>2021-10-14 00:01:04 +0300
committerManuel Castilla <manzanillawork@gmail.com>2021-10-14 00:41:14 +0300
commita2ee3c3a9f01f5cb2f05f1e84a1b6c1931d9d4a4 (patch)
treed409678b16280311ed228929a45c9470f67a6dcd /source/blender/compositor/operations/COM_GlareThresholdOperation.cc
parentea79efef70da14100b591b50dcada819808f20b6 (diff)
Cleanup: replace members `m_` prefix by `_` suffix 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.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/compositor/operations/COM_GlareThresholdOperation.cc b/source/blender/compositor/operations/COM_GlareThresholdOperation.cc
index 22e5e987aad..7135155cb68 100644
--- a/source/blender/compositor/operations/COM_GlareThresholdOperation.cc
+++ b/source/blender/compositor/operations/COM_GlareThresholdOperation.cc
@@ -26,21 +26,21 @@ GlareThresholdOperation::GlareThresholdOperation()
{
this->addInputSocket(DataType::Color, ResizeMode::FitAny);
this->addOutputSocket(DataType::Color);
- m_inputProgram = nullptr;
+ inputProgram_ = nullptr;
}
void GlareThresholdOperation::determine_canvas(const rcti &preferred_area, rcti &r_area)
{
NodeOperation::determine_canvas(preferred_area, r_area);
- const int width = BLI_rcti_size_x(&r_area) / (1 << m_settings->quality);
- const int height = BLI_rcti_size_y(&r_area) / (1 << m_settings->quality);
+ const int width = BLI_rcti_size_x(&r_area) / (1 << settings_->quality);
+ const int height = BLI_rcti_size_y(&r_area) / (1 << settings_->quality);
r_area.xmax = r_area.xmin + width;
r_area.ymax = r_area.ymin + height;
}
void GlareThresholdOperation::initExecution()
{
- m_inputProgram = this->getInputSocketReader(0);
+ inputProgram_ = this->getInputSocketReader(0);
}
void GlareThresholdOperation::executePixelSampled(float output[4],
@@ -48,9 +48,9 @@ void GlareThresholdOperation::executePixelSampled(float output[4],
float y,
PixelSampler sampler)
{
- const float threshold = m_settings->threshold;
+ const float threshold = settings_->threshold;
- m_inputProgram->readSampled(output, x, y, sampler);
+ inputProgram_->readSampled(output, x, y, sampler);
if (IMB_colormanagement_get_luminance(output) >= threshold) {
output[0] -= threshold;
output[1] -= threshold;
@@ -67,14 +67,14 @@ void GlareThresholdOperation::executePixelSampled(float output[4],
void GlareThresholdOperation::deinitExecution()
{
- m_inputProgram = nullptr;
+ inputProgram_ = nullptr;
}
void GlareThresholdOperation::update_memory_buffer_partial(MemoryBuffer *output,
const rcti &area,
Span<MemoryBuffer *> inputs)
{
- const float threshold = m_settings->threshold;
+ const float threshold = settings_->threshold;
for (BuffersIterator<float> it = output->iterate_with(inputs, area); !it.is_end(); ++it) {
const float *color = it.in(0);
if (IMB_colormanagement_get_luminance(color) >= threshold) {