|
Blender V4.3
|
#include <string>#include <fmt/format.h>#include "node_composite_util.hh"#include "BLI_assert.h"#include "BLI_dynstr.h"#include "BLI_hash_mm3.hh"#include "BLI_listbase.h"#include "BLI_math_vector.h"#include "BLI_math_vector_types.hh"#include "BLI_string.h"#include "BLI_string_ref.hh"#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 "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 "MEM_guardedalloc.h"#include "RE_pipeline.h"#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 124 of file node_composite_cryptomatte.cc.
References BKE_cryptomatte_find_name(), BLI_addtail(), cryptomatte_find(), cryptomatte_init_from_node(), CryptomatteEntry::encoded_hash, NodeCryptomatte::entries, and CryptomatteEntry::name.
Referenced by ntreeCompositCryptomatteSyncFromAdd().
|
static |
Definition at line 114 of file node_composite_cryptomatte.cc.
References NodeCryptomatte::entries, and LISTBASE_FOREACH.
Referenced by cryptomatte_add(), and cryptomatte_remove().
|
static |
Definition at line 94 of file node_composite_cryptomatte.cc.
References CMP_NODE_CRYPTOMATTE_SOURCE_IMAGE, CMP_NODE_CRYPTOMATTE_SOURCE_RENDER, cryptomatte_init_from_node_image(), and cryptomatte_init_from_node_render().
Referenced by cryptomatte_add(), ntreeCompositCryptomatteLayerPrefix(), ntreeCompositCryptomatteSession(), and ntreeCompositCryptomatteUpdateLayerNames().
|
static |
Definition at line 72 of file node_composite_cryptomatte.cc.
References BKE_cryptomatte_init_from_render_result(), BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), BLI_assert, GS, Image::id, ID_IM, and NodeCryptomatte::iuser.
Referenced by cryptomatte_init_from_node().
|
static |
Definition at line 56 of file node_composite_cryptomatte.cc.
References BKE_cryptomatte_init_from_scene(), BLI_assert, GS, Scene::id, and ID_SCE.
Referenced by cryptomatte_init_from_node().
|
static |
Definition at line 142 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 805 of file node_composite_cryptomatte.cc.
References BLI_assert, NodeCryptomatte::inputs_num, blender::bke::node_add_static_socket(), PROP_NONE, SNPRINTF, SOCK_IN, and SOCK_RGBA.
Referenced by blender::ed::space_node::node_cryptomatte_add_socket_exec(), and blender::nodes::node_composite_legacy_cryptomatte_cc::node_init_cryptomatte_legacy().
| void ntreeCompositCryptomatteLayerPrefix | ( | const bNode * | node, |
| char * | r_prefix, | ||
| size_t | prefix_maxncpy ) |
Definition at line 191 of file node_composite_cryptomatte.cc.
References blender::bke::cryptomatte::BKE_cryptomatte_layer_names_get(), BLI_assert, BLI_strncpy(), cryptomatte_init_from_node(), and NodeCryptomatte::layer_name.
Referenced by eyedropper_cryptomatte_sample_fl(), blender::nodes::node_composite_cryptomatte_cc::CryptoMatteOperation::get_type_name(), and blender::compositor::prefix_from_node().
Definition at line 817 of file node_composite_cryptomatte.cc.
References BLI_assert, NodeCryptomatte::inputs_num, and blender::bke::node_remove_socket().
Referenced by blender::ed::space_node::node_cryptomatte_remove_socket_exec().
| CryptomatteSession * ntreeCompositCryptomatteSession | ( | bNode * | node | ) |
Definition at line 218 of file node_composite_cryptomatte.cc.
References cryptomatte_init_from_node().
Referenced by eyedropper_init().
| void ntreeCompositCryptomatteSyncFromAdd | ( | bNode * | node | ) |
Definition at line 152 of file node_composite_cryptomatte.cc.
References NodeCryptomatte_Runtime::add, BLI_assert, cryptomatte_add(), ELEM, NodeCryptomatte::runtime, and zero_v3().
| void ntreeCompositCryptomatteSyncFromRemove | ( | bNode * | node | ) |
Definition at line 162 of file node_composite_cryptomatte.cc.
References BLI_assert, cryptomatte_remove(), ELEM, NodeCryptomatte_Runtime::remove, NodeCryptomatte::runtime, 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 171 of file node_composite_cryptomatte.cc.
References blender::bke::cryptomatte::BKE_cryptomatte_layer_names_get(), BLI_addtail(), BLI_assert, BLI_freelistN(), cryptomatte_init_from_node(), NodeCryptomatte_Runtime::layers, and NodeCryptomatte::runtime.
Referenced by blender::nodes::node_composite_cryptomatte_cc::node_update_cryptomatte().
| void register_node_type_cmp_cryptomatte | ( | ) |
Definition at line 779 of file node_composite_cryptomatte.cc.
References cmp_node_type_base(), blender::bke::bNodeType::declare, blender::bke::bNodeType::get_compositor_operation, blender::bke::bNodeType::initfunc, blender::bke::bNodeType::initfunc_api, NODE_CLASS_MATTE, blender::bke::node_register_type(), blender::bke::node_type_size(), blender::bke::node_type_storage(), blender::bke::bNodeType::poll, and blender::bke::bNodeType::updatefunc.
Referenced by register_composite_nodes().
| void register_node_type_cmp_cryptomatte_legacy | ( | ) |
Definition at line 875 of file node_composite_cryptomatte.cc.
References cmp_node_type_base(), blender::bke::bNodeType::gather_link_search_ops, blender::bke::bNodeType::get_compositor_operation, blender::bke::bNodeType::initfunc, NODE_CLASS_MATTE, blender::bke::node_register_type(), blender::bke::node_type_socket_templates(), and blender::bke::node_type_storage().
Referenced by register_composite_nodes().