style cleanup
authorCampbell Barton <ideasman42@gmail.com>
Wed, 24 Oct 2012 09:07:54 +0000 (09:07 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 24 Oct 2012 09:07:54 +0000 (09:07 +0000)
source/blender/compositor/nodes/COM_PixelateNode.cpp
source/blender/compositor/operations/COM_PixelateOperation.h
source/blender/nodes/composite/nodes/node_composite_pixelate.c

index 12494b6a2c3a7b7d2619d350e326ef33ad77c3fb..6accc0d5ead04b7a7a5503dc62843ed5f5af4de9 100644 (file)
 
 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);
 }
index 8da65bdcc7092a2b610fa9fffe3006f4e165d066..c3e6975bbb823f2872235c16b2f1644eba44fea7 100644 (file)
 
 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
index 6933f6f2fdab04561eab06f9485d1f1ed3b2a0f4..5eac4867a232cb93c2a34a1e381c67df3de2f548 100644 (file)
 /* **************** 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);
 }