|
Blender V5.0
|
#include <cstring>#include <string>#include <fmt/format.h>#include "node_composite_util.hh"#include "BLI_assert.h"#include "BLI_listbase.h"#include "BLI_math_vector.h"#include "BLI_math_vector_types.hh"#include "BLI_string_ref.hh"#include "BLI_string_utf8.h"#include "BLI_utildefines.h"#include "BLI_vector.hh"#include "IMB_imbuf_types.hh"#include "GPU_shader.hh"#include "GPU_texture.hh"#include "DNA_image_types.h"#include "DNA_scene_types.h"#include "DNA_space_types.h"#include "BKE_compositor.hh"#include "BKE_context.hh"#include "BKE_cryptomatte.hh"#include "BKE_global.hh"#include "BKE_image.hh"#include "BKE_lib_id.hh"#include "BKE_library.hh"#include "BKE_main.hh"#include "BKE_node.hh"#include "UI_resources.hh"#include "MEM_guardedalloc.h"#include "RE_pipeline.h"#include "NOD_node_extra_info.hh"#include "COM_node_operation.hh"#include "COM_result.hh"#include "COM_utilities.hh"#include <optional>Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::nodes |
| namespace | blender::nodes::node_composite_base_cryptomatte_cc |
| namespace | blender::nodes::node_composite_cryptomatte_cc |
| namespace | blender::nodes::node_composite_legacy_cryptomatte_cc |
Variables | |
| static bke::bNodeSocketTemplate | blender::nodes::node_composite_cryptomatte_cc::cmp_node_cryptomatte_out [] |
|
static |
Definition at line 134 of file node_composite_cryptomatte.cc.
References BKE_cryptomatte_find_name(), BLI_addtail(), cryptomatte_find(), cryptomatte_init_from_node(), CryptomatteEntry::encoded_hash, NodeCryptomatte::entries, MEM_callocN(), and CryptomatteEntry::name.
Referenced by ntreeCompositCryptomatteSyncFromAdd().
|
static |
Definition at line 124 of file node_composite_cryptomatte.cc.
References NodeCryptomatte::entries, and LISTBASE_FOREACH.
Referenced by cryptomatte_add(), and cryptomatte_remove().
|
static |
Definition at line 104 of file node_composite_cryptomatte.cc.
References CMP_NODE_CRYPTOMATTE, CMP_NODE_CRYPTOMATTE_SOURCE_IMAGE, CMP_NODE_CRYPTOMATTE_SOURCE_RENDER, cryptomatte_init_from_node_image(), cryptomatte_init_from_node_render(), bNode::custom1, and bNode::type_legacy.
Referenced by cryptomatte_add(), ntreeCompositCryptomatteLayerPrefix(), ntreeCompositCryptomatteSession(), and ntreeCompositCryptomatteUpdateLayerNames().
|
static |
Definition at line 78 of file node_composite_cryptomatte.cc.
References BKE_cryptomatte_init_from_render_result(), BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), BKE_image_sequence_guess_offset(), BLI_assert, ImageUser::framenr, GS, bNode::id, Image::id, ID_IM, ID::name, and Image::rr.
Referenced by cryptomatte_init_from_node().
|
static |
Definition at line 62 of file node_composite_cryptomatte.cc.
References BKE_cryptomatte_init_from_scene(), BLI_assert, GS, bNode::id, Scene::id, ID_SCE, and ID::name.
Referenced by cryptomatte_init_from_node().
|
static |
Definition at line 152 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 972 of file node_composite_cryptomatte.cc.
References BLI_assert, CMP_NODE_CRYPTOMATTE_LEGACY, NodeCryptomatte::inputs_num, blender::bke::node_add_static_socket(), ntreeCompositCryptomatteAddSocket(), PROP_NONE, SNPRINTF_UTF8, SOCK_IN, and SOCK_RGBA.
Referenced by blender::ed::space_node::node_cryptomatte_add_socket_exec(), blender::nodes::node_composite_legacy_cryptomatte_cc::node_init_cryptomatte_legacy(), and ntreeCompositCryptomatteAddSocket().
| void ntreeCompositCryptomatteLayerPrefix | ( | const bNode * | node, |
| char * | r_prefix, | ||
| size_t | prefix_maxncpy ) |
Definition at line 201 of file node_composite_cryptomatte.cc.
References blender::bke::cryptomatte::BKE_cryptomatte_layer_names_get(), BLI_assert, BLI_strncpy_utf8(), CMP_NODE_CRYPTOMATTE, cryptomatte_init_from_node(), NodeCryptomatte::layer_name, bNode::storage, and bNode::type_legacy.
Referenced by eyedropper_cryptomatte_sample_fl(), and blender::nodes::node_composite_cryptomatte_cc::CryptoMatteOperation::get_type_name().
Definition at line 984 of file node_composite_cryptomatte.cc.
References BLI_assert, CMP_NODE_CRYPTOMATTE_LEGACY, bNode::inputs, NodeCryptomatte::inputs_num, ListBase::last, blender::bke::node_remove_socket(), bNode::storage, and bNode::type_legacy.
Referenced by blender::ed::space_node::node_cryptomatte_remove_socket_exec().
| CryptomatteSession * ntreeCompositCryptomatteSession | ( | bNode * | node | ) |
Definition at line 228 of file node_composite_cryptomatte.cc.
References cryptomatte_init_from_node().
Referenced by eyedropper_init().
| void ntreeCompositCryptomatteSyncFromAdd | ( | bNode * | node | ) |
Definition at line 162 of file node_composite_cryptomatte.cc.
References NodeCryptomatte_Runtime::add, BLI_assert, CMP_NODE_CRYPTOMATTE, CMP_NODE_CRYPTOMATTE_LEGACY, cryptomatte_add(), ELEM, NodeCryptomatte::runtime, bNode::storage, bNode::type_legacy, and zero_v3().
| void ntreeCompositCryptomatteSyncFromRemove | ( | bNode * | node | ) |
Definition at line 172 of file node_composite_cryptomatte.cc.
References BLI_assert, CMP_NODE_CRYPTOMATTE, CMP_NODE_CRYPTOMATTE_LEGACY, cryptomatte_remove(), ELEM, NodeCryptomatte_Runtime::remove, NodeCryptomatte::runtime, bNode::storage, bNode::type_legacy, and zero_v3().
| void ntreeCompositCryptomatteUpdateLayerNames | ( | bNode * | node | ) |
Update the runtime layer names with the crypto-matte layer names of the references render layer or image.
Definition at line 181 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, MEM_callocN(), CryptomatteLayer::name, NodeCryptomatte::runtime, bNode::storage, and bNode::type_legacy.
Referenced by blender::nodes::node_composite_cryptomatte_cc::node_update_cryptomatte().
|
static |
Definition at line 940 of file node_composite_cryptomatte.cc.
References CMP_NODE_CRYPTOMATTE, cmp_node_type_base(), blender::bke::bNodeType::declare, blender::bke::bNodeType::enum_name_legacy, blender::bke::bNodeType::get_compositor_operation, blender::bke::bNodeType::get_extra_info, blender::bke::bNodeType::initfunc, blender::bke::bNodeType::initfunc_api, blender::bke::bNodeType::nclass, NODE_CLASS_MATTE, blender::bke::node_register_type(), blender::bke::node_type_size(), blender::bke::node_type_storage(), blender::bke::bNodeType::ui_description, blender::bke::bNodeType::ui_name, and blender::bke::bNodeType::updatefunc.
|
static |
Definition at line 1052 of file node_composite_cryptomatte.cc.
References CMP_NODE_CRYPTOMATTE_LEGACY, cmp_node_type_base(), blender::bke::bNodeType::enum_name_legacy, blender::bke::bNodeType::gather_link_search_ops, blender::bke::bNodeType::get_compositor_operation, blender::bke::bNodeType::initfunc, blender::bke::bNodeType::nclass, NODE_CLASS_MATTE, blender::bke::node_register_type(), blender::bke::node_type_socket_templates(), blender::bke::node_type_storage(), blender::bke::bNodeType::ui_description, and blender::bke::bNodeType::ui_name.