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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-05-29 18:55:01 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-05-29 18:55:01 +0400
commitec4f6750557218be262cacea53ef4cb0ccaa0671 (patch)
tree433e584317dd7ad4abd04c62ca122d2244349112 /source/blender/compositor
parentb63a2be5c16d9c0c728cf4e07dc565267b9d2a47 (diff)
Fixed stupid typo: dispill vs. despill
Diffstat (limited to 'source/blender/compositor')
-rw-r--r--source/blender/compositor/CMakeLists.txt4
-rw-r--r--source/blender/compositor/nodes/COM_KeyingNode.cpp22
-rw-r--r--source/blender/compositor/nodes/COM_KeyingNode.h2
-rw-r--r--source/blender/compositor/operations/COM_KeyingDespillOperation.cpp (renamed from source/blender/compositor/operations/COM_KeyingDispillOperation.cpp)16
-rw-r--r--source/blender/compositor/operations/COM_KeyingDespillOperation.h (renamed from source/blender/compositor/operations/COM_KeyingDispillOperation.h)14
5 files changed, 29 insertions, 29 deletions
diff --git a/source/blender/compositor/CMakeLists.txt b/source/blender/compositor/CMakeLists.txt
index d4e083f9ec1..3e29583756f 100644
--- a/source/blender/compositor/CMakeLists.txt
+++ b/source/blender/compositor/CMakeLists.txt
@@ -340,8 +340,8 @@ set(SRC
operations/COM_KeyingOperation.h
operations/COM_KeyingScreenOperation.cpp
operations/COM_KeyingScreenOperation.h
- operations/COM_KeyingDispillOperation.cpp
- operations/COM_KeyingDispillOperation.h
+ operations/COM_KeyingDespillOperation.cpp
+ operations/COM_KeyingDespillOperation.h
operations/COM_ColorSpillOperation.cpp
operations/COM_ColorSpillOperation.h
diff --git a/source/blender/compositor/nodes/COM_KeyingNode.cpp b/source/blender/compositor/nodes/COM_KeyingNode.cpp
index 725060371a1..9e29a99293e 100644
--- a/source/blender/compositor/nodes/COM_KeyingNode.cpp
+++ b/source/blender/compositor/nodes/COM_KeyingNode.cpp
@@ -26,7 +26,7 @@
#include "COM_ExecutionSystem.h"
#include "COM_KeyingOperation.h"
-#include "COM_KeyingDispillOperation.h"
+#include "COM_KeyingDespillOperation.h"
#include "COM_SeparateChannelOperation.h"
#include "COM_CombineChannelsOperation.h"
@@ -135,18 +135,18 @@ OutputSocket *KeyingNode::setupDilateErode(ExecutionSystem *graph, OutputSocket
return dilateErodeOperation->getOutputSocket(0);
}
-OutputSocket *KeyingNode::setupDispill(ExecutionSystem *graph, OutputSocket *dispillInput, InputSocket *inputScreen, float factor)
+OutputSocket *KeyingNode::setupDespill(ExecutionSystem *graph, OutputSocket *despillInput, InputSocket *inputScreen, float factor)
{
- KeyingDispillOperation *dispillOperation = new KeyingDispillOperation();
+ KeyingDespillOperation *despillOperation = new KeyingDespillOperation();
- dispillOperation->setDispillFactor(factor);
+ despillOperation->setDespillFactor(factor);
- addLink(graph, dispillInput, dispillOperation->getInputSocket(0));
- inputScreen->relinkConnections(dispillOperation->getInputSocket(1), 1, graph);
+ addLink(graph, despillInput, despillOperation->getInputSocket(0));
+ inputScreen->relinkConnections(despillOperation->getInputSocket(1), 1, graph);
- graph->addOperation(dispillOperation);
+ graph->addOperation(despillOperation);
- return dispillOperation->getOutputSocket(0);
+ return despillOperation->getOutputSocket(0);
}
void KeyingNode::convertToOperations(ExecutionSystem *graph, CompositorContext *context)
@@ -198,9 +198,9 @@ void KeyingNode::convertToOperations(ExecutionSystem *graph, CompositorContext *
postprocessedImage = alphaOperation->getOutputSocket();
- /* dispill output image */
- if (keying_data->dispill_factor > 0.0f) {
- postprocessedImage = setupDispill(graph, postprocessedImage, inputScreen, keying_data->dispill_factor);
+ /* despill output image */
+ if (keying_data->despill_factor > 0.0f) {
+ postprocessedImage = setupDespill(graph, postprocessedImage, inputScreen, keying_data->despill_factor);
}
/* connect result to output sockets */
diff --git a/source/blender/compositor/nodes/COM_KeyingNode.h b/source/blender/compositor/nodes/COM_KeyingNode.h
index 8c1ee8fdf72..894d0ddc095 100644
--- a/source/blender/compositor/nodes/COM_KeyingNode.h
+++ b/source/blender/compositor/nodes/COM_KeyingNode.h
@@ -36,7 +36,7 @@ protected:
OutputSocket *setupPreBlur(ExecutionSystem *graph, InputSocket *inputImage, int size, OutputSocket **originalImage);
OutputSocket *setupPostBlur(ExecutionSystem *graph, OutputSocket *postBLurInput, int size);
OutputSocket *setupDilateErode(ExecutionSystem *graph, OutputSocket *dilateErodeInput, int distance);
- OutputSocket *setupDispill(ExecutionSystem *graph, OutputSocket *dispillInput, InputSocket *inputSrceen, float factor);
+ OutputSocket *setupDespill(ExecutionSystem *graph, OutputSocket *despillInput, InputSocket *inputSrceen, float factor);
public:
KeyingNode(bNode *editorNode);
void convertToOperations(ExecutionSystem *graph, CompositorContext *context);
diff --git a/source/blender/compositor/operations/COM_KeyingDispillOperation.cpp b/source/blender/compositor/operations/COM_KeyingDespillOperation.cpp
index 5f4eaf3148d..b7fd2772729 100644
--- a/source/blender/compositor/operations/COM_KeyingDispillOperation.cpp
+++ b/source/blender/compositor/operations/COM_KeyingDespillOperation.cpp
@@ -21,7 +21,7 @@
* Sergey Sharybin
*/
-#include "COM_KeyingDispillOperation.h"
+#include "COM_KeyingDespillOperation.h"
#include "MEM_guardedalloc.h"
@@ -40,31 +40,31 @@ static int get_pixel_primary_channel(float *pixel)
return 2;
}
-KeyingDispillOperation::KeyingDispillOperation(): NodeOperation()
+KeyingDespillOperation::KeyingDespillOperation(): NodeOperation()
{
this->addInputSocket(COM_DT_COLOR);
this->addInputSocket(COM_DT_COLOR);
this->addOutputSocket(COM_DT_COLOR);
- this->dispillFactor = 0.5f;
+ this->despillFactor = 0.5f;
this->pixelReader = NULL;
this->screenReader = NULL;
}
-void KeyingDispillOperation::initExecution()
+void KeyingDespillOperation::initExecution()
{
this->pixelReader = this->getInputSocketReader(0);
this->screenReader = this->getInputSocketReader(1);
}
-void KeyingDispillOperation::deinitExecution()
+void KeyingDespillOperation::deinitExecution()
{
this->pixelReader = NULL;
this->screenReader = NULL;
}
-void KeyingDispillOperation::executePixel(float *color, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[])
+void KeyingDespillOperation::executePixel(float *color, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[])
{
float pixelColor[4];
float screenColor[4];
@@ -83,7 +83,7 @@ void KeyingDispillOperation::executePixel(float *color, float x, float y, PixelS
color[2] = pixelColor[2];
color[3] = pixelColor[3];
- if (this->dispillFactor * amount > 0) {
- color[screen_primary_channel] = pixelColor[screen_primary_channel] - this->dispillFactor * amount;
+ if (this->despillFactor * amount > 0) {
+ color[screen_primary_channel] = pixelColor[screen_primary_channel] - this->despillFactor * amount;
}
}
diff --git a/source/blender/compositor/operations/COM_KeyingDispillOperation.h b/source/blender/compositor/operations/COM_KeyingDespillOperation.h
index a918a918381..92a1415a1f0 100644
--- a/source/blender/compositor/operations/COM_KeyingDispillOperation.h
+++ b/source/blender/compositor/operations/COM_KeyingDespillOperation.h
@@ -21,27 +21,27 @@
* Sergey Sharybin
*/
-#ifndef _COM_KeyingDispillOperation_h
-#define _COM_KeyingDispillOperation_h
+#ifndef _COM_KeyingDespillOperation_h
+#define _COM_KeyingDespillOperation_h
#include "COM_NodeOperation.h"
/**
- * Class with implementation of keying dispill node
+ * Class with implementation of keying despill node
*/
-class KeyingDispillOperation : public NodeOperation {
+class KeyingDespillOperation : public NodeOperation {
protected:
SocketReader *pixelReader;
SocketReader *screenReader;
- float dispillFactor;
+ float despillFactor;
public:
- KeyingDispillOperation();
+ KeyingDespillOperation();
void initExecution();
void deinitExecution();
- void setDispillFactor(float value) {this->dispillFactor = value;}
+ void setDespillFactor(float value) {this->despillFactor = value;}
void executePixel(float *color, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]);
};