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_TranslateOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_TranslateOperation.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/compositor/operations/COM_TranslateOperation.cpp b/source/blender/compositor/operations/COM_TranslateOperation.cpp
index 48774833e14..6d2fdfc11d0 100644
--- a/source/blender/compositor/operations/COM_TranslateOperation.cpp
+++ b/source/blender/compositor/operations/COM_TranslateOperation.cpp
@@ -22,7 +22,8 @@
#include "COM_TranslateOperation.h"
-TranslateOperation::TranslateOperation() : NodeOperation() {
+TranslateOperation::TranslateOperation() : NodeOperation()
+{
this->addInputSocket(COM_DT_COLOR);
this->addInputSocket(COM_DT_VALUE);
this->addInputSocket(COM_DT_VALUE);
@@ -32,7 +33,8 @@ TranslateOperation::TranslateOperation() : NodeOperation() {
this->inputXOperation = NULL;
this->inputYOperation = NULL;
}
-void TranslateOperation::initExecution() {
+void TranslateOperation::initExecution()
+{
this->inputOperation = this->getInputSocketReader(0);
this->inputXOperation = this->getInputSocketReader(1);
this->inputYOperation = this->getInputSocketReader(2);
@@ -44,18 +46,21 @@ void TranslateOperation::initExecution() {
this->deltaY = tempDelta[0];
}
-void TranslateOperation::deinitExecution() {
+void TranslateOperation::deinitExecution()
+{
this->inputOperation = NULL;
this->inputXOperation = NULL;
this->inputYOperation = NULL;
}
-void TranslateOperation::executePixel(float *color,float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) {
+void TranslateOperation::executePixel(float *color,float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[])
+{
this->inputOperation->read(color, x-this->getDeltaX(), y-this->getDeltaY(), sampler, inputBuffers);
}
-bool TranslateOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output) {
+bool TranslateOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output)
+{
rcti newInput;
newInput.xmax = input->xmax - this->getDeltaX();