Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-08-10 19:31:54 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-10 19:31:54 +0400
commitb84c1dd59240560a6d681a3853c82eeac3b0d350 (patch)
tree07bd750bc7ed34ade4b3eec0969547d9199d644c /source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.h
parent2a1b7f7f8eaef4fd66d9031f8e906f5ba8a9a5b2 (diff)
compositor: bokeh blur size input can now be an image, in this case it uses VariableSizeBokehBlurOperation class internally.
updated opencl too.
Diffstat (limited to 'source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.h3
1 files changed, 3 insertions, 0 deletions
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<cl_mem> *clMemToCleanUp, list<cl_kernel> *clKernelsToCleanUp);
};