From e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 17 Apr 2019 06:17:24 +0200 Subject: 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 --- .../operations/COM_CompositorOperation.h | 142 ++++++++++++--------- 1 file changed, 85 insertions(+), 57 deletions(-) (limited to 'source/blender/compositor/operations/COM_CompositorOperation.h') 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 -- cgit v1.2.3