diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_TonemapOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_TonemapOperation.h | 87 |
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 |