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-06-15 22:42:03 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-06-15 22:42:03 +0400
commit570cc70772d78703053956ce57b20c6c4ed74c95 (patch)
treeb4c5db0392384251f1b1ccefc17c959d3e742977 /source/blender/compositor/operations/COM_MultilayerImageOperation.cpp
parent8fd2267e56d3d0b6bb860800eb8059bcbfa0b501 (diff)
style cleanup: compositor operations
Diffstat (limited to 'source/blender/compositor/operations/COM_MultilayerImageOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_MultilayerImageOperation.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/source/blender/compositor/operations/COM_MultilayerImageOperation.cpp b/source/blender/compositor/operations/COM_MultilayerImageOperation.cpp
index 5e81cd639dd..1bd21f6e712 100644
--- a/source/blender/compositor/operations/COM_MultilayerImageOperation.cpp
+++ b/source/blender/compositor/operations/COM_MultilayerImageOperation.cpp
@@ -27,7 +27,7 @@ extern "C" {
#include "IMB_imbuf_types.h"
}
-MultilayerBaseOperation::MultilayerBaseOperation(int pass): BaseImageOperation()
+MultilayerBaseOperation::MultilayerBaseOperation(int pass) : BaseImageOperation()
{
this->passId = pass;
}
@@ -56,22 +56,22 @@ void MultilayerColorOperation::executePixel(float *color, float x, float y, Pixe
else {
if (this->numberOfChannels == 4) {
switch (sampler) {
- case COM_PS_NEAREST:
- neareast_interpolation_color(this->buffer, NULL, color, x, y);
- break;
- case COM_PS_BILINEAR:
- bilinear_interpolation_color(this->buffer, NULL, color, x, y);
- break;
- case COM_PS_BICUBIC:
- bicubic_interpolation_color(this->buffer, NULL, color, x, y);
- break;
+ case COM_PS_NEAREST:
+ neareast_interpolation_color(this->buffer, NULL, color, x, y);
+ break;
+ case COM_PS_BILINEAR:
+ bilinear_interpolation_color(this->buffer, NULL, color, x, y);
+ break;
+ case COM_PS_BICUBIC:
+ bicubic_interpolation_color(this->buffer, NULL, color, x, y);
+ break;
}
}
else {
- int offset = (yi*this->getWidth()+xi)*3;
+ int offset = (yi * this->getWidth() + xi) * 3;
color[0] = this->imageBuffer[offset];
- color[1] = this->imageBuffer[offset+1];
- color[2] = this->imageBuffer[offset+2];
+ color[1] = this->imageBuffer[offset + 1];
+ color[2] = this->imageBuffer[offset + 2];
}
}
}
@@ -84,7 +84,7 @@ void MultilayerValueOperation::executePixel(float *color, float x, float y, Pixe
color[0] = 0.0f;
}
else {
- float result = this->imageBuffer[yi*this->getWidth()+xi];
+ float result = this->imageBuffer[yi * this->getWidth() + xi];
color[0] = result;
}
}
@@ -97,9 +97,9 @@ void MultilayerVectorOperation::executePixel(float *color, float x, float y, Pix
color[0] = 0.0f;
}
else {
- int offset = (yi*this->getWidth()+xi)*3;
+ int offset = (yi * this->getWidth() + xi) * 3;
color[0] = this->imageBuffer[offset];
- color[1] = this->imageBuffer[offset+1];
- color[2] = this->imageBuffer[offset+2];
+ color[1] = this->imageBuffer[offset + 1];
+ color[2] = this->imageBuffer[offset + 2];
}
}