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_FullFrameBufferedOperation.h" | |||||
| #include "COM_NodeOperation.h" | #include "COM_NodeOperation.h" | ||||
| #include "COM_SingleThreadedOperation.h" | |||||
| #include "DNA_light_types.h" | #include "DNA_light_types.h" | ||||
| namespace blender::compositor { | namespace blender::compositor { | ||||
| class GlareThresholdOperation : public NodeOperation { | class GlareThresholdOperation : public FullFrameBufferedOperation { | ||||
| 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. | ||||
| */ | */ | ||||
| NodeGlare *m_settings; | NodeGlare *m_settings; | ||||
| public: | public: | ||||
| GlareThresholdOperation(); | GlareThresholdOperation(); | ||||
| /** | /** | ||||
| * The inner loop of this operation. | * The inner loop of this operation. | ||||
| */ | */ | ||||
| void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override; | void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override; | ||||
| void update_memory_buffer(MemoryBuffer *output_buffer, | |||||
| rcti *output_rect, | |||||
| blender::Span<MemoryBuffer *> inputs) override; | |||||
| /** | /** | ||||
| * Initialize the execution | * Initialize the execution | ||||
| */ | */ | ||||
| void initExecution() override; | void initExecution() override; | ||||
| /** | /** | ||||
| * Deinitialize the execution | * Deinitialize the execution | ||||
| */ | */ | ||||
| Show All 12 Lines | |||||