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_BlurBaseOperation.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_BlurBaseOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_BlurBaseOperation.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_BlurBaseOperation.h b/source/blender/compositor/operations/COM_BlurBaseOperation.h index f9f37479c56..84cdcfeeba8 100644 --- a/source/blender/compositor/operations/COM_BlurBaseOperation.h +++ b/source/blender/compositor/operations/COM_BlurBaseOperation.h @@ -55,6 +55,8 @@ protected: float m_size; bool m_sizeavailable; + bool m_extend_bounds; + public: /** * Initialize the execution @@ -69,5 +71,10 @@ public: void setData(const NodeBlurData *data); void setSize(float size) { this->m_size = size; this->m_sizeavailable = true; } + + void setExtendBounds(bool extend_bounds) { this->m_extend_bounds = extend_bounds; } + + void determineResolution(unsigned int resolution[2], + unsigned int preferredResolution[2]); }; #endif |