diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_CalculateMeanOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_CalculateMeanOperation.h | 59 |
1 files changed, 32 insertions, 27 deletions
diff --git a/source/blender/compositor/operations/COM_CalculateMeanOperation.h b/source/blender/compositor/operations/COM_CalculateMeanOperation.h index 54c09007dc6..38d68b2a6fd 100644 --- a/source/blender/compositor/operations/COM_CalculateMeanOperation.h +++ b/source/blender/compositor/operations/COM_CalculateMeanOperation.h @@ -26,40 +26,45 @@ * \ingroup operation */ class CalculateMeanOperation : public NodeOperation { -protected: - /** - * \brief Cached reference to the reader - */ - SocketReader *m_imageReader; + protected: + /** + * \brief Cached reference to the reader + */ + SocketReader *m_imageReader; - bool m_iscalculated; - float m_result; - int m_setting; + bool m_iscalculated; + float m_result; + int m_setting; -public: - CalculateMeanOperation(); + public: + CalculateMeanOperation(); - /** - * 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 *initializeTileData(rcti *rect); - /** - * Deinitialize the execution - */ - void deinitExecution(); + /** + * Deinitialize the execution + */ + void deinitExecution(); - bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output); - void setSetting(int setting) { this->m_setting = setting; } + bool determineDependingAreaOfInterest(rcti *input, + ReadBufferOperation *readOperation, + rcti *output); + void setSetting(int setting) + { + this->m_setting = setting; + } -protected: - void calculateMean(MemoryBuffer *tile); + protected: + void calculateMean(MemoryBuffer *tile); }; #endif |