Blender  V2.93
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
blender::bke::cryptomatte::CryptomatteHash Struct Reference

#include <BKE_cryptomatte.hh>

Public Member Functions

 CryptomatteHash (uint32_t hash)
 
 CryptomatteHash (const char *name, const int name_len)
 
std::string hex_encoded () const
 
float float_encoded () const
 

Static Public Member Functions

static CryptomatteHash from_hex_encoded (blender::StringRef hex_encoded)
 

Public Attributes

uint32_t hash
 

Detailed Description

Definition at line 67 of file BKE_cryptomatte.hh.

Constructor & Destructor Documentation

◆ CryptomatteHash() [1/2]

blender::bke::cryptomatte::CryptomatteHash::CryptomatteHash ( uint32_t  hash)

Definition at line 505 of file cryptomatte.cc.

◆ CryptomatteHash() [2/2]

blender::bke::cryptomatte::CryptomatteHash::CryptomatteHash ( const char *  name,
const int  name_len 
)

Definition at line 509 of file cryptomatte.cc.

References BLI_hash_mm3(), and hash.

Member Function Documentation

◆ float_encoded()

float blender::bke::cryptomatte::CryptomatteHash::float_encoded ( ) const

Definition at line 538 of file cryptomatte.cc.

References hash, MAX2, MIN2, and KDL::sign().

Referenced by BKE_cryptomatte_hash_to_float().

◆ from_hex_encoded()

CryptomatteHash blender::bke::cryptomatte::CryptomatteHash::from_hex_encoded ( blender::StringRef  hex_encoded)
static

Definition at line 514 of file cryptomatte.cc.

References hex, hex_encoded(), and result.

Referenced by blender::bke::cryptomatte::manifest::from_manifest().

◆ hex_encoded()

std::string blender::bke::cryptomatte::CryptomatteHash::hex_encoded ( ) const

Definition at line 521 of file cryptomatte.cc.

References hash, and hex.

Referenced by from_hex_encoded().

Member Data Documentation

◆ hash

uint32_t blender::bke::cryptomatte::CryptomatteHash::hash

Definition at line 68 of file BKE_cryptomatte.hh.

Referenced by CryptomatteHash(), float_encoded(), and hex_encoded().


The documentation for this struct was generated from the following files: