Blender V4.3
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, bool build_meta_data)
 
struct CryptomatteSessionBKE_cryptomatte_init_from_view_layer (const struct ViewLayer *view_layer)
 
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_maxncpy)
 
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)
 

Function Documentation

◆ BKE_cryptomatte_add_layer()

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

Definition at line 195 of file cryptomatte.cc.

References CryptomatteSession::add_layer().

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

◆ BKE_cryptomatte_find_name()

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

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

◆ BKE_cryptomatte_hash_to_float()

◆ BKE_cryptomatte_init()

struct CryptomatteSession * BKE_cryptomatte_init ( void )

Definition at line 171 of file cryptomatte.cc.

◆ 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,
bool build_meta_data )

◆ BKE_cryptomatte_init_from_view_layer()

struct CryptomatteSession * BKE_cryptomatte_init_from_view_layer ( const struct ViewLayer * view_layer)

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

◆ 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 )