diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2012-10-24 17:43:32 +0400 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2012-10-24 17:43:32 +0400 |
commit | a49b1d7b5eaa02ea3caf90c9060e1326dec5f2e5 (patch) | |
tree | e4e2a414f8945678bd7d9be5743ff63b6520fbe2 /source/blender/compositor/operations/COM_PixelateOperation.cpp | |
parent | f746f3ea0917033ee05c0282d177a466948927a6 (diff) |
Oeps... Enabled the pixelate node added documentation, removed unneeded
code
Diffstat (limited to 'source/blender/compositor/operations/COM_PixelateOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_PixelateOperation.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/compositor/operations/COM_PixelateOperation.cpp b/source/blender/compositor/operations/COM_PixelateOperation.cpp index cff4eff0d87..89e7f0093a1 100644 --- a/source/blender/compositor/operations/COM_PixelateOperation.cpp +++ b/source/blender/compositor/operations/COM_PixelateOperation.cpp @@ -24,26 +24,26 @@ 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::executePixel(float output[4], float x, float y, PixelSampler sampler) { - float nx = round(x); - float ny = round(y); - this->m_inputOperation->read(output, nx, ny, sampler); + float nx = round(x); + float ny = round(y); + this->m_inputOperation->read(output, nx, ny, sampler); } |