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-13 18:33:50 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-06-13 18:33:50 +0400
commite22aa7bc38c5d38a0714bed8a2a1869383cd5e5a (patch)
tree8ba360a657b3dee76a5e5126930037b5bc9e368f /source/blender/compositor/operations/COM_GlareSimpleStarOperation.cpp
parent342fb0a19ef267de288086f3d0bb3c330a76d855 (diff)
style cleanup
Diffstat (limited to 'source/blender/compositor/operations/COM_GlareSimpleStarOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_GlareSimpleStarOperation.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/source/blender/compositor/operations/COM_GlareSimpleStarOperation.cpp b/source/blender/compositor/operations/COM_GlareSimpleStarOperation.cpp
index 4a393a33073..957ac5af748 100644
--- a/source/blender/compositor/operations/COM_GlareSimpleStarOperation.cpp
+++ b/source/blender/compositor/operations/COM_GlareSimpleStarOperation.cpp
@@ -15,8 +15,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * Contributor:
- * Jeroen Bakker
+ * Contributor:
+ * Jeroen Bakker
* Monique Dewanchand
*/
@@ -25,21 +25,21 @@
void GlareSimpleStarOperation::generateGlare(float *data, MemoryBuffer *inputTile, NodeGlare *settings)
{
int i, x, y, ym, yp, xm, xp;
- float c[4] = {0,0,0,0}, tc[4] = {0,0,0,0};
- const float f1 = 1.f - settings->fade, f2 = (1.f - f1)*0.5f;
-
+ float c[4] = {0, 0, 0, 0}, tc[4] = {0, 0, 0, 0};
+ const float f1 = 1.0f - settings->fade;
+ const float f2 = (1.0f - f1) * 0.5f;
MemoryBuffer *tbuf1 = inputTile->duplicate();
MemoryBuffer *tbuf2 = inputTile->duplicate();
bool breaked = false;
- for (i=0; i<settings->iter && (!breaked); i++) {
+ for (i = 0; i < settings->iter && (!breaked); i++) {
// // (x || x-1, y-1) to (x || x+1, y+1)
// // F
- for (y=0; y<this->getHeight() && (!breaked); y++) {
+ for (y = 0; y < this->getHeight() && (!breaked); y++) {
ym = y - i;
yp = y + i;
- for (x=0; x<this->getWidth(); x++) {
+ for (x = 0; x < this->getWidth(); x++) {
xm = x - i;
xp = x + i;
tbuf1->read(c, x, y);
@@ -65,10 +65,10 @@ void GlareSimpleStarOperation::generateGlare(float *data, MemoryBuffer *inputTil
}
}
// // B
- for (y=tbuf1->getHeight()-1 && (!breaked); y>=0; y--) {
+ for (y = tbuf1->getHeight() - 1 && (!breaked); y >= 0; y--) {
ym = y - i;
yp = y + i;
- for (x=tbuf1->getWidth()-1; x>=0; x--) {
+ for (x = tbuf1->getWidth() - 1; x >= 0; x--) {
xm = x - i;
xp = x + i;
tbuf1->read(c, x, y);
@@ -95,7 +95,7 @@ void GlareSimpleStarOperation::generateGlare(float *data, MemoryBuffer *inputTil
}
}
- for (i = 0 ; i < this->getWidth()*this->getHeight()*4 ; i++) {
+ for (i = 0; i < this->getWidth() * this->getHeight() * 4; i++) {
data[i] = tbuf1->getBuffer()[i] + tbuf2->getBuffer()[i];
}