diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2012-07-13 16:50:10 +0400 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2012-07-13 16:50:10 +0400 |
commit | 6eacb5791df99f9204d0a478698158ef994d3e1d (patch) | |
tree | 664ce2e24d97428bee8ae9fa09050fec41eb20e0 /source/blender/compositor/operations/COM_GaussianYBlurOperation.cpp | |
parent | 9987a8fca727d117b1d94587144d704be0b235dd (diff) |
Inner loop optimization of blur node
Diffstat (limited to 'source/blender/compositor/operations/COM_GaussianYBlurOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_GaussianYBlurOperation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_GaussianYBlurOperation.cpp b/source/blender/compositor/operations/COM_GaussianYBlurOperation.cpp index 7ed455a1156..135dcf60872 100644 --- a/source/blender/compositor/operations/COM_GaussianYBlurOperation.cpp +++ b/source/blender/compositor/operations/COM_GaussianYBlurOperation.cpp @@ -94,9 +94,10 @@ void GaussianYBlurOperation::executePixel(float *color, int x, int y, void *data int index; int step = getStep(); + const int bufferIndexx = ((minx - bufferstartx) * 4) ; for (int ny = miny; ny < maxy; ny += step) { index = (ny - y) + this->m_rad; - int bufferindex = ((minx - bufferstartx) * 4) + ((ny - bufferstarty) * 4 * bufferwidth); + int bufferindex = bufferIndexx + ((ny - bufferstarty) * 4 * bufferwidth); const float multiplier = this->m_gausstab[index]; madd_v4_v4fl(color_accum, &buffer[bufferindex], multiplier); multiplier_accum += multiplier; |