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_TonemapOperation.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_TonemapOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_TonemapOperation.h87
1 files changed, 46 insertions, 41 deletions
diff --git a/source/blender/compositor/operations/COM_TonemapOperation.h b/source/blender/compositor/operations/COM_TonemapOperation.h
index 2b4804e4bfd..11e82c1fc9c 100644
--- a/source/blender/compositor/operations/COM_TonemapOperation.h
+++ b/source/blender/compositor/operations/COM_TonemapOperation.h
@@ -26,11 +26,11 @@
* \ingroup operation
*/
typedef struct AvgLogLum {
- float al;
- float auto_key;
- float lav;
- float cav[4];
- float igm;
+ float al;
+ float auto_key;
+ float lav;
+ float cav[4];
+ float igm;
} AvgLogLum;
/**
@@ -38,46 +38,51 @@ typedef struct AvgLogLum {
* \ingroup operation
*/
class TonemapOperation : public NodeOperation {
-protected:
- /**
- * \brief Cached reference to the reader
- */
- SocketReader *m_imageReader;
+ protected:
+ /**
+ * \brief Cached reference to the reader
+ */
+ SocketReader *m_imageReader;
- /**
- * \brief settings of the Tonemap
- */
- NodeTonemap *m_data;
+ /**
+ * \brief settings of the Tonemap
+ */
+ NodeTonemap *m_data;
- /**
- * \brief temporarily cache of the execution storage
- */
- AvgLogLum *m_cachedInstance;
+ /**
+ * \brief temporarily cache of the execution storage
+ */
+ AvgLogLum *m_cachedInstance;
-public:
- TonemapOperation();
+ public:
+ TonemapOperation();
- /**
- * the inner loop of this program
- */
- void executePixel(float output[4], int x, int y, void *data);
+ /**
+ * the inner loop of this program
+ */
+ void executePixel(float output[4], int x, int y, void *data);
- /**
- * Initialize the execution
- */
- void initExecution();
+ /**
+ * Initialize the execution
+ */
+ void initExecution();
- void *initializeTileData(rcti *rect);
- void deinitializeTileData(rcti *rect, void *data);
+ void *initializeTileData(rcti *rect);
+ void deinitializeTileData(rcti *rect, void *data);
- /**
- * Deinitialize the execution
- */
- void deinitExecution();
+ /**
+ * Deinitialize the execution
+ */
+ void deinitExecution();
- void setData(NodeTonemap *data) { this->m_data = data; }
+ void setData(NodeTonemap *data)
+ {
+ this->m_data = data;
+ }
- bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output);
+ bool determineDependingAreaOfInterest(rcti *input,
+ ReadBufferOperation *readOperation,
+ rcti *output);
};
/**
@@ -87,11 +92,11 @@ public:
*/
class PhotoreceptorTonemapOperation : public TonemapOperation {
-public:
- /**
- * the inner loop of this program
- */
- void executePixel(float output[4], int x, int y, void *data);
+ public:
+ /**
+ * the inner loop of this program
+ */
+ void executePixel(float output[4], int x, int y, void *data);
};
#endif