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_ChannelMatteOperation.cpp | |
parent | 69b95e1a8a00c9ff146d803b8ec11183d7a68908 (diff) |
style cleanup: compositor, pointer syntax, function brace placement, line length
Diffstat (limited to 'source/blender/compositor/operations/COM_ChannelMatteOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_ChannelMatteOperation.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/source/blender/compositor/operations/COM_ChannelMatteOperation.cpp b/source/blender/compositor/operations/COM_ChannelMatteOperation.cpp index 10ff140f8be..70bfc8f8cfa 100644 --- a/source/blender/compositor/operations/COM_ChannelMatteOperation.cpp +++ b/source/blender/compositor/operations/COM_ChannelMatteOperation.cpp @@ -22,14 +22,16 @@ #include "COM_ChannelMatteOperation.h" #include "BLI_math.h" -ChannelMatteOperation::ChannelMatteOperation(): NodeOperation() { +ChannelMatteOperation::ChannelMatteOperation(): NodeOperation() +{ addInputSocket(COM_DT_COLOR); addOutputSocket(COM_DT_VALUE); inputImageProgram = NULL; } -void ChannelMatteOperation::initExecution() { +void ChannelMatteOperation::initExecution() +{ this->inputImageProgram = this->getInputSocketReader(0); this->limit_range = this->limit_max - this->limit_min; @@ -76,11 +78,13 @@ void ChannelMatteOperation::initExecution() { } } -void ChannelMatteOperation::deinitExecution() { - this->inputImageProgram= NULL; +void ChannelMatteOperation::deinitExecution() +{ + this->inputImageProgram = NULL; } -void ChannelMatteOperation::executePixel(float* outputValue, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) { +void ChannelMatteOperation::executePixel(float *outputValue, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) +{ float inColor[4]; float alpha; |