|
Blender
V2.59
|
#include "../CMP_util.h"Go to the source code of this file.
Functions | |
| static void | do_rgba_to_ycca_normalized (bNode *UNUSED(node), float *out, float *in) |
| static void | do_ycca_to_rgba_normalized (bNode *UNUSED(node), float *out, float *in) |
| static void | do_chroma_key (bNode *node, float *out, float *in) |
| static void | node_composit_exec_chroma_matte (void *data, bNode *node, bNodeStack **in, bNodeStack **out) |
| static void | node_composit_init_chroma_matte (bNode *node) |
| void | register_node_type_cmp_chroma_matte (ListBase *lb) |
Variables | |
| static bNodeSocketType | cmp_node_chroma_in [] |
| static bNodeSocketType | cmp_node_chroma_out [] |
Definition in file CMP_chromaMatte.c.
| static void do_chroma_key | ( | bNode * | node, |
| float * | out, | ||
| float * | in | ||
| ) | [static] |
Definition at line 88 of file CMP_chromaMatte.c.
References angle(), KDL::atan2(), cos(), fabs(), NodeChroma::fstrength, NodeChroma::key, M_PI, sin(), bNode::storage, NodeChroma::t1, NodeChroma::t2, and KDL::tan().
Referenced by node_composit_exec_chroma_matte().
| static void do_rgba_to_ycca_normalized | ( | bNode * | UNUSEDnode, |
| float * | out, | ||
| float * | in | ||
| ) | [static] |
Definition at line 50 of file CMP_chromaMatte.c.
References BLI_YCC_ITU_BT601, and rgb_to_ycc().
Referenced by node_composit_exec_chroma_matte().
| static void do_ycca_to_rgba_normalized | ( | bNode * | UNUSEDnode, |
| float * | out, | ||
| float * | in | ||
| ) | [static] |
Definition at line 70 of file CMP_chromaMatte.c.
References BLI_YCC_ITU_BT601, and ycc_to_rgb().
Referenced by node_composit_exec_chroma_matte().
| static void node_composit_exec_chroma_matte | ( | void * | data, |
| bNode * | node, | ||
| bNodeStack ** | in, | ||
| bNodeStack ** | out | ||
| ) | [static] |
Definition at line 143 of file CMP_chromaMatte.c.
References CB_RGBA, CHAN_A, composit1_pixel_processor(), bNodeStack::data, do_chroma_key(), do_rgba_to_ycca_normalized(), do_ycca_to_rgba_normalized(), dupalloc_compbuf(), free_compbuf(), generate_preview(), NodeChroma::key, NULL, bNode::storage, typecheck_compbuf(), valbuf_from_rgbabuf(), and bNodeStack::vec.
Referenced by register_node_type_cmp_chroma_matte().
| static void node_composit_init_chroma_matte | ( | bNode * | node | ) | [static] |
Definition at line 181 of file CMP_chromaMatte.c.
References NodeChroma::fsize, NodeChroma::fstrength, MEM_callocN(), bNode::storage, NodeChroma::t1, NodeChroma::t2, and NodeChroma::t3.
Referenced by register_node_type_cmp_chroma_matte().
| void register_node_type_cmp_chroma_matte | ( | ListBase * | lb | ) |
Definition at line 192 of file CMP_chromaMatte.c.
References CMP_NODE_CHROMA_MATTE, NODE_CLASS_MATTE, node_composit_exec_chroma_matte(), node_composit_init_chroma_matte(), node_copy_standard_storage(), node_free_standard_storage(), NODE_OPTIONS, NODE_PREVIEW, node_type_base(), node_type_exec(), node_type_init(), node_type_size(), node_type_storage(), and nodeRegisterType().
Referenced by registerCompositNodes().
bNodeSocketType cmp_node_chroma_in[] [static] |
{
{SOCK_RGBA,1,"Image", 0.8f, 0.8f, 0.8f, 1.0f, 0.0f, 1.0f},
{SOCK_RGBA,1,"Key Color", 0.8f, 0.8f, 0.8f, 1.0f, 0.0f, 1.0f},
{-1,0,""}
}
Definition at line 38 of file CMP_chromaMatte.c.
bNodeSocketType cmp_node_chroma_out[] [static] |
{
{SOCK_RGBA,0,"Image", 0.8f, 0.8f, 0.8f, 1.0f, 0.0f, 1.0f},
{SOCK_VALUE,0,"Matte",0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
{-1,0,""}
}
Definition at line 44 of file CMP_chromaMatte.c.