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_DifferenceMatteOperation.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_DifferenceMatteOperation.cc')
-rw-r--r--source/blender/compositor/operations/COM_DifferenceMatteOperation.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/compositor/operations/COM_DifferenceMatteOperation.cc b/source/blender/compositor/operations/COM_DifferenceMatteOperation.cc
index 25004d947aa..d5f11ff8e35 100644
--- a/source/blender/compositor/operations/COM_DifferenceMatteOperation.cc
+++ b/source/blender/compositor/operations/COM_DifferenceMatteOperation.cc
@@ -26,20 +26,20 @@ DifferenceMatteOperation::DifferenceMatteOperation()
addInputSocket(DataType::Color);
addOutputSocket(DataType::Value);
- m_inputImage1Program = nullptr;
- m_inputImage2Program = nullptr;
+ inputImage1Program_ = nullptr;
+ inputImage2Program_ = nullptr;
flags.can_be_constant = true;
}
void DifferenceMatteOperation::initExecution()
{
- m_inputImage1Program = this->getInputSocketReader(0);
- m_inputImage2Program = this->getInputSocketReader(1);
+ inputImage1Program_ = this->getInputSocketReader(0);
+ inputImage2Program_ = this->getInputSocketReader(1);
}
void DifferenceMatteOperation::deinitExecution()
{
- m_inputImage1Program = nullptr;
- m_inputImage2Program = nullptr;
+ inputImage1Program_ = nullptr;
+ inputImage2Program_ = nullptr;
}
void DifferenceMatteOperation::executePixelSampled(float output[4],
@@ -50,13 +50,13 @@ void DifferenceMatteOperation::executePixelSampled(float output[4],
float inColor1[4];
float inColor2[4];
- const float tolerance = m_settings->t1;
- const float falloff = m_settings->t2;
+ const float tolerance = settings_->t1;
+ const float falloff = settings_->t2;
float difference;
float alpha;
- m_inputImage1Program->readSampled(inColor1, x, y, sampler);
- m_inputImage2Program->readSampled(inColor2, x, y, sampler);
+ inputImage1Program_->readSampled(inColor1, x, y, sampler);
+ inputImage2Program_->readSampled(inColor2, x, y, sampler);
difference = (fabsf(inColor2[0] - inColor1[0]) + fabsf(inColor2[1] - inColor1[1]) +
fabsf(inColor2[2] - inColor1[2]));
@@ -100,8 +100,8 @@ void DifferenceMatteOperation::update_memory_buffer_partial(MemoryBuffer *output
/* Average together the distances. */
difference = difference / 3.0f;
- const float tolerance = m_settings->t1;
- const float falloff = m_settings->t2;
+ const float tolerance = settings_->t1;
+ const float falloff = settings_->t2;
/* Make 100% transparent. */
if (difference <= tolerance) {