Blender V2.61 - r43446
|
#include "node_composite_util.h"
Go to the source code of this file.
Functions | |
static void | node_composit_exec_crop (void *UNUSED(data), bNode *node, bNodeStack **in, bNodeStack **out) |
static void | node_composit_init_crop (bNodeTree *UNUSED(ntree), bNode *node, bNodeTemplate *UNUSED(ntemp)) |
void | register_node_type_cmp_crop (bNodeTreeType *ttype) |
Variables | |
static bNodeSocketTemplate | cmp_node_crop_in [] |
static bNodeSocketTemplate | cmp_node_crop_out [] |
Definition in file node_composite_crop.c.
static void node_composit_exec_crop | ( | void * | UNUSEDdata, |
bNode * | node, | ||
bNodeStack ** | in, | ||
bNodeStack ** | out | ||
) | [static] |
Definition at line 46 of file node_composite_crop.c.
References alloc_compbuf(), bNode::custom1, bNode::custom2, bNodeStack::data, data, NodeTwoXYs::fac_x1, NodeTwoXYs::fac_x2, NodeTwoXYs::fac_y1, NodeTwoXYs::fac_y2, get_cropped_compbuf(), MAX2, MIN2, CompBuf::rect, bNode::storage, bNodeTree::type, CompBuf::type, CompBuf::x, NodeTwoXYs::x1, NodeTwoXYs::x2, rcti::xmax, rcti::xmin, CompBuf::y, NodeTwoXYs::y1, NodeTwoXYs::y2, rcti::ymax, and rcti::ymin.
Referenced by register_node_type_cmp_crop().
static void node_composit_init_crop | ( | bNodeTree * | UNUSEDntree, |
bNode * | node, | ||
bNodeTemplate * | UNUSEDntemp | ||
) | [static] |
Definition at line 104 of file node_composite_crop.c.
References MEM_callocN(), bNode::storage, NodeTwoXYs::x1, NodeTwoXYs::x2, NodeTwoXYs::y1, and NodeTwoXYs::y2.
Referenced by register_node_type_cmp_crop().
void register_node_type_cmp_crop | ( | bNodeTreeType * | ttype | ) |
Definition at line 114 of file node_composite_crop.c.
References CMP_NODE_CROP, NODE_CLASS_DISTORT, node_composit_exec_crop(), node_composit_init_crop(), node_copy_standard_storage(), node_free_standard_storage(), NODE_OPTIONS, node_type_base(), node_type_exec(), node_type_init(), node_type_size(), node_type_socket_templates(), node_type_storage(), and nodeRegisterType().
Referenced by registerCompositNodes().
bNodeSocketTemplate cmp_node_crop_in[] [static] |
{ { SOCK_RGBA, 1, "Image", 1.0f, 1.0f, 1.0f, 1.0f}, { -1, 0, "" } }
Definition at line 37 of file node_composite_crop.c.
bNodeSocketTemplate cmp_node_crop_out[] [static] |
{ { SOCK_RGBA, 0, "Image"}, { -1, 0, "" } }
Definition at line 41 of file node_composite_crop.c.