From b84c1dd59240560a6d681a3853c82eeac3b0d350 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 10 Aug 2012 15:31:54 +0000 Subject: compositor: bokeh blur size input can now be an image, in this case it uses VariableSizeBokehBlurOperation class internally. updated opencl too. --- .../blender/compositor/operations/COM_VariableSizeBokehBlurOperation.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.h') diff --git a/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.h b/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.h index 1cab4a60af0..d4025692549 100644 --- a/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.h +++ b/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.h @@ -31,6 +31,7 @@ class VariableSizeBokehBlurOperation : public NodeOperation, public QualityStepH private: int m_maxBlur; float m_threshold; + bool m_do_size_scale; /* scale size, matching 'BokehBlurNode' */ SocketReader *m_inputProgram; SocketReader *m_inputBokehProgram; SocketReader *m_inputSizeProgram; @@ -66,6 +67,8 @@ public: void setThreshold(float threshold) { this->m_threshold = threshold; } + void setDoScaleSize(bool scale_size) { this->m_do_size_scale = scale_size; } + void executeOpenCL(OpenCLDevice *device, MemoryBuffer *outputMemoryBuffer, cl_mem clOutputBuffer, MemoryBuffer **inputMemoryBuffers, list *clMemToCleanUp, list *clKernelsToCleanUp); }; -- cgit v1.2.3