diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_PreviewOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_PreviewOperation.h | 51 |
1 files changed, 30 insertions, 21 deletions
diff --git a/source/blender/compositor/operations/COM_PreviewOperation.h b/source/blender/compositor/operations/COM_PreviewOperation.h index 76b03b09731..6560db727a8 100644 --- a/source/blender/compositor/operations/COM_PreviewOperation.h +++ b/source/blender/compositor/operations/COM_PreviewOperation.h @@ -25,31 +25,40 @@ #include "BKE_global.h" class PreviewOperation : public NodeOperation { -protected: - unsigned char *m_outputBuffer; + protected: + unsigned char *m_outputBuffer; - /** - * \brief holds reference to the SDNA bNode, where this nodes will render the preview image for - */ - bNodePreview *m_preview; - SocketReader *m_input; - float m_divider; + /** + * \brief holds reference to the SDNA bNode, where this nodes will render the preview image for + */ + bNodePreview *m_preview; + SocketReader *m_input; + float m_divider; - const ColorManagedViewSettings *m_viewSettings; - const ColorManagedDisplaySettings *m_displaySettings; -public: - PreviewOperation(const ColorManagedViewSettings *viewSettings, const ColorManagedDisplaySettings *displaySettings); - void verifyPreview(bNodeInstanceHash *previews, bNodeInstanceKey key); + const ColorManagedViewSettings *m_viewSettings; + const ColorManagedDisplaySettings *m_displaySettings; - bool isOutputOperation(bool /*rendering*/) const { return !G.background; } - void initExecution(); - void deinitExecution(); - CompositorPriority getRenderPriority() const; + public: + PreviewOperation(const ColorManagedViewSettings *viewSettings, + const ColorManagedDisplaySettings *displaySettings); + void verifyPreview(bNodeInstanceHash *previews, bNodeInstanceKey key); - void executeRegion(rcti *rect, unsigned int tileNumber); - void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]); - bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output); - bool isPreviewOperation() const { return true; } + bool isOutputOperation(bool /*rendering*/) const + { + return !G.background; + } + void initExecution(); + void deinitExecution(); + CompositorPriority getRenderPriority() const; + void executeRegion(rcti *rect, unsigned int tileNumber); + void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]); + bool determineDependingAreaOfInterest(rcti *input, + ReadBufferOperation *readOperation, + rcti *output); + bool isPreviewOperation() const + { + return true; + } }; #endif |