|
Blender V5.0
|
#include "node_composite_util.hh"#include "BLI_assert.h"#include "BLI_linklist.h"#include "BLI_listbase.h"#include "BLI_math_vector_types.hh"#include "BLI_string.h"#include "BLI_string_ref.hh"#include "BLI_string_utf8.h"#include "BLI_utildefines.h"#include "BKE_compositor.hh"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_image.hh"#include "BKE_lib_id.hh"#include "BKE_main.hh"#include "BKE_scene.hh"#include "DEG_depsgraph_query.hh"#include "DNA_image_types.h"#include "DNA_scene_types.h"#include "DNA_space_types.h"#include "DNA_vec_types.h"#include "RE_engine.h"#include "RE_pipeline.h"#include "RNA_access.hh"#include "UI_interface.hh"#include "UI_interface_layout.hh"#include "UI_resources.hh"#include "GPU_shader.hh"#include "NOD_node_extra_info.hh"#include "COM_algorithm_extract_alpha.hh"#include "COM_node_operation.hh"#include "COM_utilities.hh"Go to the source code of this file.
Classes | |
| struct | RLayerUpdateData |
| struct | CreateOutputUserData |
| class | blender::nodes::node_composite_image_cc::ImageOperation |
| class | blender::nodes::node_composite_render_layer_cc::RenderLayerOperation |
Namespaces | |
| namespace | blender |
| namespace | blender::nodes |
| namespace | blender::nodes::node_composite_image_cc |
| namespace | blender::nodes::node_composite_render_layer_cc |
Macros | |
| #define | NUM_LEGACY_SOCKETS (ARRAY_SIZE(cmp_node_rlayers_out) - 1) |
Variables | |
| static blender::bke::bNodeSocketTemplate | cmp_node_rlayers_out [] |
| #define NUM_LEGACY_SOCKETS (ARRAY_SIZE(cmp_node_rlayers_out) - 1) |
Definition at line 88 of file node_composite_image.cc.
Referenced by cmp_node_image_verify_outputs(), and node_cmp_rlayers_sock_to_pass().
|
static |
Definition at line 150 of file node_composite_image.cc.
References BLI_findlink(), BLI_findstring(), BLI_insertlinkafter(), BLI_linklist_append(), BLI_remlink(), cmp_node_legacy_pass_name(), cmp_node_rlayers_out, bNodeSocket::identifier, MEM_callocN(), bNodeSocket::name, name, node_add_socket_from_template(), blender::bke::node_add_static_socket(), blender::bke::node_remove_socket(), offsetof, bNode::outputs, NodeImageLayer::pass_name, PROP_NONE, SOCK_OUT, bNodeSocket::storage, STRNCPY(), STRNCPY_UTF8, and bNodeSocket::type.
Referenced by cmp_node_image_create_outputs(), cmp_node_rlayer_create_outputs(), and node_cmp_rlayers_register_pass().
|
static |
Definition at line 239 of file node_composite_image.cc.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), BKE_image_sequence_guess_offset(), BLI_findlink(), cmp_node_image_add_pass_output(), ImageUser::framenr, bNode::id, ImageUser::layer, RenderResult::layers, LISTBASE_FOREACH, bNode::name, RenderLayer::passes, RE_PASSNAME_COMBINED, Image::rr, SOCK_FLOAT, SOCK_RGBA, socket_type_from_pass(), bNode::storage, and STREQ.
Referenced by cmp_node_image_verify_outputs().
Definition at line 447 of file node_composite_image.cc.
References BLI_linklist_free(), BLI_linklist_index(), cmp_node_image_create_outputs(), cmp_node_rlayer_create_outputs(), ListBase::first, bNodeLink::fromsock, bNodeTree::links, LinkNodePair::list, MEM_freeN(), bNodeLink::next, bNodeSocket::next, blender::bke::node_remove_socket(), blender::bke::node_set_socket_availability(), NUM_LEGACY_SOCKETS, bNode::outputs, and bNodeSocket::storage.
Referenced by blender::nodes::node_composite_image_cc::cmp_node_image_update(), blender::nodes::node_composite_render_layer_cc::cmp_node_rlayers_update(), node_cmp_rlayers_outputs(), and blender::nodes::node_composite_image_cc::node_composit_init_image().
|
static |
Definition at line 90 of file node_composite_image.cc.
Referenced by cmp_node_image_add_pass_output().
|
static |
Definition at line 381 of file node_composite_image.cc.
References BLI_findlink(), cmp_node_image_add_pass_output(), cmp_node_rlayer_create_outputs_cb(), bNode::custom1, data, RenderData::engine, FreestyleConfig::flags, FREESTYLE_AS_RENDER_PASS, ViewLayer::freestyle_config, GREASE_PENCIL_AS_SEPARATE_PASS, ViewLayer::grease_pencil_flags, bNode::id, MEM_freeN(), MEM_mallocN(), RenderData::mode, node_cmp_rlayers_register_pass(), Scene::r, R_EDGE_FRS, RE_engine_create(), RE_engine_free(), RE_engine_update_render_passes(), RE_engines_find(), RE_PASSNAME_COMBINED, RE_PASSNAME_FREESTYLE, RE_PASSNAME_GREASE_PENCIL, RRES_OUT_ALPHA, RRES_OUT_IMAGE, SOCK_FLOAT, SOCK_RGBA, bNode::storage, RenderEngineType::update_render_passes, and Scene::view_layers.
Referenced by cmp_node_image_verify_outputs().
|
static |
Definition at line 369 of file node_composite_image.cc.
References data, name, and node_cmp_rlayers_register_pass().
Referenced by cmp_node_rlayer_create_outputs().
Definition at line 640 of file node_composite_image.cc.
References cmp_node_image_verify_outputs(), and node_cmp_rlayers_outputs().
Referenced by node_cmp_rlayers_outputs(), ntreeCompositUpdateRLayers(), and register_node_type_cmp_rlayers().
| void node_cmp_rlayers_register_pass | ( | bNodeTree * | ntree, |
| bNode * | node, | ||
| Scene * | scene, | ||
| ViewLayer * | view_layer, | ||
| const char * | name, | ||
| eNodeSocketDatatype | type ) |
Definition at line 326 of file node_composite_image.cc.
References BLI_findlink(), cmp_node_image_add_pass_output(), bNode::custom1, data, bNode::id, name, RE_PASSNAME_COMBINED, SOCK_FLOAT, bNode::storage, STREQ, and Scene::view_layers.
Referenced by cmp_node_rlayer_create_outputs(), and cmp_node_rlayer_create_outputs_cb().
| const char * node_cmp_rlayers_sock_to_pass | ( | int | sock_index | ) |
Definition at line 645 of file node_composite_image.cc.
References cmp_node_rlayers_out, name, NUM_LEGACY_SOCKETS, RE_PASSNAME_COMBINED, and STREQ.
Referenced by do_versions_compositor_render_passes_storage(), and blender::nodes::node_composite_render_layer_cc::node_composit_init_rlayers().
|
static |
Definition at line 615 of file node_composite_image.cc.
References CMP_NODE_IMAGE, cmp_node_type_base(), blender::bke::bNodeType::enum_name_legacy, blender::bke::bNodeType::flag, blender::bke::bNodeType::get_compositor_operation, blender::bke::bNodeType::initfunc, blender::bke::bNodeType::labelfunc, blender::bke::bNodeType::nclass, NODE_CLASS_INPUT, node_image_label(), NODE_PREVIEW, blender::bke::node_register_type(), blender::bke::node_type_storage(), blender::bke::bNodeType::ui_description, blender::bke::bNodeType::ui_name, and blender::bke::bNodeType::updatefunc.
|
static |
Definition at line 950 of file node_composite_image.cc.
References CMP_NODE_R_LAYERS, cmp_node_rlayers_out, cmp_node_type_base(), blender::bke::bNodeType::draw_buttons, blender::bke::bNodeType::enum_name_legacy, blender::bke::bNodeType::flag, blender::bke::bNodeType::get_compositor_operation, blender::bke::bNodeType::get_extra_info, blender::bke::bNodeType::initfunc, blender::bke::bNodeType::initfunc_api, blender::bke::Large, blender::bke::bNodeType::nclass, NODE_CLASS_INPUT, node_cmp_rlayers_outputs(), NODE_PREVIEW, blender::bke::node_register_type(), blender::bke::node_type_size_preset(), blender::bke::node_type_socket_templates(), blender::bke::node_type_storage(), blender::bke::bNodeType::ui_description, blender::bke::bNodeType::ui_name, and blender::bke::bNodeType::updatefunc.
|
static |
Definition at line 211 of file node_composite_image.cc.
References BLI_assert_unreachable, RenderPass::chan_id, RenderPass::channels, SOCK_FLOAT, SOCK_RGBA, SOCK_VECTOR, and STR_ELEM.
Referenced by cmp_node_image_create_outputs().
|
static |
Definition at line 54 of file node_composite_image.cc.
Referenced by cmp_node_image_add_pass_output(), node_cmp_rlayers_sock_to_pass(), and register_node_type_cmp_rlayers().