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_ColorRampOperation.cpp | |
parent | 69b95e1a8a00c9ff146d803b8ec11183d7a68908 (diff) |
style cleanup: compositor, pointer syntax, function brace placement, line length
Diffstat (limited to 'source/blender/compositor/operations/COM_ColorRampOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_ColorRampOperation.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_ColorRampOperation.cpp b/source/blender/compositor/operations/COM_ColorRampOperation.cpp index a7cfb30b439..992bf3b9d1d 100644 --- a/source/blender/compositor/operations/COM_ColorRampOperation.cpp +++ b/source/blender/compositor/operations/COM_ColorRampOperation.cpp @@ -30,24 +30,28 @@ extern "C" { } #endif -ColorRampOperation::ColorRampOperation(): NodeOperation() { +ColorRampOperation::ColorRampOperation(): NodeOperation() +{ this->addInputSocket(COM_DT_VALUE); this->addOutputSocket(COM_DT_COLOR); this->inputProgram = NULL; this->colorBand = NULL; } -void ColorRampOperation::initExecution() { +void ColorRampOperation::initExecution() +{ this->inputProgram = this->getInputSocketReader(0); } -void ColorRampOperation::executePixel(float* color, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) { +void ColorRampOperation::executePixel(float *color, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) +{ float values[4]; this->inputProgram->read(values, x, y, sampler, inputBuffers); do_colorband(this->colorBand, values[0], color); } -void ColorRampOperation::deinitExecution() { +void ColorRampOperation::deinitExecution() +{ this->inputProgram = NULL; } |