Blender
V3.3
|
#include "node_composite_util.hh"
#include "BLI_assert.h"
#include "BLI_dynstr.h"
#include "BLI_hash_mm3.h"
#include "BLI_math_vector.h"
#include "BLI_string_ref.hh"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_cryptomatte.hh"
#include "BKE_global.h"
#include "BKE_image.h"
#include "BKE_lib_id.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "MEM_guardedalloc.h"
#include "RE_pipeline.h"
#include <optional>
Go to the source code of this file.
Namespaces | |
blender | |
blender::nodes | |
blender::nodes::node_composite_cryptomatte_cc | |
|
static |
Definition at line 119 of file node_composite_cryptomatte.cc.
References BKE_cryptomatte_find_name(), BLI_addtail(), cryptomatte_find(), cryptomatte_init_from_node(), CryptomatteEntry::encoded_hash, NodeCryptomatte::entries, CryptomatteEntry::name, node, and scene.
Referenced by ntreeCompositCryptomatteSyncFromAdd().
|
static |
Definition at line 109 of file node_composite_cryptomatte.cc.
References NodeCryptomatte::entries, and LISTBASE_FOREACH.
Referenced by cryptomatte_add(), and cryptomatte_remove().
|
static |
Definition at line 88 of file node_composite_cryptomatte.cc.
References CMP_CRYPTOMATTE_SRC_IMAGE, CMP_CRYPTOMATTE_SRC_RENDER, CMP_NODE_CRYPTOMATTE, cryptomatte_init_from_node_image(), cryptomatte_init_from_node_render(), node, and scene.
Referenced by cryptomatte_add(), ntreeCompositCryptomatteLayerPrefix(), ntreeCompositCryptomatteSession(), and ntreeCompositCryptomatteUpdateLayerNames().
|
static |
Definition at line 65 of file node_composite_cryptomatte.cc.
References BKE_cryptomatte_init_from_render_result(), BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), BKE_image_user_frame_calc(), BLI_assert, RenderData::cfra, GS, ID_IM, if(), image(), NodeCryptomatte::iuser, node, Scene::r, and scene.
Referenced by cryptomatte_init_from_node().
|
static |
Definition at line 35 of file node_composite_cryptomatte.cc.
References BKE_cryptomatte_init_from_render_result(), BKE_cryptomatte_init_from_scene(), BLI_assert, GS, Scene::id, ID_SCE, if(), ID::name, node, RE_AcquireResultRead(), RE_GetSceneRender(), RE_ReleaseResult(), and scene.
Referenced by cryptomatte_init_from_node().
|
static |
Definition at line 140 of file node_composite_cryptomatte.cc.
References BLI_remlink(), cryptomatte_find(), NodeCryptomatte::entries, and MEM_freeN.
Referenced by ntreeCompositCryptomatteSyncFromRemove().
bNodeSocket* ntreeCompositCryptomatteAddSocket | ( | bNodeTree * | ntree, |
bNode * | node | ||
) |
Definition at line 328 of file node_composite_cryptomatte.cc.
References BLI_assert, BLI_snprintf(), CMP_NODE_CRYPTOMATTE_LEGACY, NodeCryptomatte::inputs_num, node, nodeAddStaticSocket(), ntree, PROP_NONE, SOCK_IN, and SOCK_RGBA.
Referenced by blender::ed::space_node::node_cryptomatte_add_socket_exec(), and blender::nodes::node_composite_cryptomatte_cc::node_init_cryptomatte_legacy().
void ntreeCompositCryptomatteLayerPrefix | ( | const Scene * | scene, |
const bNode * | node, | ||
char * | r_prefix, | ||
size_t | prefix_len | ||
) |
Definition at line 188 of file node_composite_cryptomatte.cc.
References blender::bke::cryptomatte::BKE_cryptomatte_layer_names_get(), BLI_assert, BLI_strncpy(), CMP_NODE_CRYPTOMATTE, cryptomatte_init_from_node(), NodeCryptomatte::layer_name, node, and scene.
Referenced by eyedropper_cryptomatte_sample_fl(), and blender::compositor::prefix_from_node().
Definition at line 340 of file node_composite_cryptomatte.cc.
References BLI_assert, CMP_NODE_CRYPTOMATTE_LEGACY, NodeCryptomatte::inputs_num, node, nodeRemoveSocket(), and ntree.
Referenced by blender::ed::space_node::node_cryptomatte_remove_socket_exec().
CryptomatteSession* ntreeCompositCryptomatteSession | ( | const Scene * | scene, |
bNode * | node | ||
) |
Definition at line 217 of file node_composite_cryptomatte.cc.
References cryptomatte_init_from_node(), node, and scene.
Referenced by eyedropper_init().
Definition at line 150 of file node_composite_cryptomatte.cc.
References NodeCryptomatte_Runtime::add, BLI_assert, CMP_NODE_CRYPTOMATTE, CMP_NODE_CRYPTOMATTE_LEGACY, cryptomatte_add(), ELEM, node, NodeCryptomatte::runtime, scene, and zero_v3().
Definition at line 160 of file node_composite_cryptomatte.cc.
References BLI_assert, CMP_NODE_CRYPTOMATTE, CMP_NODE_CRYPTOMATTE_LEGACY, cryptomatte_remove(), ELEM, node, NodeCryptomatte_Runtime::remove, NodeCryptomatte::runtime, and zero_v3().
Update the runtime layer names with the crypto-matte layer names of the references render layer or image.
Definition at line 169 of file node_composite_cryptomatte.cc.
References blender::bke::cryptomatte::BKE_cryptomatte_layer_names_get(), BLI_addtail(), BLI_assert, BLI_freelistN(), CMP_NODE_CRYPTOMATTE, cryptomatte_init_from_node(), NodeCryptomatte_Runtime::layers, CryptomatteLayer::name, node, NodeCryptomatte::runtime, and scene.
Definition at line 304 of file node_composite_cryptomatte.cc.
References CMP_NODE_CRYPTOMATTE, blender::nodes::node_composite_cryptomatte_cc::cmp_node_cryptomatte_in, blender::nodes::node_composite_cryptomatte_cc::cmp_node_cryptomatte_out, cmp_node_type_base(), bNodeType::initfunc_api, NODE_CLASS_MATTE, blender::nodes::node_composite_cryptomatte_cc::node_copy_cryptomatte(), blender::nodes::node_composite_cryptomatte_cc::node_free_cryptomatte(), blender::nodes::node_composite_cryptomatte_cc::node_init_api_cryptomatte(), blender::nodes::node_composite_cryptomatte_cc::node_init_cryptomatte(), blender::nodes::node_composite_cryptomatte_cc::node_poll_cryptomatte(), node_type_init(), node_type_size(), node_type_socket_templates(), node_type_storage(), nodeRegisterType(), and bNodeType::poll.
Referenced by registerCompositNodes().
Definition at line 370 of file node_composite_cryptomatte.cc.
References CMP_NODE_CRYPTOMATTE_LEGACY, blender::nodes::node_composite_cryptomatte_cc::cmp_node_cryptomatte_out, cmp_node_type_base(), bNodeType::gather_link_search_ops, NODE_CLASS_MATTE, blender::nodes::node_composite_cryptomatte_cc::node_copy_cryptomatte(), blender::nodes::node_composite_cryptomatte_cc::node_free_cryptomatte(), blender::nodes::node_composite_cryptomatte_cc::node_init_cryptomatte_legacy(), node_type_init(), node_type_socket_templates(), node_type_storage(), and nodeRegisterType().
Referenced by registerCompositNodes().