Blender V5.3
cryptomatte.cc File Reference
#include "BKE_cryptomatte.h"
#include "BKE_cryptomatte.hh"
#include "BKE_image.hh"
#include "BKE_layer.hh"
#include "BKE_main.hh"
#include "BKE_material.hh"
#include "DNA_layer_types.h"
#include "DNA_material_types.h"
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BLI_dynstr.hh"
#include "BLI_hash_mm3.hh"
#include "BLI_listbase.hh"
#include "BLI_string.hh"
#include "BLI_string_utf8.hh"
#include "RE_pipeline.h"
#include "MEM_guardedalloc.h"
#include <cctype>
#include <cstring>
#include <iomanip>
#include <sstream>
#include <string>

Go to the source code of this file.

Classes

struct  blender::CryptomatteSession

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke
namespace  blender::bke::cryptomatte
namespace  blender::bke::cryptomatte::manifest

Functions

struct CryptomatteSession * blender::BKE_cryptomatte_init ()
CryptomatteSession * blender::BKE_cryptomatte_init_from_render_result (const RenderResult *render_result)
CryptomatteSession * blender::BKE_cryptomatte_init_from_scene (const Scene *scene, bool build_meta_data)
CryptomatteSession * blender::BKE_cryptomatte_init_from_view_layer (const ViewLayer *view_layer)
void blender::BKE_cryptomatte_add_layer (struct CryptomatteSession *session, const char *layer_name)
void blender::BKE_cryptomatte_free (struct CryptomatteSession *session)
uint32_t blender::BKE_cryptomatte_hash (const char *name, int name_len)
uint32_t blender::BKE_cryptomatte_object_hash (CryptomatteSession *session, const char *layer_name, const Object *object)
uint32_t blender::BKE_cryptomatte_material_hash (CryptomatteSession *session, const char *layer_name, const Material *material)
uint32_t blender::BKE_cryptomatte_asset_hash (CryptomatteSession *session, const char *layer_name, const Object *object)
float blender::BKE_cryptomatte_hash_to_float (uint32_t cryptomatte_hash)
bool blender::BKE_cryptomatte_find_name (const CryptomatteSession *session, const float encoded_hash, char *r_name, int name_maxncpy)
char * blender::BKE_cryptomatte_entries_to_matte_id (struct NodeCryptomatte *node_storage)
void blender::BKE_cryptomatte_matte_id_to_entries (struct NodeCryptomatte *node_storage, const char *matte_id)
static uint32_t blender::cryptomatte_determine_identifier (const StringRef name)
static void blender::add_render_result_meta_data (RenderResult *render_result, const StringRef layer_name, const StringRefNull key_name, const StringRefNull value)
void blender::BKE_cryptomatte_store_metadata (const CryptomatteSession *session, RenderResult *render_result)
static constexpr StringRef blender::bke::cryptomatte::manifest::skip_whitespaces_ (StringRef ref)
static constexpr int blender::bke::cryptomatte::manifest::quoted_string_len_ (StringRef ref)
static std::string blender::bke::cryptomatte::manifest::unquote_ (const StringRef ref)
static bool blender::bke::cryptomatte::manifest::from_manifest (CryptomatteLayer &layer, StringRefNull manifest)
static std::string blender::bke::cryptomatte::manifest::to_manifest (const CryptomatteLayer *layer)
static std::string blender::bke::cryptomatte::cryptomatte_layer_name_hash (const StringRef layer_name)
std::string blender::bke::cryptomatte::BKE_cryptomatte_meta_data_key (StringRef layer_name, StringRefNull key_name)
StringRef blender::bke::cryptomatte::BKE_cryptomatte_extract_layer_name (StringRef render_pass_name)
const Vector< std::string > & blender::bke::cryptomatte::BKE_cryptomatte_layer_names_get (const CryptomatteSession &session)
CryptomatteLayer * blender::bke::cryptomatte::BKE_cryptomatte_layer_get (CryptomatteSession &session, StringRef layer_name)

Variables

constexpr StringRef blender::bke::cryptomatte::manifest::WHITESPACES = " \t\n\v\f\r"