Blender V4.3
node_composite_cryptomatte.cc File Reference
#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.

Classes

class  blender::nodes::node_composite_base_cryptomatte_cc::BaseCryptoMatteOperation
 
class  blender::nodes::node_composite_cryptomatte_cc::CryptoMatteOperation
 
class  blender::nodes::node_composite_legacy_cryptomatte_cc::LegacyCryptoMatteOperation
 

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
 

Functions

static void blender::nodes::node_composite_cryptomatte_cc::cmp_node_cryptomatte_declare (NodeDeclarationBuilder &b)
 
static void blender::nodes::node_composite_cryptomatte_cc::node_init_cryptomatte (bNodeTree *, bNode *node)
 
static void blender::nodes::node_composite_cryptomatte_cc::node_init_api_cryptomatte (const bContext *C, PointerRNA *ptr)
 
static void blender::nodes::node_composite_cryptomatte_cc::node_free_cryptomatte (bNode *node)
 
static void blender::nodes::node_composite_cryptomatte_cc::node_copy_cryptomatte (bNodeTree *, bNode *dest_node, const bNode *src_node)
 
static bool blender::nodes::node_composite_cryptomatte_cc::node_poll_cryptomatte (const blender::bke::bNodeType *, const bNodeTree *ntree, const char **r_disabled_hint)
 
static void blender::nodes::node_composite_cryptomatte_cc::node_update_cryptomatte (bNodeTree *ntree, bNode *node)
 
static NodeOperationblender::nodes::node_composite_cryptomatte_cc::get_compositor_operation (Context &context, DNode node)
 
static void blender::nodes::node_composite_legacy_cryptomatte_cc::node_init_cryptomatte_legacy (bNodeTree *ntree, bNode *node)
 
static NodeOperationblender::nodes::node_composite_legacy_cryptomatte_cc::get_compositor_operation (Context &context, DNode node)
 
Cryptomatte
static blender::bke::cryptomatte::CryptomatteSessionPtr cryptomatte_init_from_node_render (const bNode &node, const bool build_meta_data)
 
static blender::bke::cryptomatte::CryptomatteSessionPtr cryptomatte_init_from_node_image (const bNode &node)
 
static blender::bke::cryptomatte::CryptomatteSessionPtr cryptomatte_init_from_node (const bNode &node, const bool build_meta_data)
 
static CryptomatteEntrycryptomatte_find (const NodeCryptomatte &n, float encoded_hash)
 
static void cryptomatte_add (bNode &node, NodeCryptomatte &node_cryptomatte, float encoded_hash)
 
static void cryptomatte_remove (NodeCryptomatte &n, float encoded_hash)
 
void ntreeCompositCryptomatteSyncFromAdd (bNode *node)
 
void ntreeCompositCryptomatteSyncFromRemove (bNode *node)
 
void ntreeCompositCryptomatteUpdateLayerNames (bNode *node)
 
void ntreeCompositCryptomatteLayerPrefix (const bNode *node, char *r_prefix, size_t prefix_maxncpy)
 
CryptomatteSessionntreeCompositCryptomatteSession (bNode *node)
 
void register_node_type_cmp_cryptomatte ()
 
Cryptomatte Legacy
bNodeSocketntreeCompositCryptomatteAddSocket (bNodeTree *ntree, bNode *node)
 
int ntreeCompositCryptomatteRemoveSocket (bNodeTree *ntree, bNode *node)
 
void register_node_type_cmp_cryptomatte_legacy ()
 

Variables

static bke::bNodeSocketTemplate blender::nodes::node_composite_cryptomatte_cc::cmp_node_cryptomatte_out []
 

Function Documentation

◆ cryptomatte_add()

◆ cryptomatte_find()

static CryptomatteEntry * cryptomatte_find ( const NodeCryptomatte & n,
float encoded_hash )
static

◆ cryptomatte_init_from_node()

◆ cryptomatte_init_from_node_image()

◆ cryptomatte_init_from_node_render()

static blender::bke::cryptomatte::CryptomatteSessionPtr cryptomatte_init_from_node_render ( const bNode & node,
const bool build_meta_data )
static

◆ cryptomatte_remove()

static void cryptomatte_remove ( NodeCryptomatte & n,
float encoded_hash )
static

◆ ntreeCompositCryptomatteAddSocket()

◆ ntreeCompositCryptomatteLayerPrefix()

◆ ntreeCompositCryptomatteRemoveSocket()

int ntreeCompositCryptomatteRemoveSocket ( bNodeTree * ntree,
bNode * node )

◆ ntreeCompositCryptomatteSession()

CryptomatteSession * ntreeCompositCryptomatteSession ( bNode * node)

Definition at line 218 of file node_composite_cryptomatte.cc.

References cryptomatte_init_from_node().

Referenced by eyedropper_init().

◆ ntreeCompositCryptomatteSyncFromAdd()

void ntreeCompositCryptomatteSyncFromAdd ( bNode * node)

◆ ntreeCompositCryptomatteSyncFromRemove()

void ntreeCompositCryptomatteSyncFromRemove ( bNode * node)

◆ ntreeCompositCryptomatteUpdateLayerNames()

void ntreeCompositCryptomatteUpdateLayerNames ( bNode * node)

◆ register_node_type_cmp_cryptomatte()

◆ register_node_type_cmp_cryptomatte_legacy()