Blender
V3.3
|
#include <BKE_cryptomatte.hh>
Public Member Functions | |
uint32_t | add_ID (const struct ID &id) |
void | add_hash (blender::StringRef name, CryptomatteHash cryptomatte_hash) |
std::string | manifest () const |
std::optional< std::string > | operator[] (float encoded_hash) const |
Static Public Member Functions | |
static std::unique_ptr< CryptomatteLayer > | read_from_manifest (blender::StringRefNull manifest) |
Public Attributes | |
blender::Map< std::string, CryptomatteHash > | hashes |
Definition at line 76 of file BKE_cryptomatte.hh.
void CryptomatteLayer::add_hash | ( | blender::StringRef | name, |
CryptomatteHash | cryptomatte_hash | ||
) |
Definition at line 541 of file cryptomatte.cc.
References hashes.
Referenced by add_ID(), blender::bke::cryptomatte::manifest::from_manifest(), and blender::bke::cryptomatte::tests::TEST().
Definition at line 530 of file cryptomatte.cc.
References add_hash(), BKE_cryptomatte_hash(), BLI_strnlen(), and MAX_NAME.
Referenced by BKE_cryptomatte_material_hash(), BKE_cryptomatte_object_hash(), and CryptomatteSession::CryptomatteSession().
std::string CryptomatteLayer::manifest | ( | ) | const |
Definition at line 557 of file cryptomatte.cc.
References blender::bke::cryptomatte::manifest::to_manifest().
Referenced by BKE_cryptomatte_store_metadata(), read_from_manifest(), and blender::bke::cryptomatte::tests::TEST().
std::optional< std::string > CryptomatteLayer::operator[] | ( | float | encoded_hash | ) | const |
Definition at line 546 of file cryptomatte.cc.
References BKE_cryptomatte_hash_to_float(), hashes, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items().
|
static |
Definition at line 522 of file cryptomatte.cc.
References blender::bke::cryptomatte::manifest::from_manifest(), and manifest().
Referenced by blender::bke::cryptomatte::tests::test_cryptomatte_manifest().
blender::Map<std::string, CryptomatteHash> blender::bke::cryptomatte::CryptomatteLayer::hashes |
Definition at line 77 of file BKE_cryptomatte.hh.
Referenced by add_hash(), operator[](), and blender::bke::cryptomatte::manifest::to_manifest().