Blender V5.0
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#pragma once
8
9namespace blender::compositor {
10
11/* ------------------------------------------------------------------------------------------------
12 * Cryptomatte Meta Data
13 *
14 * Stores the Cryptomatte meta data as specified in Section 1 "Metadata" in the Cryptomatte
15 * specification. The Cryptomatte layer name is not stored because it is determined by the user
16 * when saving the result to file. */
18 std::string hash;
19 std::string conversion;
20 std::string manifest;
21};
22
23/* ------------------------------------------------------------------------------------------------
24 * Meta Data
25 *
26 * Stores extra information about results such as image meta data that can eventually be saved to
27 * file. */
28struct MetaData {
29 /* The result stores non color data, which is not to be color-managed. */
30 bool is_non_color_data = false;
31 /* Stores Cryptomatte meta data. This will only be initialized for results that represent
32 * Cryptomatte information. See the CryptomatteMetaData structure for more information. */
34
35 /* Identifies if the result represents a Cryptomatte layer. This is identified based on whether
36 * the Cryptomatte meta data are initialized. */
37 bool is_cryptomatte_layer() const;
38};
39
40} // namespace blender::compositor
CryptomatteMetaData cryptomatte
bool is_cryptomatte_layer() const
Definition meta_data.cc:9