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:
-rw-r--r--source/blender/compositor/nodes/COM_PixelateNode.cpp16
-rw-r--r--source/blender/compositor/operations/COM_PixelateOperation.h10
-rw-r--r--source/blender/nodes/composite/nodes/node_composite_pixelate.c18
3 files changed, 22 insertions, 22 deletions
diff --git a/source/blender/compositor/nodes/COM_PixelateNode.cpp b/source/blender/compositor/nodes/COM_PixelateNode.cpp
index 12494b6a2c3..6accc0d5ead 100644
--- a/source/blender/compositor/nodes/COM_PixelateNode.cpp
+++ b/source/blender/compositor/nodes/COM_PixelateNode.cpp
@@ -27,16 +27,16 @@
PixelateNode::PixelateNode(bNode *editorNode) : Node(editorNode)
{
- /* pass */
+ /* pass */
}
void PixelateNode::convertToOperations(ExecutionSystem *graph, CompositorContext *context)
{
- InputSocket *inputSocket = this->getInputSocket(0);
- OutputSocket *outputSocket = this->getOutputSocket(0);
-
- PixelateOperation *operation = new PixelateOperation(inputSocket->getDataType());
- inputSocket->relinkConnections(operation->getInputSocket(0), 0, graph);
- outputSocket->relinkConnections(operation->getOutputSocket(0));
- graph->addOperation(operation);
+ InputSocket *inputSocket = this->getInputSocket(0);
+ OutputSocket *outputSocket = this->getOutputSocket(0);
+
+ PixelateOperation *operation = new PixelateOperation(inputSocket->getDataType());
+ inputSocket->relinkConnections(operation->getInputSocket(0), 0, graph);
+ outputSocket->relinkConnections(operation->getOutputSocket(0));
+ graph->addOperation(operation);
}
diff --git a/source/blender/compositor/operations/COM_PixelateOperation.h b/source/blender/compositor/operations/COM_PixelateOperation.h
index 8da65bdcc70..c3e6975bbb8 100644
--- a/source/blender/compositor/operations/COM_PixelateOperation.h
+++ b/source/blender/compositor/operations/COM_PixelateOperation.h
@@ -27,12 +27,12 @@
class PixelateOperation : public NodeOperation {
private:
- SocketReader *m_inputOperation;
+ SocketReader *m_inputOperation;
public:
- PixelateOperation(DataType dataType);
- void initExecution();
- void deinitExecution();
- void executePixel(float output[4], float x, float y, PixelSampler sampler);
+ PixelateOperation(DataType dataType);
+ void initExecution();
+ void deinitExecution();
+ void executePixel(float output[4], float x, float y, PixelSampler sampler);
};
#endif
diff --git a/source/blender/nodes/composite/nodes/node_composite_pixelate.c b/source/blender/nodes/composite/nodes/node_composite_pixelate.c
index 6933f6f2fda..5eac4867a23 100644
--- a/source/blender/nodes/composite/nodes/node_composite_pixelate.c
+++ b/source/blender/nodes/composite/nodes/node_composite_pixelate.c
@@ -37,21 +37,21 @@
/* **************** Pixelate ******************** */
static bNodeSocketTemplate cmp_node_pixelate_in[] = {
- { SOCK_RGBA, 1, N_("Color"), 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, PROP_FACTOR},
- { -1, 0, "" }
+ { SOCK_RGBA, 1, N_("Color"), 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, PROP_FACTOR},
+ { -1, 0, "" }
};
static bNodeSocketTemplate cmp_node_pixelate_out[] = {
- { SOCK_RGBA, 0, N_("Color")},
- { -1, 0, "" }
+ { SOCK_RGBA, 0, N_("Color")},
+ { -1, 0, "" }
};
void register_node_type_cmp_pixelate(bNodeTreeType *ttype)
{
- static bNodeType ntype;
+ static bNodeType ntype;
- node_type_base(ttype, &ntype, CMP_NODE_PIXELATE, "Pixelate", NODE_CLASS_OP_FILTER, NODE_OPTIONS);
- node_type_socket_templates(&ntype, cmp_node_pixelate_in, cmp_node_pixelate_out);
- node_type_size(&ntype, 130, 100, 130);
+ node_type_base(ttype, &ntype, CMP_NODE_PIXELATE, "Pixelate", NODE_CLASS_OP_FILTER, NODE_OPTIONS);
+ node_type_socket_templates(&ntype, cmp_node_pixelate_in, cmp_node_pixelate_out);
+ node_type_size(&ntype, 130, 100, 130);
- nodeRegisterType(ttype, &ntype);
+ nodeRegisterType(ttype, &ntype);
}