diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-12-09 17:31:39 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-14 14:13:55 +0300 |
commit | cc55f97da9cca7a27f2313b7405d3aad277029d7 (patch) | |
tree | 0dd6047408ec255772dac4a9b79a6e50edcc1990 /source/blender/compositor/operations/COM_BokehBlurOperation.h | |
parent | 73feae6f5dd81a81e0321db80e55c15c3518b7a0 (diff) |
Compositor: Add option to extend image bounds when blurring
It is handy when doing some roto work and it's required to blur some
mask or overaly before alpha-overing it on top of the footage.
Quite straightforward option with the only limitation that variable
size blur is not supported.
Reviewers: campbellbarton
Subscribers: hype, sebastian_k
Differential Revision: https://developer.blender.org/D1663
Diffstat (limited to 'source/blender/compositor/operations/COM_BokehBlurOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_BokehBlurOperation.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_BokehBlurOperation.h b/source/blender/compositor/operations/COM_BokehBlurOperation.h index d2944825583..ed967d0fdb9 100644 --- a/source/blender/compositor/operations/COM_BokehBlurOperation.h +++ b/source/blender/compositor/operations/COM_BokehBlurOperation.h @@ -37,6 +37,7 @@ private: float m_bokehMidX; float m_bokehMidY; float m_bokehDimension; + bool m_extend_bounds; public: BokehBlurOperation(); @@ -64,5 +65,10 @@ public: MemoryBuffer *outputMemoryBuffer, cl_mem clOutputBuffer, MemoryBuffer **inputMemoryBuffers, list<cl_mem> *clMemToCleanUp, list<cl_kernel> *clKernelsToCleanUp); + + void setExtendBounds(bool extend_bounds) { this->m_extend_bounds = extend_bounds; } + + void determineResolution(unsigned int resolution[2], + unsigned int preferredResolution[2]); }; #endif |