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:
Diffstat (limited to 'source/blender/compositor/operations/COM_PixelateOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_PixelateOperation.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/source/blender/compositor/operations/COM_PixelateOperation.cpp b/source/blender/compositor/operations/COM_PixelateOperation.cpp
index e047f8a38de..18e691d3c34 100644
--- a/source/blender/compositor/operations/COM_PixelateOperation.cpp
+++ b/source/blender/compositor/operations/COM_PixelateOperation.cpp
@@ -20,25 +20,28 @@
PixelateOperation::PixelateOperation(DataType datatype) : NodeOperation()
{
- this->addInputSocket(datatype);
- this->addOutputSocket(datatype);
- this->setResolutionInputSocketIndex(0);
- this->m_inputOperation = NULL;
+ this->addInputSocket(datatype);
+ this->addOutputSocket(datatype);
+ this->setResolutionInputSocketIndex(0);
+ this->m_inputOperation = NULL;
}
void PixelateOperation::initExecution()
{
- this->m_inputOperation = this->getInputSocketReader(0);
+ this->m_inputOperation = this->getInputSocketReader(0);
}
void PixelateOperation::deinitExecution()
{
- this->m_inputOperation = NULL;
+ this->m_inputOperation = NULL;
}
-void PixelateOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
+void PixelateOperation::executePixelSampled(float output[4],
+ float x,
+ float y,
+ PixelSampler sampler)
{
- float nx = round(x);
- float ny = round(y);
- this->m_inputOperation->readSampled(output, nx, ny, sampler);
+ float nx = round(x);
+ float ny = round(y);
+ this->m_inputOperation->readSampled(output, nx, ny, sampler);
}