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_GammaCorrectOperation.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_GammaCorrectOperation.cc')
-rw-r--r--source/blender/compositor/operations/COM_GammaCorrectOperation.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/compositor/operations/COM_GammaCorrectOperation.cc b/source/blender/compositor/operations/COM_GammaCorrectOperation.cc
index 886ff9d09c2..9a51c789943 100644
--- a/source/blender/compositor/operations/COM_GammaCorrectOperation.cc
+++ b/source/blender/compositor/operations/COM_GammaCorrectOperation.cc
@@ -24,12 +24,12 @@ GammaCorrectOperation::GammaCorrectOperation()
{
this->addInputSocket(DataType::Color);
this->addOutputSocket(DataType::Color);
- m_inputProgram = nullptr;
+ inputProgram_ = nullptr;
flags.can_be_constant = true;
}
void GammaCorrectOperation::initExecution()
{
- m_inputProgram = this->getInputSocketReader(0);
+ inputProgram_ = this->getInputSocketReader(0);
}
void GammaCorrectOperation::executePixelSampled(float output[4],
@@ -38,7 +38,7 @@ void GammaCorrectOperation::executePixelSampled(float output[4],
PixelSampler sampler)
{
float inputColor[4];
- m_inputProgram->readSampled(inputColor, x, y, sampler);
+ inputProgram_->readSampled(inputColor, x, y, sampler);
if (inputColor[3] > 0.0f) {
inputColor[0] /= inputColor[3];
inputColor[1] /= inputColor[3];
@@ -88,19 +88,19 @@ void GammaCorrectOperation::update_memory_buffer_partial(MemoryBuffer *output,
void GammaCorrectOperation::deinitExecution()
{
- m_inputProgram = nullptr;
+ inputProgram_ = nullptr;
}
GammaUncorrectOperation::GammaUncorrectOperation()
{
this->addInputSocket(DataType::Color);
this->addOutputSocket(DataType::Color);
- m_inputProgram = nullptr;
+ inputProgram_ = nullptr;
flags.can_be_constant = true;
}
void GammaUncorrectOperation::initExecution()
{
- m_inputProgram = this->getInputSocketReader(0);
+ inputProgram_ = this->getInputSocketReader(0);
}
void GammaUncorrectOperation::executePixelSampled(float output[4],
@@ -109,7 +109,7 @@ void GammaUncorrectOperation::executePixelSampled(float output[4],
PixelSampler sampler)
{
float inputColor[4];
- m_inputProgram->readSampled(inputColor, x, y, sampler);
+ inputProgram_->readSampled(inputColor, x, y, sampler);
if (inputColor[3] > 0.0f) {
inputColor[0] /= inputColor[3];
@@ -158,7 +158,7 @@ void GammaUncorrectOperation::update_memory_buffer_partial(MemoryBuffer *output,
void GammaUncorrectOperation::deinitExecution()
{
- m_inputProgram = nullptr;
+ inputProgram_ = nullptr;
}
} // namespace blender::compositor