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_SplitViewerOperation.cpp | |
parent | 69b95e1a8a00c9ff146d803b8ec11183d7a68908 (diff) |
style cleanup: compositor, pointer syntax, function brace placement, line length
Diffstat (limited to 'source/blender/compositor/operations/COM_SplitViewerOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_SplitViewerOperation.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/source/blender/compositor/operations/COM_SplitViewerOperation.cpp b/source/blender/compositor/operations/COM_SplitViewerOperation.cpp index f2d5e491001..4601bebb49f 100644 --- a/source/blender/compositor/operations/COM_SplitViewerOperation.cpp +++ b/source/blender/compositor/operations/COM_SplitViewerOperation.cpp @@ -36,30 +36,34 @@ extern "C" { } -SplitViewerOperation::SplitViewerOperation() : ViewerBaseOperation() { +SplitViewerOperation::SplitViewerOperation() : ViewerBaseOperation() +{ this->addInputSocket(COM_DT_COLOR); this->addInputSocket(COM_DT_COLOR); this->image1Input = NULL; this->image2Input = NULL; } -void SplitViewerOperation::initExecution() { +void SplitViewerOperation::initExecution() +{ // When initializing the tree during initial load the width and height can be zero. this->image1Input = getInputSocketReader(0); this->image2Input = getInputSocketReader(1); ViewerBaseOperation::initExecution(); } -void SplitViewerOperation::deinitExecution() { +void SplitViewerOperation::deinitExecution() +{ this->image1Input = NULL; this->image2Input = NULL; ViewerBaseOperation::deinitExecution(); } -void SplitViewerOperation::executeRegion(rcti *rect, unsigned int tileNumber, MemoryBuffer** memoryBuffers) { - float* buffer = this->outputBuffer; - unsigned char* bufferDisplay = this->outputBufferDisplay; +void SplitViewerOperation::executeRegion(rcti *rect, unsigned int tileNumber, MemoryBuffer** memoryBuffers) +{ + float *buffer = this->outputBuffer; + unsigned char *bufferDisplay = this->outputBufferDisplay; if (!buffer) return; int x1 = rect->xmin; |