Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_BrightnessOperation.h
| Show All 12 Lines | |||||
| * along with this program; if not, write to the Free Software Foundation, | * along with this program; if not, write to the Free Software Foundation, | ||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| * | * | ||||
| * Copyright 2011, Blender Foundation. | * Copyright 2011, Blender Foundation. | ||||
| */ | */ | ||||
| #pragma once | #pragma once | ||||
| #include "COM_NodeOperation.h" | #include "COM_MultiThreadedOperation.h" | ||||
| namespace blender::compositor { | namespace blender::compositor { | ||||
| class BrightnessOperation : public NodeOperation { | class BrightnessOperation : public MultiThreadedOperation { | ||||
| private: | private: | ||||
| /** | /** | ||||
| * Cached reference to the inputProgram | * Cached reference to the inputProgram | ||||
| */ | */ | ||||
| SocketReader *m_inputProgram; | SocketReader *m_inputProgram; | ||||
| SocketReader *m_inputBrightnessProgram; | SocketReader *m_inputBrightnessProgram; | ||||
| SocketReader *m_inputContrastProgram; | SocketReader *m_inputContrastProgram; | ||||
| Show All 13 Lines | public: | ||||
| void initExecution() override; | void initExecution() override; | ||||
| /** | /** | ||||
| * Deinitialize the execution | * Deinitialize the execution | ||||
| */ | */ | ||||
| void deinitExecution() override; | void deinitExecution() override; | ||||
| void setUsePremultiply(bool use_premultiply); | void setUsePremultiply(bool use_premultiply); | ||||
| void update_memory_buffer_partial(MemoryBuffer *output, | |||||
| const rcti &area, | |||||
| Span<MemoryBuffer *> inputs) override; | |||||
| }; | }; | ||||
| } // namespace blender::compositor | } // namespace blender::compositor | ||||