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_TranslateOperation.h
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_TranslateOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_TranslateOperation.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/source/blender/compositor/operations/COM_TranslateOperation.h b/source/blender/compositor/operations/COM_TranslateOperation.h
index 734a19008d6..25251ff1d9e 100644
--- a/source/blender/compositor/operations/COM_TranslateOperation.h
+++ b/source/blender/compositor/operations/COM_TranslateOperation.h
@@ -30,14 +30,14 @@ class TranslateOperation : public MultiThreadedOperation {
static constexpr int Y_INPUT_INDEX = 2;
private:
- SocketReader *m_inputOperation;
- SocketReader *m_inputXOperation;
- SocketReader *m_inputYOperation;
- float m_deltaX;
- float m_deltaY;
- bool m_isDeltaSet;
- float m_factorX;
- float m_factorY;
+ SocketReader *inputOperation_;
+ SocketReader *inputXOperation_;
+ SocketReader *inputYOperation_;
+ float deltaX_;
+ float deltaY_;
+ bool isDeltaSet_;
+ float factorX_;
+ float factorY_;
protected:
MemoryBufferExtend x_extend_mode_;
@@ -56,29 +56,29 @@ class TranslateOperation : public MultiThreadedOperation {
float getDeltaX()
{
- return m_deltaX * m_factorX;
+ return deltaX_ * factorX_;
}
float getDeltaY()
{
- return m_deltaY * m_factorY;
+ return deltaY_ * factorY_;
}
inline void ensureDelta()
{
- if (!m_isDeltaSet) {
+ if (!isDeltaSet_) {
if (execution_model_ == eExecutionModel::Tiled) {
float tempDelta[4];
- m_inputXOperation->readSampled(tempDelta, 0, 0, PixelSampler::Nearest);
- m_deltaX = tempDelta[0];
- m_inputYOperation->readSampled(tempDelta, 0, 0, PixelSampler::Nearest);
- m_deltaY = tempDelta[0];
+ inputXOperation_->readSampled(tempDelta, 0, 0, PixelSampler::Nearest);
+ deltaX_ = tempDelta[0];
+ inputYOperation_->readSampled(tempDelta, 0, 0, PixelSampler::Nearest);
+ deltaY_ = tempDelta[0];
}
else {
- m_deltaX = get_input_operation(X_INPUT_INDEX)->get_constant_value_default(0.0f);
- m_deltaY = get_input_operation(Y_INPUT_INDEX)->get_constant_value_default(0.0f);
+ deltaX_ = get_input_operation(X_INPUT_INDEX)->get_constant_value_default(0.0f);
+ deltaY_ = get_input_operation(Y_INPUT_INDEX)->get_constant_value_default(0.0f);
}
- m_isDeltaSet = true;
+ isDeltaSet_ = true;
}
}