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_GammaOperation.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_GammaOperation.cc')
-rw-r--r--source/blender/compositor/operations/COM_GammaOperation.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/compositor/operations/COM_GammaOperation.cc b/source/blender/compositor/operations/COM_GammaOperation.cc
index 21430a68848..a809b16f523 100644
--- a/source/blender/compositor/operations/COM_GammaOperation.cc
+++ b/source/blender/compositor/operations/COM_GammaOperation.cc
@@ -25,14 +25,14 @@ GammaOperation::GammaOperation()
this->addInputSocket(DataType::Color);
this->addInputSocket(DataType::Value);
this->addOutputSocket(DataType::Color);
- m_inputProgram = nullptr;
- m_inputGammaProgram = nullptr;
+ inputProgram_ = nullptr;
+ inputGammaProgram_ = nullptr;
flags.can_be_constant = true;
}
void GammaOperation::initExecution()
{
- m_inputProgram = this->getInputSocketReader(0);
- m_inputGammaProgram = this->getInputSocketReader(1);
+ inputProgram_ = this->getInputSocketReader(0);
+ inputGammaProgram_ = this->getInputSocketReader(1);
}
void GammaOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
@@ -40,8 +40,8 @@ void GammaOperation::executePixelSampled(float output[4], float x, float y, Pixe
float inputValue[4];
float inputGamma[4];
- m_inputProgram->readSampled(inputValue, x, y, sampler);
- m_inputGammaProgram->readSampled(inputGamma, x, y, sampler);
+ inputProgram_->readSampled(inputValue, x, y, sampler);
+ inputGammaProgram_->readSampled(inputGamma, x, y, sampler);
const float gamma = inputGamma[0];
/* check for negative to avoid nan's */
output[0] = inputValue[0] > 0.0f ? powf(inputValue[0], gamma) : inputValue[0];
@@ -67,8 +67,8 @@ void GammaOperation::update_memory_buffer_row(PixelCursor &p)
void GammaOperation::deinitExecution()
{
- m_inputProgram = nullptr;
- m_inputGammaProgram = nullptr;
+ inputProgram_ = nullptr;
+ inputGammaProgram_ = nullptr;
}
} // namespace blender::compositor