Blender V4.5
blender::bke::cryptomatte::CryptomatteStampDataCallbackData Struct Reference

#include <BKE_cryptomatte.hh>

Static Public Member Functions

static blender::StringRef extract_layer_hash (blender::StringRefNull key)
 
static void extract_layer_names (void *_data, const char *propname, char *propvalue, int propvalue_maxncpy)
 
static void extract_layer_manifest (void *_data, const char *propname, char *propvalue, int propvalue_maxncpy)
 

Public Attributes

CryptomatteSessionsession
 
blender::Map< std::string, std::string > hash_to_layer_name
 

Detailed Description

Definition at line 106 of file BKE_cryptomatte.hh.

Member Function Documentation

◆ extract_layer_hash()

blender::StringRef blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_hash ( blender::StringRefNull key)
static

Extract the hash from a stamp data key.

Cryptomatte keys are formatted as "cryptomatte/{layer_hash}/{attribute}".

Definition at line 596 of file cryptomatte.cc.

References BLI_assert, key, and blender::StringRefBase::not_found.

Referenced by extract_layer_manifest(), and extract_layer_names().

◆ extract_layer_manifest()

void blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_manifest ( void * _data,
const char * propname,
char * propvalue,
int propvalue_maxncpy )
static

◆ extract_layer_names()

void blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_names ( void * _data,
const char * propname,
char * propvalue,
int propvalue_maxncpy )
static

Definition at line 614 of file cryptomatte.cc.

References data, extract_layer_hash(), and key.

Referenced by CryptomatteSession::CryptomatteSession().

Member Data Documentation

◆ hash_to_layer_name

blender::Map<std::string, std::string> blender::bke::cryptomatte::CryptomatteStampDataCallbackData::hash_to_layer_name

Definition at line 108 of file BKE_cryptomatte.hh.

◆ session

CryptomatteSession* blender::bke::cryptomatte::CryptomatteStampDataCallbackData::session

Definition at line 107 of file BKE_cryptomatte.hh.

Referenced by CryptomatteSession::CryptomatteSession().


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