diff options
author | Manuel Castilla <manzanillawork@gmail.com> | 2021-10-14 00:00:50 +0300 |
---|---|---|
committer | Manuel Castilla <manzanillawork@gmail.com> | 2021-10-14 00:41:14 +0300 |
commit | ea79efef70da14100b591b50dcada819808f20b6 (patch) | |
tree | 4faf296870f1ab27ee33fee2b331fdb6b2d2bec4 /source/blender/compositor/operations/COM_KeyingOperation.cc | |
parent | ecb8a574c752068de9f8d9eb98f54db1569df2f7 (diff) |
Cleanup: remove `this->` for `m_` prefixed members in Compositor
For cleaning old code style as new code usually omit it.
Diffstat (limited to 'source/blender/compositor/operations/COM_KeyingOperation.cc')
-rw-r--r-- | source/blender/compositor/operations/COM_KeyingOperation.cc | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/source/blender/compositor/operations/COM_KeyingOperation.cc b/source/blender/compositor/operations/COM_KeyingOperation.cc index 76f30726522..7b0b80b5796 100644 --- a/source/blender/compositor/operations/COM_KeyingOperation.cc +++ b/source/blender/compositor/operations/COM_KeyingOperation.cc @@ -42,22 +42,22 @@ KeyingOperation::KeyingOperation() this->addInputSocket(DataType::Color); this->addOutputSocket(DataType::Value); - this->m_screenBalance = 0.5f; + m_screenBalance = 0.5f; - this->m_pixelReader = nullptr; - this->m_screenReader = nullptr; + m_pixelReader = nullptr; + m_screenReader = nullptr; } void KeyingOperation::initExecution() { - this->m_pixelReader = this->getInputSocketReader(0); - this->m_screenReader = this->getInputSocketReader(1); + m_pixelReader = this->getInputSocketReader(0); + m_screenReader = this->getInputSocketReader(1); } void KeyingOperation::deinitExecution() { - this->m_pixelReader = nullptr; - this->m_screenReader = nullptr; + m_pixelReader = nullptr; + m_screenReader = nullptr; } void KeyingOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler) @@ -65,8 +65,8 @@ void KeyingOperation::executePixelSampled(float output[4], float x, float y, Pix float pixel_color[4]; float screen_color[4]; - this->m_pixelReader->readSampled(pixel_color, x, y, sampler); - this->m_screenReader->readSampled(screen_color, x, y, sampler); + m_pixelReader->readSampled(pixel_color, x, y, sampler); + m_screenReader->readSampled(screen_color, x, y, sampler); const int primary_channel = max_axis_v3(screen_color); const float min_pixel_color = min_fff(pixel_color[0], pixel_color[1], pixel_color[2]); @@ -80,9 +80,8 @@ void KeyingOperation::executePixelSampled(float output[4], float x, float y, Pix output[0] = 1.0f; } else { - float saturation = get_pixel_saturation(pixel_color, this->m_screenBalance, primary_channel); - float screen_saturation = get_pixel_saturation( - screen_color, this->m_screenBalance, primary_channel); + float saturation = get_pixel_saturation(pixel_color, m_screenBalance, primary_channel); + float screen_saturation = get_pixel_saturation(screen_color, m_screenBalance, primary_channel); if (saturation < 0) { /* means main channel of pixel is different from screen, |