Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2021-03-19 17:40:36 +0300
committerJeroen Bakker <jeroen@blender.org>2021-03-19 19:11:47 +0300
commit260e50ed82ce015224c796a6354d2b4b18422b6f (patch)
treea0e7164d1693feafc58795fe3de5c2fc0b3764b4 /source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cc
parentc905dd24b694eee0aa29fc95abd50cec62930c23 (diff)
Cleanup: Use ref to read from encapsuled data.
MemoryBuffer->getRect was returning a ptr.
Diffstat (limited to 'source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cc')
-rw-r--r--source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cc b/source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cc
index ce2e75db95c..de35c164fc7 100644
--- a/source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cc
+++ b/source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cc
@@ -85,15 +85,15 @@ void GaussianAlphaYBlurOperation::executePixel(float output[4], int x, int y, vo
{
const bool do_invert = this->m_do_subtract;
MemoryBuffer *inputBuffer = (MemoryBuffer *)data;
+ const rcti &input_rect = inputBuffer->get_rect();
float *buffer = inputBuffer->getBuffer();
int bufferwidth = inputBuffer->getWidth();
- int bufferstartx = inputBuffer->getRect()->xmin;
- int bufferstarty = inputBuffer->getRect()->ymin;
+ int bufferstartx = input_rect.xmin;
+ int bufferstarty = input_rect.ymin;
- rcti &rect = *inputBuffer->getRect();
- int xmin = max_ii(x, rect.xmin);
- int ymin = max_ii(y - m_filtersize, rect.ymin);
- int ymax = min_ii(y + m_filtersize + 1, rect.ymax);
+ int xmin = max_ii(x, input_rect.xmin);
+ int ymin = max_ii(y - m_filtersize, input_rect.ymin);
+ int ymax = min_ii(y + m_filtersize + 1, input_rect.ymax);
/* *** this is the main part which is different to 'GaussianYBlurOperation' *** */
int step = getStep();