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_BokehBlurOperation.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_BokehBlurOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_BokehBlurOperation.h81
1 files changed, 46 insertions, 35 deletions
diff --git a/source/blender/compositor/operations/COM_BokehBlurOperation.h b/source/blender/compositor/operations/COM_BokehBlurOperation.h
index ec46adee637..4f594f16cb4 100644
--- a/source/blender/compositor/operations/COM_BokehBlurOperation.h
+++ b/source/blender/compositor/operations/COM_BokehBlurOperation.h
@@ -23,48 +23,59 @@
#include "COM_QualityStepHelper.h"
class BokehBlurOperation : public NodeOperation, public QualityStepHelper {
-private:
- SocketReader *m_inputProgram;
- SocketReader *m_inputBokehProgram;
- SocketReader *m_inputBoundingBoxReader;
- void updateSize();
- float m_size;
- bool m_sizeavailable;
- float m_bokehMidX;
- float m_bokehMidY;
- float m_bokehDimension;
- bool m_extend_bounds;
-public:
- BokehBlurOperation();
+ private:
+ SocketReader *m_inputProgram;
+ SocketReader *m_inputBokehProgram;
+ SocketReader *m_inputBoundingBoxReader;
+ void updateSize();
+ float m_size;
+ bool m_sizeavailable;
+ float m_bokehMidX;
+ float m_bokehMidY;
+ float m_bokehDimension;
+ bool m_extend_bounds;
- void *initializeTileData(rcti *rect);
- /**
- * the inner loop of this program
- */
- void executePixel(float output[4], int x, int y, void *data);
+ public:
+ BokehBlurOperation();
- /**
- * Initialize the execution
- */
- void initExecution();
+ void *initializeTileData(rcti *rect);
+ /**
+ * the inner loop of this program
+ */
+ void executePixel(float output[4], int x, int y, void *data);
- /**
- * Deinitialize the execution
- */
- void deinitExecution();
+ /**
+ * Initialize the execution
+ */
+ void initExecution();
- bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output);
+ /**
+ * Deinitialize the execution
+ */
+ void deinitExecution();
- void setSize(float size) { this->m_size = size; this->m_sizeavailable = true; }
+ bool determineDependingAreaOfInterest(rcti *input,
+ ReadBufferOperation *readOperation,
+ rcti *output);
- void executeOpenCL(OpenCLDevice *device,
- MemoryBuffer *outputMemoryBuffer, cl_mem clOutputBuffer,
- MemoryBuffer **inputMemoryBuffers, list<cl_mem> *clMemToCleanUp,
- list<cl_kernel> *clKernelsToCleanUp);
+ void setSize(float size)
+ {
+ this->m_size = size;
+ this->m_sizeavailable = true;
+ }
- void setExtendBounds(bool extend_bounds) { this->m_extend_bounds = extend_bounds; }
+ void executeOpenCL(OpenCLDevice *device,
+ MemoryBuffer *outputMemoryBuffer,
+ cl_mem clOutputBuffer,
+ MemoryBuffer **inputMemoryBuffers,
+ list<cl_mem> *clMemToCleanUp,
+ list<cl_kernel> *clKernelsToCleanUp);
- void determineResolution(unsigned int resolution[2],
- unsigned int preferredResolution[2]);
+ void setExtendBounds(bool extend_bounds)
+ {
+ this->m_extend_bounds = extend_bounds;
+ }
+
+ void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]);
};
#endif