|
Blender V5.0
|
Go to the source code of this file.
Functions | |
| struct CryptomatteSession * | BKE_cryptomatte_init (void) |
| struct CryptomatteSession * | BKE_cryptomatte_init_from_render_result (const struct RenderResult *render_result) |
| struct CryptomatteSession * | BKE_cryptomatte_init_from_scene (const struct Scene *scene, bool build_meta_data) |
| struct CryptomatteSession * | BKE_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) |
| void BKE_cryptomatte_add_layer | ( | struct CryptomatteSession * | session, |
| const char * | layer_name ) |
Definition at line 214 of file cryptomatte.cc.
References CryptomatteSession::add_layer().
| uint32_t BKE_cryptomatte_asset_hash | ( | struct CryptomatteSession * | session, |
| const char * | layer_name, | ||
| const struct Object * | object ) |
| char * BKE_cryptomatte_entries_to_matte_id | ( | struct NodeCryptomatte * | node_storage | ) |
Definition at line 282 of file cryptomatte.cc.
References BLI_dynstr_append(), BLI_dynstr_appendf(), BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_nappend(), BLI_dynstr_new(), NodeCryptomatte::entries, LISTBASE_FOREACH, and result.
| 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().
| void BKE_cryptomatte_free | ( | struct CryptomatteSession * | session | ) |
Definition at line 219 of file cryptomatte.cc.
References BLI_assert.
Referenced by eyedropper_exit(), and blender::bke::cryptomatte::CryptomatteSessionDeleter::operator()().
| uint32_t BKE_cryptomatte_hash | ( | const char * | name, |
| int | name_len ) |
Definition at line 225 of file cryptomatte.cc.
Referenced by blender::bke::cryptomatte::CryptomatteLayer::add_ID(), BKE_cryptomatte_matte_id_to_entries(), eyedropper_cryptomatte_sample_view3d_fl(), and blender::eevee::Cryptomatte::register_id().
| float BKE_cryptomatte_hash_to_float | ( | uint32_t | cryptomatte_hash | ) |
Definition at line 263 of file cryptomatte.cc.
References blender::bke::cryptomatte::CryptomatteHash::float_encoded().
Referenced by BKE_cryptomatte_matte_id_to_entries(), eyedropper_cryptomatte_sample_view3d_fl(), blender::bke::cryptomatte::CryptomatteLayer::operator[](), and blender::eevee::Cryptomatte::register_id().
| struct CryptomatteSession * BKE_cryptomatte_init | ( | void | ) |
Definition at line 190 of file cryptomatte.cc.
| struct CryptomatteSession * BKE_cryptomatte_init_from_render_result | ( | const struct RenderResult * | render_result | ) |
Referenced by cryptomatte_init_from_node_image(), and blender::bke::cryptomatte::tests::TEST().
| struct CryptomatteSession * BKE_cryptomatte_init_from_scene | ( | const struct Scene * | scene, |
| bool | build_meta_data ) |
| struct CryptomatteSession * BKE_cryptomatte_init_from_view_layer | ( | const struct ViewLayer * | view_layer | ) |
References name.
Referenced by blender::eevee::Cryptomatte::begin_sync().
| uint32_t BKE_cryptomatte_material_hash | ( | struct CryptomatteSession * | session, |
| const char * | layer_name, | ||
| const struct Material * | material ) |
| void BKE_cryptomatte_matte_id_to_entries | ( | struct NodeCryptomatte * | node_storage, |
| const char * | matte_id ) |
Definition at line 303 of file cryptomatte.cc.
References BKE_cryptomatte_hash(), BKE_cryptomatte_hash_to_float(), BLI_addtail(), BLI_freelistN(), CryptomatteEntry::encoded_hash, NodeCryptomatte::entries, hash, NodeCryptomatte::matte_id, MEM_callocN(), MEM_dupallocN(), MEM_SAFE_FREE, CryptomatteEntry::name, name, STREQ, and STRNCPY().
Referenced by blo_do_versions_290().
| uint32_t BKE_cryptomatte_object_hash | ( | struct CryptomatteSession * | session, |
| const char * | layer_name, | ||
| const struct Object * | object ) |
| void BKE_cryptomatte_store_metadata | ( | const struct CryptomatteSession * | session, |
| struct RenderResult * | render_result ) |