From 7862b2fa13c0437d9c17eae78e7b79a421dacf05 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 17 May 2012 22:55:28 +0000 Subject: style cleanup: compositor, pointer syntax, function brace placement, line length --- .../compositor/operations/COM_LensGlowImageOperation.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'source/blender/compositor/operations/COM_LensGlowImageOperation.cpp') diff --git a/source/blender/compositor/operations/COM_LensGlowImageOperation.cpp b/source/blender/compositor/operations/COM_LensGlowImageOperation.cpp index 935844a84f1..ee0a02e5fae 100644 --- a/source/blender/compositor/operations/COM_LensGlowImageOperation.cpp +++ b/source/blender/compositor/operations/COM_LensGlowImageOperation.cpp @@ -23,13 +23,16 @@ #include "COM_LensGlowImageOperation.h" #include "BLI_math.h" -LensGlowImageOperation::LensGlowImageOperation(): NodeOperation() { +LensGlowImageOperation::LensGlowImageOperation(): NodeOperation() +{ this->addOutputSocket(COM_DT_COLOR); } -void LensGlowImageOperation::initExecution() { +void LensGlowImageOperation::initExecution() +{ this->scale = 1/20000.0f; } -void LensGlowImageOperation::executePixel(float* color, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) { +void LensGlowImageOperation::executePixel(float *color, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) +{ const float cs_r = 1.f, cs_g = 1.f, cs_b = 1.f; const float v = 2.f*(y / (float)512.0f) - 1.f; const float u = 2.f*(x / (float)512.0f) - 1.f; @@ -42,10 +45,12 @@ void LensGlowImageOperation::executePixel(float* color, float x, float y, PixelS color[3] = 1.0f; } -void LensGlowImageOperation::deinitExecution() { +void LensGlowImageOperation::deinitExecution() +{ } -void LensGlowImageOperation::determineResolution(unsigned int resolution[], unsigned int preferredResolution[]) { +void LensGlowImageOperation::determineResolution(unsigned int resolution[], unsigned int preferredResolution[]) +{ resolution[0] = 512; resolution[1] = 512; } -- cgit v1.2.3