Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/compositor/operations/COM_ViewerOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_ViewerOperation.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/source/blender/compositor/operations/COM_ViewerOperation.cpp b/source/blender/compositor/operations/COM_ViewerOperation.cpp
index 8fa63329e1f..22e6511fbe7 100644
--- a/source/blender/compositor/operations/COM_ViewerOperation.cpp
+++ b/source/blender/compositor/operations/COM_ViewerOperation.cpp
@@ -39,7 +39,8 @@ extern "C" {
}
-ViewerOperation::ViewerOperation() : ViewerBaseOperation() {
+ViewerOperation::ViewerOperation() : ViewerBaseOperation()
+{
this->addInputSocket(COM_DT_COLOR);
this->addInputSocket(COM_DT_VALUE);
@@ -47,23 +48,26 @@ ViewerOperation::ViewerOperation() : ViewerBaseOperation() {
this->alphaInput = NULL;
}
-void ViewerOperation::initExecution() {
+void ViewerOperation::initExecution()
+{
// When initializing the tree during initial load the width and height can be zero.
this->imageInput = getInputSocketReader(0);
this->alphaInput = getInputSocketReader(1);
ViewerBaseOperation::initExecution();
}
-void ViewerOperation::deinitExecution() {
+void ViewerOperation::deinitExecution()
+{
this->imageInput = NULL;
this->alphaInput = NULL;
ViewerBaseOperation::deinitExecution();
}
-void ViewerOperation::executeRegion(rcti *rect, unsigned int tileNumber, MemoryBuffer** memoryBuffers) {
- float* buffer = this->outputBuffer;
- unsigned char* bufferDisplay = this->outputBufferDisplay;
+void ViewerOperation::executeRegion(rcti *rect, unsigned int tileNumber, MemoryBuffer** memoryBuffers)
+{
+ float *buffer = this->outputBuffer;
+ unsigned char *bufferDisplay = this->outputBufferDisplay;
if (!buffer) return;
const int x1 = rect->xmin;
const int y1 = rect->ymin;