Blender  V2.93
node_composite_cryptomatte.cc File Reference
#include "node_composite_util.h"
#include "BLI_assert.h"
#include "BLI_dynstr.h"
#include "BLI_hash_mm3.h"
#include "BLI_string_ref.hh"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_cryptomatte.hh"
#include "BKE_global.h"
#include "BKE_lib_id.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include <optional>

Go to the source code of this file.

Functions

Cryptomatte Legacy
static void node_init_cryptomatte_legacy (bNodeTree *ntree, bNode *node)
 
bNodeSocket * ntreeCompositCryptomatteAddSocket (bNodeTree *ntree, bNode *node)
 
int ntreeCompositCryptomatteRemoveSocket (bNodeTree *ntree, bNode *node)
 
void register_node_type_cmp_cryptomatte_legacy (void)
 

Cryptomatte

static bNodeSocketTemplate cmp_node_cryptomatte_in []
 
static bNodeSocketTemplate cmp_node_cryptomatte_out []
 
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 CryptomatteEntry * cryptomatte_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)
 
CryptomatteSession * ntreeCompositCryptomatteSession (const Scene *scene, bNode *node)
 
static void node_init_cryptomatte (bNodeTree *UNUSED(ntree), bNode *node)
 
static void node_init_api_cryptomatte (const bContext *C, PointerRNA *ptr)
 
static void node_free_cryptomatte (bNode *node)
 
static void node_copy_cryptomatte (bNodeTree *UNUSED(dest_ntree), bNode *dest_node, const bNode *src_node)
 
static bool node_poll_cryptomatte (bNodeType *UNUSED(ntype), bNodeTree *ntree, const char **r_disabled_hint)
 
void register_node_type_cmp_cryptomatte (void)
 

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

◆ node_copy_cryptomatte()

static void node_copy_cryptomatte ( bNodeTree *  UNUSEDdest_ntree,
bNode *  dest_node,
const bNode *  src_node 
)
static

◆ node_free_cryptomatte()

static void node_free_cryptomatte ( bNode *  node)
static

◆ node_init_api_cryptomatte()

static void node_init_api_cryptomatte ( const bContext *  C,
PointerRNA *  ptr 
)
static

◆ node_init_cryptomatte()

static void node_init_cryptomatte ( bNodeTree *  UNUSEDntree,
bNode *  node 
)
static

◆ node_init_cryptomatte_legacy()

static void node_init_cryptomatte_legacy ( bNodeTree *  ntree,
bNode *  node 
)
static

◆ node_poll_cryptomatte()

static bool node_poll_cryptomatte ( bNodeType *  UNUSEDntype,
bNodeTree *  ntree,
const char **  r_disabled_hint 
)
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 237 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  )

Variable Documentation

◆ cmp_node_cryptomatte_in

bNodeSocketTemplate cmp_node_cryptomatte_in[]
static
Initial value:
= {
{SOCK_RGBA, N_("Image"), 0.0f, 0.0f, 0.0f, 1.0f}, {-1, ""}}
#define N_(msgid)
@ SOCK_RGBA

Definition at line 159 of file node_composite_cryptomatte.cc.

Referenced by register_node_type_cmp_cryptomatte().

◆ cmp_node_cryptomatte_out

bNodeSocketTemplate cmp_node_cryptomatte_out[]
static
Initial value:
= {
{SOCK_RGBA, N_("Image")},
{SOCK_FLOAT, N_("Matte")},
{SOCK_RGBA, N_("Pick")},
{-1, ""},
}
@ SOCK_FLOAT

Definition at line 162 of file node_composite_cryptomatte.cc.

Referenced by register_node_type_cmp_cryptomatte(), and register_node_type_cmp_cryptomatte_legacy().