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:
authorCampbell Barton <ideasman42@gmail.com>2012-05-18 02:55:28 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-18 02:55:28 +0400
commit7862b2fa13c0437d9c17eae78e7b79a421dacf05 (patch)
tree08f9c26af3e71795d0f65803a415b5612d6b53ab /source/blender/compositor/operations/COM_BilateralBlurOperation.cpp
parent69b95e1a8a00c9ff146d803b8ec11183d7a68908 (diff)
style cleanup: compositor, pointer syntax, function brace placement, line length
Diffstat (limited to 'source/blender/compositor/operations/COM_BilateralBlurOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_BilateralBlurOperation.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/compositor/operations/COM_BilateralBlurOperation.cpp b/source/blender/compositor/operations/COM_BilateralBlurOperation.cpp
index 8d507a754d5..88fe17f633e 100644
--- a/source/blender/compositor/operations/COM_BilateralBlurOperation.cpp
+++ b/source/blender/compositor/operations/COM_BilateralBlurOperation.cpp
@@ -27,7 +27,8 @@ extern "C" {
#include "RE_pipeline.h"
}
-BilateralBlurOperation::BilateralBlurOperation() : NodeOperation() {
+BilateralBlurOperation::BilateralBlurOperation() : NodeOperation()
+{
this->addInputSocket(COM_DT_COLOR);
this->addInputSocket(COM_DT_COLOR);
this->addOutputSocket(COM_DT_COLOR);
@@ -37,14 +38,16 @@ BilateralBlurOperation::BilateralBlurOperation() : NodeOperation() {
this->inputDeterminatorProgram = NULL;
}
-void BilateralBlurOperation::initExecution() {
+void BilateralBlurOperation::initExecution()
+{
this->inputColorProgram = getInputSocketReader(0);
this->inputDeterminatorProgram = getInputSocketReader(1);
this->space = this->data->sigma_space + this->data->iter;
QualityStepHelper::initExecution(COM_QH_INCREASE);
}
-void BilateralBlurOperation::executePixel(float* color, int x, int y, MemoryBuffer *inputBuffers[], void* data) {
+void BilateralBlurOperation::executePixel(float *color, int x, int y, MemoryBuffer *inputBuffers[], void *data)
+{
// read the determinator color at x, y, this will be used as the reference color for the determinator
float determinatorReferenceColor[4];
float determinator[4];
@@ -98,12 +101,14 @@ void BilateralBlurOperation::executePixel(float* color, int x, int y, MemoryBuff
}
}
-void BilateralBlurOperation::deinitExecution() {
+void BilateralBlurOperation::deinitExecution()
+{
this->inputColorProgram = NULL;
this->inputDeterminatorProgram = NULL;
}
-bool BilateralBlurOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output) {
+bool BilateralBlurOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output)
+{
rcti newInput;
int add = ceil(this->space)+1;