Blender  V3.3
COM_Converter.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2011 Blender Foundation. */
3 
4 #pragma once
5 
6 #ifdef WITH_CXX_GUARDEDALLOC
7 # include "MEM_guardedalloc.h"
8 #endif
9 
10 struct bNode;
11 
12 namespace blender::compositor {
13 
14 class Node;
15 class NodeOperation;
16 class NodeOperationInput;
17 class NodeOperationOutput;
18 class NodeOperationBuilder;
19 
30 Node *COM_convert_bnode(bNode *b_node);
31 
37 bool COM_bnode_is_fast_node(const bNode &b_node);
38 
43 NodeOperation *COM_convert_data_type(const NodeOperationOutput &from,
44  const NodeOperationInput &to);
45 
52 void COM_convert_canvas(NodeOperationBuilder &builder,
53  NodeOperationOutput *from_socket,
54  NodeOperationInput *to_socket);
55 
56 } // namespace blender::compositor
Read Guarded memory(de)allocation.
StackEntry * from
NodeOperation * COM_convert_data_type(const NodeOperationOutput &from, const NodeOperationInput &to)
This function will add a date-type conversion rule when the to-socket does not support the from-socke...
void COM_convert_canvas(NodeOperationBuilder &builder, NodeOperationOutput *from_socket, NodeOperationInput *to_socket)
This function will add a resolution rule based on the settings of the NodeInput.
Node * COM_convert_bnode(bNode *b_node)
Wraps a bNode in its Node instance.
bool COM_bnode_is_fast_node(const bNode &b_node)
True if the node is considered 'fast'.