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:
authorCampbell Barton <ideasman42@gmail.com>2019-04-17 07:17:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 07:21:24 +0300
commite12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch)
tree8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/compositor/operations/COM_ConvertOperation.h
parentb3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff)
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/compositor/operations/COM_ConvertOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_ConvertOperation.h187
1 files changed, 88 insertions, 99 deletions
diff --git a/source/blender/compositor/operations/COM_ConvertOperation.h b/source/blender/compositor/operations/COM_ConvertOperation.h
index f738879b572..a4cf05372a5 100644
--- a/source/blender/compositor/operations/COM_ConvertOperation.h
+++ b/source/blender/compositor/operations/COM_ConvertOperation.h
@@ -21,178 +21,167 @@
#include "COM_NodeOperation.h"
-
class ConvertBaseOperation : public NodeOperation {
-protected:
- SocketReader *m_inputOperation;
+ protected:
+ SocketReader *m_inputOperation;
-public:
- ConvertBaseOperation();
+ public:
+ ConvertBaseOperation();
- void initExecution();
- void deinitExecution();
+ void initExecution();
+ void deinitExecution();
};
-
class ConvertValueToColorOperation : public ConvertBaseOperation {
-public:
- ConvertValueToColorOperation();
+ public:
+ ConvertValueToColorOperation();
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
};
-
class ConvertColorToValueOperation : public ConvertBaseOperation {
-public:
- ConvertColorToValueOperation();
+ public:
+ ConvertColorToValueOperation();
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
};
-
class ConvertColorToBWOperation : public ConvertBaseOperation {
-public:
- ConvertColorToBWOperation();
+ public:
+ ConvertColorToBWOperation();
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
};
-
class ConvertColorToVectorOperation : public ConvertBaseOperation {
-public:
- ConvertColorToVectorOperation();
+ public:
+ ConvertColorToVectorOperation();
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
};
-
class ConvertValueToVectorOperation : public ConvertBaseOperation {
-public:
- ConvertValueToVectorOperation();
+ public:
+ ConvertValueToVectorOperation();
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
};
-
class ConvertVectorToColorOperation : public ConvertBaseOperation {
-public:
- ConvertVectorToColorOperation();
+ public:
+ ConvertVectorToColorOperation();
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
};
-
class ConvertVectorToValueOperation : public ConvertBaseOperation {
-public:
- ConvertVectorToValueOperation();
+ public:
+ ConvertVectorToValueOperation();
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
};
-
class ConvertRGBToYCCOperation : public ConvertBaseOperation {
-private:
- /** YCbCr mode (Jpeg, ITU601, ITU709) */
- int m_mode;
-public:
- ConvertRGBToYCCOperation();
+ private:
+ /** YCbCr mode (Jpeg, ITU601, ITU709) */
+ int m_mode;
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ public:
+ ConvertRGBToYCCOperation();
- /** Set the YCC mode */
- void setMode(int mode);
-};
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ /** Set the YCC mode */
+ void setMode(int mode);
+};
class ConvertYCCToRGBOperation : public ConvertBaseOperation {
-private:
- /** YCbCr mode (Jpeg, ITU601, ITU709) */
- int m_mode;
-public:
- ConvertYCCToRGBOperation();
+ private:
+ /** YCbCr mode (Jpeg, ITU601, ITU709) */
+ int m_mode;
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ public:
+ ConvertYCCToRGBOperation();
- /** Set the YCC mode */
- void setMode(int mode);
-};
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ /** Set the YCC mode */
+ void setMode(int mode);
+};
class ConvertRGBToYUVOperation : public ConvertBaseOperation {
-public:
- ConvertRGBToYUVOperation();
+ public:
+ ConvertRGBToYUVOperation();
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
};
-
class ConvertYUVToRGBOperation : public ConvertBaseOperation {
-public:
- ConvertYUVToRGBOperation();
+ public:
+ ConvertYUVToRGBOperation();
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
};
-
class ConvertRGBToHSVOperation : public ConvertBaseOperation {
-public:
- ConvertRGBToHSVOperation();
+ public:
+ ConvertRGBToHSVOperation();
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
};
-
class ConvertHSVToRGBOperation : public ConvertBaseOperation {
-public:
- ConvertHSVToRGBOperation();
+ public:
+ ConvertHSVToRGBOperation();
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
};
-
class ConvertPremulToStraightOperation : public ConvertBaseOperation {
-public:
- ConvertPremulToStraightOperation();
+ public:
+ ConvertPremulToStraightOperation();
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
};
-
class ConvertStraightToPremulOperation : public ConvertBaseOperation {
-public:
- ConvertStraightToPremulOperation();
+ public:
+ ConvertStraightToPremulOperation();
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
};
-
class SeparateChannelOperation : public NodeOperation {
-private:
- SocketReader *m_inputOperation;
- int m_channel;
-public:
- SeparateChannelOperation();
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+ private:
+ SocketReader *m_inputOperation;
+ int m_channel;
- void initExecution();
- void deinitExecution();
+ public:
+ SeparateChannelOperation();
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
- void setChannel(int channel) { this->m_channel = channel; }
-};
+ void initExecution();
+ void deinitExecution();
+ void setChannel(int channel)
+ {
+ this->m_channel = channel;
+ }
+};
class CombineChannelsOperation : public NodeOperation {
-private:
- SocketReader *m_inputChannel1Operation;
- SocketReader *m_inputChannel2Operation;
- SocketReader *m_inputChannel3Operation;
- SocketReader *m_inputChannel4Operation;
-public:
- CombineChannelsOperation();
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
-
- void initExecution();
- void deinitExecution();
+ private:
+ SocketReader *m_inputChannel1Operation;
+ SocketReader *m_inputChannel2Operation;
+ SocketReader *m_inputChannel3Operation;
+ SocketReader *m_inputChannel4Operation;
+
+ public:
+ CombineChannelsOperation();
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+
+ void initExecution();
+ void deinitExecution();
};
#endif