Blender  V3.3
Namespaces | Functions | Variables
node_composite_cryptomatte.cc File Reference
#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
 

Functions

static void blender::nodes::node_composite_cryptomatte_cc::node_init_cryptomatte (bNodeTree *UNUSED(ntree), 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 *UNUSED(dest_ntree), bNode *dest_node, const bNode *src_node)
 
static bool blender::nodes::node_composite_cryptomatte_cc::node_poll_cryptomatte (bNodeType *UNUSED(ntype), bNodeTree *ntree, const char **r_disabled_hint)
 
static void blender::nodes::node_composite_cryptomatte_cc::node_init_cryptomatte_legacy (bNodeTree *ntree, bNode *node)
 
Cryptomatte
static blender::bke::cryptomatte::CryptomatteSessionPtr cryptomatte_init_from_node_render (const bNode &node, const bool use_meta_data)
 
static blender::bke::cryptomatte::CryptomatteSessionPtr cryptomatte_init_from_node_image (const Scene &scene, const bNode &node)
 
static blender::bke::cryptomatte::CryptomatteSessionPtr cryptomatte_init_from_node (const Scene &scene, const bNode &node, const bool use_meta_data)
 
static CryptomatteEntrycryptomatte_find (const NodeCryptomatte &n, float encoded_hash)
 
static void cryptomatte_add (const Scene &scene, bNode &node, NodeCryptomatte &node_cryptomatte, float encoded_hash)
 
static void cryptomatte_remove (NodeCryptomatte &n, float encoded_hash)
 
void ntreeCompositCryptomatteSyncFromAdd (const Scene *scene, bNode *node)
 
void ntreeCompositCryptomatteSyncFromRemove (bNode *node)
 
void ntreeCompositCryptomatteUpdateLayerNames (const Scene *scene, bNode *node)
 
void ntreeCompositCryptomatteLayerPrefix (const Scene *scene, const bNode *node, char *r_prefix, size_t prefix_len)
 
CryptomatteSessionntreeCompositCryptomatteSession (const Scene *scene, 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 bNodeSocketTemplate blender::nodes::node_composite_cryptomatte_cc::cmp_node_cryptomatte_in []
 
static bNodeSocketTemplate blender::nodes::node_composite_cryptomatte_cc::cmp_node_cryptomatte_out []
 

Function Documentation

◆ cryptomatte_add()

static void cryptomatte_add ( const Scene scene,
bNode node,
NodeCryptomatte node_cryptomatte,
float  encoded_hash 
)
static

◆ cryptomatte_find()

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

◆ cryptomatte_init_from_node()

static blender::bke::cryptomatte::CryptomatteSessionPtr cryptomatte_init_from_node ( const Scene scene,
const bNode node,
const bool  use_meta_data 
)
static

◆ cryptomatte_init_from_node_image()

static blender::bke::cryptomatte::CryptomatteSessionPtr cryptomatte_init_from_node_image ( const Scene scene,
const bNode node 
)
static

◆ cryptomatte_init_from_node_render()

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

◆ cryptomatte_remove()

static void cryptomatte_remove ( NodeCryptomatte n,
float  encoded_hash 
)
static

◆ ntreeCompositCryptomatteAddSocket()

bNodeSocket* ntreeCompositCryptomatteAddSocket ( bNodeTree ntree,
bNode node 
)

◆ ntreeCompositCryptomatteLayerPrefix()

void ntreeCompositCryptomatteLayerPrefix ( const Scene scene,
const bNode node,
char *  r_prefix,
size_t  prefix_len 
)

◆ ntreeCompositCryptomatteRemoveSocket()

int ntreeCompositCryptomatteRemoveSocket ( bNodeTree ntree,
bNode node 
)

◆ ntreeCompositCryptomatteSession()

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().

◆ ntreeCompositCryptomatteSyncFromAdd()

void ntreeCompositCryptomatteSyncFromAdd ( const Scene scene,
bNode node 
)

◆ ntreeCompositCryptomatteSyncFromRemove()

void ntreeCompositCryptomatteSyncFromRemove ( bNode node)

◆ ntreeCompositCryptomatteUpdateLayerNames()

void ntreeCompositCryptomatteUpdateLayerNames ( const Scene scene,
bNode node 
)

◆ register_node_type_cmp_cryptomatte()

void register_node_type_cmp_cryptomatte ( void  )

◆ register_node_type_cmp_cryptomatte_legacy()

void register_node_type_cmp_cryptomatte_legacy ( void  )