Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_ViewerOperation.h
| Show All 14 Lines | |||||
| * | * | ||||
| * Copyright 2011, Blender Foundation. | * Copyright 2011, Blender Foundation. | ||||
| */ | */ | ||||
| #pragma once | #pragma once | ||||
| #include "BKE_global.h" | #include "BKE_global.h" | ||||
| #include "BLI_rect.h" | #include "BLI_rect.h" | ||||
| #include "COM_NodeOperation.h" | #include "COM_MultiThreadedOperation.h" | ||||
| #include "DNA_image_types.h" | #include "DNA_image_types.h" | ||||
| namespace blender::compositor { | namespace blender::compositor { | ||||
| class ViewerOperation : public NodeOperation { | class ViewerOperation : public MultiThreadedOperation { | ||||
| private: | private: | ||||
| /* TODO(manzanilla): To be removed together with tiled implementation. */ | |||||
| float *m_outputBuffer; | float *m_outputBuffer; | ||||
| float *m_depthBuffer; | float *m_depthBuffer; | ||||
| Image *m_image; | Image *m_image; | ||||
| ImageUser *m_imageUser; | ImageUser *m_imageUser; | ||||
| bool m_active; | bool m_active; | ||||
| float m_centerX; | float m_centerX; | ||||
| float m_centerY; | float m_centerY; | ||||
| ChunkOrdering m_chunkOrder; | ChunkOrdering m_chunkOrder; | ||||
| bool m_doDepthBuffer; | bool m_doDepthBuffer; | ||||
| ImBuf *m_ibuf; | ImBuf *m_ibuf; | ||||
| ▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | public: | ||||
| { | { | ||||
| this->m_viewSettings = viewSettings; | this->m_viewSettings = viewSettings; | ||||
| } | } | ||||
| void setDisplaySettings(const ColorManagedDisplaySettings *displaySettings) | void setDisplaySettings(const ColorManagedDisplaySettings *displaySettings) | ||||
| { | { | ||||
| this->m_displaySettings = displaySettings; | this->m_displaySettings = displaySettings; | ||||
| } | } | ||||
| void update_memory_buffer_partial(MemoryBuffer *output, | |||||
| const rcti &area, | |||||
| Span<MemoryBuffer *> inputs) override; | |||||
| void clear_display_buffer(); | |||||
| private: | private: | ||||
| void updateImage(rcti *rect); | void updateImage(const rcti *rect); | ||||
| void initImage(); | void initImage(); | ||||
| }; | }; | ||||
| } // namespace blender::compositor | } // namespace blender::compositor | ||||