diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-06-24 14:31:48 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-06-24 14:31:48 +0400 |
commit | d71d41755efa526b55f1196618e4dc0f03988d07 (patch) | |
tree | 5f80bcb46d5e7ce1c614976bfd362f6ecf81a7ff /source/blender/compositor/operations/COM_KeyingClipOperation.cpp | |
parent | 49a9d8d4ae7a4b024e054e2880306cd3e4cfd956 (diff) |
Fixes for area of interest in keying nodes: no need to wait for the whole
input image to be calculated in some cases, use only actual area which is
needed to calculate current tile.
Seems to be giving some % of speedup. Verified result of keying before
this patch and after this patch and they were identical, so hopefully
now area of interest is indeed correct.
Diffstat (limited to 'source/blender/compositor/operations/COM_KeyingClipOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_KeyingClipOperation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_KeyingClipOperation.cpp b/source/blender/compositor/operations/COM_KeyingClipOperation.cpp index 2c9949f2b4b..1d7ae1372b0 100644 --- a/source/blender/compositor/operations/COM_KeyingClipOperation.cpp +++ b/source/blender/compositor/operations/COM_KeyingClipOperation.cpp @@ -114,10 +114,10 @@ bool KeyingClipOperation::determineDependingAreaOfInterest(rcti *input, ReadBuff { rcti newInput; - newInput.xmin = 0; - newInput.ymin = 0; - newInput.xmax = this->getWidth(); - newInput.ymax = this->getHeight(); + newInput.xmin = input->xmin - this->kernelRadius; + newInput.ymin = input->ymin - this->kernelRadius; + newInput.xmax = input->xmax + this->kernelRadius; + newInput.ymax = input->ymax + this->kernelRadius; return NodeOperation::determineDependingAreaOfInterest(&newInput, readOperation, output); } |