Blender
V3.3
|
Go to the source code of this file.
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().
uint32_t BKE_cryptomatte_asset_hash | ( | struct CryptomatteSession * | session, |
const char * | layer_name, | ||
const struct Object * | object | ||
) |
Referenced by eevee_cryptomatte_shading_group_create().
char* BKE_cryptomatte_entries_to_matte_id | ( | struct NodeCryptomatte * | node_storage | ) |
Definition at line 213 of file cryptomatte.cc.
References BLI_dynstr_append(), BLI_dynstr_appendf(), BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_nappend(), BLI_dynstr_new(), BLI_strnlen(), NodeCryptomatte::entries, LISTBASE_FOREACH, and result.
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().
void BKE_cryptomatte_free | ( | struct CryptomatteSession * | session | ) |
Definition at line 150 of file cryptomatte.cc.
References BLI_assert.
Referenced by EEVEE_cryptomatte_free(), eyedropper_exit(), and blender::bke::cryptomatte::CryptomatteSessionDeleter::operator()().
uint32_t BKE_cryptomatte_hash | ( | const char * | name, |
int | name_len | ||
) |
Definition at line 156 of file cryptomatte.cc.
References hash.
Referenced by blender::bke::cryptomatte::CryptomatteLayer::add_ID(), and BKE_cryptomatte_matte_id_to_entries().
Definition at line 194 of file cryptomatte.cc.
References blender::bke::cryptomatte::CryptomatteHash::float_encoded().
Referenced by BKE_cryptomatte_matte_id_to_entries(), eevee_cryptomatte_shading_group_create(), and blender::bke::cryptomatte::CryptomatteLayer::operator[]().
struct CryptomatteSession* BKE_cryptomatte_init | ( | void | ) |
Definition at line 126 of file cryptomatte.cc.
Referenced by EEVEE_cryptomatte_renderpasses_init().
struct CryptomatteSession* BKE_cryptomatte_init_from_render_result | ( | const struct RenderResult * | render_result | ) |
Definition at line 132 of file cryptomatte.cc.
References CryptomatteSession::CryptomatteSession(), and RenderResult::stamp_data.
Referenced by cryptomatte_init_from_node_image(), cryptomatte_init_from_node_render(), and blender::bke::cryptomatte::tests::TEST().
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().
uint32_t BKE_cryptomatte_material_hash | ( | struct CryptomatteSession * | session, |
const char * | layer_name, | ||
const struct Material * | material | ||
) |
Referenced by eevee_cryptomatte_shading_group_create().
void BKE_cryptomatte_matte_id_to_entries | ( | struct NodeCryptomatte * | node_storage, |
const char * | matte_id | ||
) |
Definition at line 234 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_dupallocN, MEM_SAFE_FREE, CryptomatteEntry::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 | ||
) |
Referenced by eevee_cryptomatte_shading_group_create().
void BKE_cryptomatte_store_metadata | ( | const struct CryptomatteSession * | session, |
struct RenderResult * | render_result, | ||
const ViewLayer * | view_layer | ||
) |
Definition at line 308 of file cryptomatte.cc.
References add_render_result_meta_data(), cryptomatte_determine_name(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items(), CryptomatteSession::layers, and blender::bke::cryptomatte::CryptomatteLayer::manifest().
Referenced by EEVEE_cryptomatte_store_metadata(), and blender::bke::cryptomatte::tests::TEST().