Blender  V3.3
Functions
BKE_cryptomatte.h File Reference
#include "BLI_sys_types.h"
#include "DNA_layer_types.h"

Go to the source code of this file.

Functions

struct CryptomatteSessionBKE_cryptomatte_init (void)
 
struct CryptomatteSessionBKE_cryptomatte_init_from_render_result (const struct RenderResult *render_result)
 
struct CryptomatteSessionBKE_cryptomatte_init_from_scene (const struct Scene *scene)
 
void BKE_cryptomatte_free (struct CryptomatteSession *session)
 
void BKE_cryptomatte_add_layer (struct CryptomatteSession *session, const char *layer_name)
 
uint32_t BKE_cryptomatte_hash (const char *name, int name_len)
 
uint32_t BKE_cryptomatte_object_hash (struct CryptomatteSession *session, const char *layer_name, const struct Object *object)
 
uint32_t BKE_cryptomatte_material_hash (struct CryptomatteSession *session, const char *layer_name, const struct Material *material)
 
uint32_t BKE_cryptomatte_asset_hash (struct CryptomatteSession *session, const char *layer_name, const struct Object *object)
 
float BKE_cryptomatte_hash_to_float (uint32_t cryptomatte_hash)
 
bool BKE_cryptomatte_find_name (const struct CryptomatteSession *session, float encoded_hash, char *r_name, int name_len)
 
char * BKE_cryptomatte_entries_to_matte_id (struct NodeCryptomatte *node_storage)
 
void BKE_cryptomatte_matte_id_to_entries (struct NodeCryptomatte *node_storage, const char *matte_id)
 
void BKE_cryptomatte_store_metadata (const struct CryptomatteSession *session, struct RenderResult *render_result, const ViewLayer *view_layer)
 

Function Documentation

◆ BKE_cryptomatte_add_layer()

void BKE_cryptomatte_add_layer ( struct CryptomatteSession session,
const char *  layer_name 
)

Definition at line 145 of file cryptomatte.cc.

References CryptomatteSession::add_layer().

Referenced by EEVEE_cryptomatte_renderpasses_init().

◆ BKE_cryptomatte_asset_hash()

uint32_t BKE_cryptomatte_asset_hash ( struct CryptomatteSession session,
const char *  layer_name,
const struct Object object 
)

◆ BKE_cryptomatte_entries_to_matte_id()

char* BKE_cryptomatte_entries_to_matte_id ( struct NodeCryptomatte node_storage)

◆ BKE_cryptomatte_find_name()

bool BKE_cryptomatte_find_name ( const struct CryptomatteSession session,
float  encoded_hash,
char *  r_name,
int  name_len 
)

Find an ID in the given main that matches the given encoded float.

Referenced by cryptomatte_add(), and eyedropper_color_sample_text_update().

◆ BKE_cryptomatte_free()

void BKE_cryptomatte_free ( struct CryptomatteSession session)

◆ BKE_cryptomatte_hash()

uint32_t BKE_cryptomatte_hash ( const char *  name,
int  name_len 
)

◆ BKE_cryptomatte_hash_to_float()

float BKE_cryptomatte_hash_to_float ( uint32_t  cryptomatte_hash)

◆ BKE_cryptomatte_init()

struct CryptomatteSession* BKE_cryptomatte_init ( void  )

Definition at line 126 of file cryptomatte.cc.

Referenced by EEVEE_cryptomatte_renderpasses_init().

◆ BKE_cryptomatte_init_from_render_result()

struct CryptomatteSession* BKE_cryptomatte_init_from_render_result ( const struct RenderResult render_result)

◆ BKE_cryptomatte_init_from_scene()

struct CryptomatteSession* BKE_cryptomatte_init_from_scene ( const struct Scene scene)

Definition at line 139 of file cryptomatte.cc.

References CryptomatteSession::CryptomatteSession(), and scene.

Referenced by cryptomatte_init_from_node_render().

◆ BKE_cryptomatte_material_hash()

uint32_t BKE_cryptomatte_material_hash ( struct CryptomatteSession session,
const char *  layer_name,
const struct Material material 
)

◆ BKE_cryptomatte_matte_id_to_entries()

void BKE_cryptomatte_matte_id_to_entries ( struct NodeCryptomatte node_storage,
const char *  matte_id 
)

◆ BKE_cryptomatte_object_hash()

uint32_t BKE_cryptomatte_object_hash ( struct CryptomatteSession session,
const char *  layer_name,
const struct Object object 
)

◆ BKE_cryptomatte_store_metadata()

void BKE_cryptomatte_store_metadata ( const struct CryptomatteSession session,
struct RenderResult render_result,
const ViewLayer view_layer 
)