Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_GlareThresholdOperation.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" | ||||
| #include "DNA_light_types.h" | #include "DNA_light_types.h" | ||||
| namespace blender::compositor { | namespace blender::compositor { | ||||
| class GlareThresholdOperation : public NodeOperation { | class GlareThresholdOperation : public MultiThreadedOperation { | ||||
| private: | private: | ||||
| /** | /** | ||||
| * \brief Cached reference to the inputProgram | * \brief Cached reference to the inputProgram | ||||
| */ | */ | ||||
| SocketReader *m_inputProgram; | SocketReader *m_inputProgram; | ||||
| /** | /** | ||||
| * \brief settings of the glare node. | * \brief settings of the glare node. | ||||
| Show All 18 Lines | public: | ||||
| */ | */ | ||||
| void deinitExecution() override; | void deinitExecution() override; | ||||
| void setGlareSettings(NodeGlare *settings) | void setGlareSettings(NodeGlare *settings) | ||||
| { | { | ||||
| this->m_settings = settings; | this->m_settings = settings; | ||||
| } | } | ||||
| void determineResolution(unsigned int resolution[2], | void determine_canvas(const rcti &preferred_area, rcti &r_area) override; | ||||
| unsigned int preferredResolution[2]) override; | void update_memory_buffer_partial(MemoryBuffer *output, | ||||
| const rcti &area, | |||||
| Span<MemoryBuffer *> inputs) override; | |||||
| }; | }; | ||||
| } // namespace blender::compositor | } // namespace blender::compositor | ||||