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_FastGaussianBlurOperation.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_FastGaussianBlurOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_FastGaussianBlurOperation.h80
1 files changed, 46 insertions, 34 deletions
diff --git a/source/blender/compositor/operations/COM_FastGaussianBlurOperation.h b/source/blender/compositor/operations/COM_FastGaussianBlurOperation.h
index b31e88a545d..22f9a6f9cf2 100644
--- a/source/blender/compositor/operations/COM_FastGaussianBlurOperation.h
+++ b/source/blender/compositor/operations/COM_FastGaussianBlurOperation.h
@@ -23,50 +23,62 @@
#include "DNA_node_types.h"
class FastGaussianBlurOperation : public BlurBaseOperation {
-private:
- float m_sx;
- float m_sy;
- MemoryBuffer *m_iirgaus;
-public:
- FastGaussianBlurOperation();
- bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output);
- void executePixel(float output[4], int x, int y, void *data);
+ private:
+ float m_sx;
+ float m_sy;
+ MemoryBuffer *m_iirgaus;
- static void IIR_gauss(MemoryBuffer *src, float sigma, unsigned int channel, unsigned int xy);
- void *initializeTileData(rcti *rect);
- void deinitExecution();
- void initExecution();
+ public:
+ FastGaussianBlurOperation();
+ bool determineDependingAreaOfInterest(rcti *input,
+ ReadBufferOperation *readOperation,
+ rcti *output);
+ void executePixel(float output[4], int x, int y, void *data);
+
+ static void IIR_gauss(MemoryBuffer *src, float sigma, unsigned int channel, unsigned int xy);
+ void *initializeTileData(rcti *rect);
+ void deinitExecution();
+ void initExecution();
};
enum {
- FAST_GAUSS_OVERLAY_MIN = -1,
- FAST_GAUSS_OVERLAY_NONE = 0,
- FAST_GAUSS_OVERLAY_MAX = 1,
+ FAST_GAUSS_OVERLAY_MIN = -1,
+ FAST_GAUSS_OVERLAY_NONE = 0,
+ FAST_GAUSS_OVERLAY_MAX = 1,
};
class FastGaussianBlurValueOperation : public NodeOperation {
-private:
- float m_sigma;
- MemoryBuffer *m_iirgaus;
- SocketReader *m_inputprogram;
+ private:
+ float m_sigma;
+ MemoryBuffer *m_iirgaus;
+ SocketReader *m_inputprogram;
+
+ /**
+ * -1: re-mix with darker
+ * 0: do nothing
+ * 1 re-mix with lighter */
+ int m_overlay;
- /**
- * -1: re-mix with darker
- * 0: do nothing
- * 1 re-mix with lighter */
- int m_overlay;
-public:
- FastGaussianBlurValueOperation();
- bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output);
- void executePixel(float output[4], int x, int y, void *data);
+ public:
+ FastGaussianBlurValueOperation();
+ bool determineDependingAreaOfInterest(rcti *input,
+ ReadBufferOperation *readOperation,
+ rcti *output);
+ void executePixel(float output[4], int x, int y, void *data);
- void *initializeTileData(rcti *rect);
- void deinitExecution();
- void initExecution();
- void setSigma(float sigma) { this->m_sigma = sigma; }
+ void *initializeTileData(rcti *rect);
+ void deinitExecution();
+ void initExecution();
+ void setSigma(float sigma)
+ {
+ this->m_sigma = sigma;
+ }
- /* used for DOF blurring ZBuffer */
- void setOverlay(int overlay) { this->m_overlay = overlay; }
+ /* used for DOF blurring ZBuffer */
+ void setOverlay(int overlay)
+ {
+ this->m_overlay = overlay;
+ }
};
#endif