diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-18 02:55:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-18 02:55:28 +0400 |
commit | 7862b2fa13c0437d9c17eae78e7b79a421dacf05 (patch) | |
tree | 08f9c26af3e71795d0f65803a415b5612d6b53ab /source/blender/compositor/operations/COM_LensGlowImageOperation.cpp | |
parent | 69b95e1a8a00c9ff146d803b8ec11183d7a68908 (diff) |
style cleanup: compositor, pointer syntax, function brace placement, line length
Diffstat (limited to 'source/blender/compositor/operations/COM_LensGlowImageOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_LensGlowImageOperation.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
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; } |