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_VariableSizeBokehBlurOperation.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_VariableSizeBokehBlurOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.h158
1 files changed, 90 insertions, 68 deletions
diff --git a/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.h b/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.h
index f586bf73dca..930bfd77943 100644
--- a/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.h
+++ b/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.h
@@ -24,81 +24,103 @@
//#define COM_DEFOCUS_SEARCH
class VariableSizeBokehBlurOperation : public NodeOperation, public QualityStepHelper {
-private:
- int m_maxBlur;
- float m_threshold;
- bool m_do_size_scale; /* scale size, matching 'BokehBlurNode' */
- SocketReader *m_inputProgram;
- SocketReader *m_inputBokehProgram;
- SocketReader *m_inputSizeProgram;
+ private:
+ int m_maxBlur;
+ float m_threshold;
+ bool m_do_size_scale; /* scale size, matching 'BokehBlurNode' */
+ SocketReader *m_inputProgram;
+ SocketReader *m_inputBokehProgram;
+ SocketReader *m_inputSizeProgram;
#ifdef COM_DEFOCUS_SEARCH
- SocketReader *m_inputSearchProgram;
+ SocketReader *m_inputSearchProgram;
#endif
-public:
- VariableSizeBokehBlurOperation();
-
- /**
- * the inner loop of this program
- */
- void executePixel(float output[4], int x, int y, void *data);
-
- /**
- * Initialize the execution
- */
- void initExecution();
-
- void *initializeTileData(rcti *rect);
-
- void deinitializeTileData(rcti *rect, void *data);
-
- /**
- * Deinitialize the execution
- */
- void deinitExecution();
-
- bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output);
-
- void setMaxBlur(int maxRadius) { this->m_maxBlur = maxRadius; }
-
- void setThreshold(float threshold) { this->m_threshold = threshold; }
-
- void setDoScaleSize(bool scale_size) { this->m_do_size_scale = scale_size; }
-
- void executeOpenCL(OpenCLDevice *device, MemoryBuffer *outputMemoryBuffer, cl_mem clOutputBuffer, MemoryBuffer **inputMemoryBuffers, list<cl_mem> *clMemToCleanUp, list<cl_kernel> *clKernelsToCleanUp);
+ public:
+ VariableSizeBokehBlurOperation();
+
+ /**
+ * the inner loop of this program
+ */
+ void executePixel(float output[4], int x, int y, void *data);
+
+ /**
+ * Initialize the execution
+ */
+ void initExecution();
+
+ void *initializeTileData(rcti *rect);
+
+ void deinitializeTileData(rcti *rect, void *data);
+
+ /**
+ * Deinitialize the execution
+ */
+ void deinitExecution();
+
+ bool determineDependingAreaOfInterest(rcti *input,
+ ReadBufferOperation *readOperation,
+ rcti *output);
+
+ void setMaxBlur(int maxRadius)
+ {
+ this->m_maxBlur = maxRadius;
+ }
+
+ void setThreshold(float threshold)
+ {
+ this->m_threshold = threshold;
+ }
+
+ void setDoScaleSize(bool scale_size)
+ {
+ this->m_do_size_scale = scale_size;
+ }
+
+ void executeOpenCL(OpenCLDevice *device,
+ MemoryBuffer *outputMemoryBuffer,
+ cl_mem clOutputBuffer,
+ MemoryBuffer **inputMemoryBuffers,
+ list<cl_mem> *clMemToCleanUp,
+ list<cl_kernel> *clKernelsToCleanUp);
};
#ifdef COM_DEFOCUS_SEARCH
class InverseSearchRadiusOperation : public NodeOperation {
-private:
- int m_maxBlur;
- SocketReader *m_inputRadius;
-public:
- static const int DIVIDER = 4;
-
- InverseSearchRadiusOperation();
-
- /**
- * the inner loop of this program
- */
- void executePixelChunk(float output[4], int x, int y, void *data);
-
- /**
- * Initialize the execution
- */
- void initExecution();
- void *initializeTileData(rcti *rect);
- void deinitializeTileData(rcti *rect, void *data);
-
- /**
- * Deinitialize the execution
- */
- void deinitExecution();
-
- bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output);
- void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]);
-
- void setMaxBlur(int maxRadius) { this->m_maxBlur = maxRadius; }
+ private:
+ int m_maxBlur;
+ SocketReader *m_inputRadius;
+
+ public:
+ static const int DIVIDER = 4;
+
+ InverseSearchRadiusOperation();
+
+ /**
+ * the inner loop of this program
+ */
+ void executePixelChunk(float output[4], int x, int y, void *data);
+
+ /**
+ * Initialize the execution
+ */
+ void initExecution();
+ void *initializeTileData(rcti *rect);
+ void deinitializeTileData(rcti *rect, void *data);
+
+ /**
+ * Deinitialize the execution
+ */
+ void deinitExecution();
+
+ bool determineDependingAreaOfInterest(rcti *input,
+ ReadBufferOperation *readOperation,
+ rcti *output);
+ void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]);
+
+ void setMaxBlur(int maxRadius)
+ {
+ this->m_maxBlur = maxRadius;
+ }
};
#endif
#endif