From cc55f97da9cca7a27f2313b7405d3aad277029d7 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 9 Dec 2015 19:31:39 +0500 Subject: 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 --- source/blender/compositor/operations/COM_BokehBlurOperation.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/compositor/operations/COM_BokehBlurOperation.h') 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 *clMemToCleanUp, list *clKernelsToCleanUp); + + void setExtendBounds(bool extend_bounds) { this->m_extend_bounds = extend_bounds; } + + void determineResolution(unsigned int resolution[2], + unsigned int preferredResolution[2]); }; #endif -- cgit v1.2.3