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_BoxMaskOperation.cpp | |
parent | 69b95e1a8a00c9ff146d803b8ec11183d7a68908 (diff) |
style cleanup: compositor, pointer syntax, function brace placement, line length
Diffstat (limited to 'source/blender/compositor/operations/COM_BoxMaskOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_BoxMaskOperation.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_BoxMaskOperation.cpp b/source/blender/compositor/operations/COM_BoxMaskOperation.cpp index 5b769fef3ef..0244be4cad3 100644 --- a/source/blender/compositor/operations/COM_BoxMaskOperation.cpp +++ b/source/blender/compositor/operations/COM_BoxMaskOperation.cpp @@ -24,7 +24,8 @@ #include "BLI_math.h" #include "DNA_node_types.h" -BoxMaskOperation::BoxMaskOperation(): NodeOperation() { +BoxMaskOperation::BoxMaskOperation(): NodeOperation() +{ this->addInputSocket(COM_DT_VALUE); this->addInputSocket(COM_DT_VALUE); this->addOutputSocket(COM_DT_VALUE); @@ -33,7 +34,8 @@ BoxMaskOperation::BoxMaskOperation(): NodeOperation() { this->cosine = 0.0f; this->sine = 0.0f; } -void BoxMaskOperation::initExecution() { +void BoxMaskOperation::initExecution() +{ this->inputMask = this->getInputSocketReader(0); this->inputValue = this->getInputSocketReader(1); const double rad = DEG2RAD(this->data->rotation); @@ -42,7 +44,8 @@ void BoxMaskOperation::initExecution() { this->aspectRatio = ((float)this->getWidth())/this->getHeight(); } -void BoxMaskOperation::executePixel(float* color, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) { +void BoxMaskOperation::executePixel(float *color, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) +{ float inputMask[4]; float inputValue[4]; @@ -108,7 +111,8 @@ void BoxMaskOperation::executePixel(float* color, float x, float y, PixelSampler } -void BoxMaskOperation::deinitExecution() { +void BoxMaskOperation::deinitExecution() +{ this->inputMask = NULL; this->inputValue = NULL; } |