Differential D12341 Diff 41207 source/blender/compositor/operations/COM_ConvertDepthToRadiusOperation.h
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_ConvertDepthToRadiusOperation.h
| Show All 13 Lines | |||||
| * 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_FastGaussianBlurOperation.h" | #include "COM_FastGaussianBlurOperation.h" | ||||
| #include "COM_NodeOperation.h" | #include "COM_MultiThreadedOperation.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| namespace blender::compositor { | namespace blender::compositor { | ||||
| /** | /** | ||||
| * this program converts an input color to an output value. | * this program converts an input color to an output value. | ||||
| * it assumes we are in sRGB color space. | * it assumes we are in sRGB color space. | ||||
| */ | */ | ||||
| class ConvertDepthToRadiusOperation : public NodeOperation { | class ConvertDepthToRadiusOperation : public MultiThreadedOperation { | ||||
| private: | private: | ||||
| /** | /** | ||||
| * Cached reference to the inputProgram | * Cached reference to the inputProgram | ||||
| */ | */ | ||||
| SocketReader *m_inputOperation; | SocketReader *m_inputOperation; | ||||
| float m_fStop; | float m_fStop; | ||||
| float m_aspect; | float m_aspect; | ||||
| float m_maxRadius; | float m_maxRadius; | ||||
| Show All 38 Lines | public: | ||||
| { | { | ||||
| this->m_cameraObject = camera; | this->m_cameraObject = camera; | ||||
| } | } | ||||
| float determineFocalDistance(); | float determineFocalDistance(); | ||||
| void setPostBlur(FastGaussianBlurValueOperation *operation) | void setPostBlur(FastGaussianBlurValueOperation *operation) | ||||
| { | { | ||||
| this->m_blurPostOperation = operation; | this->m_blurPostOperation = operation; | ||||
| } | } | ||||
| void update_memory_buffer_partial(MemoryBuffer *output, | |||||
| const rcti &area, | |||||
| Span<MemoryBuffer *> inputs) override; | |||||
| }; | }; | ||||
| } // namespace blender::compositor | } // namespace blender::compositor | ||||