Blender V2.61 - r43446
|
#include "node_composite_util.h"
Go to the source code of this file.
Definition in file node_composite_image.c.
static CompBuf* compbuf_from_pass | ( | RenderData * | rd, |
RenderLayer * | rl, | ||
int | rectx, | ||
int | recty, | ||
int | passcode | ||
) | [static] |
Definition at line 343 of file node_composite_image.c.
References alloc_compbuf(), CB_RGBA, CB_VAL, CB_VEC3, CB_VEC4, RenderData::disprect, ELEM, ELEM4, get_cropped_compbuf(), NULL, R_COMP_CROP, RE_RenderLayerGetPass(), CompBuf::rect, SCE_PASS_COMBINED, SCE_PASS_INDEXMA, SCE_PASS_INDEXOB, SCE_PASS_MIST, SCE_PASS_RGBA, SCE_PASS_VECTOR, SCE_PASS_Z, and RenderData::scemode.
Referenced by node_composit_rlayers_out().
static CompBuf* compbuf_multilayer_get | ( | RenderData * | rd, |
RenderLayer * | rl, | ||
Image * | ima, | ||
ImageUser * | iuser, | ||
int | passtype | ||
) | [static] |
Definition at line 183 of file node_composite_image.c.
References BKE_image_multilayer_index(), ListBase::first, RenderPass::next, node_composit_get_image(), NULL, ImageUser::pass, RenderLayer::passes, RenderPass::passtype, and Image::rr.
Referenced by node_composit_exec_image(), and outputs_multilayer_get().
static void node_composit_exec_image | ( | void * | data, |
bNode * | node, | ||
bNodeStack ** | UNUSEDin, | ||
bNodeStack ** | out | ||
) | [static] |
Definition at line 244 of file node_composite_image.c.
References BKE_image_get_ibuf(), BKE_image_user_calc_frame(), BLI_findlink(), CB_RGBA, RenderData::cfra, CHAN_A, compbuf_multilayer_get(), bNodeStack::data, data, Image::flag, generate_preview(), i, bNode::id, IMA_DO_PREMUL, IMA_TYPE_MULTILAYER, RenderResult::layers, CompBuf::malloc, MEM_dupallocN(), node_composit_get_image(), node_composit_get_zimage(), NULL, outputs_multilayer_get(), CompBuf::rect, Image::rr, SCE_PASS_COMBINED, bNode::storage, CompBuf::type, Image::type, valbuf_from_rgbabuf(), CompBuf::x, and CompBuf::y.
Referenced by register_node_type_cmp_image().
static void node_composit_exec_rlayers | ( | void * | data, |
bNode * | node, | ||
bNodeStack ** | UNUSEDin, | ||
bNodeStack ** | out | ||
) | [static] |
Definition at line 407 of file node_composite_image.c.
References alloc_compbuf(), BLI_findlink(), CB_RGBA, CHAN_A, bNode::custom1, bNodeStack::data, data, RenderData::disprect, generate_preview(), get_cropped_compbuf(), Scene::id, bNode::id, RenderData::layers, SceneRenderLayer::name, ID::name, node_composit_rlayers_out(), NULL, Scene::r, R_COMP_CROP, RE_AcquireResultRead(), RE_GetRender(), RE_GetRenderLayer(), RE_ReleaseResult(), CompBuf::rect, RenderLayer::rectf, RenderResult::rectx, RenderResult::recty, RRES_OUT_ALPHA, RRES_OUT_IMAGE, RenderData::scemode, valbuf_from_rgbabuf(), RenderResult::xof, CompBuf::xof, RenderResult::yof, and CompBuf::yof.
Referenced by register_node_type_cmp_rlayers().
float* node_composit_get_float_buffer | ( | RenderData * | rd, |
ImBuf * | ibuf, | ||
int * | alloc | ||
) |
Definition at line 62 of file node_composite_image.c.
References RenderData::color_mgt_flag, FALSE, ImBuf::flags, IB_cm_predivide, IB_PROFILE_LINEAR_RGB, IB_PROFILE_NONE, IB_PROFILE_SRGB, IMB_buffer_float_from_float(), MEM_mapallocN(), ImBuf::profile, R_COLOR_MANAGEMENT, ImBuf::rect_float, TRUE, ImBuf::x, and ImBuf::y.
Referenced by node_composit_get_image(), and node_composit_get_movieclip().
static CompBuf* node_composit_get_image | ( | RenderData * | rd, |
Image * | ima, | ||
ImageUser * | iuser | ||
) | [static] |
Definition at line 103 of file node_composite_image.c.
References alloc_compbuf(), BKE_image_get_ibuf(), ImBuf::channels, RenderData::disprect, FALSE, get_cropped_compbuf(), IMB_float_from_rect(), CompBuf::malloc, MEM_freeN(), node_composit_get_float_buffer(), NULL, R_COMP_CROP, CompBuf::rect, ImBuf::rect, ImBuf::rect_float, Image::rr, RenderData::scemode, ImBuf::x, and ImBuf::y.
Referenced by compbuf_multilayer_get(), and node_composit_exec_image().
static CompBuf* node_composit_get_zimage | ( | bNode * | node, |
RenderData * | rd | ||
) | [static] |
Definition at line 165 of file node_composite_image.c.
References alloc_compbuf(), BKE_image_get_ibuf(), CB_VAL, RenderData::disprect, get_cropped_compbuf(), bNode::id, NULL, R_COMP_CROP, CompBuf::rect, RenderData::scemode, bNode::storage, ImBuf::x, ImBuf::y, and ImBuf::zbuf_float.
Referenced by node_composit_exec_image().
static void node_composit_init_image | ( | bNodeTree * | UNUSEDntree, |
bNode * | node, | ||
bNodeTemplate * | UNUSEDntemp | ||
) | [static] |
Definition at line 316 of file node_composite_image.c.
References ImageUser::fie_ima, ImageUser::frames, MEM_callocN(), ImageUser::ok, ImageUser::sfra, and bNode::storage.
Referenced by register_node_type_cmp_image().
static void node_composit_rlayers_out | ( | RenderData * | rd, |
RenderLayer * | rl, | ||
bNodeStack ** | out, | ||
int | rectx, | ||
int | recty | ||
) | [static] |
Definition at line 368 of file node_composite_image.c.
References compbuf_from_pass(), bNodeStack::data, RRES_OUT_AO, RRES_OUT_DIFF, RRES_OUT_EMIT, RRES_OUT_ENV, RRES_OUT_INDEXMA, RRES_OUT_INDEXOB, RRES_OUT_INDIRECT, RRES_OUT_MIST, RRES_OUT_NORMAL, RRES_OUT_REFLECT, RRES_OUT_REFRACT, RRES_OUT_RGBA, RRES_OUT_SHADOW, RRES_OUT_SPEC, RRES_OUT_UV, RRES_OUT_VEC, RRES_OUT_Z, SCE_PASS_AO, SCE_PASS_DIFFUSE, SCE_PASS_EMIT, SCE_PASS_ENVIRONMENT, SCE_PASS_INDEXMA, SCE_PASS_INDEXOB, SCE_PASS_INDIRECT, SCE_PASS_MIST, SCE_PASS_NORMAL, SCE_PASS_REFLECT, SCE_PASS_REFRACT, SCE_PASS_RGBA, SCE_PASS_SHADOW, SCE_PASS_SPEC, SCE_PASS_UV, SCE_PASS_VECTOR, and SCE_PASS_Z.
Referenced by node_composit_exec_rlayers().
static void outputs_multilayer_get | ( | RenderData * | rd, |
RenderLayer * | rl, | ||
bNodeStack ** | out, | ||
Image * | ima, | ||
ImageUser * | iuser | ||
) | [static] |
Definition at line 204 of file node_composite_image.c.
References compbuf_multilayer_get(), bNodeStack::data, RRES_OUT_AO, RRES_OUT_DIFF, RRES_OUT_EMIT, RRES_OUT_ENV, RRES_OUT_INDEXMA, RRES_OUT_INDEXOB, RRES_OUT_INDIRECT, RRES_OUT_MIST, RRES_OUT_NORMAL, RRES_OUT_REFLECT, RRES_OUT_REFRACT, RRES_OUT_RGBA, RRES_OUT_SHADOW, RRES_OUT_SPEC, RRES_OUT_UV, RRES_OUT_VEC, RRES_OUT_Z, SCE_PASS_AO, SCE_PASS_DIFFUSE, SCE_PASS_EMIT, SCE_PASS_ENVIRONMENT, SCE_PASS_INDEXMA, SCE_PASS_INDEXOB, SCE_PASS_INDIRECT, SCE_PASS_MIST, SCE_PASS_NORMAL, SCE_PASS_REFLECT, SCE_PASS_REFRACT, SCE_PASS_RGBA, SCE_PASS_SHADOW, SCE_PASS_SPEC, SCE_PASS_UV, SCE_PASS_VECTOR, and SCE_PASS_Z.
Referenced by node_composit_exec_image().
void register_node_type_cmp_image | ( | bNodeTreeType * | ttype | ) |
Definition at line 326 of file node_composite_image.c.
References CMP_NODE_IMAGE, NODE_CLASS_INPUT, node_composit_exec_image(), node_composit_init_image(), 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_socket_templates(), node_type_storage(), nodeRegisterType(), and NULL.
Referenced by registerCompositNodes().
void register_node_type_cmp_rlayers | ( | bNodeTreeType * | ttype | ) |
Definition at line 457 of file node_composite_image.c.
References CMP_NODE_R_LAYERS, NODE_CLASS_INPUT, node_composit_exec_rlayers(), NODE_OPTIONS, NODE_PREVIEW, node_type_base(), node_type_exec(), node_type_size(), node_type_socket_templates(), nodeRegisterType(), and NULL.
Referenced by registerCompositNodes().
bNodeSocketTemplate cmp_node_rlayers_out[] [static] |
{ { SOCK_RGBA, 0, "Image", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_FLOAT, 0, "Alpha", 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_FLOAT, 0, "Z", 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_VECTOR, 0, "Normal", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_VECTOR, 0, "UV", 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_VECTOR, 0, "Speed", 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_RGBA, 0, "Color", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_RGBA, 0, "Diffuse", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_RGBA, 0, "Specular", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_RGBA, 0, "Shadow", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_RGBA, 0, "AO", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_RGBA, 0, "Reflect", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_RGBA, 0, "Refract", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_RGBA, 0, "Indirect", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_FLOAT, 0, "IndexOB", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_FLOAT, 0, "IndexMA", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_FLOAT, 0, "Mist", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_RGBA, 0, "Emit", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_RGBA, 0, "Environment",0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { -1, 0, "" } }
Definition at line 38 of file node_composite_image.c.