diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/compositor/operations/COM_CompositorOperation.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (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_CompositorOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_CompositorOperation.h | 142 |
1 files changed, 85 insertions, 57 deletions
diff --git a/source/blender/compositor/operations/COM_CompositorOperation.h b/source/blender/compositor/operations/COM_CompositorOperation.h index 3d195bd3c6c..d24fc49059c 100644 --- a/source/blender/compositor/operations/COM_CompositorOperation.h +++ b/source/blender/compositor/operations/COM_CompositorOperation.h @@ -28,71 +28,99 @@ struct Scene; * \brief Compositor output operation */ class CompositorOperation : public NodeOperation { -private: - const struct Scene *m_scene; - /** - * \brief Scene name, used for getting the render output, includes 'SC' prefix. - */ - char m_sceneName[MAX_ID_NAME]; + private: + const struct Scene *m_scene; + /** + * \brief Scene name, used for getting the render output, includes 'SC' prefix. + */ + char m_sceneName[MAX_ID_NAME]; - /** - * \brief local reference to the scene - */ - const RenderData *m_rd; + /** + * \brief local reference to the scene + */ + const RenderData *m_rd; - /** - * \brief reference to the output float buffer - */ - float *m_outputBuffer; + /** + * \brief reference to the output float buffer + */ + float *m_outputBuffer; - /** - * \brief reference to the output depth float buffer - */ - float *m_depthBuffer; + /** + * \brief reference to the output depth float buffer + */ + float *m_depthBuffer; - /** - * \brief local reference to the input image operation - */ - SocketReader *m_imageInput; + /** + * \brief local reference to the input image operation + */ + SocketReader *m_imageInput; - /** - * \brief local reference to the input alpha operation - */ - SocketReader *m_alphaInput; + /** + * \brief local reference to the input alpha operation + */ + SocketReader *m_alphaInput; - /** - * \brief local reference to the depth operation - */ - SocketReader *m_depthInput; + /** + * \brief local reference to the depth operation + */ + SocketReader *m_depthInput; - /** - * \brief Ignore any alpha input - */ - bool m_useAlphaInput; + /** + * \brief Ignore any alpha input + */ + bool m_useAlphaInput; - /** - * \brief operation is active for calculating final compo result - */ - bool m_active; + /** + * \brief operation is active for calculating final compo result + */ + bool m_active; - /** - * \brief View name, used for multiview - */ - const char *m_viewName; -public: - CompositorOperation(); - bool isActiveCompositorOutput() const { return this->m_active; } - void executeRegion(rcti *rect, unsigned int tileNumber); - void setScene(const struct Scene *scene) { m_scene = scene; } - void setSceneName(const char *sceneName) { BLI_strncpy(this->m_sceneName, sceneName, sizeof(this->m_sceneName)); } - void setViewName(const char *viewName) { this->m_viewName = viewName; } - void setRenderData(const RenderData *rd) { this->m_rd = rd; } - bool isOutputOperation(bool /*rendering*/) const { return this->isActiveCompositorOutput(); } - void initExecution(); - void deinitExecution(); - CompositorPriority getRenderPriority() const { return COM_PRIORITY_MEDIUM; } - void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]); - void setUseAlphaInput(bool value) { this->m_useAlphaInput = value; } - void setActive(bool active) { this->m_active = active; } + /** + * \brief View name, used for multiview + */ + const char *m_viewName; + + public: + CompositorOperation(); + bool isActiveCompositorOutput() const + { + return this->m_active; + } + void executeRegion(rcti *rect, unsigned int tileNumber); + void setScene(const struct Scene *scene) + { + m_scene = scene; + } + void setSceneName(const char *sceneName) + { + BLI_strncpy(this->m_sceneName, sceneName, sizeof(this->m_sceneName)); + } + void setViewName(const char *viewName) + { + this->m_viewName = viewName; + } + void setRenderData(const RenderData *rd) + { + this->m_rd = rd; + } + bool isOutputOperation(bool /*rendering*/) const + { + return this->isActiveCompositorOutput(); + } + void initExecution(); + void deinitExecution(); + CompositorPriority getRenderPriority() const + { + return COM_PRIORITY_MEDIUM; + } + void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]); + void setUseAlphaInput(bool value) + { + this->m_useAlphaInput = value; + } + void setActive(bool active) + { + this->m_active = active; + } }; #endif |