Blender
V5.3
source
blender
compositor
COM_meta_data.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2024 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#include <string>
6
7
#include "
BLI_map.hh
"
8
9
#pragma once
10
11
namespace
blender::compositor
{
12
13
/* ------------------------------------------------------------------------------------------------
14
* Cryptomatte Meta Data
15
*
16
* Stores the Cryptomatte meta data as specified in Section 1 "Metadata" in the Cryptomatte
17
* specification. The Cryptomatte layer name is not stored because it is determined by the user
18
* when saving the result to file. */
19
struct
CryptomatteMetaData
{
20
std::string
hash
;
21
std::string
conversion
;
22
std::string
manifest
;
23
};
24
25
/* ------------------------------------------------------------------------------------------------
26
* Meta Data
27
*
28
* Stores extra information about results such as image meta data that can eventually be saved to
29
* file. */
30
struct
MetaData
{
31
/* The result stores non color data, which is not to be color-managed. */
32
bool
is_non_color_data
=
false
;
33
/* Stores Cryptomatte meta data. This will only be initialized for results that represent
34
* Cryptomatte information. See the CryptomatteMetaData structure for more information. */
35
CryptomatteMetaData
cryptomatte
;
36
/* Stores custom meta-data fields. */
37
Map<std::string, std::string>
fields
;
38
39
/* Identifies if the result represents a Cryptomatte layer. This is identified based on whether
40
* the Cryptomatte meta data are initialized. */
41
bool
is_cryptomatte_layer
()
const
;
42
};
43
44
}
// namespace blender::compositor
BLI_map.hh
blender::Map
Definition
BLI_map.hh:129
blender::compositor
Definition
BKE_node.hh:77
blender::compositor::CryptomatteMetaData
Definition
COM_meta_data.hh:19
blender::compositor::CryptomatteMetaData::conversion
std::string conversion
Definition
COM_meta_data.hh:21
blender::compositor::CryptomatteMetaData::hash
std::string hash
Definition
COM_meta_data.hh:20
blender::compositor::CryptomatteMetaData::manifest
std::string manifest
Definition
COM_meta_data.hh:22
blender::compositor::MetaData
Definition
COM_meta_data.hh:30
blender::compositor::MetaData::fields
Map< std::string, std::string > fields
Definition
COM_meta_data.hh:37
blender::compositor::MetaData::is_non_color_data
bool is_non_color_data
Definition
COM_meta_data.hh:32
blender::compositor::MetaData::cryptomatte
CryptomatteMetaData cryptomatte
Definition
COM_meta_data.hh:35
blender::compositor::MetaData::is_cryptomatte_layer
bool is_cryptomatte_layer() const
Definition
meta_data.cc:9
Generated on
for Blender by
doxygen
1.18.0